/* =========================================================
   Reset & Box‑Sizing
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================================================
   Root – base scaling factor
   ========================================================= */
/* 1 rem = clamp(0.875rem, 0.5vw + 0.5rem, 1.375rem)
   → never smaller than ~14 px, never larger than ~22 px */
:root {
    font-size: clamp(0.875rem, 0.5vw + 0.5rem, 1.375rem);
}

/* =========================================================
   Base Typography
   ========================================================= */
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;               /* inherits the root size */
    line-height: 1.5;
    color: #212529;                /* dark enough for AA on light bg */
    background: #fdfdfd;
}

/* ---------------------------------------------------------
   Headings – fluid sizes via clamp()
   --------------------------------------------------------- */
h1 { font-size: clamp(2rem, 6vw, 3rem); }      /* Hero title */
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }   /* Section titles */
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* ---------------------------------------------------------
   Small print / hints
   --------------------------------------------------------- */
.form-hint,
footer { font-size: 0.875rem; }

/* =========================================================
   Utility Classes
   ========================================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   Layout Containers
   ========================================================= */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* =========================================================
   Skip Link (visible on focus only)
   ========================================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffcc00;
    color: #212529;
    padding: .5rem 1rem;
    z-index: 100;
}
.skip-link:focus {
    top: 0;
}

/* =========================================================
   Font‑size Control Bar
   ========================================================= */
.font-controls {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .5rem 1rem;
    background: #f0f4f8;               /* light gray – AA contrast on dark text */
}
.font-controls button {
    background: #fff;
    color: #212529;
    border: 2px solid #003366;
    border-radius: .25rem;
    padding: .25rem .5rem;
    font-size: 1rem;
    cursor: pointer;
}
.font-controls button:focus {
    outline: 3px solid #ffcc00;       /* bright focus ring */
}

/* =========================================================
   Hero Banner
   ========================================================= */
.hero {
    background: #003366;                 /* deep blue – AA contrast on white text */
    color: #fff;
    background-image: url("images/braille-background.png");
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 4rem 1rem;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.hero__title {
    margin: .75rem 0 .5rem;
}
.hero__subtitle {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}
.cta-button {
    display: inline-block;
    background: #ffcc00;                 /* yellow – AA contrast on deep blue */
    color: #212529;
    padding: .75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: .375rem;
    transition: background .2s;
}
.cta-button:hover,
.cta-button:focus {
    background: #e6b800;
    outline: 3px solid #fff;            /* visible focus ring */
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    margin: 3rem 0;
}
.section h2 {
    margin-bottom: .75rem;
    color: #003366;
}


/* ---------------------------------------------------------
   Benefits list
   --------------------------------------------------------- */
.benefits-list {
    list-style: disc inside;
    margin-left: 1rem;
}

/* ---------------------------------------------------------
   Blockquote (Veteran quote)
   --------------------------------------------------------- */
.veteran-quote {
    border-left: .25rem solid #003366;
    padding-left: 1rem;
    font-style: italic;
    color: #444;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* =========================================================
   Pricing Table
   ========================================================= */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.pricing-table caption {
    text-align: left;
    font-weight: bold;
    margin-bottom: .5rem;
}
.pricing-table th,
.pricing-table td {
    border: 1px solid #ddd;
    padding: .75rem;
    text-align: left;
}
.pricing-table th {
    background: #666699;
    color: #fff;
}
.pricing-table tr:nth-child(even) {
    background: #c4c3d0;
}

/* =========================================================
   Form Styling
   ========================================================= */
.audit-form {
    max-width: 560px;
    margin: 0 auto;
}
.audit-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.audit-form legend {
    font-weight: 600;
    margin-bottom: .5rem;
}
.audit-form label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}
.audit-form input,
.audit-form select,
.audit-form textarea {
    width: 100%;
    padding: .5rem;
    border: 1px solid #bbb;
    border-radius: .25rem;
    font: inherit;
}
.audit-form input:focus,
.audit-form select:focus,
.audit-form textarea:focus {
    outline: 3px solid #ffcc00;          /* high‑visibility focus */
    border-color: #ffcc00;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: .875rem;
}

/* =========================================================
   Responsive Tweaks
   ========================================================= */
@media (max-width: 640px) {
    .hero {
        padding: 3rem 1rem;
    }
    .hero__title {
        font-size: 1.75rem;
    }
}

/* =========================================================
   Preference Media Queries (optional)
   ========================================================= */

/* Reduce motion – if you later add animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
}

/* Large‑text preference (Safari/macOS) */
@media (prefers-large-text: true) {
    :root {
        font-size: clamp(1rem, 0.6vw + 0.6rem, 1.5rem);
    }
}