/* Chester County Coins and Currency site styles (on top of Bootstrap 5) */

:root {
    --brand: #1f5a44;          /* deep green */
    --brand-dark: #153f30;
    --brand-soft: #ebf4ef;
    --accent: #b8892b;         /* coin gold */
    --ink: #1c2733;
    --muted: #5b6b7b;
    --line: #e3e8ee;
    --bg: #ffffff;
    --bg-alt: #f7f6f1;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 50, 38, .06), 0 8px 24px rgba(20, 50, 38, .07);
    --shadow-hover: 0 2px 4px rgba(20, 50, 38, .08), 0 16px 40px rgba(20, 50, 38, .12);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, .h4 { color: var(--ink); letter-spacing: -.01em; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 1000;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding: .75rem 0; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.brand-dim { color: var(--muted); font-weight: 600; }
.brand-llc { color: var(--muted); font-weight: 500; font-size: .85em; }

.site-header .navbar .navbar-nav .nav-link {
    color: var(--muted);
    font-weight: 600;
    padding: .5rem .9rem !important;
    border-radius: 8px;
}
.site-header .navbar .navbar-nav .nav-link:hover { color: var(--brand); background: var(--brand-soft); }
.site-header .navbar .navbar-nav .nav-link.active { color: var(--brand); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid #c9d6e3;
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    border-radius: 10px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}
.btn-outline-brand:hover, .btn-outline-brand:focus {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---------- Home hero ---------- */
.hero {
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(1000px 400px at 85% 0%, rgba(184, 137, 43, .12), transparent 60%),
        radial-gradient(800px 400px at 0% 100%, rgba(31, 90, 68, .10), transparent 60%),
        var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .75rem;
}
.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 750;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 36rem;
    margin-bottom: 2rem;
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.page-head + .section { padding-top: 0; }

.page-head {
    padding: 3.5rem 0 2.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
}
.page-head h1 { font-weight: 750; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.page-head-compact { padding: 1.25rem 0; margin-bottom: 2rem; }
.page-intro { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin: 1rem 0 0; }
.lead-text { font-size: 1.25rem; color: var(--ink); }
.section p { line-height: 1.7; }

/* ---------- Feature cards (home) ---------- */
.feature {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 1rem;
}
.feature-title { font-size: 1.2rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Timeline (about) ---------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 1.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.timeline li {
    position: relative;
    padding: 0 0 1.4rem 1.6rem;
    border-left: 2px solid var(--line);
    margin-left: .4rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: .3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline-year { display: block; font-weight: 800; color: var(--brand); }
.timeline-text { color: var(--muted); }

/* ---------- Products ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover, .product-card:focus-visible {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: #cfd9e4;
    color: inherit;
}
.product-image {
    aspect-ratio: 4 / 3;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    padding: 1rem;
}
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-code {
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--accent);
    background: rgba(184, 137, 43, .10);
    border-radius: 6px;
    padding: .2rem .5rem;
    margin-bottom: .6rem;
}
.product-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.product-summary { color: var(--muted); font-size: .95rem; flex: 1; }
.product-more { font-weight: 600; color: var(--brand); }
.product-card:hover .product-more span { margin-left: .2rem; transition: margin .2s; }

.back-link { font-weight: 600; text-decoration: none; }

.product-detail {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.product-detail-image {
    height: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
@media (min-width: 992px) {
    .product-detail-image { border-bottom: 0; position: sticky; top: 80px; height: auto; min-height: 460px; }
}
.product-detail-image img { max-width: 100%; max-height: 460px; object-fit: contain; }
.product-detail-body { padding: 2rem 2.25rem 2.25rem; }
.product-detail-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 750; }
.product-detail-summary { color: var(--muted); font-size: 1.1rem; }
.product-description { line-height: 1.7; }
.product-description p:has(> b:first-child) {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .85rem 1rem;
}

/* ---------- Notices & forms ---------- */
.notice {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.form-label { font-weight: 600; }
.form-control { border-radius: 10px; padding: .65rem .85rem; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(31, 90, 68, .15); }
.req { color: #b42318; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 1.5rem 0; }
.success h2 { color: var(--accent); }

/* ---------- Proof strip (home) ---------- */
.proof { padding: 2.25rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.proof-number { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.proof-label { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* ---------- Section headings ---------- */
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; margin-bottom: 1rem; }

.feature-link { display: block; color: inherit; text-decoration: none; }
.feature-link:hover { color: inherit; }
.feature-link p { margin-bottom: 1rem; }

.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; line-height: 1.6; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.3-5.3L12.8 4.8z'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.compat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}
.compat-row { display: flex; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.compat-label { flex: 0 0 8.5rem; font-weight: 700; color: var(--brand); }
.small-link { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }

.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
}
.cta-title { color: #fff; font-size: 1.6rem; font-weight: 750; margin-bottom: .35rem; }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* ---------- Services ---------- */
.service { padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service-title { font-size: 1.6rem; font-weight: 750; }

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: .75rem;
    transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 3rem 1.1rem 1.25rem;
    font-weight: 700;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq-answer p { margin: 0; line-height: 1.7; }

/* ---------- Footer columns ---------- */
.footer-top { padding: 1rem 0 1.5rem; }
.footer-brand { font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.footer-heading { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--muted);
    font-size: .9rem;
    padding: 2.5rem 0 1.4rem;
}
.footer-note { color: #8795a3; }

@media (max-width: 767.98px) {
    .hero { padding: 3rem 0; }
    .section { padding: 2.5rem 0; }
    .page-head { padding: 2.25rem 0 1.75rem; margin-bottom: 2rem; }
    .form-card, .product-detail-body { padding: 1.4rem; }
    .cta-band { padding: 1.75rem 1.4rem; }
    .compat-label { flex-basis: 6.5rem; }
    .navbar-nav { padding-top: .5rem; }
}

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

/* ---------- Chester County Coins and Currency additions ---------- */
.brand-mark-svg { width: 40px; height: 40px; flex: 0 0 auto; }
.motto { border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 0; }
.motto dt { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-top: 1rem; }
.motto dt:first-child { margin-top: 0; }
.motto dd { font-size: 1.1rem; margin: .15rem 0 0; color: var(--ink); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { font-weight: 650; text-decoration: none; }
.link-list span { display: block; color: var(--muted); font-size: .95rem; }
.grader-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.grader { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); }
@media (max-width: 575.98px) {
    .brand { font-size: .95rem; gap: .5rem; }
    .brand-mark-svg { width: 32px; height: 32px; }
    .navbar-toggler { padding: .25rem .5rem; }
    .brand-text { line-height: 1.15; }
    .brand-dim { display: block; font-size: .9em; }
}
