/* ==========================================================================
   Slaidburn Limited - Core Design System & Stylesheet
   ========================================================================== */

/* Self-hosted webfonts. Replaces the Google Fonts CDN import: no visitor IP is
   sent to a third party. Variable fonts, so one file covers every weight used.
   The latin-ext files are only fetched if a page actually contains those glyphs. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS Variables */
:root {
    /* Color Palette */
    --color-primary: #0c3e3a;      /* Deep Slate Teal */
    --color-primary-light: #165b55;/* Lighter Teal for hover states */
    --color-primary-dark: #072522; /* Darker Teal for footers/dark areas */
    --color-secondary: #7b909a;    /* Muted Blue-Grey */
    --color-secondary-light: #9fb0b8; /* Lighter Grey-Blue */
    --color-secondary-dark: #586b74;  /* Darker Grey-Blue */
    
    /* Neutrals */
    --color-bg-main: #ffffff;
    --color-bg-alt: #f4f6f6;       /* Soft grey-teal tint */
    --color-bg-dark: #0a1716;      /* Off-black slate background */
    --color-text-main: #202b2a;    /* High contrast charcoal */
    --color-text-muted: #536462;   /* Soft slate for captions */
    --color-text-light: #ffffff;
    
    /* UI States */
    --color-success: #1b6d5b;
    --color-error: #c0392b;
    --color-border: #e0e6e6;
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(12, 62, 58, 0.04);
    --shadow-md: 0 8px 24px rgba(12, 62, 58, 0.08);
    --shadow-lg: 0 16px 40px rgba(12, 62, 58, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-primary-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--color-secondary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(12, 62, 58, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    height: 70px;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 75vh;
    padding: calc(var(--header-height) + 3rem) 0 3rem 0;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(12, 62, 58, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('slaidburn-logo.png');
    background-repeat: no-repeat;
    background-position: right 8% center;
    background-size: 35%;
    opacity: 0.8; /* Watermark: visible but still behind the hero copy */
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2; /* Sits above the background watermark */
}

/* Brand mark in the header. Present at every breakpoint now the site is
   multi-page: it is the persistent home link on pages that have no hero. */
.logo-header {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
}

.logo-header img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.header.scrolled .logo-header img {
    height: 34px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    /* secondary-dark, not secondary: at 0.9rem this is small text and needs
       4.5:1. The lighter tone only reached 3.1:1 on the alt background. */
    color: var(--color-secondary-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* About / Expertise Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-quote {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    font-weight: 400;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.highlight-item {
    padding: 1rem 0;
}

.highlight-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* h2 is inline-block globally, so an eyebrow span before it would otherwise
   share the same line. Force the stack and centre the underline rule. */
.services-intro .hero-subtitle {
    display: block;
}

.services-intro h2::after {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Home page teaser: icon + title + one-liner only (full descriptions and
   feature lists live on /services/ — no need to repeat them here). Cards are
   real links straight to the matching anchor on that page. */
.services-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.services-grid-compact .service-card {
    padding: 1.75rem 1.5rem;
}

.services-grid-compact .service-desc {
    margin-bottom: 0;
    flex-grow: 0;
}

.service-card {
    background-color: var(--color-bg-main);
    padding: 2.25rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(12, 62, 58, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(12, 62, 58, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: #ffffff;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

/* Sized by class, not by tag: these are h2 on the services listing where they
   are top-level content, and h3 on the home page where they sit under a
   section heading. Both must look identical. */
.service-title {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-title::after {
    display: none;
}

.service-desc {
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-card {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.contact-text-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-text-desc a {
    color: var(--color-text-muted);
}

.contact-text-desc a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-container {
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    padding: 2.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-bg-alt);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(12, 62, 58, 0.08);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 1.25rem 0 0;
}

/* Honeypot — off-screen rather than display:none, which some bots detect and skip */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Form Status Message */
.form-status {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.95rem;
}

.form-status.success {
    display: block;
    background-color: rgba(27, 109, 91, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(27, 109, 91, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-group-title {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-group-title::after {
    display: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5); /* Unified text color */
}

.footer-copyright, .footer-privacy, .footer-legal {
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.footer-copyright {
    text-align: left;
}

.footer-privacy {
    text-align: center;
}

.footer-legal {
    text-align: right;
}

.footer-privacy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.footer-privacy a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Multi-page components
   ========================================================================== */

/* Skip link — first tab stop on every page */
.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 3000;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
    left: 0;
    color: var(--color-text-light);
}

/* Page header — the inner-page counterpart to the home hero */
.page-header {
    background-color: var(--color-bg-alt);
    padding: calc(var(--header-height) + 3.5rem) 0 3rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.12rem;
    max-width: 46rem;
    margin-bottom: 0;
}

/* Credentials */
.credential-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.credential-item {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
}

.credential-mark {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
}

.credential-item p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Long-form prose (privacy notice) */
.prose {
    max-width: 46rem;
}

.prose h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.prose h2::after {
    display: none;
}

.prose ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--color-text-muted);
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Closing call to action */
.cta-band {
    background-color: var(--color-primary-dark);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--color-text-light);
}

.cta-band h2::after {
    margin-left: auto;
    margin-right: auto;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.cta-band .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-text-light);
}

.cta-band .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--color-text-light);
    color: var(--color-text-light);
}

/* Centred action row under a grid */
.section-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* Footer LinkedIn link */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.footer-social:hover {
    color: var(--color-text-light);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .hero::after {
        display: none; /* Hide background watermark to prevent text overlap on mobile */
    }

    .logo-header img {
        height: 34px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    
    .nav.open {
        left: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-copyright, .footer-privacy, .footer-legal {
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Keyboard focus. Inputs are excluded: they already carry a high-contrast
   border and ring on :focus, and a second outline would double up. */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.cta-band a:focus-visible,
.footer a:focus-visible {
    outline-color: var(--color-text-light);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

