/* ==========================================================================
   The Sharp Edge — Main Stylesheet
   Zorayda Fluid-inspired editorial design
   ========================================================================== */

/* ---------- @font-face: Inter Variable ---------- */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
}

/* ---------- Custom Properties ---------- */
:root {
    --color-white:      #FFFFFF;
    --color-light-grey: #F5F5F5;
    --color-yellow:     #FFCF00;
    --color-slate:      #2F4F4F;
    --color-black:      #000000;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    --container-max: 1200px;
    --content-max:   800px;

    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  32px;
    --space-lg:  64px;
    --space-xl:  96px;
    --space-2xl: 120px;

    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-slate);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-yellow);
    color: var(--color-slate);
    padding: var(--space-xs) var(--space-sm);
    font-weight: 500;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo {
    height: 48px;
    width: auto;
}

/* Desktop nav */
.nav-list {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}
.nav-link {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 950;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-slate);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.hamburger {
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 940;
}
.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-list {
    text-align: center;
}
.mobile-nav-link {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-slate);
    padding: var(--space-sm) 0;
    transition: color 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--color-yellow);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--color-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    width: 100%;
}

.hero-image-col {
    position: relative;
}
.hero-headshot {
    width: 100%;
    border-radius: 4px;
    border-left: 4px solid var(--color-yellow);
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.hero-headline {
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    color: var(--color-black);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-slate);
    max-width: 520px;
}

.btn {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-slate);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    padding: 16px 36px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-align: center;
    letter-spacing: 0.02em;
}
.btn:hover,
.btn:focus {
    background: #e6ba00;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

.hero-cta {
    align-self: flex-start;
}

/* Yellow accent line */
.hero-accent {
    width: 60px;
    height: 4px;
    background: var(--color-yellow);
    border-radius: 2px;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
}
.about-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    text-align: center;
}
.section-label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-slate);
    margin-bottom: var(--space-sm);
}
.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-slate);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--color-light-grey);
}
.contact-inner {
    max-width: 640px;
    margin: 0 auto;
}
.contact-heading {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: var(--space-xs);
    color: var(--color-black);
    text-align: center;
}
.contact-sub {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-slate);
}

.form-group {
    margin-bottom: var(--space-md);
}
.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: var(--space-xs);
    color: var(--color-slate);
}
.form-input,
.form-textarea {
    width: 100%;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: var(--color-white);
    color: var(--color-slate);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.25);
}
.form-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-submit {
    width: 100%;
    font-size: 17px;
    padding: 16px;
}

/* Flash messages */
.flash {
    padding: var(--space-sm) var(--space-md);
    border-radius: 3px;
    margin-bottom: var(--space-md);
    font-size: 15px;
    text-align: center;
}
.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Inline field errors */
.input-error {
    border-color: #c0392b !important;
}
.field-error {
    display: block;
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-xl);
    font-size: 14px;
    line-height: 1.7;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-heading {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}
.footer-nav li + li {
    margin-top: var(--space-xs);
}
.footer-nav a,
.footer-contact a {
    transition: color 0.2s ease;
}
.footer-nav a:hover,
.footer-nav a:focus,
.footer-contact a:hover,
.footer-contact a:focus {
    color: var(--color-yellow);
}

.footer-bottom {
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-page {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
}
.legal-inner {
    max-width: 720px;
    margin: 0 auto;
}
.legal-inner h1 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: var(--space-xs);
    color: var(--color-black);
}
.legal-updated {
    font-size: 14px;
    color: #888;
    margin-bottom: var(--space-lg);
}
.legal-inner h2 {
    font-weight: 700;
    font-size: 22px;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-black);
}
.legal-inner h3 {
    font-weight: 700;
    font-size: 18px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    color: var(--color-black);
}
.legal-inner p {
    margin-bottom: var(--space-sm);
}
.legal-inner ul {
    list-style: disc;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
}
.legal-inner li {
    margin-bottom: var(--space-xs);
}
.legal-inner a {
    color: var(--color-slate);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-inner a:hover {
    color: var(--color-yellow);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 100;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: var(--space-sm);
}
.error-heading {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: var(--space-sm);
    color: var(--color-black);
}
.error-text {
    margin-bottom: var(--space-md);
    color: var(--color-slate);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    :root {
        --space-xl: 64px;
        --space-2xl: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --header-height: 64px;
        --space-xl: 48px;
        --space-2xl: 64px;
    }

    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-lg));
        padding-bottom: var(--space-lg);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image-col {
        order: -1;
    }
    .hero-headshot {
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-text-col {
        align-items: center;
    }
    .hero-cta {
        align-self: center;
    }
    .hero-accent {
        margin: 0 auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
}
