/*
 * Belgrave.io - Styles
 * =====================
 *
 * ACCENT COLOUR TOGGLE
 * --------------------
 * Default: Deep Navy (#1E3A5F)
 * Alternative: Deep Green (#1E5F4A)
 *
 * To switch to green, change the --accent variable below:
 *   --accent: #1E5F4A;
 *   --accent-hover: #174A3A;
 */

/* ================================
   CSS Custom Properties
   ================================ */
:root {
    /* Accent colours - EDIT THESE TO CHANGE THEME */
    --accent: #1E3A5F;          /* Deep navy (default) */
    --accent-hover: #152A45;     /* Darker navy for hover states */
    --accent-light: #2D4A6F;     /* Lighter navy for subtle uses */
    /* --accent: #1E5F4A; */     /* Deep green (alternative) */
    /* --accent-hover: #174A3A; */
    /* --accent-light: #2D6F5A; */

    /* Secondary accent - green */
    --accent-green: #1E5F4A;

    /* Neutral palette */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --grey-100: #F1F3F4;
    --grey-200: #E8EAED;
    --grey-300: #DADCE0;
    --grey-400: #9AA0A6;
    --grey-600: #5F6368;
    --grey-800: #3C4043;
    --grey-900: #202124;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Font sizes - mobile first */
    --text-xs: 0.8125rem;   /* 13px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 2rem;       /* 32px */
    --text-4xl: 2.75rem;    /* 44px */
    --text-5xl: 3.5rem;     /* 56px */
    --text-6xl: 4.5rem;     /* 72px */

    /* Spacing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-2xl: 4rem;    /* 64px */
    --spacing-3xl: 6rem;    /* 96px */

    /* Layout */
    --max-width: 72rem;     /* 1152px */
    --content-width: 48rem; /* 768px - readable width */
    --container-padding: var(--spacing-md);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders & shadows */
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --border-colour: var(--grey-200);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.65;
    color: var(--grey-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.15;
    color: var(--grey-900);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

/* Accent underline for section headings */
h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--grey-600);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-xl);
    line-height: 1.55;
    color: var(--grey-800);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
    text-decoration-color: transparent;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ================================
   Layout
   ================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-content {
    max-width: var(--content-width);
}

/* ================================
   Header
   ================================ */
.site-header {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-colour);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

.wordmark {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--grey-900);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.wordmark:hover {
    color: var(--accent);
}

/* ================================
   Hero
   ================================ */
.hero {
    padding: var(--spacing-3xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    position: relative;
    background: url('assets/pexels-jahoo-388415.jpg');
    background-size: cover;
    background-position: center 40%;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
    color: var(--grey-900);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--grey-700, #5F6368);
    margin-bottom: var(--spacing-lg);
    max-width: 28rem;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: accent-line-grow 1.2s ease-out 0.3s both;
}

@keyframes accent-line-grow {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

/* ================================
   Sections
   ================================ */
.section--accent {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.04) 0%, rgba(30, 95, 74, 0.06) 100%);
}

.section--contact {
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, rgba(30, 95, 74, 0.03) 100%);
    padding-bottom: var(--spacing-3xl);
}

.section--contact h2 {
    display: block;
}

.section--contact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section--contact .section-content {
    margin: 0 auto;
}

.section--contact p {
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
}

/* ================================
   Values Grid
   ================================ */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.value-card {
    padding: var(--spacing-lg);
    background-color: var(--white);
    border: 1px solid var(--border-colour);
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--grey-300);
}

.value-card h3 {
    color: var(--accent);
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ================================
   Button
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--white);
    background-color: var(--accent);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

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

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

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ================================
   Footer
   ================================ */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 3px solid var(--accent-green);
    background: var(--off-white);
}

.site-footer p {
    font-size: var(--text-sm);
    color: var(--grey-400);
    margin-bottom: 0;
}

/* ================================
   Responsive - Tablet (768px+)
   ================================ */
@media (min-width: 48rem) {
    :root {
        --container-padding: var(--spacing-xl);
    }

    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-3xl);
        margin-bottom: var(--spacing-xl);
    }

    h2::after {
        bottom: -12px;
        width: 48px;
        height: 4px;
    }

    .lead {
        font-size: var(--text-2xl);
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: var(--text-6xl);
    }

    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .accent-line {
        width: 80px;
        height: 5px;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }

    .value-card {
        padding: var(--spacing-xl);
    }

    .value-card h3 {
        font-size: var(--text-2xl);
    }

    .section--contact p {
        font-size: var(--text-xl);
    }
}

/* ================================
   Responsive - Desktop (1024px+)
   ================================ */
@media (min-width: 64rem) {
    :root {
        --container-padding: var(--spacing-2xl);
    }

    .hero {
        min-height: 100vh;
    }

    .value-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* ================================
   Responsive - Large Desktop (1280px+)
   ================================ */
@media (min-width: 80rem) {
    .values-grid {
        gap: var(--spacing-xl);
    }

    .value-card {
        padding: var(--spacing-2xl);
    }
}

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

/* Reduced motion */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --grey-600: #333333;
        --border-colour: #333333;
    }

    .value-card {
        border-width: 2px;
    }

    h2::after,
    .accent-line {
        height: 4px;
    }
}

/* Focus visible for keyboard navigation */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip link (add to HTML if needed) */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--accent);
    color: var(--white);
    text-decoration: none;
    z-index: 100;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: var(--spacing-sm);
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .accent-line,
    h2::after {
        display: none;
    }

    .btn {
        border: 1px solid var(--grey-900);
        background: none;
        color: var(--grey-900);
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: var(--text-sm);
    }
}
