/* ============================================================
   NotarySix.com - styles.css
   Palette and type derived from the NotarySix logo:
     navy ink   #1B2A4D  (primary)
     deep navy  #14213A  (dark bands)
     seal gold  #B8862C  (accent - used sparingly)
     paper      #FAF7F0  (warm section background)
     ink text   #2A3142
   Type: Fraunces (display) / Public Sans (body)
   ============================================================ */

:root {
    --navy: #1B2A4D;
    --navy-deep: #14213A;
    --gold: #B8862C;
    --gold-soft: #D9B76A;
    --paper: #FAF7F0;
    --line: #E6E0D2;
    --ink: #2A3142;
    --ink-soft: #5A6275;
    --white: #FFFFFF;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;

    --wrap-max: 1120px;
    --radius: 6px;
}

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

/* scroll-padding-top keeps anchor targets clear of the sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 6.5rem;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wrap-narrow { max-width: 780px; }

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

/* ---------- Typography ---------- */

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.15;
    font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-intro {
    max-width: 620px;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}
.btn-primary:hover { background: var(--navy-deep); }

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.brand-logo { height: 72px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover { color: var(--gold); }

.site-nav .nav-cta {
    background: var(--navy);
    color: var(--white);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
}
.site-nav .nav-cta:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
    background:
        linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.hero-sub {
    margin: 1.25rem 0 2rem;
    max-width: 520px;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-photo { position: relative; }

.photo-frame {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0.75rem 0.75rem 0.6rem;
    box-shadow: 0 18px 40px rgba(20, 33, 58, 0.14);
    border-radius: var(--radius);
    transform: rotate(1.2deg);
}

.photo-frame img { border-radius: 3px; }

.photo-frame figcaption {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--ink-soft);
    text-align: center;
    padding-top: 0.5rem;
    font-style: italic;
}

/* Signature element: embossed seal stamped over the photo corner */

.seal {
    position: absolute;
    width: 150px;
    height: 150px;
    right: -28px;
    bottom: -30px;
    transform: rotate(-14deg);
    color: var(--gold);
    opacity: 0.92;
    filter: drop-shadow(0 2px 4px rgba(20, 33, 58, 0.2));
}

.seal-ring-outer {
    fill: rgba(250, 247, 240, 0.85);
    stroke: currentColor;
    stroke-width: 3;
}

.seal-ring-inner {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-dasharray: 2 3;
}

.seal-text {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    fill: currentColor;
}

.seal-star {
    fill: currentColor;
    stroke: none;
}

/* ---------- Subpages (jail-notary.html) ---------- */

.subpage-hero {
    background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
    padding-bottom: 3.5rem;
}

.subpage-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

.subpage-hero .section-intro { margin-bottom: 0; }

.detail-list {
    list-style: none;
    margin: 1.25rem 0;
}

.detail-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--ink);
}

.detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 9px;
    height: 9px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.detail-list li strong { color: var(--navy); }

/* .steps sets 3 columns further down; the extra class here must outweigh it */
.steps.steps-stacked {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 640px;
}

/* ---------- Credential verification (verify/ns-XXX/) ---------- */

.verify-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
    min-height: 70vh;
}

.verify-title { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

.verify-ref {
    color: var(--ink-soft);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0.5rem 0 2rem;
}

.credential-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(20, 33, 58, 0.10);
    padding: 2rem;
}

.credential-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
}

.credential-seal {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    color: var(--gold);
}

.credential-name-block { display: flex; flex-direction: column; gap: 0.2rem; }

.credential-name {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy);
}

.credential-role { color: var(--ink-soft); }

.credential-status {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #E7F2E4;
    color: #2E6B2A;
    border: 1px solid #BFDCB8;
}

.credential-status-expired {
    background: #F9E8E6;
    color: #9C2F23;
    border-color: #E5C0BA;
}

.credential-data { margin: 0; }

.credential-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.credential-row:last-child { border-bottom: none; }

.credential-row dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 0.15rem;
}

.credential-row dd {
    margin: 0;
    color: var(--navy);
    font-weight: 500;
}

.verify-independent {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--white);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}

.verify-independent h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.verify-independent p { color: var(--ink-soft); }

.verify-independent a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.verify-independent a:hover { color: var(--gold); }

.verify-contact {
    margin-top: 2rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.verify-contact a { color: var(--navy); font-weight: 600; }

@media (max-width: 640px) {
    .credential-head { flex-direction: column; align-items: flex-start; }
    .credential-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
    background: var(--navy-deep);
    color: var(--white);
}

.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }

.trust-title {
    font-weight: 700;
    color: var(--gold-soft);
    font-size: 0.95rem;
}

.trust-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }

.section-paper {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Service cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(20, 33, 58, 0.08);
}

.card-icon {
    width: 44px;
    height: 44px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-icon svg { width: 100%; height: 100%; }

.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- About ---------- */

.about-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: start;
}

.about-copy p { margin-bottom: 1.1rem; }

.owner-cards {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.owner-card {
    border-left: 3px solid var(--gold);
    padding: 0.4rem 0 0.4rem 1rem;
    display: flex;
    flex-direction: column;
}

.owner-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
}

.owner-role {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.owner-verify {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    margin-top: 0.35rem;
    align-self: flex-start;
}

.owner-verify:hover { color: var(--gold); }

.note-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}

.note-card h3 { color: var(--gold-soft); }

.note-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.97rem;
}

/* ---------- Area & pricing ---------- */

.area-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.area-block p { color: var(--ink-soft); max-width: 460px; }

.city-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
    max-width: 480px;
}

.city-list li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 1.5rem; }

.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}

.faq-list summary {
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list details p {
    padding-top: 0.75rem;
    color: var(--ink-soft);
    font-size: 0.97rem;
}

.faq-list details a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.faq-list details a:hover { color: var(--gold); }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--navy);
    color: var(--white);
    padding: 4.5rem 0;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.cta-band h2 { color: var(--white); }

.cta-copy p { color: rgba(255, 255, 255, 0.8); }

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.cta-email {
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 600;
}

.cta-email:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

a.footer-wordmark:hover { color: var(--gold-soft); }

.footer-tld { color: var(--gold-soft); }

.footer-tag {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.25rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--gold-soft); }

.footer-legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
}

.footer-copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(20, 33, 58, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn, .card, .back-to-top { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .hero-photo { max-width: 440px; margin: 0 auto; }

    .trust-inner { grid-template-columns: repeat(2, 1fr); }

    .card-grid { grid-template-columns: repeat(2, 1fr); }

    .steps { grid-template-columns: 1fr; }

    .about-inner,
    .area-inner,
    .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }

    .trust-inner { grid-template-columns: 1fr; }

    .brand-logo { height: 54px; }

    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
    }

    .site-nav.open { display: flex; }

    .site-nav .nav-cta { text-align: center; }

    .seal {
        width: 120px;
        height: 120px;
        right: -12px;
        bottom: -24px;
    }
}
