/**
 * AAS-FOG — CSS custom properties and base styles.
 *
 * @package AAS_FOG
 */

/* ============================================
   CSS Custom Properties
   ============================================ */

:root {
    /* Colors — Navy palette */
    --navy: #0f2b3c;
    --navy-mid: #163d54;
    --navy-light: #1d5070;

    /* Colors — Accent */
    --accent: #b5541e;
    --accent-hover: #9a4718;
    --accent-soft: #d4784a;

    /* Colors — Neutrals */
    --warm-white: #fcfaf7;
    --sand: #f5f0ea;
    --sand-dark: #ebe4db;
    --charcoal: #1e1e1e;
    --text: #2d2d2d;
    --text-secondary: #5c5c5c;
    --text-muted: #8a8a8a;
    --border: #e0d8cf;
    --border-light: #eee8e0;
    --white: #ffffff;

    /* Colors — Semantic */
    --gold: #c09840;
    --success: #2d7a5f;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito Sans', -apple-system, 'Segoe UI', sans-serif;

    /* Layout */
    --max-w: 1120px;

    /* Border radius */
    --radius: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============================================
   Base styles
   ============================================ */

html {
    font-size: 112.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* ============================================
   Layout utilities
   ============================================ */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Section patterns
   ============================================ */

.section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--sand {
    background: var(--sand);
}

.section--dark {
    background: var(--navy);
    color: #fff;
}

/* ============================================
   Section header
   ============================================ */

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 2.75rem;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section--dark .section-label {
    color: var(--accent-soft);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 0.6rem;
}

.section--dark .section-header h2 {
    color: #fff;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section--dark .section-header p {
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Skip link (accessibility)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 999;
}

.skip-link:focus {
    top: 0;
}
