@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&family=Cinzel:wght@400;500&display=swap');

/* ==========================================================================
   FACCIA CLINIC - DESIGN SYSTEM TOKENS
   ========================================================================== */

:root {
  /* Brand Colors — Darker, Richer Palette */
  --color-ivory-silk:     #EDE7DB;  /* deepened from #F5F0E8 */
  --color-warm-parchment: #DDD4C0;  /* deepened from #EDE6D6 */
  --color-faccia-gold:    #8B6833;
  --color-deep-bronze:    #5A3F18;  /* darker hover bronze */
  --color-champagne:      #B8935A;  /* richer champagne */
  --color-gold-bright:    #C4A46B;  /* for shimmer accents */

  /* Neutral Colors — Deeper Scale */
  --color-charcoal:       #1C1610;  /* near-black warm */
  --color-charcoal-mid:   #2C2418;  /* original charcoal */
  --color-taupe:          #5E5448;
  --color-bone:           #C8BFB0;
  --color-white-ivory:    #F5EFE4;

  /* Dark Section Colors */
  --color-dark-bg:        #181310;  /* deep espresso */
  --color-dark-surface:   #221C14;  /* card on dark bg */
  --color-dark-border:    rgba(196, 164, 107, 0.15);

  /* System Colors */
  --color-success:        #7A9E7E;
  --color-alert:          #C4846B;
  --color-error:          #A64444;

  /* Semantic Aliases */
  --bg-primary:           var(--color-ivory-silk);
  --bg-secondary:         var(--color-warm-parchment);
  --bg-elevated:          var(--color-white-ivory);
  --text-primary:         var(--color-charcoal);
  --text-secondary:       var(--color-taupe);
  --text-muted:           var(--color-bone);
  --accent-primary:       var(--color-faccia-gold);
  --accent-hover:         var(--color-deep-bronze);
  --accent-light:         var(--color-champagne);
  --border-subtle:        var(--color-bone);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-label:    'Cinzel', serif;
  --font-body:     'Jost', sans-serif;

  /* Type Scale */
  --text-xs:   0.694rem;   /* 11px */
  --text-sm:   0.833rem;   /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.2rem;     /* 19px */
  --text-lg:   1.44rem;    /* 23px */
  --text-xl:   1.728rem;   /* 28px */
  --text-2xl:  2.074rem;   /* 33px */
  --text-3xl:  2.488rem;   /* 40px */
  --text-4xl:  3.157rem;   /* 51px */
  --text-hero: 4.209rem;   /* 67px */

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Container */
  --container-max: 1280px;

  /* Borders & Shadows — warmer, deeper */
  --radius-none:  0px;
  --border-thin:   0.5px solid var(--border-subtle);
  --border-default:1px solid var(--border-subtle);
  
  --shadow-sm:  0 2px 8px rgba(28, 22, 16, 0.10);
  --shadow-md:  0 8px 32px rgba(28, 22, 16, 0.14);
  --shadow-lg:  0 24px 60px rgba(28, 22, 16, 0.20);
  --shadow-xl:  0 40px 80px rgba(28, 22, 16, 0.28);
  --glow-gold:  0 0 32px rgba(139, 104, 51, 0.30);
  --glow-gold-sm: 0 0 16px rgba(196, 164, 107, 0.20);

  /* Animation */
  --ease-luxury:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:   cubic-bezier(0.7, 0, 0.84, 0);
  --duration-fast:  150ms;
  --duration-base:  300ms;
  --duration-slow:  600ms;
  --duration-slower:900ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.text-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, var(--text-hero));
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
}

.text-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-4);
}

.text-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

.text-lead {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

.text-ui {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-10) 0;
}

.section-sm {
  padding: var(--space-7) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-9) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-none);
  transition: all 0.3s var(--ease-luxury);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  color: var(--color-ivory-silk);
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: var(--space-4) var(--space-7);
  min-height: 48px; /* Touch-friendly */
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--glow-gold);
}

.btn-secondary {
  color: var(--accent-primary);
  background: transparent;
  border: 1px solid var(--accent-primary);
  padding: var(--space-4) var(--space-7);
  min-height: 48px;
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--color-ivory-silk);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: var(--space-3) 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: var(--border-thin);
  padding: var(--space-7);
  transition: box-shadow 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: var(--space-5);
}

.card-title {
  margin-bottom: var(--space-3);
}

.card-content {
  flex-grow: 1;
  margin-bottom: var(--space-5);
}

/* Inputs & Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: var(--border-default);
  border-radius: var(--radius-none);
  padding: var(--space-4) var(--space-5);
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

/* Ornaments */
.divider-ornament {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--accent-light);
  margin: var(--space-7) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--accent-light);
}

.title-underline::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent-primary);
  margin-top: var(--space-4);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease;
  padding: var(--space-5) 0;
  border-bottom: 1px solid transparent;
}

/* Nav links light over hero, dark when scrolled */
.site-header .nav-link {
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.3);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--color-gold-bright);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.3);
}
.site-header.scrolled .nav-link {
  color: var(--text-primary);
  text-shadow: none;
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--accent-primary);
}

/* Logo visibility over hero */
.site-header .logo-img {
  filter: brightness(10);
  transition: filter 0.4s ease;
}
.site-header.scrolled .logo-img {
  filter: brightness(1);
}

/* Menu toggle bars — white over hero */
.site-header .menu-toggle span {
  background-color: var(--color-white-ivory);
}
.site-header.scrolled .menu-toggle span {
  background-color: var(--text-primary);
}

/* Agendar button on hero */
.site-header .btn-primary {
  border-color: var(--color-champagne);
  background: rgba(139, 104, 51, 0.85);
}
.site-header.scrolled .btn-primary {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

.site-header.scrolled {
  background-color: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-elevated);
  border: var(--border-thin);
  box-shadow: var(--shadow-md);
  padding: var(--space-4) 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-luxury);
  display: flex;
  flex-direction: column;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-5);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  padding-left: var(--space-6);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-primary);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:last-child { bottom: 0; }

.menu-toggle.active span:first-child {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  bottom: 10px;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-luxury);
    transform: translateY(-20px);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu .btn {
    margin-top: var(--space-4);
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: var(--space-3) 0 0 0;
    text-align: center;
  }
  
  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-dark-bg);
  padding: var(--space-9) 0 var(--space-5);
  border-top: 1px solid var(--color-dark-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-4);
  filter: brightness(10);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-champagne);
  margin-bottom: var(--space-5);
}

.footer-title {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--color-gold-bright);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 15px;
  color: rgba(237, 231, 219, 0.8);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-champagne);
}

.footer-contact p {
  font-size: 15px;
  color: rgba(237, 231, 219, 0.8);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(196,164,107,0.15);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-end;
  }
}

.footer-copyright, .footer-legal {
  font-size: 13px;
  color: rgba(237, 231, 219, 0.5);
}

.nossa-brasil-link {
  color: var(--color-champagne) !important;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   WHATSAPP BUTTON
   ========================================================================== */

.whatsapp-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s var(--ease-luxury), box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-btn.pulse {
  animation: pulse-whatsapp 2s infinite;
}

/* ==========================================================================
   ANIMATIONS & UTILITIES — LUXURY
   ========================================================================== */

/* ── Fade up (default scroll reveal) ── */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 280ms; }
.delay-4 { transition-delay: 380ms; }
.delay-5 { transition-delay: 480ms; }

/* ── Clip-path reveal (luxury wipe-in) ── */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out-expo);
}
.reveal-clip.visible {
  clip-path: inset(0 0% 0 0);
}

/* ── Scale-in (for images & photos) ── */
.animate-scale {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity  var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}
.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Shimmer line element ── */
@keyframes shimmer-right {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.shimmer-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent-primary);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-4);
}
.shimmer-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    var(--color-gold-bright) 50%,
    transparent
  );
  animation: shimmer-right 2.4s var(--ease-luxury) infinite;
}

/* ── Gold shimmer text ── */
@keyframes shimmer-text {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.text-shimmer {
  background: linear-gradient(
    120deg,
    var(--accent-primary) 0%,
    var(--color-gold-bright) 40%,
    var(--color-champagne) 50%,
    var(--color-gold-bright) 60%,
    var(--accent-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 4s linear infinite;
}

/* ── Number counter eyebrow ── */
.count-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.25;
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
}

/* ── Dark Section ── */
.section-dark {
  background-color: var(--color-dark-bg);
  color: var(--color-ivory-silk);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-champagne),
    transparent
  );
}
.section-dark .text-eyebrow  { color: var(--color-champagne); }
.section-dark .text-h2,
.section-dark .text-h3       { color: var(--color-ivory-silk); }
.section-dark .text-body     { color: rgba(237, 231, 219, 0.65); }
.section-dark .shimmer-line  { background: var(--color-champagne); }

/* ── Card dark variant ── */
.card-dark {
  background: var(--color-dark-surface);
  border: 1px solid var(--color-dark-border);
  padding: var(--space-7);
  transition:
    border-color 0.4s var(--ease-luxury),
    box-shadow   0.4s var(--ease-luxury),
    transform    0.4s var(--ease-luxury);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-dark:hover {
  border-color: var(--color-champagne);
  box-shadow: var(--glow-gold);
  transform: translateY(-4px);
}
.card-dark h3 { color: var(--color-ivory-silk); }
.card-dark p  { color: rgba(237, 231, 219, 0.60); }

/* ── Horizontal gold rule ── */
.gold-rule {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(90deg,
    transparent,
    var(--color-champagne) 30%,
    var(--color-champagne) 70%,
    transparent
  );
  margin: var(--space-7) 0;
}

/* ── Doctor portrait frame ── */
.doctor-frame {
  position: relative;
  overflow: hidden;
}
.doctor-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.doctor-frame:hover img {
  transform: scale(1.04);
}
.doctor-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(196, 164, 107, 0.25);
  pointer-events: none;
}

/* ── Hero picture wrapper — ensures absolute positioning works ── */
.hero > picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* ── Hero text — lighter on dark overlay ── */
.hero .text-hero {
  color: var(--color-white-ivory);
  text-shadow: 0 2px 40px rgba(28, 22, 16, 0.5);
}
.hero .text-lead {
  color: rgba(237, 231, 219, 0.80);
}

/* ── Marquee / Differentials Strip ── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.strip-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.strip-wrap {
  overflow: hidden;
  background: var(--color-dark-bg);
  border-top: 0.5px solid var(--color-dark-border);
  border-bottom: 0.5px solid var(--color-dark-border);
  padding: var(--space-4) 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-7);
  white-space: nowrap;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-champagne);
}
.strip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

.bg-secondary { background-color: var(--bg-secondary); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-primary { background-color: var(--bg-primary); }

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

/* Hero specific */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 180px; /* Space for header — avoids overlap */
  padding-bottom: 40px;
  overflow: hidden;
}

/* Mobile order control for hero children */
.hero-overlay { order: -2; }
.hero-bottom-gradient { order: -1; }

/* ==========================================================================
   HERO NEW LAYOUT
   ========================================================================== */

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.hero-couple-image {
  position: absolute;
  bottom: 0;
  left: 62%;
  transform: translateX(-50%);
  height: 78%;
  z-index: 0;
  pointer-events: none;
}

.hero-couple-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

@media (max-width: 1024px) {
  .hero-couple-image {
    height: 70%;
    left: 58%;
  }
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 0;
    align-items: stretch;
  }

  /* Reorder hero children: text first, image last */
  .hero .hero-layout {
    order: 1;
  }
  .hero .hero-couple-image {
    order: 2;
  }
  .hero .hero-features-strip {
    order: 3;
  }

  .hero-couple-image {
    position: relative;
    left: auto;
    transform: none;
    height: auto;
    width: 100%;
    margin-top: var(--space-7);
    display: flex;
    justify-content: center;
    z-index: 2;
  }

  .hero-couple-image img {
    height: auto;
    width: 75%;
    max-width: 380px;
    max-height: 55vh;
    object-fit: contain;
    object-position: bottom center;
  }

  .hero-layout {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content .text-hero {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-content .text-lead {
    font-size: 14px;
  }

  .hero-content .text-lead br {
    display: none;
  }

  .hero-bottom-gradient {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-couple-image img {
    width: 85%;
    max-width: 320px;
  }

  .hero-content .text-hero {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-content .text-lead {
    font-size: 13px;
  }
}

.hero-doctors-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-end;
  text-align: right;
  margin-right: 5%;
}

@media (max-width: 900px) {
  .hero-doctors-info {
    display: none; /* Hide floating text on mobile to save space */
  }
}

.doctor-badge {
  display: flex;
  flex-direction: column;
  border-right: 2px solid rgba(196,164,107,0.5);
  padding-right: 16px;
}

.doctor-badge strong {
  color: var(--color-champagne);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin-bottom: 4px;
}

.doctor-badge span {
  color: rgba(237, 231, 219, 0.60);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.hero-features-strip {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(196,164,107,0.2);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  margin-top: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-features-strip {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
    margin-top: 0;
    border-top: 1px solid rgba(196,164,107,0.15);
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
    flex: 1;
  }

  .feature-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .feature-text {
    align-items: center;
  }

  .feature-text strong {
    font-size: 8px !important;
    letter-spacing: 0.1em !important;
  }

  .feature-text span {
    font-size: 7px !important;
    letter-spacing: 0.05em !important;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-champagne);
}

.feature-item svg {
  color: var(--color-champagne);
  opacity: 0.8;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(20, 15, 10, 0.95) 0%, rgba(20, 15, 10, 0.5) 40%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.feature-text strong {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-white-ivory);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.feature-text span {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(237, 231, 219, 0.85);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      105deg,
      rgba(20, 15, 10, 0.92) 0%,
      rgba(28, 22, 16, 0.80) 45%,
      rgba(44, 36, 24, 0.55) 100%
    );
  z-index: -1;
}

.hero-content {
  max-width: 650px;
}

/* Tratamento Inner Page */
.page-header {
  padding: calc(100px + var(--space-8)) 0 var(--space-8);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .page-header {
    padding: calc(90px + var(--space-6)) 0 var(--space-7);
    margin-bottom: var(--space-7);
  }
}

.treatment-hero-img {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  object-fit: cover;
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .treatment-hero-img {
    height: 35vh;
    min-height: 240px;
    margin-bottom: var(--space-6);
  }
}

/* ==========================================================================
   DOCTOR INDIVIDUAL CARDS
   ========================================================================== */

.doctor-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .doctor-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doctor-card {
  background: var(--bg-elevated);
  border: var(--border-thin);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
}

.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doctor-card-photo {
  width: 100%;
  height: 768px;
  object-fit: cover;
  object-position: center top;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .doctor-card-photo {
    height: 420px;
  }
}

.doctor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder when no photo is loaded yet */
.doctor-card-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--color-bone) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.doctor-card-photo .photo-placeholder svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1;
  opacity: 0.5;
}

.doctor-card-photo .photo-placeholder span {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.6;
}

.doctor-card-info {
  padding: var(--space-6);
}

.doctor-card-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.doctor-card-info .doctor-cro {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-4);
}

.doctor-card-info p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   GALERIA & LIGHTBOX
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-none);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-luxury);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(28, 22, 16, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding: 50px 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 22, 16, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--color-white-ivory);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE FIXES — ALL PAGES
   ========================================================================== */

/* ── TABLET (768–1024px) ────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Navigation: reduce gap on tablet for fitting */
  .nav-menu {
    gap: var(--space-4);
  }

  /* Hero: slightly reduce top padding */
  .hero {
    padding-top: 150px;
  }

  /* Technology section: card padding adjust */
  .card-dark {
    padding: var(--space-5);
  }

  /* Doctor card photos: reasonable height for tablet */
  .doctor-card-photo {
    height: 520px;
  }

  /* Sobre page inline image: cap height */
  .grid-2 img[style*="height: 500px"] {
    height: 380px !important;
  }
}

/* ── MOBILE (≤768px) ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* --- NAV MOBILE OVERLAY --- */
  .nav-menu {
    gap: var(--space-5);
  }

  .nav-menu .nav-link {
    font-size: var(--text-sm);
    color: var(--text-primary) !important;
    text-shadow: none !important;
    padding: var(--space-2) 0;
  }

  .nav-menu .btn {
    margin-left: 0 !important;
    width: 100%;
    max-width: 280px;
  }

  /* --- HERO BUTTONS --- */
  .hero-content div[style*="display: flex"] {
    flex-direction: column;
    gap: 12px !important;
    width: 100%;
  }

  .hero-content div[style*="display: flex"] .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px !important;
    font-size: 11px !important;
  }

  /* --- SECTIONS GENERAL: proper breathing room on mobile --- */

  /* Hero feature strip: add margin below for separation from next section */
  .hero-features-strip {
    margin-bottom: var(--space-5);
  }

  /* Divider ornament: proper breathing room between sections */
  .divider-ornament {
    margin: var(--space-7) 0;
  }

  /* Section-dark: ensure proper top/bottom padding */
  .section-dark {
    padding: var(--space-9) 0;
  }

  /* Corpo Clínico & similar title blocks: ensure breathing room */
  .text-center.mb-8 {
    margin-bottom: var(--space-7) !important;
  }

  /* --- GRID CARDS (tratamentos, valores) --- */
  .card {
    padding: var(--space-5);
  }

  .card-dark {
    padding: var(--space-5);
  }

  .card-image {
    height: 200px;
  }

  /* --- SOBRE PAGE: Inline image fix --- */
  .grid-2 img[style*="height: 500px"] {
    height: auto !important;
    max-height: 300px;
  }

  /* --- SOBRE PAGE: Quote block --- */
  .grid-2 div[style*="font-size: 8rem"] {
    font-size: 4rem !important;
  }

  /* --- TECHNOLOGY SECTION --- */
  .section-dark .gold-rule {
    margin: var(--space-6) 0;
  }

  .section-dark div[style*="display: flex"][style*="gap: var(--space-7)"] {
    gap: var(--space-4) !important;
    flex-direction: column;
    align-items: center;
  }

  /* --- CONTATO: Form container --- */
  .grid-2 div[style*="padding: var(--space-7)"][style*="box-shadow"] {
    padding: var(--space-5) !important;
  }

  /* --- CONTATO: WhatsApp CTA box --- */
  div[style*="border-left: 3px solid"] {
    padding: var(--space-5) !important;
  }

  /* --- CONTATO: Map container --- */
  div[style*="height: 400px"][style*="background-color: var(--bg-secondary)"] {
    height: 280px !important;
  }

  /* --- FOOTER MOBILE --- */
  .footer-top {
    gap: var(--space-6);
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    text-align: center;
    gap: var(--space-4);
  }

  .footer-bottom div[style*="display: flex"][style*="flex-direction: column"] {
    align-items: center;
  }

  .footer-copyright,
  .footer-legal {
    font-size: 11px;
    line-height: 1.6;
  }

  .site-footer {
    padding: var(--space-8) 0 var(--space-5);
  }

  /* --- CTA FINAL SECTION --- */
  .section-dark .btn-primary[style*="background-color: var(--color-champagne)"] {
    font-size: var(--text-xs);
    padding: var(--space-4) var(--space-5) !important;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
  }

  /* --- WHATSAPP BUTTON --- */
  .whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: var(--space-5);
    right: var(--space-4);
  }

  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }

  /* --- LIGHTBOX MOBILE --- */
  .lightbox {
    padding: 20px 10px;
  }

  .lightbox-content {
    max-width: 96%;
    max-height: 80vh;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }

  /* --- PRIVACY PAGE: inline padding-top fix --- */
  .page-header[style*="padding-top: 180px"] {
    padding-top: 120px !important;
  }

  /* --- TEXT OVERFLOW PREVENTION --- */
  .text-h1,
  .text-h2,
  .text-h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* --- GALLERY GRID --- */
  .gallery-grid {
    gap: var(--space-3);
  }

  /* --- STICKY SIDEBAR: disable on mobile --- */
  div[style*="position: sticky"] {
    position: static !important;
  }
}

/* ── SMALL MOBILE (≤480px) ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Tighter container padding */
  .container {
    padding: 0 var(--space-3);
  }

  /* Smaller section padding */
  .section {
    padding: var(--space-8) 0;
  }

  /* Doctor cards */
  .doctor-card-photo {
    height: 340px;
  }

  .doctor-card-info {
    padding: var(--space-5);
  }

  .doctor-card-info h3 {
    font-size: var(--text-lg);
  }

  /* Card adjustments */
  .card {
    padding: var(--space-4);
  }

  .card-dark {
    padding: var(--space-4);
  }

  /* Footer */
  .footer-tagline {
    font-size: var(--text-lg);
  }

  /* Tech items: smaller text */
  .text-ui {
    font-size: 9px;
  }

  /* Gallery: single column on very small */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* CTA text */
  .section-dark .text-h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

/* ── LARGE DESKTOP (≥1280px) ──────────────────────────────────────────── */
@media (min-width: 1280px) {
  /* Ensure content doesn't feel too stretched */
  .hero-content {
    max-width: 600px;
  }

  /* Consistent section spacing */
  .section {
    padding: var(--space-11) 0;
  }

  /* Doctor card photos: generous desktop height */
  .doctor-card-photo {
    height: 640px;
  }
}
