/*
Theme Name: Lythgoe Bourbon
Author: Forcefield Web Development
Author URI: https://forcefieldnc.com
Version: 1.0
Description: Custom theme for Lythgoe Bourbon
*/

/* ── Fonts ── */
@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/red-hat-display-var.woff2') format('woff2');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/red-hat-display-var-italic.woff2') format('woff2');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* ── Brand ── */
:root {
    --maroon: #702A30;
    --maroon-dark: #5A2126;
    --teal: #204D58;
    --teal-dark: #064C58;
    --cream: #F6E8D1;
    --gold: #C7A36E;
    --gold-dark: #9D7D4E;
    --charcoal: #303030;
    --slate: #3F444B;
    --header-h: 100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Base ── */
body {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--charcoal);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 900;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.25rem; }
h3 {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.1em;
    letter-spacing: 0;
    color: #000;
}
h4 { font-size: 1.4rem; }

p + p { margin-top: 1em; }

/* ── Container ── */
.ff-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ── */
.ff-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.ff-btn-primary {
    background: var(--maroon);
    color: #fff;
}

.ff-btn-primary:hover {
    background: var(--maroon-dark);
}

.ff-btn-outline {
    background: transparent;
    border: 2px solid var(--maroon);
    color: var(--maroon);
}

.ff-btn-outline:hover {
    background: var(--maroon);
    color: #fff;
}

.gold-button {
    display: inline-block;
    background: var(--gold);
    color: #141414;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 15px 34px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.gold-button:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gold-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.red-button {
    display: inline-block;
    background: var(--maroon);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 15px 34px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.red-button:hover {
    background: var(--maroon-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.red-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.red-button:focus-visible {
    outline: 2px solid var(--maroon);
    outline-offset: 3px;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0));
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.35s ease;
}

.site-header.is-scrolled .header-container {
    height: 78px;
}

.logo-wrap img {
    width: 225px;
    height: 69px;
    object-fit: contain;
    transition: width 0.35s ease, height 0.35s ease;
}

.site-header.is-scrolled .logo-wrap img {
    width: 150px;
    height: 46px;
}

.site-header.is-scrolled .header-cta {
    font-size: 16px;
    padding: 9px 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    transform: scaleX(1);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-social a {
    color: #fff;
    display: block;
    transition: color 0.25s;
}

.header-social a:hover {
    color: var(--gold);
}

.header-social svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.header-cta {
    background: #fff;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 3px;
    transition: background 0.25s, color 0.25s, font-size 0.35s ease, padding 0.35s ease;
}

.header-cta:hover {
    background: var(--gold);
    color: #fff;
}

/* ── Homepage Hero ── */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: #1c1c1c;
    color: #fff;
    display: flex;
    overflow: hidden;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.35));
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 64px;
}

.home-hero h1 {
    font-size: 47px;
    font-weight: 900;
    line-height: 58px;
    letter-spacing: 0.8px;
    color: #fff;
}

.home-hero a:not(.gold-button) {
    color: var(--gold);
    text-decoration: none;
}

.home-hero a:not(.gold-button):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-hero-left > * + * {
    margin-top: 1.2em;
}

.home-hero-right img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 18px 18px 0;
}

/* ── Page Sections (ACF flex) ── */
.page-section {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
}

.page-section.text-white,
.page-section.text-white h3,
.home-hero h3 {
    color: #fff;
}

.page-section a:not(.gold-button):not(.red-button) {
    color: var(--gold-dark);
    text-decoration: none;
}

.page-section.text-white a:not(.gold-button):not(.red-button) {
    color: var(--gold);
}

.page-section a:not(.gold-button):not(.red-button):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

.section-col > * + * {
    margin-top: 1em;
}

.section-col h2,
.section-col h3 {
    margin-top: 1.4em;
}

.section-col h2:first-child,
.section-col h3:first-child {
    margin-top: 0;
}

/* ── Awards Grid ── */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
}

.awards-grid .award {
    display: block;
}

.awards-grid img {
    width: 100%;
    max-width: 170px;
    height: auto;
}

.awards-grid a {
    transition: transform 0.25s ease;
}

.awards-grid a:hover {
    transform: scale(1.06);
}

/* ── Hamburger / Mobile Drawer ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #0e0e0e;
    z-index: 2000;
    padding: 80px 36px 36px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
}

.drawer-nav a {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.drawer-cta {
    margin-top: 24px;
    background: #fff;
    color: #000;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 3px;
}

.drawer-social {
    margin-top: auto;
    display: flex;
    gap: 22px;
}

.drawer-social a {
    color: #fff;
}

.drawer-social a:hover {
    color: var(--gold);
}

.drawer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Footer ── */
#footer {
    background: #000;
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    padding-bottom: 28px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social a {
    color: #fff;
    display: block;
    transition: color 0.25s;
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

/* ── Skip Link ── */
.ff-skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}
.ff-skip-link:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 15px 23px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}

/* ── Accessibility ── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-container,
    .logo-wrap img,
    .mobile-drawer {
        transition: none;
    }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .nav-right { gap: 24px; }
    .main-nav { gap: 24px; }
    .main-nav a { font-size: 16px; }
}

@media (max-width: 900px) {
    #site-navigation,
    .header-social,
    .header-cta { display: none; }
    .hamburger { display: block; }
    :root { --header-h: 80px; }
    .logo-wrap img { width: 180px; height: 55px; }
    .site-header.is-scrolled .header-container { height: 66px; }
    .site-header.is-scrolled .logo-wrap img { width: 130px; height: 40px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 36px; }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: calc(var(--header-h) + 32px);
        padding-bottom: 48px;
    }

    .home-hero-right img {
        max-width: 110px;
        margin: 0 12px 12px 0;
    }

    .home-hero h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .page-section {
        padding: 56px 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .awards-grid {
        grid-template-columns: repeat(min(var(--cols, 4), 3), 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .logo-wrap img { width: 160px; height: 49px; }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .awards-grid {
        grid-template-columns: repeat(min(var(--cols, 4), 2), 1fr);
    }
}
