/* =============================================================
   ZtoA Senior Citizen Helpdesk
   Design system: homecare blues with light-blue accent family
   Type: Alegreya (display) / Atkinson Hyperlegible (body —
   designed for low-vision readers)
   ============================================================= */

:root {
    /* Bright homecare palette (gahc.co.in-inspired)
       Accent system: light blue family (no orange) */
    --teal:        #0E7DC2;   /* primary blue */
    --teal-deep:   #085A8C;   /* deep blue */
    --accent:      #BDE0F3;   /* light blue accent (card strips, stripes, CTA) */
    --accent-mid:  #7CC3EA;   /* medium light blue (hover, focus, stripe contrast) */
    --accent-soft: #DDF0FB;   /* palest blue */
    --ink:         #243B4A;
    --paper:       #F7FAFC;
    --leaf:        #E8F3FA;   /* light blue section tint */
    --line:        #D6E2EA;
    --white:       #FFFFFF;

    --font-display: 'Alegreya', Georgia, serif;
    --font-body: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;

    --radius: 10px;
    --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.15rem;              /* ~18.4px — generous for senior readers */
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

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

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

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--accent-mid); color: var(--teal-deep);
    padding: .6rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }

a { color: var(--teal); }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent-mid);
    outline-offset: 2px;
}

/* ---------- Signature: kasavu double-stripe (light blue) ---------- */
.kasavu {
    height: 8px;
    background:
        linear-gradient(to bottom,
            var(--accent-mid) 0 3px,
            transparent 3px 5px,
            var(--accent) 5px 8px);
}

/* ---------- Top strip ---------- */
.topstrip {
    background: var(--teal-deep);
    color: #EAF4FB;
    font-size: .95rem;
}
.topstrip a { color: var(--accent); font-weight: 700; text-decoration: none; }
.topstrip a:hover { text-decoration: underline; }
.topstrip-inner {
    display: flex; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; padding: .45rem 1.25rem;
}
.topstrip-contact { display: flex; gap: .6rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: relative; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand-mark {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.5rem;
    background: var(--teal); color: var(--white);
    border-bottom: 4px solid var(--accent-mid);
    padding: .35rem .65rem; border-radius: 8px;
    letter-spacing: .5px; line-height: 1;
}
.brand-mark span { color: var(--accent); font-size: .95rem; font-weight: 500; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--teal-deep); }
.brand-text em { font-style: normal; font-size: .92rem; color: #587085; }

.site-nav ul { display: flex; list-style: none; gap: .35rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
    display: block; padding: .55rem .85rem;
    text-decoration: none; color: var(--ink);
    font-weight: 700; border-radius: var(--radius);
}
.site-nav a:hover { background: var(--leaf); }
.site-nav a.active { color: var(--teal); background: var(--leaf); }
.site-nav a.nav-cta {
    background: var(--teal); color: var(--white);
    border-bottom: 3px solid var(--accent-mid);
}
.site-nav a.nav-cta:hover { background: var(--teal-deep); }

.nav-toggle {
    display: none; background: none; border: 2px solid var(--teal);
    border-radius: 8px; padding: .5rem .6rem; cursor: pointer;
}
.nav-toggle-bar {
    display: block; width: 24px; height: 3px;
    background: var(--teal); margin: 4px 0; border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .85rem 1.6rem;
    font-family: var(--font-body);
    font-size: 1.1rem; font-weight: 700;
    text-decoration: none; text-align: center;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--white); border-bottom: 3px solid var(--accent-mid); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-accent { background: var(--accent-mid); color: var(--teal-deep); }
.btn-accent:hover { background: var(--accent); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--leaf); }
.btn-outline-light { border-color: var(--accent); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(90rem 40rem at 85% -20%, rgba(189,224,243,.20), transparent 60%),
        var(--teal-deep);
    color: var(--white);
    /* Uniform hero height across all pages */
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}
.hero .container { width: 100%; }

/* Hero backgrounds: real photo first, illustrated SVG as automatic
   fallback if the photo file is missing. Drop your photos into
   /assets/img/ using the filenames below — no CSS changes needed.
   A left-weighted blue overlay keeps headline text readable over
   ANY photo. */
.hero-scene {
    background-color: var(--teal-deep);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center top, center top;
    background-size: cover, cover, cover;
}
.hero-nets {        /* Home + Thank You */
    background-image:
        linear-gradient(100deg, rgba(6,38,60,.45) 0 32%, rgba(6,38,60,.30) 62%, rgba(6,38,60,.20) 100%),
        url('/assets/img/hero-home.png'),
        url('/assets/img/hero-nets.svg');
}
.hero-backwaters {  /* Services + FAQ */
    background-image:
        linear-gradient(100deg, rgba(6,38,60,.92) 0 32%, rgba(6,38,60,.68) 62%, rgba(6,38,60,.45) 100%),
        url('/assets/img/hero-services.png'),
        url('/assets/img/hero-backwaters.svg');
}
.hero-heritage {    /* Book a Service + About */
    background-image:
        linear-gradient(100deg, rgba(6,38,60,.92) 0 32%, rgba(6,38,60,.68) 62%, rgba(6,38,60,.45) 100%),
        url('/assets/img/hero-family.png'),
        url('/assets/img/hero-heritage.svg');
}
.hero-lighthouse {  /* Contact */
    background-image:
        linear-gradient(100deg, rgba(6,38,60,.92) 0 32%, rgba(6,38,60,.68) 62%, rgba(6,38,60,.45) 100%),
        url('/assets/img/hero-contact.png'),
        url('/assets/img/hero-lighthouse.svg');
}
@media (max-width: 760px) {
    .hero { min-height: 400px; }
    .hero-scene { background-position: center center, 72% bottom; }
}
.hero .eyebrow {
    color: var(--accent);
    font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    font-size: .9rem; margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.3rem);
    font-weight: 800; line-height: 1.15;
    max-width: 20ch; margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.55);
}
.hero p.sub {
    font-size: 1.25rem; max-width: 58ch;
    color: #EAF3FA; margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.55);
}
.hero .btn-row { margin-top: .5rem; }

/* ---------- Sections ---------- */
.section { padding: 3.75rem 0; }
.section.alt { background: var(--leaf); }
.section-head { max-width: 68ch; margin-bottom: 2.25rem; }
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    color: var(--teal-deep);
    margin-bottom: .7rem;
}
.section-head p { font-size: 1.15rem; }

.lead { font-size: 1.2rem; max-width: 70ch; }

/* ---------- Cards (gahc.co.in-style) ---------- */
.card-grid {
    display: grid; gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom: 6px solid #BDE0F3;   /* light blue base strip */
    border-radius: 14px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(36,59,74,.08);
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 8px 22px rgba(36,59,74,.14); transform: translateY(-3px); }
/* Inset photo with rounded corners, like the reference */
.card-media {
    margin: 14px 14px 0;
    height: 195px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background-color: var(--leaf);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.card-body {
    padding: 1.2rem 1.4rem 1.5rem;
    display: flex; flex-direction: column; gap: .75rem;
    flex-grow: 1;
    text-align: center;
}
.card h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.45rem;
    color: var(--ink);
}
.card p {
    flex-grow: 1;
    text-align: justify;
    hyphens: auto;
    font-size: 1.05rem;
}
/* "Read more →" style action link */
.card-link {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .55rem; align-self: center;
    font-style: italic; font-weight: 700; font-size: 1.08rem;
    color: var(--teal); text-decoration: none;
    padding: .35rem .25rem;
}
.card-link .arr {
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--teal); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 1rem; line-height: 1;
    transition: transform .15s ease, background .15s ease;
}
.card-link:hover { text-decoration: underline; }
.card-link:hover .arr { background: var(--teal-deep); transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
    .card, .card-link .arr { transition: none; }
    .card:hover { transform: none; }
    .card-link:hover .arr { transform: none; }
}

/* ---------- Steps ---------- */
.steps {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
}
.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem;
    border-radius: 50%;
    background: var(--teal); color: var(--accent);
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    margin-bottom: .8rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }

/* ---------- Checklist / bullets ---------- */
.checklist { list-style: none; display: grid; gap: .8rem; max-width: 62ch; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--teal); font-weight: 800; font-size: 1.2rem;
}

/* ---------- Trust band ---------- */
.trust-band {
    border-left: 6px solid var(--accent-mid);
    background: var(--white);
    padding: 1.75rem 1.75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 74ch;
    box-shadow: 0 1px 3px rgba(36,59,74,.06);
}
.trust-band h2 {
    font-family: var(--font-display);
    font-size: 1.6rem; color: var(--teal-deep); margin-bottom: .6rem;
}

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 1px 4px rgba(36,59,74,.07);
}
fieldset {
    border: none; margin-bottom: 2rem;
    border-top: 2px solid var(--leaf); padding-top: 1.4rem;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }
legend {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 700;
    color: var(--teal-deep); padding-right: 1rem;
    margin-bottom: .35rem;
}
.field-grid {
    display: grid; gap: 1.1rem 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; }
.helper { font-size: .95rem; color: #587085; }
input[type=text], input[type=tel], input[type=email], input[type=date],
input[type=time], select, textarea {
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: .8rem .9rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(14,125,194,.18);
}
textarea { min-height: 120px; resize: vertical; }

.radio-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: .45rem; font-weight: 400; }
input[type=radio], input[type=checkbox] { width: 1.25rem; height: 1.25rem; accent-color: var(--teal); }

.form-note { font-size: .98rem; color: #587085; margin-top: 1rem; }

/* Conditional booking sections — [hidden] must beat .field's flex display */
.cond[hidden] { display: none !important; }

/* ---------- Contact page ---------- */
.contact-grid {
    display: grid; gap: 2rem;
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
}
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { padding-left: 1.6rem; position: relative; }
.contact-list li::before {
    content: ""; position: absolute; left: 0; top: .55rem;
    width: .6rem; height: .6rem; background: var(--accent-mid); border-radius: 2px;
}
.contact-list a { font-weight: 700; }

/* ---------- FAQ ---------- */
details.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}
details.faq-item summary {
    cursor: pointer; padding: 1.1rem 1.3rem;
    font-weight: 700; font-size: 1.15rem;
    list-style: none; position: relative; padding-right: 3rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+"; position: absolute; right: 1.2rem; top: .9rem;
    font-size: 1.6rem; color: var(--teal); font-weight: 800;
}
details[open].faq-item summary::after { content: "–"; }
details.faq-item .faq-body { padding: 0 1.3rem 1.2rem; max-width: 72ch; }

/* ---------- Final CTA + footer ---------- */
.final-cta { background: var(--teal-deep); color: var(--white); }
.final-cta-inner { padding: 3.25rem 1.25rem; text-align: center; }
.final-cta h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .5rem; }
.final-cta p { color: #DCEBF7; margin-bottom: 1.6rem; }
.final-cta .btn-row { justify-content: center; }

.site-footer { background: var(--ink); color: #C7D6E2; }
.footer-grid {
    display: grid; gap: 2rem;
    grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
    padding: 3rem 1.25rem 2.5rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: .6rem; }
.footer-logo span { color: var(--accent); font-size: 1.05rem; }
.footer-col h3 {
    color: var(--accent); font-size: 1rem;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem;
}
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: #C7D6E2; text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-strip { border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.footer-strip-inner {
    display: flex; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; padding: 1rem 1.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; }
    .site-nav.open { display: block; }
    .header-inner { flex-wrap: wrap; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; padding-bottom: .75rem; }
    .site-nav a { padding: .9rem 1rem; font-size: 1.15rem; }
    .hero { padding: 3rem 0 2.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
    .btn:hover { transform: none; }
}
