/* ==========================================================================
   Snooze Theme — Main Stylesheet
   CSS Variables + Reset + Typography + Buttons
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-blue:        #001489;
    --color-blue-dark:   #000D5B;
    --color-blue-deep:   #001E8A;
    --color-orange:      #F58433;
    --color-black:       #262626;
    --color-white:       #FFFFFF;
    --color-gray-light:  #F9F9F9;
    --color-gray-mid:    #F3F4F7;
    --color-gray-text:   #606060;
    --color-gray-border: #808080;

    /* Typography */
    --font-primary:      'Poppins', sans-serif;

    /* Font Weights */
    --fw-light:     300;
    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;

    /* Font Sizes */
    --fs-xs:    12px;
    --fs-sm:    14px;
    --fs-base:  16px;
    --fs-md:    18px;
    --fs-lg:    20px;
    --fs-xl:    22px;
    --fs-2xl:   25px;
    --fs-3xl:   30px;
    --fs-4xl:   40px;
    --fs-5xl:   45px;
    --fs-6xl:   55px;

    /* Spacing */
    --space-xs:   5px;
    --space-sm:   10px;
    --space-md:   15px;
    --space-lg:   20px;
    --space-xl:   30px;
    --space-2xl:  45px;
    --space-3xl:  60px;
    --space-4xl:  80px;
    --space-5xl:  120px;

    /* Layout */
    --container-max:  1440px;
    --content-max:    1200px;
    --narrow-max:     747px;
    --section-px:     120px;

    /* Borders & Radius */
    --radius-sm:   5px;
    --radius-md:   10px;
    --radius-lg:   15px;
    --radius-xl:   20px;
    --radius-pill: 56px;
    --border-card: 0.3px solid var(--color-blue);

    /* Shadows */
    --shadow-card:    0px 9px 20px 0px rgba(0, 0, 0, 0.1);
    --shadow-card-lg: 0px 9px 20px 0px rgba(0, 0, 0, 0.1), 0px 148px 59px 0px rgba(0, 0, 0, 0.01);
    --shadow-form:    0px 9px 20px 0px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--color-black);
    line-height: 1.6;
    background-color: var(--color-white);
}

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

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

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.2;
}

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

.content-container {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 25px;
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 25px;
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: var(--radius-sm);
    padding: 15px 25px;
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-outline-white:hover {
    opacity: 0.9;
}

.btn-outline-blue {
    background: transparent;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-outline-blue:hover {
    opacity: 0.9;
}

.btn-white {
    background: var(--color-white);
    color: var(--color-blue);
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 25px;
    font-family: var(--font-primary);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-white:hover {
    opacity: 0.9;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 15px 25px;
    background: var(--color-orange);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    position: fixed;
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only */
.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;
}

/* Responsive — reduce section padding on smaller screens */
@media (max-width: 1279px) {
    :root {
        --section-px: 60px;
    }
}

@media (max-width: 1023px) {
    :root {
        --section-px: 20px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline-white,
    .btn-outline-blue,
    .btn-white {
        justify-content: center;
        text-align: center;
    }
}
