/* Efficient Biometrics — base styling for the Django rebuild.
   Palette chosen to read as trustworthy/official (deep navy + steel
   teal, restrained gold accent for calls to action) — appropriate for
   a fingerprinting/notary/background-check business where credibility
   matters more than flair. */

:root {
    --color-navy: #0f2238;
    --color-navy-light: #1a3a5c;
    --color-teal: #2a7f8e;
    --color-teal-dark: #1e5c68;
    --color-gold: #c98a2c;
    --color-gold-dark: #a8701e;
    --color-green: #2e9e5b;
    --color-green-dark: #237a45;
    --color-blue: #2563b0;
    --color-blue-dark: #1c4d87;
    --color-bg: #f4f6f8;
    --color-bg-alt: #eef1f4;
    --color-card: #ffffff;
    --color-text: #1c2630;
    --color-text-muted: #5a6c7a;
    --color-border: #dbe2e8;
    --color-success-bg: #e3f3e6;
    --color-success-text: #246b34;
    --color-error-bg: #fbe7e7;
    --color-error-text: #9c2e2e;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;      /* guard against accidental horizontal scroll */
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

img, iframe, video, svg { max-width: 100%; }

a {
    color: var(--color-teal-dark);
    text-decoration: none;
}

a:hover {
    color: var(--color-gold-dark);
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--color-navy);
    margin-top: 0;
}

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

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(15, 34, 56, 0.06);
}

.site-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.site-header__brand:hover {
    color: var(--color-navy);
    text-decoration: none;
}

.site-header__logo {
    height: 28px;
    width: auto;
    display: block;
}

.service-icon {
    display: block;
    max-width: 160px;
    margin: 0 auto 1rem;
}

.staff-header__logo {
    height: 28px;
    width: auto;
    display: block;
}

/* ---------------------------------------------------------------- */
/* Service showcase grid (services.html, fingerprinting page)       */
/* ---------------------------------------------------------------- */

.service-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Make EVERY row (and therefore every card) the same height, so the
       bottom-pinned "Learn More" buttons all line up across rows, not just
       within a single row. */
    grid-auto-rows: 1fr;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.service-showcase > li,
.service-showcase > div {
    background: var(--color-card);
    border: none;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.5em 1em -0.125em rgba(15, 34, 56, 0.1), 0 0 0 1px rgba(15, 34, 56, 0.02);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    /* Flex column so the "Learn More" button aligns to the bottom of every
       card regardless of how much text sits above it. */
    display: flex;
    flex-direction: column;
}

.service-showcase > li:hover,
.service-showcase > div:hover {
    box-shadow: 0 1em 1.5em -0.5em rgba(15, 34, 56, 0.18), 0 0 0 1px rgba(15, 34, 56, 0.02);
    transform: translateY(-2px);
}

.service-showcase .btn {
    margin-top: auto;      /* push to card bottom for uniform alignment */
    align-self: center;    /* keep natural width, don't stretch full-width */
}

.coming-soon {
    color: var(--color-error-text);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.site-header__mark {
    background: var(--color-gold);
    color: var(--color-navy);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.site-header__nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-header__nav a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-header__nav a:hover {
    color: var(--color-blue-dark);
    text-decoration: none;
}

.site-header__cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.site-header__staff {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.site-header__staff:hover {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

/* ---------------------------------------------------------------- */
/* Messages                                                         */
/* ---------------------------------------------------------------- */

.messages {
    list-style: none;
    margin: 0;
    padding: 0;
}

.messages li {
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    text-align: center;
}

.messages li.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.messages li.error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* ---------------------------------------------------------------- */
/* Layout                                                            */
/* ---------------------------------------------------------------- */

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    min-height: 50vh;
}

main h1 {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
}

.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-teal-dark) 100%);
    color: #fff;
    margin: -2rem -1.5rem 2rem;
    padding: 3rem 1.5rem;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

/* Bottom-of-page call-to-action reuse of .hero. The base .hero has a
   negative top margin so it bleeds under the nav at the TOP of a page;
   when used as a closing CTA that pulls it up over the preceding text
   (hiding e.g. "Located inside…" on About, the mobile-appointment answer
   on FAQ). This modifier restores a normal top margin + rounded top. */
.hero--cta {
    margin-top: 2rem;
    border-radius: 8px;
}

.nowrap {
    white-space: nowrap;
}

.hero h1 {
    color: #fff;
    border-bottom: none;
    font-size: 2rem;
}

.hero p {
    color: #d6e3ea;
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0.5rem auto 1.5rem;
}

.hero .btn {
    display: inline-block;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Two-column hero used on the homepage: headline + CTAs on one side,
   a checklist "box" on the other — mirrors the legacy site's hero layout. */
.hero--split {
    text-align: left;
}

.hero--split .hero__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto;
}

.hero--split .hero__copy {
    flex: 1 1 360px;
}

.hero--split .hero__copy h1 {
    text-align: left;
}

.hero--split .hero__copy p {
    margin: 0.5rem 0 1.5rem;
    text-align: left;
}

.hero--split .quick-links {
    justify-content: flex-start;
}

.hero__checklist {
    flex: 1 1 280px;
    background: #fff;
    color: var(--color-text);
    border-radius: 10px;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 0.5em 1em -0.125em rgba(15, 34, 56, 0.18);
}

.hero__checklist p {
    color: var(--color-text);
    margin: 0.5rem 0;
    font-size: 0.98rem;
    text-align: left;
}

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

.section {
    padding: 2.5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
    margin: 2rem -1.5rem;
    padding: 2.5rem 1.5rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
}

.reviews li {
    background: var(--color-card);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 0.5em 1em -0.125em rgba(15, 34, 56, 0.08);
}

.reviews .stars {
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

.reviews cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------- */
/* Cards / service list                                              */
/* ---------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.card-grid li {
    background: var(--color-card);
    border: none;
    border-left: 4px solid var(--color-teal);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    box-shadow: 0 0.5em 1em -0.125em rgba(15, 34, 56, 0.1);
}

.card-grid li strong {
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.25rem;
}

/* ---------------------------------------------------------------- */
/* Forms                                                             */
/* ---------------------------------------------------------------- */

form {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.9rem;
    font-weight: 600;
    color: var(--color-navy-light);
}

form input,
form select,
form textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(42, 127, 142, 0.15);
}

form textarea {
    min-height: 5rem;
}

button[type="submit"],
.btn {
    display: inline-block;
    background: var(--color-gold);
    color: #fff;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

button[type="submit"]:hover,
.btn:hover {
    background: var(--color-gold-dark);
    color: #fff;
    text-decoration: none;
}

.btn-success {
    background: var(--color-green);
}
.btn-success:hover {
    background: var(--color-green-dark);
    color: #fff;
}

.btn-link {
    background: var(--color-blue);
}
.btn-link:hover {
    background: var(--color-blue-dark);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--color-navy);
    border: 1px solid var(--color-border);
}
.btn-light:hover {
    background: var(--color-bg-alt);
    color: var(--color-navy);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- */
/* Tables (intranet)                                                 */
/* ---------------------------------------------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card);
    border-radius: 6px;
    overflow: hidden;
}

table th, table td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

table th {
    background: var(--color-navy);
    color: #fff;
    font-weight: 600;
}

table tr:nth-child(even) td {
    background: #fafbfc;
}

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

.site-footer {
    background: #fff;
    color: var(--color-text-muted);
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer__inner strong {
    color: var(--color-navy);
}

.site-footer__trust {
    color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.site-footer__map {
    margin: 1.25rem auto;
    max-width: 480px;
}

.site-footer__map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- */
/* Staff/intranet nav + inline search                                */
/* ---------------------------------------------------------------- */

.staff-header {
    background: var(--color-navy);
    border-bottom: 3px solid var(--color-gold);
}

.staff-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.staff-header__brand:hover {
    color: #fff;
    text-decoration: none;
}

.staff-nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.staff-nav a {
    color: #fff;
    font-weight: 500;
}

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

.inline-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.inline-search input[type="text"] {
    flex: 1;
    max-width: 320px;
}

/* ---------------------------------------------------------------- */
/* Details/fieldset (notary "add signer/document" forms)             */
/* ---------------------------------------------------------------- */

details {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1rem 0 1.5rem;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-teal-dark);
}

details form {
    margin-top: 1rem;
}

fieldset {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
}

fieldset label {
    display: block;
    font-weight: 400;
    margin: 0.25rem 0;
}

/* Legal/marketing static pages (about, faq, notary-services, fingerprinting,
   privacy-policy, terms, compliance) */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    line-height: 1.6;
}
.legal-page h1 {
    margin-bottom: 0.25rem;
}
.legal-page h2 {
    margin-top: 2rem;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.25rem;
}
.legal-page h3 {
    margin-top: 1.25rem;
}
.legal-page ul {
    padding-left: 1.5rem;
}
.legal-page .btn {
    display: inline-block;
    margin: 0.25rem;
}
.site-footer__legal {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.site-footer__legal a {
    color: inherit;
}

/* --- Guides --- */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #667;
}
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.guide-subtitle {
    font-size: 1.15rem;
    color: #556;
    margin-top: -0.25rem;
    margin-bottom: 1.5rem;
}
.guide-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}
.guide-list > li {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}
.guide-list h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}
.guide-list h2 a {
    color: inherit;
    text-decoration: none;
}
.guide-list h2 a:hover {
    text-decoration: underline;
}
.table-wrap {
    overflow-x: auto;
}
.guide-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.guide-table th,
.guide-table td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
}
.guide-table thead th {
    background: #f3f6f4;
    color: var(--color-navy);
}

/* ---------------------------------------------------------------- */
/* Site-wide instant search (header)                                */
/* ---------------------------------------------------------------- */
.site-search {
    position: relative;
    /* Own row, left-aligned, below the nav on every screen size. */
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    max-width: 340px;
    margin-top: 0.15rem;
}
.site-search__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--color-text-muted);
    pointer-events: none;
}
.site-search__input {
    width: 100%;
    padding: 0.62rem 1rem 0.62rem 2.5rem;
    font-size: 0.92rem;
    line-height: 1.2;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.site-search__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.site-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search__input:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(42, 127, 142, 0.16);
    background: #fff;
}
.site-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px -8px rgba(15, 34, 56, 0.28);
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}
.site-search__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: var(--color-text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-bg-alt);
    cursor: pointer;
}
.site-search__item:last-child { border-bottom: none; }
.site-search__item:hover,
.site-search__item.is-active {
    background: var(--color-bg);
    text-decoration: none;
}
.site-search__item-title { font-weight: 600; }
.site-search__badge {
    flex: none;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-teal-dark);
    background: rgba(42, 127, 142, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.site-search__empty {
    padding: 0.75rem 0.85rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
@media (max-width: 720px) {
    .site-search { flex: 1 1 100%; order: 5; min-width: 0; }
}
