/* ==========================================================
   SHORESIDE INSPECTIONS — DESIGN TOKENS
   Global custom properties. No selectors beyond :root.
   ========================================================== */

:root {

    /* ------------------------------------------------------
       Brand Colors
       Navy primary · Coastal blue accents · White surfaces
       ------------------------------------------------------ */

    --color-primary: #163D63;
    --color-primary-dark: #0F2E4D;
    --color-primary-light: #2D5D8A;

    --color-accent: #2E84C7;
    --color-accent-hover: #1F6FAE;
    --color-accent-soft: #EDF6FC;
    --color-light-blue: var(--color-accent-soft);

    --color-teal: #56A9B8;

    /* Semantic */

    --color-success: #2F8F5B;
    --color-success-soft: #E8F6EE;
    --color-warning: #C98A12;
    --color-warning-soft: #FFF6E5;
    --color-danger: #C23B37;
    --color-danger-soft: #FCEEEE;

    /* Surfaces */

    --color-white: #FFFFFF;
    --color-off-white: #FAFBFC;
    --color-light: #F4F7FA;

    --color-border: #E4EBF1;
    --color-border-strong: #C9D5E1;

    /* Text — WCAG AA on white */

    --color-text: #27323F;
    --color-text-light: #667587;
    --color-text-muted: #8A97A6;
    --color-heading: #13293F;
    --color-inverse: #FFFFFF;
    --color-inverse-soft: rgba(255, 255, 255, 0.86);
    --color-inverse-muted: rgba(255, 255, 255, 0.72);

    /* Overlay surfaces */

    /* Soft blue overlay — keeps hero type readable over photography */
    --overlay-hero: linear-gradient(
        180deg,
        rgba(22, 61, 99, 0.28) 0%,
        rgba(46, 132, 199, 0.22) 32%,
        rgba(22, 61, 99, 0.48) 62%,
        rgba(15, 46, 77, 0.78) 100%
    );
    --overlay-cta: linear-gradient(
        180deg,
        rgba(15, 46, 77, 0.55) 0%,
        rgba(15, 46, 77, 0.78) 100%
    );
    --surface-coastal: linear-gradient(160deg, #1a4a6e 0%, var(--color-primary) 42%, var(--color-primary-dark) 100%);

    /* Focus ring */

    --color-focus: #2E84C7;
    --focus-ring: 0 0 0 3px rgba(46, 132, 199, 0.35);

    /* ------------------------------------------------------
       Typography
       Manrope · headings · Inter · body
       ------------------------------------------------------ */

    --font-heading: "Manrope", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-md: 1rem;         /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */

    --font-size-h1: clamp(2.25rem, 5.5vw, 3.75rem);
    --font-size-h2: clamp(1.85rem, 4vw, 2.75rem);
    --font-size-h3: clamp(1.35rem, 2.5vw, 1.65rem);
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.15;
    --line-height-snug: 1.35;
    --line-height: 1.7;
    --line-height-relaxed: 1.85;

    --letter-spacing-tight: -0.02em;
    --letter-spacing-wide: 0.04em;
    --letter-spacing-wider: 0.08em;

    /* ------------------------------------------------------
       Spacing Scale
       ------------------------------------------------------ */

    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-7: 3rem;      /* 48px */
    --space-8: 4rem;      /* 64px */
    --space-9: 5rem;      /* 80px */
    --space-10: 7rem;     /* 112px */
    --space-11: 9rem;     /* 144px */

    /* ------------------------------------------------------
       Layout
       ------------------------------------------------------ */

    --container-width: 1280px;
    --container-narrow: 760px;
    --container-wide: 1440px;
    --container-gutter: 1.25rem; /* 20px — mobile */

    --section-padding-y: var(--space-8);
    --header-height: 5.75rem; /* 92px */

    --grid-gap: var(--space-6);
    --grid-gap-sm: var(--space-4);
    --grid-gap-lg: var(--space-8);

    /* ------------------------------------------------------
       Borders & Radii
       ------------------------------------------------------ */

    --border-width: 1px;
    --border-width-thick: 2px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 34px;
    --radius-pill: 999px;

    /* ------------------------------------------------------
       Shadows — soft, professional
       ------------------------------------------------------ */

    --shadow-xs: 0 1px 2px rgba(18, 40, 63, 0.04);
    --shadow-sm: 0 4px 12px rgba(18, 40, 63, 0.06);
    --shadow-md: 0 10px 30px rgba(18, 40, 63, 0.10);
    --shadow-lg: 0 20px 60px rgba(18, 40, 63, 0.15);
    --shadow-hover: 0 28px 80px rgba(18, 40, 63, 0.18);

    /* ------------------------------------------------------
       Motion — subtle only
       ------------------------------------------------------ */

    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    --transition-fast: 0.18s var(--ease-standard);
    --transition: 0.3s var(--ease-standard);
    --transition-slow: 0.45s var(--ease-standard);

    --fade-distance: 1.5rem;
    --fade-duration: 0.7s;

    /* ------------------------------------------------------
       Buttons
       ------------------------------------------------------ */

    --button-height: 3.5rem;          /* 56px */
    --button-height-sm: 2.75rem;      /* 44px — WCAG touch target */
    --button-height-lg: 4rem;         /* 64px */
    --button-padding-x: 2rem;
    --button-padding-x-sm: 1.25rem;
    --button-font-size: var(--font-size-md);
    --button-font-weight: var(--font-weight-semibold);
    --button-radius: var(--radius-md);

    /* ------------------------------------------------------
       Forms
       ------------------------------------------------------ */

    --input-height: 3.5rem;
    --input-padding-x: 1rem;
    --input-padding-y: 0.875rem;
    --input-radius: var(--radius-md);
    --input-border: var(--color-border);
    --input-border-hover: var(--color-border-strong);
    --input-border-focus: var(--color-accent);
    --input-bg: var(--color-white);
    --input-bg-disabled: var(--color-light);
    --input-placeholder: var(--color-text-muted);
    --label-gap: var(--space-2);
    --field-gap: var(--space-5);

    /* ------------------------------------------------------
       Z-Index Scale
       ------------------------------------------------------ */

    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 1000;
    --z-menu: 1100;
    --z-modal: 2000;
    --z-overlay: 3000;
    --z-toast: 4000;

    /* ------------------------------------------------------
       Breakpoints (reference — use in @media directly)
       sm: 480px | md: 768px | lg: 1024px | xl: 1280px
       ------------------------------------------------------ */

    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
}

/* Larger gutters from tablet up */
@media (min-width: 768px) {
    :root {
        --container-gutter: 2rem;
        --section-padding-y: var(--space-10);
    }
}

@media (min-width: 1024px) {
    :root {
        --container-gutter: 2.5rem;
    }
}
