@charset "utf-8";
/* ==========================================================================
   BMH Accounting — Brendon M. Houston CPA
   Accessible, responsive stylesheet (WCAG 2.1 AA).
   Colour palette preserved from the original brand:
     cream #f4f0dc · dark brown #302006 / #4a3411 · maroon #8a1029 · gold #efb211
   ========================================================================== */

/* ---- Web font (preserved from original site) ------------------------------ */
@font-face {
    font-family: 'HelveticaNeueLightCond';
    src: url('../fonts/hllc____-webfont.woff') format('woff'),
         url('../fonts/hllc____-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background-color: #e9e3c8;
    color: #302006;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;          /* 16px, scalable */
    line-height: 1.6;
}

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

a { color: #8a1029; }
a:hover, a:focus { color: #5e0b1c; }

/* Visible focus indicator for every interactive element (WCAG 2.4.7) */
:focus-visible { outline: 3px solid #1a1206; outline-offset: 2px; }

/* ---- Skip link (WCAG 2.4.1 Bypass Blocks) ---------------------------------
   Kept permanently visible (not hidden-until-focus) so it is unambiguously
   perceivable and has a detectable visible focus indicator (WCAG 2.4.7). */
.skip-link {
    display: block;
    padding: 0.5rem 1rem;
    background: #2a1d05;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: underline;
}
.skip-link:hover,
.skip-link:focus { color: #efb211; }
.skip-link:focus {
    outline: 3px solid #efb211;
    outline-offset: -3px;
}

/* ---- Layout container ----------------------------------------------------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ---- Site header / primary navigation ------------------------------------- */
.site-header { background-color: #4a3411; color: #fff; }

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

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
    color: #fff;
}
.brand:hover, .brand:focus { color: #fff; }
.brand-name {
    font-family: 'HelveticaNeueLightCond', Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 0.04em;
}
.brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.primary-nav a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-radius: 3px;
}
.primary-nav a:hover,
.primary-nav a:focus { background-color: #6b4e1d; color: #fff; text-decoration: underline; }
.primary-nav a[aria-current="page"] {
    background-color: #efb211;
    color: #302006;
    font-weight: bold;
}

/* ---- Decorative banner ---------------------------------------------------- */
.banner { display: block; width: 100%; max-height: 300px; overflow: hidden; }
.banner img { display: block; width: 100%; }

/* ---- Main content --------------------------------------------------------- */
main { display: block; }

.content {
    background-color: #f4f0dc;
    padding: 2rem 0 2.5rem;
}
.content .container { max-width: 1000px; }

h1 {
    font-family: 'HelveticaNeueLightCond', Arial, sans-serif;
    font-size: 2rem;
    color: #4a3411;
    margin: 0 0 1rem;
}
h2 {
    font-family: 'HelveticaNeueLightCond', Arial, sans-serif;
    font-size: 1.4rem;
    color: #4a3411;
    margin: 1.6rem 0 0.6rem;
}
h3 { font-size: 1.05rem; color: #4a3411; margin: 1.2rem 0 0.4rem; }

p { margin: 0 0 1rem; }

main ul, main ol { margin: 0 0 1rem 1.5rem; }
main li { margin-bottom: 0.35rem; }

/* Links inside running text are underlined so colour is not the only cue
   (WCAG 1.4.1 Use of Colour) */
.content a { text-decoration: underline; }
.content a:hover, .content a:focus { text-decoration: none; }

/* Intro block with portrait (home + about) */
.intro { overflow: hidden; }
.intro .portrait {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 160px;
}

/* Pull quote / testimonial */
.pullquote {
    border-left: 4px solid #8a1029;
    margin: 0 0 1.5rem;
    padding: 0.5rem 0 0.5rem 1.25rem;
    color: #4a3411;
    font-style: italic;
}
.pullquote cite { display: block; font-style: normal; font-weight: bold; margin-top: 0.5rem; }

/* Card grid (home info boxes) */
.cards {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.card {
    background-color: #fffdf3;
    border: 1px solid #d8cfa6;
    border-radius: 6px;
    padding: 1.25rem;
}
.card h2 { margin-top: 0; }
.card :last-child { margin-bottom: 0; }

/* Contact / map two-column area */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr);
    gap: 2rem;
    align-items: start;
}
.map-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #d8cfa6;
}

/* External-link indicator (purely visual hint; the screen-reader text is in markup) */
a[target="_blank"] .ext { font-size: 0.75em; }

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
    background-color: #3a2908;
    color: #f4f0dc;
    padding: 2rem 0 1.5rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.footer-cols h2 {
    color: #efb211;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 0.35rem; font-size: 0.9rem; }
.footer-cols a { color: #fff; text-decoration: underline; }
.footer-cols a:hover, .footer-cols a:focus { color: #efb211; text-decoration: none; }
.site-footer :focus-visible { outline-color: #efb211; }

.colophon {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #5c4516;
    font-size: 0.8rem;
    color: #d8cca6;
}
.colophon a { color: #fff; }

/* ---- Utilities ------------------------------------------------------------ */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}

/* ---- Responsive tweaks ---------------------------------------------------- */
@media (max-width: 700px) {
    .header-inner { flex-direction: column; align-items: center; text-align: center; }
    .primary-nav ul { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .intro .portrait { float: none; display: block; margin: 0 auto 1rem; }
    h1 { font-size: 1.7rem; }
}
