/*
 * 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: flex-end;
  gap: 28px;
  max-width: var(--container);
}

.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); }

.topbar__toggle { display: none; background: none; border: none; cursor: pointer; width: 36px; height: 36px; position: relative; padding: 0; }
.topbar__toggle-icon,
.topbar__toggle-icon::before,
.topbar__toggle-icon::after {
  display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px;
  position: absolute; left: 7px; transition: all 0.25s;
}
.topbar__toggle-icon { top: 17px; }
.topbar__toggle-icon::before { content: ''; top: -6px; }
.topbar__toggle-icon::after { content: ''; top: 6px; }
.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 */
.nav__backdrop { position: fixed; inset: 0; background: rgba(58,51,48,0.35); z-index: 300; opacity: 0; visibility: hidden; transition: all 0.25s; }
.nav__backdrop--visible { opacity: 1; visibility: visible; }


/* ==========================================================================
   7. HERO -- image-left + heading-right banner, centered text below
       (Completely different layout from reference's 2-column grid hero)
   ========================================================================== */

.hero {
  padding: 0 0 48px;
}

.hero__banner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}

.hero__image-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero__photo {
  width: 260px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero__heading-block {
  padding-top: 24px;
  text-align: center;
  flex: 1;
}

.hero__title {
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0;
}
.hero__subtitle em {
  font-size: 1.65rem;
  font-weight: 500;
}

/* Centered block below the banner */
.hero__center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__body {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 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;
}


/* ==========================================================================
   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; }

  .topbar__toggle { display: block; }

  .topbar__links {
    position: fixed; top: 0; right: 0; width: 240px; height: 100vh;
    background: #FAF7F2; flex-direction: column; padding: 60px 24px 24px;
    gap: 14px; transform: translateX(100%); transition: transform 0.25s;
    z-index: 310; border-left: 1px solid var(--color-border-light);
  }
  .topbar__links--open { transform: translateX(0); }

  .topbar__phone { display: none; }

  .hero__banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero__photo { width: 200px; }
  .hero__heading-block { padding-top: 0; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1.2rem; }
  .hero__subtitle em { font-size: 1.35rem; }

  .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; }
  .hero__title { font-size: 1.7rem; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
}


/* ==========================================================================
   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; }
}
