/*
 * Gentle Hands Living Solutions LLC
 * Parchment/watercolor brochure-style design
 * ------------------------------------------
 * This design is intentionally different from the clausAFH reference:
 *   - No fixed header, no wave separators, no alternating section bg colors
 *   - Full-page parchment texture background (CSS gradient simulation)
 *   - Bordered cards on transparent bg, not shadowed white cards
 *   - Centered, editorial layout (not left-right hero grid)
 *   - Serif body text, warm earth-tone palette
 *   - Stacked centered footer (not 3-column grid)
 */


/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  --color-primary: #8B7355;
  --color-primary-hover: #6B5740;
  --color-secondary: #9E7B7B;
  --color-text: #3A3330;
  --color-text-muted: #5C534D;
  --color-text-light: #8A8078;
  --color-text-inverse: #FAF7F2;
  --color-bg: #E4DAD0;
  --color-card: rgba(245, 240, 233, 0.75);
  --color-border: #C8BBAB;
  --color-border-light: #D8CEBD;
  --color-footer-bg: #3D3228;
  --color-success: #6B8F6B;
  --color-error: #B85C4A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-ui: 'Lato', Arial, sans-serif;
  --radius: 3px;
  --container: 780px;
  --gutter: 24px;
}


/* ==========================================================================
   2. @FONT-FACE
   ========================================================================== */

@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-500i.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../assets/fonts/cormorant-garamond-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../assets/fonts/eb-garamond-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url('../assets/fonts/eb-garamond-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../assets/fonts/lato-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../assets/fonts/lato-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('../assets/fonts/lato-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }


/* ==========================================================================
   3. RESET & BASE -- PARCHMENT BACKGROUND
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
  /* Parchment watercolor background -- the defining visual of this design */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(180, 195, 215, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 15%, rgba(175, 190, 210, 0.20) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(190, 200, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(185, 195, 208, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 75%, rgba(178, 188, 205, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(235, 225, 215, 0.3) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; padding: 0; margin: 0; }


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: 2.6rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

em { font-family: var(--font-display); font-style: italic; }


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 640px;
}

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: #fff; color: var(--color-text);
  padding: 6px 14px; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 13px;
  z-index: 999;
}
.skip-link:focus { top: 8px; outline: 3px solid var(--color-primary); outline-offset: 2px; }


/* ==========================================================================
   6. TOP BAR -- inline nav, NOT fixed (differs from reference)
   ========================================================================== */

.topbar {
  padding: 14px 0;
  /* No background, no border -- floats on parchment */
}

.topbar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--container);
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.topbar__logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.topbar__links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topbar__link {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.topbar__link:hover { color: var(--color-primary); }

.topbar__phone {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.topbar__phone:hover { color: var(--color-primary); }

/* ---
   Hamburger toggle button
   44px tap target (WCAG 2.5.5), warm pill hover, thicker bars
--- */
.topbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  /* 44px minimum touch target */
  width: 44px;
  height: 44px;
  position: relative;
  padding: 0;
  border-radius: 22px;
  transition: background 0.18s ease;
  /* Prevent icon clipping during the circle-bg transition */
  flex-shrink: 0;
}

/* Warm pill/circle on interactive states */
.topbar__toggle:hover,
.topbar__toggle:focus-visible {
  background: rgba(139, 115, 85, 0.10);
  outline: none;
}
.topbar__toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.28);
}
.topbar__toggle:active {
  background: rgba(139, 115, 85, 0.18);
}

/* Bars — the span is a centered anchor; ::before/::after are the top and bottom bars */
.topbar__toggle-icon {
  display: block;
  position: absolute;
  /* True center of the 44px button */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar__toggle-icon::before,
.topbar__toggle-icon::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), top 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.topbar__toggle-icon::before { top: -7px; }
.topbar__toggle-icon::after  { top:  7px; }

/* X state */
.topbar__toggle[aria-expanded="true"] .topbar__toggle-icon { background: transparent; }
.topbar__toggle[aria-expanded="true"] .topbar__toggle-icon::before { top: 0; transform: rotate(45deg); }
.topbar__toggle[aria-expanded="true"] .topbar__toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* ---
   Mobile backdrop — warm dark film with subtle blur
--- */
.nav__backdrop {
  position: fixed;
  inset: 0;
  /* Warmer tint — matches the footer dark brown rather than a neutral gray */
  background: rgba(42, 33, 26, 0.55);
  /* Subtle backdrop blur softens the page content underneath */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__backdrop--visible {
  opacity: 1;
  visibility: visible;
}

/* ---
   Drawer header: brand name + in-drawer close button
--- */
.topbar__drawer-header {
  /* Hide on desktop — shown only inside the mobile drawer */
  display: none;
}

/* ---
   Drawer footer: phone link anchored at bottom of drawer
--- */
.topbar__drawer-footer {
  display: none;
}

.topbar__drawer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}
.topbar__drawer-phone:hover { color: var(--color-primary-hover); }


/* ==========================================================================
   7. HERO -- full-viewport background image, overlaid centered text
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/photos/hero_banner.webp');
  background-size: cover;
  background-position: center 75%;
  background-attachment: fixed;
  overflow: hidden;
}

/* Soft cream gradient fade at the bottom, blending into page background */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(219, 213, 207, 0.85) 80%, #dbd5cf 100%);
  pointer-events: none;
}

/* Container sits above the ::after gradient overlay */
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__banner {
  margin-bottom: 20px;
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(0, 0, 0, 0.82);
  margin-bottom: 16px;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.75),
    0 2px 8px rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero__tagline-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(0, 0, 0, 0.82);
  margin: 0;
  letter-spacing: 0.015em;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.75),
    0 2px 8px rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero__center {
  text-align: center;
  margin-top: 28px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. BUTTONS -- outlined style (not solid-fill like reference)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
  background: transparent;
  color: var(--color-text);
}

.btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(139,115,85,0.06);
}

.btn--outline {
  border-color: var(--color-border);
}

.btn--solid {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--solid:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.btn--full { width: 100%; }

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Hero pill buttons — declared after .btn so backgrounds aren't overridden */
.btn--hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid #4A9B8E;
  background: #4A9B8E;
  color: #fff;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn--hero-primary:hover {
  background: #3a8178;
  border-color: #3a8178;
}

.btn--hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid #c4ae90;
  background: #d9c6ac;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn--hero-outline:hover {
  background: #cdb898;
  border-color: #b8a07e;
  color: var(--color-primary-hover);
}


/* ==========================================================================
   9. PAGE SECTIONS -- no alternating backgrounds (differs from reference)
   ========================================================================== */

.page-section {
  padding: 48px 0;
}

.page-section__title {
  text-align: center;
  margin-bottom: 32px;
}

.page-section__title--italic {
  font-style: italic;
  font-weight: 500;
}


/* ==========================================================================
   10. DUO CARDS -- bordered cards on parchment (not shadowed white cards)
   ========================================================================== */

.duo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card__heading {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.card p {
  font-size: 0.94rem;
  line-height: 1.75;
}


/* ==========================================================================
   11. SPECIALIST CARD
   ========================================================================== */

.specialist__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 10px;
}

.specialist__photo {
  width: 140px;
  height: auto;
  float: right;
  margin: 0 0 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-light);
  object-fit: cover;
}

.specialist__contact {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  clear: both;
}

.specialist__contact li {
  margin-bottom: 5px;
}

.specialist__contact a {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.specialist__contact a:hover { color: var(--color-primary); }
.specialist__contact svg { color: var(--color-primary); flex-shrink: 0; }


/* ==========================================================================
   12. SERVICES -- horizontal row (not 3-column shadowed cards)
   ========================================================================== */

.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.svc:hover { border-color: var(--color-primary); }

.svc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139,115,85,0.08);
  color: var(--color-primary);
  margin: 0 auto 12px;
}

.svc__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.svc__text {
  font-size: 0.88rem;
  line-height: 1.7;
}


/* ==========================================================================
   13. FAQ -- bordered items on parchment
   ========================================================================== */

.faq__item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  margin-bottom: 6px;
  background: var(--color-card);
  overflow: hidden;
}

.faq__item[open] {
  border-left: 3px solid var(--color-primary);
}

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ''; }
.faq__q:hover { background: rgba(139,115,85,0.04); }

.faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-light);
  transition: transform 0.25s;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__a {
  padding: 0 16px 14px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.faq__a p { margin: 0; }


/* ==========================================================================
   14. CONTACT SECTION
   ========================================================================== */

.section--warm-bg {
  background: rgba(235, 225, 215, 0.3);
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.form__group { margin-bottom: 18px; }

.form__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form__input::placeholder { color: var(--color-text-light); }
.form__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(139,115,85,0.12); }
.form__input--invalid { border-color: var(--color-error); }

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A8078' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.form__error { display: block; font-family: var(--font-ui); font-size: 12px; color: var(--color-error); margin-top: 4px; }

.form__message {
  margin-top: 16px; padding: 14px; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 14px; text-align: center;
}
.form__message--success { background: rgba(107,143,107,0.12); color: var(--color-success); border: 1px solid rgba(107,143,107,0.3); }
.form__message--error { background: rgba(184,92,74,0.12); color: var(--color-error); border: 1px solid rgba(184,92,74,0.3); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,115,85,0.08);
  border-radius: 50%;
  color: var(--color-primary);
}

.contact-info__label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-info__value {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
}
.contact-info__value a {
  color: var(--color-primary);
  transition: color 0.15s;
}
.contact-info__value a:hover {
  color: var(--color-primary-hover);
}


/* ==========================================================================
   15. MODAL / POPUP
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 51, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #FAF7F2;
  border-radius: 8px;
  max-width: 420px;
  width: 100%;
  position: relative;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s;
}
.modal-overlay:not([hidden]) .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.15s;
}
.modal__close:hover {
  color: var(--color-text);
}
.modal__close:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 143, 107, 0.12);
  border-radius: 50%;
  color: var(--color-success);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.modal__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================================
   15. FOOTER -- centered stacked text (not 3-column grid like reference)
   ========================================================================== */

.site-footer {
  padding: 36px 0 24px;
  text-align: center;
  /* No dark background -- stays on parchment to match screenshot */
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}

.site-footer p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 4px;
}

.site-footer__copy {
  margin-top: 12px !important;
  font-size: 0.82rem !important;
  color: var(--color-text-light) !important;
}


/* ==========================================================================
   16. SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  /* Show toggle button */
  .topbar__toggle { display: flex; align-items: center; justify-content: center; }

  .topbar__logo-img { height: 34px; }

  /* ---
     Slide-in drawer
     - Wider (280px) for comfortable reading and touch targets
     - Warm parchment surface with a subtle inner shadow on the left edge
     - Cubic-bezier ease-out for a refined deceleration into view
  --- */
  .topbar__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    /* Layered warm background: slightly lighter than page parchment */
    background: #F5F0E9;
    background-image:
      linear-gradient(180deg, rgba(255,253,249,0.6) 0%, rgba(245,240,233,0) 30%);
    flex-direction: column;
    /* No fixed padding-top — the drawer header handles its own spacing */
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    /* Refined ease-out cubic-bezier — fast start, smooth deceleration */
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 310;
    /* Left border with a warm inset shadow for depth */
    border-left: 1px solid var(--color-border);
    box-shadow: -6px 0 24px rgba(42, 33, 26, 0.10);
    /* Allow internal scrolling if content overflows on very small screens */
    overflow-y: auto;
    /* Required for the flex column layout of header / links / footer */
    display: flex;
  }
  .topbar__links--open { transform: translateX(0); }

  /* ---
     Drawer header — branded area at the top of the panel
  --- */
  .topbar__drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--color-border-light);
    /* Takes its natural height — link items stack below */
    flex-shrink: 0;
  }

  .topbar__drawer-brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.35;
    color: var(--color-primary-hover);
    letter-spacing: 0.01em;
  }

  /* In-drawer close button */
  .topbar__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* 40px tap target */
    width: 40px;
    height: 40px;
    margin: -8px -6px 0 0;
    background: none;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: background 0.15s ease, color 0.15s ease;
  }
  .topbar__drawer-close:hover {
    background: rgba(139, 115, 85, 0.10);
    color: var(--color-primary-hover);
  }
  .topbar__drawer-close:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* ---
     Nav link list items — displayed as a stacked menu inside the drawer
     Each item has a bottom divider line; the last nav link has none
     (the footer item below it carries a top border instead)
  --- */
  .topbar__links > li {
    /* Ensure each li spans full drawer width */
    width: 100%;
  }
  /* Show dividers only between the four nav links (not the header or footer items) */
  .topbar__links > li:not(.topbar__drawer-header):not(.topbar__drawer-footer) {
    border-bottom: 1px solid var(--color-border-light);
  }
  /* Remove bottom border on the last nav link so the footer border below it is the separator */
  .topbar__links > li:not(.topbar__drawer-header):not(.topbar__drawer-footer):last-of-type {
    border-bottom: none;
  }

  /* Nav link items: large, serif, generously spaced */
  .topbar__link {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  }
  .topbar__link:hover,
  .topbar__link:focus-visible {
    color: var(--color-primary);
    background: rgba(139, 115, 85, 0.06);
    /* Subtle indent on hover for an editorial feel */
    padding-left: 30px;
    outline: none;
  }
  .topbar__link:focus-visible {
    box-shadow: inset 3px 0 0 var(--color-primary);
  }

  /* ---
     Drawer footer — phone link pinned to the bottom of the drawer
  --- */
  .topbar__drawer-footer {
    display: block;
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid var(--color-border-light);
    /* Warm tinted footer band within the drawer */
    background: rgba(139, 115, 85, 0.05);
    flex-shrink: 0;
  }

  /* Hide the topbar phone number (desktop only element) */
  .topbar__phone { display: none; }

  .hero {
    min-height: 70vh;
    background-attachment: scroll;
  }

  .hero__title { font-size: 2rem; }
  .hero__tagline-sub { font-size: 1rem; }

  .duo-cards { grid-template-columns: 1fr; }
  .services-row { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-info {
    order: -1;
  }

  .specialist__photo { float: none; margin: 0 auto 12px; display: block; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .topbar__logo-img { height: 30px; }
  .hero { min-height: 60vh; }
  .hero__title { font-size: 1.75rem; }
  .hero__buttons { flex-direction: column; align-items: center; }
  .hero__buttons .btn--hero-primary,
  .hero__buttons .btn--hero-outline { width: 100%; max-width: 280px; }
}


/* ==========================================================================
   18. PRINT & REDUCED MOTION
   ========================================================================== */

@media print {
  .topbar, .hero__buttons, .skip-link, .contact-form { display: none !important; }
  body { background: #fff !important; background-image: none !important; color: #000; font-size: 11pt; }
  .card, .svc { border: 1px solid #ccc; page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .faq__chevron { transition: none; }
  .btn { transition: none; }
  /* Snap the drawer open instantly — no slide animation */
  .topbar__links { transition: none; }
  .topbar__toggle-icon,
  .topbar__toggle-icon::before,
  .topbar__toggle-icon::after { transition: none; }
  .nav__backdrop { transition: none; }
}

/* =============================================
   FADE-IN OVERLAY
   ============================================= */
#fade-overlay {
  position: fixed;
  inset: 0;
  background-color: #dbd5cf;
  opacity: 1;
  pointer-events: none;
  z-index: 9999;
  animation: fadeOverlayOut 2.1s ease-out 0.1s forwards;
}

@keyframes fadeOverlayOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
