/* Gracious Home Care LLC - Global Styles */
:root{
  --brown:#875427;
  --orange:#D57332;
  --burgundy:#872023;
  --beige:#DDB590;
  --ink:#1f1a16;
  --muted:#5e554d;
  --bg:#fffaf5;
  --card:#ffffff;
  --ring: rgba(213,115,50,.35);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 18px;
  /* Updated via JS to match actual header height */
  --site-header-height: 80px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top: var(--site-header-height)}
body{
  margin:0;
  /* Fixed header offset */
  padding-top: var(--site-header-height);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: radial-gradient(1000px 600px at 15% 10%, rgba(221,181,144,.35), transparent 55%),
              radial-gradient(900px 500px at 85% 0%, rgba(213,115,50,.20), transparent 60%),
              var(--bg);
}

body.menu-open{overflow:hidden}

a{color:inherit}
img{max-width:100%;display:block}

.media{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(135,84,39,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  background: rgba(255,255,255,.55);
}
.media img{width:100%;height:auto;display:block;max-height:400px;object-fit:cover}
.media .caption{padding:10px 12px;color:var(--muted);font-size:13px;line-height:1.5}

.hero-media{border-radius: var(--radius);overflow:hidden;border:1px solid rgba(135,84,39,.12);box-shadow: var(--shadow)}
.hero-media img{width:100%;height:auto;max-height:400px;object-fit:cover}
@media (max-width: 920px){.media img,.hero-media img{max-height:280px}}


.container{max-width:1120px;margin:0 auto;padding:0 18px}

/* Header */
.site-header{
  /* Fixed header on all pages */
  position:fixed;
  top:0;left:0;right:0;
  z-index:1000;
  background: rgba(255,250,245,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135,84,39,.12);
}
.site-header .container{padding-left:0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;padding-left:0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:180px;height:56px;object-fit:contain;background:transparent;border:none;box-shadow:none;border-radius:0}
.brand .name{font-weight:800;letter-spacing:.2px;line-height:1.05}
.brand .tag{font-size:12px;color:var(--muted);margin-top:2px}

.nav{display:flex;align-items:center;gap:16px}
.nav a{
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.nav a:hover{background:rgba(221,181,144,.35)}

.header-cta{display:flex;align-items:center;gap:10px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(135,84,39,.18);
  background: rgba(255,255,255,.65);
}
.btn:hover{box-shadow:0 10px 24px rgba(0,0,0,.08)}
.btn.primary{
  background: linear-gradient(135deg, var(--orange), #ea8a47);
  border-color: rgba(213,115,50,.35);
  color:#1b0f07;
}
.btn.primary:hover{filter:saturate(1.05)}

.icon-pill{
  display:none;
  border:1px solid rgba(135,84,39,.18);
  background:rgba(255,255,255,.65);
  padding:10px 12px;
  border-radius:14px;
}

/* Mobile nav */
.mobile-panel{
  display:none;
  /* Fixed overlay panel on mobile; stays under header */
  position:fixed;
  inset:0;
  top:0;
  padding: calc(var(--site-header-height) + 8px) 18px 18px;
  background: rgba(255,250,245,.94);
  backdrop-filter: blur(10px);
  z-index:1100; /* above header (example behavior) */
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  opacity:0;
  transform: translateY(-8px);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.mobile-panel.show{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.mobile-panel a{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:14px; /* match primary nav sizing */
  line-height:1.35;
}
.mobile-panel a:hover{background:rgba(221,181,144,.35)}

.mobile-panel-top{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-bottom:12px;
  padding:0 4px;
}
.mobile-panel-top .icon-pill{
  display:inline-flex;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  z-index:10;
}
.mobile-panel details{margin:4px 0}
.mobile-panel details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  border-radius:12px;
}
.mobile-panel details summary:hover{background:rgba(221,181,144,.35)}
.mobile-panel details .submenu{padding:4px 0 8px 16px}
.mobile-panel details .submenu a{padding:10px 12px;font-weight:500}

/* Hero */
.hero{padding:58px 0 26px}
.hero-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:26px;align-items:center}
.kicker{display:inline-flex;gap:10px;align-items:center;color:var(--burgundy);font-weight:800;font-size:12px;letter-spacing:.9px;text-transform:uppercase}
.kicker .dot{width:9px;height:9px;border-radius:999px;background:var(--burgundy);box-shadow:0 0 0 6px rgba(135,32,35,.12)}

h1{font-size:44px;line-height:1.08;margin:10px 0 12px}
.lede{font-size:17px;line-height:1.65;color:var(--muted);margin:0 0 18px}

.hero-card{
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.55));
  border:1px solid rgba(135,84,39,.12);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:18px;
}
.hero-card h3{margin:0 0 8px;font-size:16px}
.hero-card ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.6}

.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.badge{display:inline-flex;gap:8px;align-items:center;padding:9px 10px;border-radius:999px;background:rgba(221,181,144,.35);border:1px solid rgba(135,84,39,.12);font-weight:700;font-size:13px}

/* Forms */
.field{margin:10px 0 12px}
.field label{display:block;font-weight:800;font-size:13px;color:var(--muted);margin-bottom:6px}
.input,
.select,
.textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(135,84,39,.18);
  background: rgba(255,255,255,.75);
}
.textarea{resize:vertical}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.form-note{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.6}

.faq details{border:1px solid rgba(135,84,39,.12);border-radius:14px;background:rgba(255,255,255,.72);padding:12px 14px}
.faq details + details{margin-top:10px}
.faq summary{cursor:pointer;font-weight:800}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';float:right;color:var(--burgundy);font-weight:900}
.faq details[open] summary::after{content:'–'}
.faq .answer{margin-top:8px;color:var(--muted);line-height:1.7}

.steps{counter-reset:step}
.step{position:relative;padding-left:0}
.step:before{
  display:none
}

.table{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:16px;border:1px solid rgba(135,84,39,.12)}
.table th,.table td{padding:12px 12px;text-align:left;vertical-align:top}
.table th{background:rgba(221,181,144,.35);font-size:13px;text-transform:uppercase;letter-spacing:.6px}
.table tr:nth-child(even) td{background:rgba(255,255,255,.75)}
.table tr:nth-child(odd) td{background:rgba(255,255,255,.55)}

/* Sections */
.section{padding:20px 0}
.section h2{font-size:28px;margin:0 0 10px}
.section p.section-lede{margin:0 0 18px;color:var(--muted);line-height:1.65}

.grid{display:grid;gap:14px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}

.card{
  background:var(--card);
  border:1px solid rgba(135,84,39,.12);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card h3{margin:0 0 6px;font-size:16px}
.card p{margin:0;color:var(--muted);line-height:1.6}
.card a.more{display:inline-block;margin-top:12px;font-weight:800;text-decoration:none;color:var(--burgundy)}
.card a.more:hover{text-decoration:underline}
.card .more{display:inline-block;margin-top:12px;font-weight:800;color:var(--burgundy)}
a:hover .card{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.12)}

.split{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start
}
/* Allow grid children to shrink (prevents long text pushing other column off-screen) */
.split > *{min-width:0}

/* Prevent long links (like emails) from breaking the layout */
.small a{overflow-wrap:anywhere}

.callout{
  border-radius: var(--radius);
  padding:18px;
  background: linear-gradient(135deg, rgba(221,181,144,.42), rgba(213,115,50,.14));
  border:1px solid rgba(135,84,39,.12);
}
.callout strong{color:var(--burgundy)}

/* Footer */
footer{
  padding:28px 0;
  border-top: 1px solid rgba(135,84,39,.12);
  background: rgba(255,250,245,.8);
}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:18px;
}
.footer-grid h4{margin:0 0 10px}
.footer-grid a{text-decoration:none;color:var(--muted);display:block;padding:6px 0;font-size:13px;line-height:1.6}
.footer-grid a:hover{color:var(--burgundy)}
.footer-grid .small a{display:inline;padding:0}
.small{color:var(--muted);font-size:13px;line-height:1.6}

/* Footer accordions (mobile) */
.footer-accordion{border:0}
.footer-accordion > summary{
  list-style:none;
  font-weight:800;
  margin:0 0 10px;
}
.footer-accordion > summary::-webkit-details-marker{display:none}
.footer-accordion > .footer-links{margin-top:0}

/* Breadcrumbs */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
}
.breadcrumbs a:hover{
  color:var(--burgundy);
  text-decoration:underline;
}
.breadcrumbs .separator{
  color:var(--muted);
  margin:0 4px;
}
.breadcrumbs .current{
  color:var(--ink);
  font-weight:600;
}

/* Related Content Sections */
.related-section{
  margin-top:48px;
  padding-top:32px;
  border-top:1px solid rgba(135,84,39,.12);
}
.related-section h3{
  font-size:20px;
  margin-bottom:16px;
}
.related-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.related-links a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:8px;
  background:rgba(221,181,144,.2);
  border:1px solid rgba(135,84,39,.12);
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
  font-size:14px;
  transition:all 0.2s;
}
.related-links a:hover{
  background:rgba(221,181,144,.35);
  border-color:var(--burgundy);
  color:var(--burgundy);
}

/* Utilities */
.hr{height:1px;background:rgba(135,84,39,.12);margin:16px 0}

/* Responsive */
@media (max-width: 920px){
  h1{font-size:38px;line-height:1.15;word-wrap:break-word;overflow-wrap:break-word}
  .hero{padding:32px 0 20px}
  .hero-grid{grid-template-columns:1fr;gap:20px}
  .lede{font-size:16px;line-height:1.6;word-wrap:break-word;overflow-wrap:break-word}
  .grid.cols-3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}

  .footer-accordion{
    border:1px solid rgba(135,84,39,.12);
    border-radius:14px;
    background: rgba(255,255,255,.55);
    padding: 10px 12px;
  }
  .footer-accordion + .footer-accordion{margin-top:10px}
  .footer-accordion > summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0;
    cursor:pointer;
    padding: 4px 2px;
  }
  .footer-accordion > summary::after{
    content:'+';
    color:var(--burgundy);
    font-weight:900;
  }
  .footer-accordion[open] > summary::after{content:'–'}
  .footer-accordion > .footer-links{margin-top:8px}
  
  /* Ensure all text is visible and readable */
  .hero-card{margin-top:16px}
  .media{margin:20px 0 !important}
  .badges{flex-wrap:wrap;gap:8px}
  .badge{font-size:12px;padding:8px 9px;white-space:normal;word-wrap:break-word}
  .hero .header-cta{flex-wrap:wrap;gap:8px}
  .hero .header-cta .btn{flex:1 1 auto;min-width:auto;white-space:normal;text-align:center}
  /* Hero section buttons - show both icons and text on mobile */
  .hero .header-cta .btn span{display:inline !important}
  .hero .header-cta .btn i{display:inline-block !important;margin-right:6px}
  
  /* Ensure all text wraps properly on mobile */
  p, .lede{word-wrap:break-word;overflow-wrap:break-word;hyphens:auto}
  .hero-grid > div > *{max-width:100%;word-wrap:break-word;overflow-wrap:break-word}

  /* Header fixes for mobile */
  .header-inner{gap:10px;padding:10px 0;align-items:center;padding-left:0}
  .brand{gap:10px;min-width:0;flex:1}
  .brand img{width:150px;height:50px;background:transparent;border:none;box-shadow:none;border-radius:0}
  .brand .name{font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60vw}
  .brand .tag{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}

  /* Desktop nav hidden on mobile */
  .site-header .nav{display:none !important}

  /* Keep header actions from overflowing - this applies only to header, not hero section */
  .site-header .header-cta{gap:8px;flex-shrink:0}
  .site-header .header-cta .btn{display:none} /* Hide Free Assessment button in header on mobile */
  .site-header .header-cta .btn span{display:none}
  .site-header .header-cta .btn i{margin:0}

  .icon-pill{display:inline-flex;padding:9px 10px;border-radius:12px}

  /* Mobile nav panel */
  .mobile-panel{display:block}
  .mobile-panel a{padding:12px 12px}
}

@media (max-width: 420px){
  .container{padding:0 14px}
  .site-header .container{padding-left:0}
  .brand .name{max-width:50vw;font-size:16px;font-weight:800}
  .header-inner{padding-left:0}
  .brand .tag{display:none}
  .brand img{width:140px;height:48px;background:transparent;border:none;box-shadow:none;border-radius:0}
  .site-header .header-cta{gap:6px}
  .site-header .header-cta .btn{display:none} /* Hide Free Assessment button in header on small mobile */
  /* Hero buttons on small mobile - ensure icons and text are visible */
  .hero .header-cta .btn{padding:10px 12px;font-size:14px}
  .hero .header-cta .btn i{margin-right:6px !important}
  
  /* Small mobile improvements */
  h1{font-size:32px;line-height:1.2;margin-bottom:18px}
  .hero{padding:24px 0 16px}
  .lede{font-size:15px;line-height:1.6;margin-bottom:16px}
  .kicker{font-size:11px;letter-spacing:.7px}
  .hero-card{padding:14px;margin-top:12px}
  .media{margin:16px 0 !important}
  .badge{font-size:11px;padding:7px 8px}
  .small{font-size:12px;line-height:1.5}
}

/* Focus styles */
:focus-visible{outline:3px solid var(--ring);outline-offset:2px;border-radius:12px}

/* FAQ Section */
.faq-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:20px}
.faq-buttons{display:flex;gap:8px}
.faq-list{border-top:1px solid rgba(135,84,39,.12)}
.faq-item{border-bottom:1px solid rgba(135,84,39,.12);padding:0}
.faq-item > summary{padding:16px 0;font-weight:700;font-size:16px;line-height:1.4;color:#1a1a1a;cursor:pointer}
.faq-item > summary:hover{color:#875427}
.faq-answer{padding:0 0 16px 24px;color:#555;line-height:1.65}

/* Progressive enhancement for <details> */
details[open] .chev { transform: rotate(180deg); }
details > summary::-webkit-details-marker { display: none; }
.focus-ring:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: .5rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,1px,1px); white-space:nowrap; border:0; }

/* FAQ link hover */
.faq-item a[data-copy-link]:hover { text-decoration: underline; }

/* Responsive FAQ */
@media(min-width:640px){
  .faq-section .mb-6.flex.flex-col { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; }
  .faq-section .mb-6.flex.flex-col label { width: auto !important; max-width: 66.666667% !important; }
}

@media(max-width:600px){
  .faq-controls{flex-direction:column;align-items:stretch}
  .faq-controls .input{max-width:100% !important}
  .faq-buttons{justify-content:flex-start}
  .faq-answer{padding-left:0}
  .faq-item summary > div { margin-left: 0 !important; }
  .faq-item .mt-3.ms-8 { margin-left: 0 !important; }
  /* Mobile FAQ adjustments */
  .faq-item summary { padding: 12px 0 !important; }
  .faq-item summary h3 { font-size: 0.95rem !important; }
  .faq-item .mt-3.ms-8 { margin-left: 0 !important; padding-left: 0 !important; }
  .faq-item svg.chev { height: 1rem !important; width: 1rem !important; margin-top: 0.15rem !important; }
}

