/*
Theme Name: Green Cotton New Layout
Theme URI: https://greencotton.pt
Author: Agilstore
Author URI: https://agilstore.pt
Description: Tema WordPress para a Green Cotton — Fabricante de Tecidos para Têxteis Lar
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: All Rights Reserved
Text Domain: greencotton-newlayout
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Manrope', system-ui, sans-serif;
  background: #F9F7F1;
  color: #0E1F0F;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #0E1F0F;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================
   HERO TITLE ANIMATION
============================== */
.hero-title {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   LAYOUT
============================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* ==============================
   COLEÇÃO LIGHTBOX (mobile)
============================== */
.colecao-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.colecao-lightbox.open {
  display: flex;
}

.colecao-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.colecao-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.colecao-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  display: block;
}

.colecao-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

@media (min-width: 768px) {
  .colecao-lightbox {
    display: none !important;
  }
}

/* ==============================
   HOME HERO
============================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--hero-bg-img, url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/01KWH88ZWT3W6MH5ST94PMNRH4.png)) 50% / cover;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 16px 32px;
  border-radius: 0 0 32px 32px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    min-height: 500px;
    padding: 120px 24px 64px;
    border-radius: 0 0 49px 49px;
  }
}

/* ==============================
   GREEN TOPBAR (product pages, contacts)
============================== */
.topbar-green {
  background: #2B472D;
  border-radius: 0 0 32px 32px;
  padding: 24px 16px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .topbar-green {
    border-radius: 0 0 65px 65px;
    padding: 32px 24px 64px;
  }
}

@media (max-width: 767px) {
  .topbar-green {
    display: none;
  }
}

/* ==============================
   NAV BAR
============================== */
.nav-bar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 9999px;
  padding: 12px 20px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .nav-bar {
    padding: 16px 40px;
  }
}

.nav-logo {
  width: 140px;
  height: 28px;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/079T4WGEX23N64ZNPHJ21TM9AM.png) 50% / contain no-repeat;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-logo {
    width: 180px;
    height: 32px;
  }
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 32px;
  }
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #0E1F0F;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #4a7a4a;
}

.nav-link.active {
  color: #235B28;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 18px;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-icon-svg {
  display: none;
}

@media (min-width: 768px) {
  .home-icon-svg {
    display: block;
    flex-shrink: 0;
  }
}

/* ==============================
   HAMBURGER BUTTON
============================== */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0E1F0F;
  border-radius: 2px;
}

/* ==============================
   HERO TITLE (home page)
============================== */
.hero-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 0;
  max-width: 800px;
}

.hero-title h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 3.125rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .hero-title h1 {
    line-height: 1;
  }

  .hero-title {
    margin-top: 40px;
  }
}

/* ==============================
   MOBILE MENU
============================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-menu.open {
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open .menu-backdrop {
  opacity: 1;
}

.menu-drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: #F9F7F1;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .menu-drawer {
  transform: translateX(0);
}

.menu-close-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 24px;
}

.menu-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0E1F0F;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.menu-nav a {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #0E1F0F;
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 31, 15, 0.1);
  transition: color 0.2s;
}

.menu-nav a:hover {
  color: #4a7a4a;
}

/* ==============================
   SOBRE (HOME PAGE)
============================== */
.sobre {
  text-align: center;
}

.sobre-title {
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .sobre-title {
    margin-bottom: 40px;
  }
}

.sobre-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: #0E1F0F;
}

@media (min-width: 768px) {
  .sobre-text {
    font-size: 16px;
  }
}

.sobre-text p {
  margin-bottom: 16px;
}

.sobre-text p:last-child {
  margin-bottom: 0;
}

/* ==============================
   LOGO DIVIDER
============================== */
.logo-divider {
  width: 140px;
  height: 24px;
  margin: 8px auto;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/079T4WGEX23N64ZNPHJ21TM9AM.png) 50% / contain no-repeat;
}

@media (min-width: 768px) {
  .logo-divider {
    width: 191px;
    height: 32px;
    margin: 16px auto;
  }
}

/* ==============================
   PRODUTOS (HOME PAGE)
============================== */
.produtos-wrap {
  background: #E6EADB;
}

.produtos-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.produtos-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #0E1F0F;
  max-width: 600px;
}

@media (min-width: 768px) {
  .produtos-desc {
    font-size: 16px;
  }
}

/* ==============================
   CAROUSEL
============================== */
.carousel-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 40px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-carousel 60s linear infinite;
  will-change: transform;
}

@media (min-width: 768px) {
  .carousel-track {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .carousel-track {
    animation-duration: 160s;
  }

  .carousel-scroll {
    overflow-x: hidden;
  }
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  width: 280px;
  height: 240px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #CBD0BF;
  background-size: cover;
  background-position: 50%;
}

@media (min-width: 768px) {
  .carousel-item {
    width: 380px;
    height: 320px;
    border-radius: 25px;
  }
}

/* ==============================
   COLEÇÃO (HOME PAGE)
============================== */
.colecao-title {
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
  color: #0E1F0F;
}

@media (min-width: 768px) {
  .colecao-title {
    margin-bottom: 48px;
  }
}

.colecao-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
}

@media (min-width: 768px) {
  .colecao-grid {
    flex-wrap: nowrap;
    max-width: 1152px;
    margin: 0 auto;
  }
}

.colecao-pill {
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  width: clamp(50px, 5vw, 80px);
  height: clamp(200px, 25vw, 382px);
  border-radius: 12px;
  background-size: cover;
  background-position: 50%;
  border: 0.8px solid #E4E4E7;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-radius 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.colecao-pill:hover {
  width: clamp(200px, 25vw, 382px);
  border-radius: 24px;
}

/* Mobile coleção — stacked cards */
@media (max-width: 767px) {
  .colecao-grid {
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  .colecao-pill {
    width: 100% !important;
    height: 90px;
    border-radius: 12px;
    flex-shrink: 0;
    border: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .colecao-pill:hover {
    width: 100% !important;
    border-radius: 12px;
  }
}

/* ==============================
   CTA SECTION
============================== */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/01KWHN0SQ396R9DBAZAKCN804D.jpg) 50% / cover;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cta-section {
    min-height: 380px;
    gap: 40px;
    padding: 48px 40px;
    margin-bottom: 0;
  }
}

.cta-line1 {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 3rem);
  text-align: center;
  line-height: 1.3;
  max-width: 640px;
}

.cta-line2 {
  color: #fff;
  font-size: clamp(1rem, 2vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.08em;
  max-width: 800px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0E1F0F;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: #E6EADB;
}

@media (min-width: 768px) {
  .cta-btn {
    font-size: 18px;
    padding: 16px 40px;
  }
}

/* ==============================
   PRODUCT PAGES (telas-cruas / telas-acabadas)
============================== */
.product-section {
  padding: 48px 0;
}

@media (max-width: 767px) { .product-section { padding-top: 60px; } }

@media (min-width: 768px) {
  .product-section {
    padding: 48px 0;
  }
}

.product-section.alt {
  background: rgba(255, 255, 255, 0.3);
}

.product-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .product-grid {
    flex-direction: row;
    gap: 64px;
  }
}

.product-grid.reversed {
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-grid.reversed {
    flex-direction: row-reverse;
  }
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 25px;
  overflow: hidden;
  background-size: cover;
  background-position: 50%;
}

@media (min-width: 768px) {
  .product-img {
    width: 50%;
  }
}

.product-info {
  width: 100%;
}

@media (min-width: 768px) {
  .product-info {
    width: 50%;
  }
}

.product-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #235F2B;
  margin-bottom: 24px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .product-name {
    margin-bottom: 32px;
  }
}

.product-specs {
  font-size: clamp(0.875rem, 1.2vw, 1.2rem);
  line-height: 2;
  color: #235F2B;
  font-weight: 600;
}

/* ==============================
   CONTACTS PAGE
============================== */
.contact-card {
  background: #E6EADB;
  border-radius: 31px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .contact-card {
    flex-direction: row;
    padding: 56px 64px;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .contact-card {
    gap: 64px;
  }
}

.contact-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 16px 8px;
}

@media (min-width: 768px) {
  .contact-info {
    width: 50%;
    gap: 24px;
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .contact-info {
    padding: 40px 48px;
  }
}

.contact-logo {
  height: 32px;
  width: 140px;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/01KWH9HD7AYXG2M4480GGJC7VC.png) 50% / contain no-repeat;
}

@media (min-width: 768px) {
  .contact-logo {
    height: 40px;
    width: 220px;
  }
}

.contact-title {
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: #000;
  line-height: 1.3;
}

.contact-details {
  font-size: clamp(0.875rem, 1vw, 1.125rem);
  line-height: 1.8;
  color: #000;
  font-weight: 700;
}

@media (min-width: 768px) {
  .contact-details {
    line-height: 2;
  }
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 8px;
}

@media (min-width: 768px) {
  .contact-form {
    width: 50%;
    gap: 20px;
    padding: 40px;
  }
}

@media (min-width: 1024px) {
  .contact-form {
    padding: 40px 48px;
  }
}

.contact-input {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #919191;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contact-input::placeholder {
  color: #919191;
}

.contact-input:focus {
  outline: none;
  border-color: #0E1F0F;
}

@media (min-width: 768px) {
  .contact-input {
    height: 56px;
    font-size: 18px;
  }
}

.contact-submit {
  background: #235B28;
  border: 0;
  border-radius: 5px;
  padding: 12px 32px;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.contact-submit:hover {
  background: #2B472D;
}

@media (min-width: 768px) {
  .contact-submit {
    padding: 16px 64px;
  }
}

@media (min-width: 1024px) {
  .contact-submit {
    padding: 16px 80px;
  }
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: #235B28;
  padding: 40px 0 16px;
}

@media (min-width: 768px) {
  .footer {
    padding: 56px 0 24px;
  }
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    gap: 80px;
    margin-bottom: 56px;
  }
}

.footer-col {
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 280px;
}

.footer-logo1 {
  width: 220px;
  height: 40px;
  margin-top: 31px;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/1HWRBV9QD2MC0EJFNFNJAVN6RR.png) 50% / contain no-repeat;
}

.footer-logo2 {
  width: 200px;
  height: 22px;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/6KBAAN8FS6E4R0QMKDNHVKWJ98.png) 50% / contain no-repeat;
}

.footer-label {
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer-credit {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

@media (max-width: 767px) {
  .footer-col:nth-child(3) {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-col {
    width: 100%;
    max-width: 280px;
  }

  .footer-credit {
    text-align: center;
  }
}

/* ==============================
   PRELOADER
============================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: 180px;
  height: 32px;
  background: url(https://app.paper.design/file-assets/01KTFMV94J6CWAG88VGDJ51PW1/079T4WGEX23N64ZNPHJ21TM9AM.png) 50% / contain no-repeat;
}