/* ═══════════════════════════════════════════════
   Ads Doctor Melbourne — Light Theme Design System
   Brand: Trustworthy · Efficient · Surgical Precision
   Strategy: Committed (mint green carries key surfaces)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors - OKLCH-based, no #000 or #fff */
  --color-bg: #F7FAF8;
  --color-bg-alt: #EFF4F0;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F0F5F2;
  --color-border: #DDE8E2;
  --color-border-light: #EAF1EC;

  --color-text: #0F1714;
  --color-text-secondary: #3D4F45;
  --color-text-muted: #6B7F74;
  --color-text-inverse: #F7FAF8;

  /* Brand Mint (NOW ORANGE — swapped globally; restored for hero sections below) */
  --color-mint: #E07A3C;
  --color-mint-hover: #D16A2C;
  --color-mint-active: #C25A1C;
  --color-mint-light: #FCE8D8;
  --color-mint-dark: #C45A2C;
  --color-mint-deeper: #A84A20;

  /* Burnt Orange Accent (buttons / CTAs) */
  --color-orange: #E07A3C;
  --color-orange-hover: #D16A2C;
  --color-orange-active: #C25A1C;
  --color-orange-dark: #C45A2C;
  --color-orange-dark-hover: #A84A20;

  /* Complementary Teal (from icon pack — sparsely used) */
  --color-teal: #0D9488;
  --color-teal-hover: #0F7666;
  --color-teal-light: #CCFBF1;
  --color-teal-dark: #065F46;

  /* Accent CTAs */
  --color-accent: #1A7A5C;
  --color-accent-hover: #14624A;

  /* Status */
  --color-error: #DC2626;
  --color-success: #16A34A;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Type Scale — ratio 1.25 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Line Heights */
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1200px;
  --content-width: 65ch;
  --nav-height: 72px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 20, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 20, 0.07);
  --shadow-lg: 0 8px 24px rgba(15, 23, 20, 0.09);
  --shadow-xl: 0 16px 48px rgba(15, 23, 20, 0.12);

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Restore original mint green for hero sections only */
.hero,
.hero-section,
[id*="hero"],
section:first-of-type,
.canvas-container {
  --color-mint: #AAF0D1;
  --color-mint-hover: #8EE6C0;
  --color-mint-active: #6ADBAB;
  --color-mint-light: #D5F5E6;
  --color-mint-dark: #2D8F6F;
  --color-mint-deeper: #14624A;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw, var(--text-7xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-5xl)); }
h3 { font-size: clamp(1.375rem, 3vw, var(--text-3xl)); }
h4 { font-size: clamp(1.125rem, 2.5vw, var(--text-2xl)); }

p { max-width: var(--content-width); }

.text-container {
  max-width: var(--content-width);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

.section-xl {
  padding: var(--space-24) 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.75rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-text);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background: var(--color-orange-active);
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--color-orange-dark);
  color: var(--color-text-inverse);
  border-color: var(--color-orange-dark);
}

.btn-accent:hover {
  background: var(--color-orange-dark-hover);
  border-color: var(--color-orange-dark-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

/* .btn-orange alias — same as .btn-mint but explicitly orange */
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: var(--text-sm);
  white-space: nowrap;
  background: var(--color-orange);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn-orange:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

/* ─── Mobile: Center all buttons ─── */
@media (max-width: 767px) {
  .btn, .btn-mint, .btn-primary, .btn-secondary, .btn-accent,
  .btn-lg, .btn-outline, .btn-gradient, .btn-orange,
  [class*="btn-"],
  a[href*="calendly"], a[href*="wa.me"] {
    display: flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
    justify-content: center;
  }
  /* Center flex-wrap button groups on mobile */
  .flex-wrap.gap-4 {
    justify-content: center !important;
  }
}

/* ─── Cards ─── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-mint);
  box-shadow: var(--shadow-md);
}

.card-accent {
  border-left: 3px solid var(--color-mint);
}

.card-accent-teal {
  border-left: 3px solid var(--color-teal);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo span {
  color: var(--color-mint-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  height: 100%;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.nav-link.active {
  color: var(--color-mint-dark);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
  background: var(--color-mint-light);
  color: var(--color-text);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-6);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ─── Hero ─── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Grid Background ─── */
.bg-grid {
  background-image:
    linear-gradient(var(--color-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-grid-subtle {
  background-image:
    linear-gradient(var(--color-border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Grid/Flex layout utilities ─── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Stats / Numbers ─── */
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-mint-dark);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ─── Testimonials ─── */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  line-height: 1;
  color: var(--color-mint);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─── Features / Services ─── */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint-light);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.feature-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Section Headers ─── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-mint-dark);
  margin-bottom: var(--space-3);
}

.section-label-teal {
  color: var(--color-teal-dark);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: var(--content-width);
}

/* ─── Divider ─── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-mint);
  margin: var(--space-6) 0;
}

.divider-teal {
  width: 48px;
  height: 3px;
  background: var(--color-teal);
  margin: var(--space-6) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Form Elements ─── */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: all var(--transition-fast);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(224, 122, 60, 0.2);
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-muted);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  background: var(--color-mint-light);
  color: var(--color-mint-dark);
}

.tag-mint {
  background: var(--color-mint-light);
  color: var(--color-mint-dark);
}

.tag-teal {
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
}

.tag-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.tag-yellow {
  background: #FEF3C7;
  color: #92400E;
}

.tag-purple {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ─── FAQ ─── */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-border);
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-button:hover {
  color: var(--color-mint-dark);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ─── Footer ─── */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 40ch;
  line-height: var(--leading-relaxed);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-mint-dark);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-mint-dark);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in-delay-1 {
  animation-delay: 0.1s;
}

.animate-in-delay-2 {
  animation-delay: 0.2s;
}

.animate-in-delay-3 {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Three.js Canvas Container ─── */
.canvas-container {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* ─── Chat Widget ─── */
.chat-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
}

.chat-bubble {
  width: 56px;
  height: 56px;
  background: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: none;
}

.chat-bubble:hover {
  transform: scale(1.05);
  background: var(--color-orange-hover);
}

.chat-box {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
}

.chat-box.open {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: var(--space-4) var(--space-5);
  background: var(--color-orange);
  color: var(--color-text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  padding: var(--space-4);
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.chat-input-area {
  display: flex;
  padding: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  gap: var(--space-2);
}

.chat-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.chat-send {
  background: var(--color-orange);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.chat-send:hover {
  background: var(--color-orange-hover);
}

@media (max-width: 480px) {
  .chat-box {
    width: calc(100vw - 32px);
    right: -16px;
  }
}

/* ─── Image underlap (legacy) ─── */
@media (min-width: 768px) {
  .asset-underlap {
    margin-right: -60px;
    width: 130% !important;
    max-width: 130% !important;
    position: relative;
    z-index: 1;
  }

  .asset-underlap-right {
    margin-left: -60px;
    margin-right: 0;
    width: 130% !important;
    max-width: 130% !important;
    position: relative;
    z-index: 1;
  }

  .asset-col {
    overflow: visible !important;
  }
}
