/* ============================================
   DESIGN TOKENS — The Village Edit
   ============================================ */
:root {
  /* Backgrounds */
  --color-oyster:      #F0D9C0;
  --color-oyster-white:#F5F0EB;
  --color-off-white:   #F0D9C0;
  --color-surface-from:#F0D9C0;
  --color-surface-to:  #D4B5BD;

  /* Brand */
  --color-sage:        #5A2858;
  --color-sage-deep:   #5A2858;
  --color-gold:        #D2A24C;

  /* Text */
  --color-text-main:   #612B55;
  --color-text-body:   #3D2842;
  --color-text-muted:  #9A8E82;
  --color-text-on-dark:#F0D9C0;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --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:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-14:  3.5rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --spacing-section: 5rem;

  /* Effects */
  --shadow-warm:   0 4px 24px rgba(97, 43, 85, 0.08);
  --shadow-card:   0 2px 16px rgba(97, 43, 85, 0.06);
  --radius-sm:     4px;
  --radius-md:     6px;
  --radius-lg:     14px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --transition-base: 0.25s ease;
  --transition-slow: 0.45s ease;
}

/* ============================================
   FOCUS STYLES
   ============================================ */
/* Ensure keyboard navigation is always visible */
:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-sage-deep);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(90, 40, 88, 0.25);
}

.nav-link:focus-visible,
.nav-logo:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 4px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-sage);
  color: var(--color-off-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================
   RESET + BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  background-color: var(--color-oyster);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }

p {
  max-width: 65ch;
  line-height: 1.7;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}

/* ============================================
   COMPONENTS — BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text-main);
  border-color: var(--color-text-main);
  color: var(--color-off-white);
}
.btn-primary:hover {
  background: #4A1D48;
  border-color: #4A1D48;
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover {
  background: rgba(240,217,192,0.12);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--color-text-main);
  color: var(--color-text-main);
}
.btn-ghost-dark:hover {
  background: var(--color-text-main);
  color: var(--color-off-white);
}

/* Gold divider utility */
.divider-gold {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin-inline: auto;
}

/* Eyebrow text utility */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
/* ============================================
   OFFER BANNER
   ============================================ */
.offer-banner {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-oyster-white);
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid rgba(61, 40, 66, 0.1);
  animation: bannerSlideDown 0.6s ease-out;
}

@keyframes bannerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes bannerShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.offer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.offer-banner-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #3D2842;
  letter-spacing: 0.02em;
  margin: 0;
}

.offer-banner-highlight {
  font-weight: 700;
}

.offer-banner-link {
  color: #3D2842;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
  animation: bannerShimmer 2.5s ease-in-out 1.5s 3;
}

.offer-banner-link:hover {
  color: var(--color-sage);
}

.offer-banner-close {
  background: none;
  border: none;
  color: #3D2842;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.offer-banner-close:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .offer-banner {
    padding: 8px 16px;
  }
  .offer-banner-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(97, 43, 85, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 162, 76, 0.2);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(61, 40, 66, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-off-white);
  transition: color var(--transition-base);
}
.nav-link:hover {
  color: var(--color-gold);
}

.nav-cta {
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-xs);
  background: var(--color-oyster-white) !important;
  border-color: var(--color-oyster-white) !important;
  color: var(--color-text-main) !important;
}
.nav-cta:hover {
  background: #c4923e !important;
  border-color: #c4923e !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-off-white);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .nav-logo img {
    image-rendering: -webkit-optimize-contrast;
    filter: saturate(1.3);
  }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(97, 43, 85, 0.98);
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) 0;
    gap: var(--space-6);
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-slow);
    border-bottom: 1px solid rgba(210, 162, 76, 0.2);
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-text-main);
  color: var(--color-text-on-dark);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(240, 217, 192, 0.12);
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  color: rgba(240, 217, 192, 0.7);
  max-width: none;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.footer-nav ul,
.footer-legal-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a,
.footer-legal-col a {
  font-size: var(--text-sm);
  color: rgba(240, 217, 192, 0.65);
  transition: color var(--transition-base);
}
.footer-nav a:hover,
.footer-legal-col a:hover {
  color: var(--color-text-on-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
}

.footer-copy {
  font-size: var(--text-sm);
  color: rgba(240, 217, 192, 0.45);
  max-width: none;
}

.footer-socials {
  display: flex;
  gap: var(--space-6);
}

.social-link {
  font-size: var(--text-sm);
  color: rgba(240, 217, 192, 0.5);
  transition: color var(--transition-base);
}
.social-link:hover {
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}
.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(61, 40, 66, 0.45) 0%,
    rgba(61, 40, 66, 0.25) 40%,
    transparent 65%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

.hero-inner {
  max-width: 680px;
}

.hero-eyebrow {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-headline {
  color: var(--color-off-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 8px rgba(0,0,0,0.45), 0 4px 32px rgba(97, 43, 85, 0.6);
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(240, 217, 192, 0.92);
  margin-bottom: var(--space-10);
  max-width: 52ch;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-ctas .btn-ghost {
  border-color: rgba(240, 217, 192, 0.6);
  color: var(--color-off-white);
}

.hero-monogram {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(210, 162, 76, 0.2);
  letter-spacing: 0.12em;
  font-weight: 300;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 70% 15%;
  }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(61, 40, 66, 0.50) 0%,
      rgba(61, 40, 66, 0.25) 35%,
      transparent 50%
    );
  }
  .hero-content {
    padding-top: 200px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-monogram {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}

/* ============================================
   THE STORY
   ============================================ */
.story {
  background: var(--color-off-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.story-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.story-content h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.story-content p {
  color: var(--color-text-body);
  max-width: 50ch;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .story-image img {
    height: 340px;
  }
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.reviews {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
}

.reviews-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.reviews-header h2 {
  margin-top: var(--space-3);
}

.reviews-summary {
  text-align: center;
  margin-bottom: var(--space-12);
}
.reviews-rating {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.reviews-rating-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1;
}
.reviews-rating-stars {
  color: var(--color-gold);
  font-size: var(--text-2xl);
  letter-spacing: 2px;
}
.reviews-total {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
  margin-inline: auto;
}
.reviews-total strong {
  color: var(--color-text-main);
}

.review-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.review-card {
  background: var(--color-oyster);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: 0 2px 16px rgba(97, 43, 85, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 2px solid var(--color-gold);
}

.review-stars {
  color: var(--color-gold);
  font-size: var(--text-base);
  letter-spacing: 2px;
}

.review-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.55;
  max-width: none;
}

.review-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ============================================
   THE TRIPLE EDIT
   ============================================ */
.triple-edit {
  background: var(--color-oyster);
}

.triple-edit-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.triple-edit-header h2 {
  margin-top: var(--space-3);
}

.triple-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
  box-shadow: 0 2px 16px rgba(97, 43, 85, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.service-card-img {
  overflow: hidden;
  height: 280px;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.service-card:hover .service-card-img img {
  transform: scale(1.04);
}

.service-card-body {
  padding: var(--space-6) var(--space-6) var(--space-8);
}
.service-card-body h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
  color: #612B55;
}
.service-card-body p {
  font-size: var(--text-base);
  color: #3D2842;
  max-width: none;
  margin-bottom: var(--space-4);
}

.service-card-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .triple-edit-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================
   FEATURED SERVICES
   ============================================ */
.featured-services {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
  border-top: 1px solid var(--color-gold);
}
.featured-services-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.featured-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.featured-pillar {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-warm);
  border-top: 2px solid var(--color-gold);
}
.featured-pillar-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-main);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gold);
}
.featured-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.featured-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(97, 43, 85, 0.06);
}
.featured-item-name {
  flex: 1;
}
.featured-item-price {
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
}
.featured-link {
  display: inline-block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-sage-deep);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
}
.featured-link:hover {
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .featured-services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================
   BRAND STATEMENT
   ============================================ */
.brand-statement {
  background: var(--color-text-main);
}

.brand-statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
}

.brand-quote {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-style: italic;
  font-weight: 300;
  color: var(--color-off-white);
  line-height: 1.4;
  max-width: 800px;
}
.brand-statement .divider-gold {
  background: var(--color-gold);
  opacity: 0.5;
}

/* ============================================
   OLIVIA CTA
   ============================================ */
.olivia-cta {
  background: var(--color-oyster-white);
}

.olivia-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.olivia-text .eyebrow {
  color: #3D2842;
}
.olivia-text h2 {
  color: #3D2842;
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.olivia-text p {
  color: #3D2842;
}

.olivia-trigger {
  background: #612B55;
  color: #D2A24C;
  border-color: #612B55;
  flex-shrink: 0;
}
.olivia-trigger:hover:not([disabled]) {
  background: #4A1D48;
  border-color: #4A1D48;
}

@media (max-width: 768px) {
  .olivia-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .olivia-text p {
    max-width: none;
  }
  .olivia-trigger {
    width: 100%;
  }
}

/* ============================================
   BOOK NOW CLOSE
   ============================================ */
.book-close {
  background: var(--color-text-main);
}

.book-close-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.book-close p {
  color: rgba(240, 217, 192, 0.7);
  font-size: var(--text-lg);
  max-width: 48ch;
}

.book-close .btn-ghost {
  border-color: var(--color-gold);
  color: var(--color-off-white);
  padding: var(--space-4) var(--space-12);
  border-width: 2px;
}
.book-close .btn-ghost:hover {
  background: var(--color-oyster-white);
  border-color: var(--color-oyster-white);
  color: var(--color-text-main);
}

.book-close .section-eyebrow {
  color: var(--color-gold);
}

.book-close h2 {
  color: var(--color-off-white);
}

/* Disabled button state */
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Story section inline style overrides */
.story-content .divider-gold {
  margin: 1.5rem 0;
  margin-inline: 0;
}

.story-content .story-p-spaced {
  margin-top: var(--space-4);
}

.story-content .btn-spaced {
  margin-top: var(--space-8);
}

/* ============================================
   INNER PAGE HERO (for gift-cards + legal)
   ============================================ */
.page-hero {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-16);
}

.page-hero-inner h1 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.page-hero-inner p {
  color: var(--color-text-body);
  font-size: var(--text-lg);
  max-width: 52ch;
  margin-top: var(--space-6);
}

/* ============================================
   GIFT CARDS
   ============================================ */
.gift-card-body {
  background: var(--color-oyster);
}

.gift-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.gift-card-info h2 {
  margin-bottom: var(--space-6);
}

.gift-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-left: var(--space-6);
  color: var(--color-text-body);
  line-height: 1.7;
}
.gift-steps li {
  font-size: var(--text-base);
}

.gift-card-placeholder {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 2px solid var(--color-gold);
}

.gift-card-info {
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border-top: 2px solid var(--color-gold);
}

.gift-card-placeholder p {
  color: var(--color-text-body);
  max-width: none;
}

.gift-card-btn {
  align-self: flex-start;
  padding: var(--space-4) var(--space-10);
}

.gift-card-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .gift-card-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section {
  background: var(--color-oyster);
}
.faq-category {
  margin-bottom: var(--space-12);
}
.faq-category-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-text-main);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gold);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-gold);
  overflow: hidden;
}
.faq-question {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-main);
  padding: var(--space-4) var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background var(--transition-base);
}
.faq-question:hover {
  background: rgba(210, 162, 76, 0.06);
}
.faq-question::after {
  content: '+';
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-gold);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}
.faq-item[open] .faq-question::after {
  content: '\2212';
  transform: rotate(0deg);
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
}
.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.7;
  max-width: none;
}
.faq-answer a {
  color: var(--color-sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-24);
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  margin-bottom: var(--space-3);
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-body);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content a {
  color: var(--color-sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================== SERVICES PAGE ===================== */
.services-nav {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: var(--color-off-white);
  border-bottom: 1px solid rgba(210, 162, 76, 0.2);
  box-shadow: var(--shadow-warm);
}

.services-nav-list {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
}

.services-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.services-nav-link:hover,
.services-nav-link.active {
  color: var(--color-text-main);
  border-bottom-color: var(--color-gold);
}

.services-section--alt {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
}

.services-section-header {
  max-width: 600px;
  margin-bottom: var(--space-14);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
}

.services-intro {
  font-size: var(--text-lg);
  color: var(--color-text-body);
  margin-top: var(--space-6);
}

.services-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-8);
}

.services-category-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-gold);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.services-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(97, 43, 85, 0.06);
}

.services-item-name {
  flex: 1;
}

.services-item-price {
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
}

/* Tiered pricing (Stylist / Senior Stylist columns) */
.services-tier-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(97, 43, 85, 0.12);
}
.services-tier-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 5.5rem;
  text-align: right;
}
.services-item--tiered {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
}
.services-item--tiered .services-item-price {
  width: 5.5rem;
  text-align: right;
}

@media (max-width: 480px) {
  .services-tier-label {
    width: 4.5rem;
    font-size: var(--text-xs);
  }
  .services-item--tiered .services-item-price {
    width: 4.5rem;
  }
}

.services-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-8);
}

.services-cta {
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .services-nav-list {
    gap: var(--space-6);
  }
  .services-table {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ===================== BOOK PAGE ===================== */
.booking-guide {
  background: var(--color-oyster);
}

.booking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.booking-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border-top: 2px solid var(--color-gold);
}

.booking-step-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
}

.booking-step-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-main);
  margin-bottom: var(--space-3);
}

.booking-step-content p {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.7;
}

.booking-widget-section {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
  padding-bottom: var(--space-24);
  border-top: 1px solid var(--color-gold);
}

.booking-widget-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  min-height: 600px;
  background: var(--color-off-white);
}

.booking-widget-placeholder {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  background: var(--color-off-white);
}

.booking-widget-placeholder-text {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .booking-steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ===================== ABOUT PAGE ===================== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-oyster) 0%, #E8E0D5 60%, #D4C9BB 100%);
}

.about-team {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
}

.about-team-header {
  max-width: 500px;
  margin-bottom: var(--space-12);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.team-card {
  background: var(--color-oyster);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-top: 2px solid var(--color-gold);
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #E0D8CE 0%, #C8BFB3 100%);
}

.team-card-body {
  padding: var(--space-6);
}

.team-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-main);
  margin-bottom: var(--space-1);
}

.team-role {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 1.7;
}

.about-values {
  background: var(--color-text-main);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
}

.value-card {
  padding: var(--space-8);
  border-top: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  background: rgba(240, 217, 192, 0.05);
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-off-white);
  margin: var(--space-4) 0 var(--space-3);
}

.value-card p {
  font-size: var(--text-base);
  color: rgba(240, 217, 192, 0.75);
  line-height: 1.7;
}

.about-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-address {
  font-style: normal;
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.about-hours {
  margin-bottom: var(--space-8);
}

.about-hours h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.hours-list {
  list-style: none;
  margin: 0 0 var(--space-4) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-body);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(97, 43, 85, 0.07);
}

.about-map-iframe {
  border-radius: var(--radius-lg);
  width: 100%;
  min-height: 400px;
  background: var(--color-oyster);
  border: 1px solid rgba(210, 162, 76, 0.3);
}

.about-location {
  background: linear-gradient(to bottom, var(--color-surface-from), var(--color-surface-to));
}

@media (max-width: 900px) {
  .about-story-grid,
  .about-location-grid {
    grid-template-columns: 1fr;
  }
  .team-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ===================== GALLERY PAGE ===================== */
.gallery-filter {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.gallery-filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--color-sage-deep);
  border-color: var(--color-sage-deep);
  color: var(--color-off-white);
}

.gallery-grid {
  columns: 3;
  column-gap: var(--space-4);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

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

.gallery-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--color-oyster) 0%, #DDD5C8 100%);
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  transition: transform var(--transition-slow);
  border: 1px solid rgba(210, 162, 76, 0.2);
}

.gallery-placeholder--tall {
  aspect-ratio: 3/4;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.02);
}

.gallery-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-main);
  background: rgba(245, 240, 235, 0.85);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity var(--transition-base);
}

@media (max-width: 900px) {
  .gallery-grid { columns: 2; }
}

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

/* ===================== CONTACT PAGE ===================== */
.contact-section {
  background: var(--color-oyster);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-16);
}

.contact-form-wrap,
.contact-info {
  background: var(--color-oyster);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border-top: 2px solid var(--color-gold);
}

.contact-form-wrap h2,
.contact-info h2 {
  margin-bottom: var(--space-4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-main);
}

.form-label-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-main);
  background: var(--color-off-white);
  border: 1px solid rgba(97, 43, 85, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(90, 40, 88, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9E7B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

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

.form-submit {
  align-self: flex-start;
}

.form-message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-message--success {
  background: rgba(90, 40, 88, 0.15);
  color: var(--color-sage-deep);
  border: 1px solid rgba(90, 40, 88, 0.3);
}

.form-message--error {
  background: rgba(180, 80, 60, 0.08);
  color: #8B3A2A;
  border: 1px solid rgba(180, 80, 60, 0.2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.contact-link-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-link-value {
  font-size: var(--text-base);
  color: var(--color-sage-deep);
  transition: color var(--transition-base);
}

.contact-link:hover .contact-link-value {
  color: var(--color-text-main);
}

.contact-socials {
  margin-top: var(--space-6);
}

.contact-map-wrap {
  margin-top: var(--space-4);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}


/* ============================================
   OLIVIA CHAT WIDGET
   ============================================ */

/* Toggle button */
.olivia-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-deep, #5A2858);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(92, 122, 95, 0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: olivia-pulse 3s ease-in-out infinite;
}

.olivia-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(92, 122, 95, 0.5);
  background: var(--sage, #5A2858);
}

@keyframes olivia-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(92, 122, 95, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(210, 162, 76, 0.4); }
}

/* Toggle avatar (replaces chat SVG icon) */
.olivia-toggle-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.olivia--open .olivia-toggle-avatar {
  opacity: 0;
  transform: rotate(90deg);
}

.olivia-icon {
  width: 26px;
  height: 26px;
  color: var(--color-off-white);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.olivia-icon--close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.olivia--open .olivia-icon--close {
  opacity: 1;
  transform: rotate(0);
}

/* Badge */
.olivia-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #C0392B;
  color: var(--color-off-white);
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Chat window */
.olivia-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-height: 540px;
  background: var(--oyster, #F0D9C0);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.olivia--open .olivia-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.olivia-header {
  background: #5A2858;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}

.olivia-header-info {
  flex: 1;
}

/* Header avatar */
.olivia-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid rgba(240, 217, 192, 0.4);
  flex-shrink: 0;
}

/* Message avatar */
.olivia-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 8px;
  align-self: flex-end;
}

.olivia-header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-off-white);
  letter-spacing: 0.02em;
}

.olivia-header-status {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--gold, #D2A24C);
  margin-top: 1px;
  letter-spacing: 0.03em;
}

.olivia-header-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.olivia-header-close svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.olivia-header-close:hover svg {
  color: var(--color-off-white);
}

/* Messages area */
.olivia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  max-height: 360px;
  background: linear-gradient(to bottom, #F0D9C0, #D4B5BD);
}

.olivia-messages::-webkit-scrollbar {
  width: 4px;
}

.olivia-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

/* Message bubbles */
.olivia-msg {
  display: flex;
  animation: olivia-msg-in 0.25s ease;
}

@keyframes olivia-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.olivia-msg--bot {
  justify-content: flex-start;
}

.olivia-msg--user {
  justify-content: flex-end;
}

.olivia-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.olivia-msg-bubble--bot {
  background: var(--off-white, #F0D9C0);
  color: var(--warm-slate, #3D2842);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.olivia-msg-bubble--user {
  background: var(--sage, #5A2858);
  color: var(--color-off-white);
  border-bottom-right-radius: 4px;
}

/* CTA links inside bot messages */
.olivia-cta-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: var(--sage-deep, #5A2858);
  color: var(--color-off-white) !important;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.olivia-cta-link:hover {
  background: var(--sage, #5A2858);
}

.olivia-page-link {
  color: var(--sage-deep, #5A2858);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.olivia-page-link:hover {
  color: var(--sage, #5A2858);
}

/* Quick-action buttons */
.olivia-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.olivia-quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: #F0D9C0;
  border: 1px solid rgba(210, 162, 76, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #612B55;
  text-align: left;
  transition: all 0.2s ease;
}
.olivia-quick-btn:hover {
  background: rgba(210, 162, 76, 0.1);
  border-color: #D2A24C;
  transform: translateY(-1px);
}
.olivia-quick-emoji {
  font-size: 18px;
  flex-shrink: 0;
}
.olivia-quick-label {
  flex: 1;
}

/* Typing indicator */
.olivia-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px !important;
}

.olivia-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage, #5A2858);
  opacity: 0.4;
  animation: olivia-dot 1.4s ease-in-out infinite;
}

.olivia-typing span:nth-child(2) { animation-delay: 0.2s; }
.olivia-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes olivia-dot {
  0%, 60%, 100% { opacity: 0.4; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.2); }
}

/* Input area */
.olivia-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
  flex-shrink: 0;
}

.olivia-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.olivia-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  background: var(--oyster, #F0D9C0);
  color: var(--deep-forest, #612B55);
  outline: none;
  transition: border-color 0.15s ease;
}

.olivia-input:focus {
  border-color: var(--sage, #5A2858);
}

.olivia-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.olivia-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--sage-deep, #5A2858);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.olivia-send:hover {
  background: var(--sage, #5A2858);
}

.olivia-send:active {
  transform: scale(0.92);
}

.olivia-send svg {
  width: 16px;
  height: 16px;
  color: var(--color-off-white);
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .olivia-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .olivia-messages {
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
  }

  .olivia-toggle {
    bottom: 16px;
    right: 16px;
  }

  .olivia--open .olivia-toggle {
    display: none;
  }
}
