/* ==========================================================================
   Docurement — individual service page styles
   Shared by every generated page in /services/. Edit here once.
   ========================================================================== */

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

:root {
  --logo-green: #2D3A2B; --logo-brown: #5C4A3A; --sand-light: #F8F5F0; --sand-medium: #EDE4D3;
  --sand-dark: #D4C4A8; --desert-orange: #C17F4E; --desert-red: #A65D3C; --warm-brown: #6B5B4F;
  --deep-brown: #3E352F; --cream: #FFFCF7; --gold: #B8956A;
  --nav-h: 86px;
  --anchor-h: 54px;

    /* ---- shared card system -------------------------------------------
       One set of values for every card on the site, so a card looks the
       same whichever page it is on. Card grids step at 640 / 900 / 1240. */
    --card-pad: 26px;
    --card-radius: 10px;
    --card-gap: 24px;
    --gutter: 24px;
  }

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--deep-brown); background: var(--cream); overflow-x: hidden; line-height: 1.65; }
a { color: inherit; }

/* ------------------------------- Navigation ------------------------------- */
nav { position: fixed; top: 0; width: 100%; padding: 1.2rem 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: var(--logo-green); border-bottom: 1px solid rgba(212, 196, 168, 0.3); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text { font-size: 1.8rem; font-weight: 300; color: var(--sand-light); letter-spacing: 1px; }
.logo-text::after { content: ''; display: block; width: 100%; height: 2px; background: linear-gradient(90deg, var(--desert-orange), var(--gold)); margin-top: 8px; border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--sand-light); border: 1px solid rgba(248,245,240,0.4); transition: all 0.3s ease; flex-shrink: 0; }
.lang-switch svg { width: 18px; height: 18px; display: block; }
.lang-switch:hover { border-color: var(--desert-orange); color: var(--gold); background: rgba(248,245,240,0.12); }
/* Six nav items plus the wordmark overrun the bar between the desktop
   layout and the 768px hamburger breakpoint; tightening the gap holds it. */
@media (min-width: 769px) and (max-width: 1000px) { nav .nav-links { gap: 1.2rem; } }
@media (max-width: 768px) { .nav-right { gap: 1rem; } }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--sand-light); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.5px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--desert-orange); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.menu-toggle span { width: 100%; height: 2px; background: var(--sand-light); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --------------------------------- Hero ---------------------------------- */
.service-hero { padding: calc(var(--nav-h) + 2.5rem) 5% 3rem; background-color: var(--logo-green); background-image: linear-gradient(180deg, rgba(45, 58, 43, 0.94) 0%, rgba(45, 58, 43, 0.86) 100%), url('/services2.webp'); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; }
.service-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 1.6rem; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--sand-light); }
.breadcrumb .sep { opacity: 0.5; }

.hero-category { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sand-light); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); padding: 0.35rem 0.85rem; border-radius: 4px; margin-bottom: 1.1rem; text-decoration: none; }
a.hero-category:hover { background: rgba(255,255,255,0.2); }
.service-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: #fff; font-weight: 500; line-height: 1.2; margin-bottom: 0.7rem; max-width: 800px; }
.hero-tagline { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--sand-dark); font-weight: 400; margin-bottom: 1.3rem; }
.service-hero p.intro { color: rgba(255,255,255,0.85); font-size: 1.02rem; line-height: 1.8; max-width: 660px; margin-bottom: 2.2rem; font-weight: 300; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn { padding: 0.9rem 2rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; letter-spacing: 0.4px; border: 2px solid transparent; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--desert-orange); color: #fff; border-color: var(--desert-orange); }
.btn-primary:hover { background: transparent; color: var(--sand-light); }
.btn-ghost { background: transparent; color: var(--sand-light); border-color: rgba(248,245,240,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ------------------------------ Anchor nav ------------------------------- */
.anchor-nav { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(255, 252, 247, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-dark); }
.anchor-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.8rem 5%; display: flex; gap: 0.3rem; overflow-x: auto; }
.anchor-nav a { font-size: 0.85rem; font-weight: 500; color: var(--warm-brown); text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.anchor-nav a:hover { background: var(--sand-light); color: var(--logo-green); }
.anchor-nav a.active { background: var(--logo-green); color: #fff; }

/* ------------------------------- Body layout ----------------------------- */
.service-body { max-width: 1200px; margin: 0 auto; padding: 3.5rem 5% 4rem; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.service-main > section { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(212, 196, 168, 0.45); scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 1rem); }
.service-main > section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.eyebrow { font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--desert-orange); font-weight: 700; margin-bottom: 0.9rem; }
.service-main h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--logo-green); font-weight: 600; margin-bottom: 1.3rem; }
.prose p { color: var(--warm-brown); font-size: 1rem; line-height: 1.85; font-weight: 300; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* Included / benefits list */
.detail-list { display: flex; flex-direction: column; margin-top: 1.8rem; }
.detail-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1.1rem; padding: 1.3rem 0; border-top: 1px solid rgba(212, 196, 168, 0.5); }
.detail-item:last-child { border-bottom: 1px solid rgba(212, 196, 168, 0.5); }
.detail-marker { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--desert-orange); line-height: 1.5; }
.detail-item h3 { font-size: 0.98rem; font-weight: 600; color: var(--logo-green); margin-bottom: 0.35rem; }
.detail-item p { font-size: 0.92rem; color: var(--warm-brown); line-height: 1.7; font-weight: 300; }

/* Benefit cards */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.benefit-card { background: white; border: 1px solid rgba(212, 196, 168, 0.45); border-radius: 8px; padding: 1.5rem; }
.benefit-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.12rem; color: var(--logo-green); font-weight: 600; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.89rem; color: var(--warm-brown); line-height: 1.7; font-weight: 300; }

/* Steps */
.steps { margin-top: 1.8rem; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid rgba(212, 196, 168, 0.5); }
.step:last-child { border-bottom: 1px solid rgba(212, 196, 168, 0.5); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--desert-orange); font-weight: 600; line-height: 1.2; }
.step h3 { font-size: 0.98rem; font-weight: 600; color: var(--logo-green); margin-bottom: 0.35rem; }
.step p { font-size: 0.92rem; color: var(--warm-brown); line-height: 1.7; font-weight: 300; }

/* FAQ accordion */
.faq-list { margin-top: 1.8rem; border-top: 1px solid rgba(212, 196, 168, 0.5); }
.faq-item { border-bottom: 1px solid rgba(212, 196, 168, 0.5); }
.faq-q { width: 100%; text-align: left; background: none; border: none; font-family: 'Inter', sans-serif; font-size: 0.96rem; font-weight: 600; color: var(--logo-green); padding: 1.15rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; }
.faq-icon { font-size: 1.25rem; color: var(--desert-orange); transition: transform 0.2s ease; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-item.open .faq-a { max-height: 420px; }
.faq-a p { font-size: 0.93rem; color: var(--warm-brown); line-height: 1.8; font-weight: 300; padding-bottom: 1.25rem; }

/* -------------------------------- Sidebar -------------------------------- */
.service-aside { position: sticky; top: calc(var(--nav-h) + var(--anchor-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card { background: white; border: 1px solid rgba(212, 196, 168, 0.55); border-radius: 8px; padding: 1.6rem; }
.aside-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--logo-green); font-weight: 600; margin-bottom: 1.1rem; }
.fact { padding: 0.85rem 0; border-top: 1px solid rgba(212, 196, 168, 0.45); }
.fact:first-of-type { border-top: none; padding-top: 0; }
.fact dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.3px; color: var(--desert-orange); font-weight: 700; margin-bottom: 0.3rem; }
.fact dd { font-size: 0.87rem; color: var(--warm-brown); line-height: 1.6; font-weight: 300; }
.aside-card.contact { background: var(--logo-green); border-color: var(--logo-green); }
.aside-card.contact h2 { color: #fff; }
.aside-card.contact p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.7; font-weight: 300; margin-bottom: 1.2rem; }
.aside-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.aside-contact-list a { color: var(--sand-light); font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid rgba(248,245,240,0.25); padding-bottom: 0.15rem; }
.aside-contact-list a:hover { border-bottom-color: var(--desert-orange); }
.aside-card.contact .btn { width: 100%; justify-content: center; }

/* ---------------------------- Related services --------------------------- */
.related { background: white; border-top: 1px solid var(--sand-dark); border-bottom: 1px solid var(--sand-dark); padding: 3.5rem 5%; }
.related-inner { max-width: 1200px; margin: 0 auto; }
.related h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--logo-green); font-weight: 600; margin-bottom: 1.8rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.related-card { display: block; background: var(--cream); border: 1px solid rgba(212, 196, 168, 0.5); border-radius: 8px; padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.3s ease; position: relative; overflow: hidden; }
.related-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--logo-green), var(--desert-orange)); transform: scaleY(0); transform-origin: top; transition: transform 0.3s ease; }
.related-card:hover::before { transform: scaleY(1); }
.related-card:hover { box-shadow: 0 14px 34px rgba(61, 79, 58, 0.1); transform: translateY(-3px); }
.related-card .category-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--desert-orange); background: var(--sand-light); padding: 0.28rem 0.6rem; border-radius: 4px; margin-bottom: 0.7rem; }
.related-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--logo-green); font-weight: 600; margin-bottom: 0.4rem; }
.related-card p { font-size: 0.87rem; color: var(--warm-brown); line-height: 1.65; font-weight: 300; }
.related-card .view { display: inline-block; margin-top: 0.9rem; font-size: 0.83rem; font-weight: 600; color: var(--desert-orange); }

/* ------------------------------- CTA banner ------------------------------ */
.cta-banner { background: var(--logo-green); color: #fff; padding: 4rem 5%; text-align: center; }
.cta-banner .eyebrow { color: var(--sand-dark); }
.cta-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; font-weight: 300; line-height: 1.75; }
.cta-banner-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cta-banner-note { font-size: 0.79rem; color: rgba(255,255,255,0.55); }

/* --------------------------------- Footer -------------------------------- */
footer { background: var(--logo-green); color: var(--sand-light); padding: 4rem 5% 2rem; border-top: 1px solid rgba(248,245,240,0.12); }
.footer-content { max-width: 1200px; margin: 0 auto 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand p { color: rgba(248, 245, 240, 0.7); font-size: 0.9rem; line-height: 1.7; font-weight: 300; }
.footer-column h4 { color: var(--sand-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; font-weight: 600; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column ul li a { color: rgba(248, 245, 240, 0.7); text-decoration: none; font-size: 0.9rem; }
.footer-column ul li a:hover { color: var(--sand-light); }
.footer-bottom { border-top: 1px solid rgba(248, 245, 240, 0.15); padding-top: 2rem; text-align: center; }
.footer-bottom p { color: rgba(248, 245, 240, 0.5); font-size: 0.85rem; }

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 980px) {
  .service-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-aside { position: static; top: auto; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background: var(--logo-green); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; transition: right 0.4s ease; }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .service-hero { padding: calc(var(--nav-h) + 1.5rem) 5% 2.2rem; }
  .service-body { padding: 2.5rem 5% 3rem; }
  .service-main > section { padding-bottom: 2.2rem; margin-bottom: 2.2rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* Phones get tighter cards and a smaller page gutter. Declared once here
   rather than as per-component overrides on each page. */
@media (max-width: 639px) {
  :root { --card-pad: 18px; --card-gap: 16px; --gutter: 20px; }
}

/* ---- touch devices ---------------------------------------------------
   The hover-lift can never fire on a touch screen, and on some Android
   browsers the first tap resolves the hover state instead of following the
   link. Swap it for a press state, and give in-card links a 44px target. */
@media (hover: none) {
  .about-card:hover, .service-card:hover, .location-card:hover,
  .directory-card:hover, .post-card:hover, .related-card:hover,
  .pager-link:hover, .featured:hover { transform: none; box-shadow: none; }

  .about-card:active, .service-card:active, .location-card:active,
  .directory-card:active, .post-card:active, .related-card:active,
  .pager-link:active { background: var(--sand-light); }

  .learn-more, .view-service, .read-more, .back-link { min-height: 44px; align-items: center; }
  .share-btn { width: 44px; height: 44px; }
  .filter-pill { min-height: 44px; }
}

@media (max-width: 639px) {
  .related-card { padding: var(--card-pad); border-radius: var(--card-radius); }
}

@media (max-width: 639px) {
  .service-hero { background-image: linear-gradient(180deg, rgba(45, 58, 43, 0.94) 0%, rgba(45, 58, 43, 0.86) 100%), url('/services2-mobile.webp'); }
}
