/* ============================================
   BRADY HOLDINGS - MAIN STYLESHEET
   ============================================ */

/* --------------------------------------------
   CUSTOM FONT
   -------------------------------------------- */

@font-face {
    font-family: 'CustomFont';
    src: url('assets/fonts/custom-font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------
   RESET & BASE
   -------------------------------------------- */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'CustomFont', Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #212529;
    background-color: #f3f5f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.6;
}

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

/* --------------------------------------------
   NAVIGATION
   Mousse: hamburger icon on mobile,
   text links top-right on desktop
   -------------------------------------------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: #212529;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

.nav-links a[aria-current="page"] {
    opacity: 0.45;
}

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #212529;
}

/* --------------------------------------------
   HOME PAGE
   Mousse: full-viewport centred logo.
   SVG placeholder until real logo added.
   -------------------------------------------- */

.home-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.home-logo-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.home-logo-wrap svg {
    width: 100%;
    height: auto;
}

/* --------------------------------------------
   ABOUT PAGE
   Mousse: crest image centred at top,
   single block of body text below,
   max-width ~600px, centred on page.
   -------------------------------------------- */

.about-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 40px 80px;
    min-height: 100vh;
}

.about-crest {
    width: 100%;
    max-width: 160px;
    margin: 0 auto 72px;
}

.about-crest svg {
    width: 100%;
    height: auto;
}

.about-text {
    max-width: 600px;
    width: 100%;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: #212529;
    margin-bottom: 1.6em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: #212529;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-text a:hover {
    opacity: 0.5;
}

/* --------------------------------------------
   CONTACT PAGE
   -------------------------------------------- */

.contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 40px 80px;
    min-height: 100vh;
}

.contact-heading {
    max-width: 600px;
    width: 100%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #212529;
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-form {
    max-width: 600px;
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: 'CustomFont', Georgia, serif;
    font-size: 1rem;
    color: #212529;
    transition: border-color 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #212529;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    padding-top: 12px;
}

.form-submit {
    margin-top: 16px;
    width: 100%;
    padding: 14px 0;
    background: #212529;
    color: #fff;
    border: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit:hover {
    background: #444;
}

.contact-note {
    max-width: 600px;
    width: 100%;
    margin-top: 48px;
    padding: 20px 24px;
    background: #f9f9f9;
    border-left: 2px solid #ccc;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.7;
}

.contact-note strong {
    color: #212529;
}

.contact-note ol {
    margin-top: 8px;
    padding-left: 20px;
}

.contact-note li {
    margin-bottom: 4px;
}

.contact-note a {
    color: #212529;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-note code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    background: #eee;
    padding: 1px 5px;
    border-radius: 2px;
}

/* --------------------------------------------
   PRIVACY PAGE
   -------------------------------------------- */

.privacy-main {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    width: 100%;
}

.privacy-main h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #212529;
}

.privacy-date {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 56px;
}

.privacy-main h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #212529;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.privacy-main h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.privacy-main p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1em;
}

.privacy-main ul, .privacy-main ol {
    margin-bottom: 1em;
    padding-left: 24px;
}

.privacy-main li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.4em;
}

/* --------------------------------------------
   FOOTER
   Mousse: centred, small text, copyright
   + trademark + privacy link. Minimal.
   -------------------------------------------- */

footer {
    margin-top: auto;
    padding: 48px 40px 40px;
    text-align: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto;
}

.footer-copy p {
    margin-bottom: 2px;
}

.footer-copy a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    opacity: 0.5;
}

/* --------------------------------------------
   ACCESSIBILITY
   -------------------------------------------- */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #212529;
    outline-offset: 2px;
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */

@media (max-width: 768px) {
    nav {
        padding: 24px 28px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .home-logo-wrap {
        max-width: 380px;
    }

    .about-main,
    .contact-main {
        padding: 120px 28px 64px;
    }

    .about-crest {
        max-width: 120px;
        margin-bottom: 56px;
    }

    .privacy-main {
        padding: 120px 28px 64px;
    }

    footer {
        padding: 40px 28px 32px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 20px 20px;
    }

    .home-logo-wrap {
        max-width: 280px;
    }

    .about-main,
    .contact-main {
        padding: 100px 20px 56px;
    }

    .about-crest {
        max-width: 100px;
        margin-bottom: 48px;
    }

    .privacy-main {
        padding: 100px 20px 56px;
    }

    footer {
        padding: 36px 20px 28px;
    }
}

/* --------------------------------------------
   PRINT
   -------------------------------------------- */

@media print {
    nav { display: none; }
    body { background: #fff; }
}
