/* ==========================================================================
   FORJA ALLEGRETTO - DESIGN SYSTEM & BASE STYLES
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #101010;
  --bg-secondary: #1C1C1C;
  --text-main: #EAEAEA;
  --text-muted: #B3B3B3;
  --accent-brasa: #C75B2A;
  --accent-latao: #8B6F47;
  --placeholder-bg: #222222;

  /* Typography */
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-decor: 'Italianno', cursive;
  --font-logo: 'Andada SC', serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0; /* Começa invisível para o Fade-In */
  transition: opacity 0.8s ease-in-out;
}

body.loaded {
  opacity: 1;
}

.page-exit {
  opacity: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.2;
}

.text-decor {
  font-family: var(--font-decor);
  color: var(--accent-latao);
  font-size: 3.5rem;
  font-weight: normal;
  display: block;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-latao);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

/* Mix blend mode apenas no desktop e apenas no brand — não afeta filhos interativos */
@media (min-width: 769px) {
  .navbar {
    mix-blend-mode: difference;
  }

  /* Garante que o nav-links volta ao comportamento desktop normal */
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    height: auto;
    width: auto;
    max-width: none;
    background: transparent;
    border: none;
    padding: 0;
    gap: 3rem;
    right: auto;
    top: auto;
    z-index: auto;
    transition: none;
  }

  /* Esconde o hambúrguer no desktop */
  .nav-toggle {
    display: none;
  }

  /* Esconde o overlay no desktop */
  .nav-overlay {
    display: none !important;
  }
}

.navbar.scrolled {
  background-color: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-main);
  transition: opacity 0.3s ease;
}

.brand-text {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-accent {
  font-style: italic;
  color: var(--accent-latao);
}

.logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-brand:hover .logo-img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-family: var(--font-title);
  font-size: 1.2rem;
  text-transform: none;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.nav-links a.active {
  color: var(--accent-latao);
  border-bottom: 1px solid var(--accent-latao);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Placeholders */
.placeholder-img {
  background-color: var(--placeholder-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-body);
  border: 1px dashed #444;
  position: relative;
  overflow: hidden;
}

.placeholder-img span {
  z-index: 2;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent-latao);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-latao);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--bg-primary);
}

/* Editorial Hero Section */
.hero-editorial {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 14rem;
}

.hero-grid-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
  align-items: flex-start;
}

.hero-micro-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-latao);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-title-editorial {
  position: relative;
  font-family: var(--font-title);
  font-size: 2.4rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  font-weight: 300;
  z-index: 2;
}

.title-line {
  display: block;
}

.text-decor-bg {
  position: absolute;
  top: -2rem;
  left: -2rem;
  font-family: var(--font-decor);
  font-size: 8rem;
  color: rgba(139, 111, 71, 0.15); /* Faint gold */
  z-index: -1;
  pointer-events: none;
}

.hero-cta-box {
  max-width: 400px;
}

.hero-subtitle-editorial {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Hero Images */
.hero-right {
  position: relative;
  height: 70vh;
}

.hero-img-main {
  width: 80%;
  height: 100%;
  float: right;
  border-radius: 2px;
}

.hero-img-detail {
  position: absolute;
  bottom: -3rem;
  left: 0;
  width: 45%;
  height: 250px;
  border: 8px solid var(--bg-primary); /* separates from background image */
  z-index: 3;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: rotate(-90deg);
  transform-origin: left bottom;
}

.scroll-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background-color: var(--accent-latao);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--text-main);
  animation: scrollAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Subpage Editorial Headers */
.hero-editorial-sub {
  height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding-top: 12rem;
  padding-bottom: 4rem;
}

.hero-editorial-sub .hero-right {
  height: 50vh;
}

.hero-editorial-sub .hero-title-editorial {
  font-size: 3rem;
}

@keyframes scrollAnim {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

/* Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-text h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.intro-image {
  height: 700px;
  width: 100%;
}

.link-arrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-brasa);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s ease;
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

/* Footer */
/* (estilos base movidos para Footer Refinement abaixo) */

/* Pages Header */
.header-page {
  padding-top: 12rem;
  padding-bottom: 4rem;
}

.page-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Gallery Vertical Grid (Coleções) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s ease;
  cursor: none;
}

.gallery-card:nth-child(3n+2) {
  margin-top: 6rem;
}

.gallery-card:hover {
  transform: translateY(-10px);
}

.gallery-card-img {
  width: 100%;
  height: 280px; /* Fotos bem menores para acomodar catálogo extenso */
  border-radius: 4px;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
}

.gallery-label-small {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-latao);
  text-align: center;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
}

/* Blueprint Grid (Sob Medida) */
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.blueprint-item {
  height: 400px;
}

/* Quotes (A Marca) */
.text-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-text {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--text-main);
}

.quote-author {
  font-family: var(--font-body);
  color: var(--accent-latao);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Contact Form (Contato) */
.contact-form-container {
  background-color: var(--bg-secondary);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-brasa);
}

.btn-submit {
  background: transparent;
  cursor: pointer;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .intro-image {
    height: 400px;
  }
  .hero-title, .page-title {
    font-size: 3.5rem;
  }
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .gallery-container {
    width: 400vw;
  }
  .gallery-item {
    width: 100vw;
  }
}

/* Footer Refinement */
footer {
  padding: 8rem 0 4rem;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(193, 154, 107, 0.1);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5rem; /* Mais espaço para um visual majestoso */
  margin-bottom: 6rem;
}

.footer-brand .brand-text {
  font-size: 2.5rem; /* Levemente maior para destaque central */
  margin-bottom: 0.5rem;
  display: block;
}

.footer-slogan {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-latao);
  opacity: 0.9;
  max-width: 400px;
  margin: 0.5rem auto 0;
}

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 2.5rem;
  color: var(--accent-latao);
  position: relative;
  display: inline-block;
}

/* Linha sutil sob os títulos centrais */
.footer-nav h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background-color: var(--accent-latao);
  opacity: 0.5;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row; /* Links em linha horizontal */
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav ul li {
  margin: 0;
  position: relative;
}

/* Divisor sutil entre os links horizontais */
.footer-nav ul li:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -1.1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.2;
  color: var(--accent-latao);
}

.footer-nav ul li a {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.7;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-nav ul li a:hover {
  opacity: 1;
  color: var(--accent-latao);
}

.footer-contact {
  display: flex;
  flex-direction: row; /* Contato também em linha */
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -2rem; /* Aproxima dos links */
}

.footer-contact p {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--text-main);
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid rgba(193, 154, 107, 0.1);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-main);
  opacity: 0.5;
  letter-spacing: 1px;
  text-align: center;
}

/* Custom Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
  width: 120px;
  margin-bottom: 2rem;
  filter: grayscale(1) brightness(2);
  animation: loaderPulse 2s infinite ease-in-out;
}

.loader-bar {
  width: 150px;
  height: 1px;
  background-color: rgba(193, 154, 107, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-latao);
  animation: loaderLine 2s infinite ease-in-out;
  box-shadow: 0 0 15px var(--accent-latao);
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes loaderLine {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

.loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* WhatsApp & Email Floating Buttons */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.email-float {
  position: fixed;
  bottom: 115px; /* Posicionado acima do WhatsApp */
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: var(--accent-latao);
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover, .email-float:hover {
  transform: scale(1.1);
}

.email-float:hover {
  background-color: var(--accent-brasa);
}

.whatsapp-float:hover {
  background-color: #20ba5a;
}

.whatsapp-float svg, .email-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}


/* ==========================================================================
   RESPONSIVIDADE MOBILE
   Breakpoints: 768px (tablet), 480px (mobile), 360px (mobile pequeno)
   ========================================================================== */

/* Hambúrguer — oculto no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 9000;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--text-main);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay — só visual, sem pointer-events */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 7000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* ==========================================================================
   TABLET — 768px
   ========================================================================== */
@media (max-width: 768px) {

  /* Navbar sem blend mode no mobile */
  .navbar {
    padding: 0 1.5rem;
    height: 70px;
    mix-blend-mode: normal;
    background-color: rgba(16, 16, 16, 0.97);
    backdrop-filter: blur(10px);
  }

  .navbar.scrolled {
    padding: 0 1.5rem;
  }

  .logo-img { height: 48px; }
  .brand-text { font-size: 1.6rem; }

  /* Mostra hambúrguer */
  .nav-toggle { display: flex; }

  /* Menu lateral — fora do fluxo, z-index acima de tudo */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid rgba(193, 154, 107, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2.5rem 2.5rem;
    transition: right 0.35s ease;
    z-index: 8000;
    pointer-events: none; /* desativado quando fechado */
  }

  .nav-links.open {
    right: 0;
    pointer-events: all; /* ativado apenas quando aberto */
  }

  .nav-overlay { display: block; }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: none; /* overlay nunca captura cliques — só visual */
  }

  .nav-links a {
    font-size: 1.8rem;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0;
    display: block;
    color: var(--text-main);
    font-family: var(--font-title);
    font-weight: 300;
  }

  .nav-links a:last-child { border-bottom: none; }
  .nav-links a:hover { color: var(--accent-latao); }
  .nav-links a.active { color: var(--accent-latao); border-bottom-color: rgba(139, 111, 71, 0.3); }

  /* Hero */
  .hero-editorial { padding-top: 8rem; height: auto; min-height: 100vh; }
  .hero-grid-editorial { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title-editorial { font-size: 3rem; }
  .hero-right { height: 50vw; min-height: 280px; }
  .hero-img-detail { width: 55%; height: 180px; bottom: -2rem; }
  .scroll-indicator { display: none; }

  /* Hero subpáginas */
  .hero-editorial-sub { padding-top: 8rem; height: auto; }
  .hero-editorial-sub .hero-title-editorial { font-size: 2.4rem; }
  .hero-editorial-sub .hero-right { height: 40vw; min-height: 220px; }

  /* Intro */
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-text h2 { font-size: 2.5rem; }
  .intro-image { height: 350px; }

  /* Galeria */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .gallery-card:nth-child(3n+2) { margin-top: 0; }

  /* Blueprint */
  .blueprint-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blueprint-item { height: 280px; }

  /* Tipografia */
  .page-title { font-size: 3rem; }
  .text-decor { font-size: 2.5rem; }

  /* Container e seções */
  .container { padding: 0 2rem; }
  .section { padding: 5rem 0; }
  .header-page { padding-top: 8rem; padding-bottom: 2rem; }

  /* Footer */
  .footer-contact { flex-direction: column; gap: 0.5rem; margin-top: 0; }

  /* Botões flutuantes */
  .whatsapp-float { bottom: 24px; right: 24px; width: 52px; height: 52px; }
  .email-float { bottom: 90px; right: 24px; width: 52px; height: 52px; }
}

/* ==========================================================================
   DESKTOP RESET — garante que nada do mobile vaza para telas grandes
   ========================================================================== */
@media (min-width: 769px) {
  .navbar { mix-blend-mode: difference; }

  .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 3rem !important;
    right: auto !important;
    top: auto !important;
    z-index: auto !important;
    transition: none !important;
    pointer-events: all !important;
  }

  .nav-toggle { display: none !important; }
  .nav-overlay { display: none !important; }
}

/* ==========================================================================
   MOBILE — 480px
   ========================================================================== */
@media (max-width: 480px) {
  .navbar { padding: 0 1.2rem; }
  .brand-text { font-size: 1.4rem; }
  .logo-img { height: 40px; }
  .hero-editorial { padding-top: 7rem; }
  .hero-title-editorial { font-size: 2.4rem; }
  .hero-subtitle-editorial { font-size: 1rem; }
  .hero-right { height: 60vw; }
  .hero-img-detail { display: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-card-img { height: 240px; }
  .page-title { font-size: 2.5rem; }
  .intro-text h2 { font-size: 2rem; }
  .text-decor { font-size: 2rem; }
  .quote-text { font-size: 1.8rem; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .contact-form-container { padding: 2rem 1.5rem; }
  .btn { padding: 0.9rem 2rem; font-size: 0.75rem; }
}

/* ==========================================================================
   MOBILE PEQUENO — 360px
   ========================================================================== */
@media (max-width: 360px) {
  .brand-text { font-size: 1.2rem; }
  .logo-img { height: 34px; }
  .hero-title-editorial { font-size: 2rem; }
  .page-title { font-size: 2rem; }
  .container { padding: 0 1.2rem; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loader-progress, .scroll-line::after { animation: none !important; }
}

/* ==========================================================================
   INSTAGRAM — Botão Flutuante + Seção Coleções
   ========================================================================== */

/* Botão flutuante Instagram */
.instagram-float {
  position: fixed;
  bottom: 190px; /* 75px acima do email-float (115px) — mesmo espaçamento dos outros */
  right: 40px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-float:hover {
  transform: scale(1.1);
  color: white;
}

.instagram-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Ajuste mobile para o botão Instagram */
@media (max-width: 768px) {
  .instagram-float {
    bottom: 158px; /* 68px acima do email-float mobile (90px) — botao 52px + 16px gap */
    right: 24px;
    width: 52px;
    height: 52px;
  }
  .instagram-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Seção Instagram na página de Coleções */
.instagram-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(193, 154, 107, 0.1);
  text-align: center;
}

.instagram-section .text-decor {
  margin-bottom: 0.5rem;
}

.instagram-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.instagram-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border: 1px solid #d6249f;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-instagram::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fd5949, #d6249f);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-instagram:hover::before { left: 0; }
.btn-instagram:hover { color: white; }

.btn-instagram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   ACESSIBILIDADE — Focus Visible
   Garante que navegação por teclado seja visível (WCAG 2.1 AA)
   ========================================================================== */

/* Remove o outline padrão feio do browser */
*:focus {
  outline: none;
}

/* Aplica outline elegante apenas quando navegando por teclado */
*:focus-visible {
  outline: 2px solid var(--accent-latao);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Botões flutuantes — outline circular */
.whatsapp-float:focus-visible,
.email-float:focus-visible,
.instagram-float:focus-visible {
  outline: 2px solid var(--accent-latao);
  outline-offset: 4px;
  border-radius: 50px;
}

/* Links do menu — outline mais visível */
.nav-links a:focus-visible {
  outline: 2px solid var(--accent-latao);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--accent-latao);
}

/* Botão hambúrguer */
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-latao);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Campos do formulário */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: none; /* já tem border-bottom animado */
  border-bottom-color: var(--accent-brasa);
}

/* ==========================================================================
   FORMULÁRIO — Labels visíveis e acessíveis
   ========================================================================== */

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
  color: var(--accent-latao);
}

.required {
  color: var(--accent-brasa);
  margin-left: 2px;
}

.optional {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

/* ==========================================================================
   A MARCA — Valores e Seções de Conteúdo
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.value-item {
  border-top: 1px solid rgba(193, 154, 107, 0.3);
  padding-top: 2rem;
}

.value-number {
  font-family: var(--font-title);
  font-size: 3rem;
  color: rgba(139, 111, 71, 0.25);
  font-weight: 300;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.value-item h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.value-item p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   SOB MEDIDA — Processo em Etapas
   ========================================================================== */

.process-section {
  background-color: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 0.5rem;
  right: -1.5rem;
  color: var(--accent-latao);
  opacity: 0.4;
  font-size: 1.2rem;
}

.step-number {
  font-family: var(--font-title);
  font-size: 4rem;
  color: rgba(139, 111, 71, 0.2);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.process-step h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--accent-latao);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Responsivo — valores e processo */
@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COLEÇÕES — Nomes e descrições das peças
   ========================================================================== */

.piece-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-main);
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 400;
}

.piece-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================================================
   CONTATO — Seção de Localização com Mapa
   ========================================================================== */

.localizacao-section {
  border-top: 1px solid rgba(193, 154, 107, 0.1);
}

.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.localizacao-info .text-decor {
  margin-bottom: 0.5rem;
}

.localizacao-info h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
}

.localizacao-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.endereco-box {
  border-left: 2px solid rgba(193, 154, 107, 0.3);
  padding-left: 1.2rem;
}

.endereco-linha {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.endereco-linha strong {
  color: var(--accent-latao);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.localizacao-mapa {
  position: sticky;
  top: 120px;
}

.localizacao-mapa iframe {
  display: block;
  width: 100%;
}

/* Responsivo */
@media (max-width: 768px) {
  .localizacao-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .localizacao-mapa {
    position: static;
  }

  .localizacao-mapa iframe {
    height: 300px;
  }
}
