/* ==========================================================================
   Way2Protein — Landing Page Foundation
   Color palette & theme from website_landing_page_plan.md
   ========================================================================== */

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

:root {
    /* Brand palette */
    --color-cyan: #00aeef;           /* Energetic Cyan — primary brand */
    --color-navy: #1a365d;            /* Trust Navy — deep contrast */
    --color-gold: #ffcc00;            /* Protein Gold — action accent */
    --color-charcoal: #1c1c1c;        /* Solid Charcoal — primary typography */
    --color-white: #ffffff;           /* Clean White */
    --color-gray-soft: #f7f9fa;       /* Soft Gray — base & layout */

    /* Section theme aliases (Applying the Theme) */
    --color-header-bg: var(--color-white);
    --color-header-text: var(--color-charcoal);
    --color-hero-bg: var(--color-navy);
    --color-features-bg: var(--color-cyan);
    --color-composition-bg: var(--color-white);
    --color-footer-bg: var(--color-charcoal);

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    --breakpoint-mobile: 768px;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.6;
    --line-height-tight: 1.25;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Transitions */
    --transition-fast: 0.2s ease;
}

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

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--color-charcoal);
    background-color: var(--color-white);
    min-height: 100vh;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Typography scale */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    max-width: 65ch;
}

/* ==========================================================================
   Layout — single-page landing shell
   ========================================================================== */

.landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-page__main {
    flex: 1;
    width: 100%;
}

/* Centered content container (max-width 1200px) */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Full-bleed section wrapper — backgrounds span edge-to-edge */
.section {
    width: 100%;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--container-padding);
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 0 0 4px 4px;
    font-weight: var(--font-weight-semibold);
}

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

/* Text color utilities */
.text-charcoal { color: var(--color-charcoal); }
.text-white { color: var(--color-white); }
.text-cyan { color: var(--color-cyan); }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }

/* Background utilities */
.bg-white { background-color: var(--color-white); }
.bg-gray-soft { background-color: var(--color-gray-soft); }
.bg-navy { background-color: var(--color-navy); }
.bg-cyan { background-color: var(--color-cyan); }
.bg-gold { background-color: var(--color-gold); }
.bg-charcoal { background-color: var(--color-charcoal); }

/* ==========================================================================
   Mobile breakpoint — 768px and below
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
}
