/* =========================================================================
   WebsitesIndexer.com - stylesheet
   Palette: deep emerald + warm amber on near-black green. No blue / indigo.
   ========================================================================= */

:root {
    --green-900: #0a3d28;
    --green-700: #0f7a4f;
    --green-600: #138a5a;
    --green-500: #1aa66e;
    --green-100: #d8efe3;
    --amber-500: #f08a24;
    --amber-600: #d9740f;

    --ink-900: #13201b;
    --ink-700: #2c3a33;
    --ink-500: #56655c;
    --paper:    #ffffff;
    --paper-alt:#f3f7f4;
    --line:     #dfe7e1;

    --maxw: 1120px;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(10, 61, 40, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--paper);
    overflow-x: hidden;            /* guard against accidental side-scroll */
    overflow-wrap: break-word;     /* long URLs / words never blow out width */
    -webkit-tap-highlight-color: rgba(15, 122, 79, 0.18);
}

h1, h2, h3 { color: var(--ink-900); line-height: 1.2; font-weight: 750; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green-600); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Accessibility: skip link + focus states ------------------------- */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    background: var(--green-700);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
    outline: 3px solid var(--amber-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;          /* comfortable tap target */
    font-weight: 650;
    font-size: 1rem;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }

/* ---- Header ---------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; color: var(--ink-900); }
.brand-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--green-500), var(--green-900));
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35);
}
.brand-name { font-size: 1.2rem; letter-spacing: -0.02em; }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink-700);
    font-weight: 600;
}
.site-nav a:hover { background: var(--paper-alt); color: var(--green-900); }
.site-nav a[aria-current="page"] { color: var(--green-700); }
.nav-cta { background: var(--green-700); color: #fff !important; }
.nav-cta:hover { background: var(--green-900) !important; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 20px; height: 2px;
    background: var(--ink-900);
    transform: translate(-50%, -50%);
}
.nav-toggle-bar::before { transform: translate(-50%, -8px); }
.nav-toggle-bar::after  { transform: translate(-50%, 6px); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
    background:
        radial-gradient(1000px 400px at 80% -10%, var(--green-100), transparent 60%),
        linear-gradient(180deg, #ffffff, var(--paper-alt));
    border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 72px 24px 64px; max-width: 880px; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--amber-600);
    margin: 0 0 14px;
}
.lede { font-size: 1.2rem; color: var(--ink-700); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 36px;
    list-style: none; margin: 44px 0 0; padding: 0;
}
.hero-stats strong { display: block; font-size: 1.7rem; color: var(--green-900); }
.hero-stats span { color: var(--ink-500); font-size: 0.95rem; }

/* ---- Sections -------------------------------------------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-intro { max-width: 60ch; color: var(--ink-500); margin-top: -0.3em; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 36px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--green-500); }
.card h3 { color: var(--green-900); }
.card p { margin: 0; color: var(--ink-500); }

.steps {
    counter-reset: step;
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.steps li {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green-700);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ---- Testimonials ---------------------------------------------------- */
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 16px; }
.quote blockquote p { color: var(--ink-700); font-size: 1.05rem; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote figcaption { margin-top: auto; font-size: 0.95rem; color: var(--ink-500); }
.quote figcaption strong { display: block; color: var(--ink-900); }

.cta-band {
    text-align: center;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    color: #fff;
    border-radius: 22px;
    padding: 56px 28px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--green-900); margin-top: 10px; }
.cta-band .btn-primary:hover { background: var(--green-100); }

/* ---- Page heads + prose --------------------------------------------- */
.page-head {
    background: linear-gradient(180deg, var(--paper-alt), #fff);
    border-bottom: 1px solid var(--line);
    padding: 48px 0 40px;
}
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 16px; height: 9px;
    border-left: 3px solid var(--green-500);
    border-bottom: 3px solid var(--green-500);
    transform: rotate(-45deg);
}

/* ---- Breadcrumb ------------------------------------------------------ */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-500); }
.breadcrumb [aria-current="page"] { color: var(--ink-500); }

/* ---- FAQ ------------------------------------------------------------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 6px 22px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { font-size: 1.12rem; margin: 0; }
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--green-700);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--ink-500); }
.faq-more { margin-top: 28px; }

/* ---- Contact --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form .field { margin-bottom: 18px; display: flex; flex-direction: column; }
.contact-form label { font-weight: 650; margin-bottom: 6px; color: var(--ink-900); }
.contact-form input, .contact-form textarea {
    font: inherit;
    font-size: 16px;           /* >=16px stops iOS from zooming on focus */
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-900);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--green-500);
    outline: 3px solid var(--green-100);
    outline-offset: 0;
}
.field-error { color: var(--amber-600); font-size: 0.9rem; margin: 6px 0 0; }
[aria-invalid="true"] { border-color: var(--amber-600) !important; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; }
.alert-success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-500); }
.alert-error { background: #fbe9da; color: var(--amber-600); border: 1px solid var(--amber-500); }

.contact-aside { background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-aside h2 { font-size: 1.15rem; }
.contact-email { font-weight: 650; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #c9d6cd; margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 56px 24px 36px;
}
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 36ch; color: #9fb3a7; }
.footer-heading { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c9d6cd; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 24px; font-size: 0.9rem; color: #9fb3a7; text-align: center; }
.footer-bottom p { margin: 0; }

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

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav.is-open { max-height: 480px; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
    .site-nav li { border-top: 1px solid var(--line); }
    .site-nav li:first-child { border-top: 0; }
    .site-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;          /* full-width, finger-friendly rows */
        padding: 12px 10px;
    }
    .nav-cta { justify-content: center; margin-top: 10px; border-radius: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Small phones ---------------------------------------------------- */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-inner { padding: 52px 18px 48px; }
    .section { padding: 52px 0; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 24px 32px; }
    .cta-band { padding: 40px 20px; border-radius: 18px; }
    .cta-band .btn { width: 100%; }
    .contact-aside { padding: 20px; }
}

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