/* ════════════════════════════════
   EASYACRES — DESIGN TOKENS & RESET
   Load FIRST on every page
════════════════════════════════ */

/* This site has no dark theme — without this, some browsers apply their
   own dark-mode form-control styling on a device set to dark mode
   (dark input background, and sometimes text that stays too light to
   read against the site's own light backgrounds), overriding the
   explicit light colors set below. */
:root {
    color-scheme: light;
}

/* ── Design Tokens ───────────────── */
:root {
    /* ── Brand Colors ── */
    --navy: #0A1A2F;
    /* Primary — logo, headings, nav, hero, brand identity */
    --ocean: #0F2C45;
    /* Secondary — section backgrounds, cards, banners, overlays */
    --steel: #2F4A67;
    /* Accent — icons, highlights, links, hover states */
    --ivory: #E6EAEB;
    /* Background — main page background */
    --surface: #CBCDD1;
    /* Surface — cards, dividers, input fields, borders */
    --graphite: #5E6B78;
    /* Text — body, paragraphs, captions */
    --white: #FFFFFF;

    /* ── Typography ── */
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Inter", sans-serif;

    /* ── Font Sizes (grounded in sizes already used sitewide) ── */
    --text-xxs: 10px;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 17px;
    --text-lg: 19px;
    --text-xl: 24px;
    --text-2xl: 36px;
    --text-3xl: clamp(28px, 3.4vw, 36px);
    --text-hero: clamp(36px, 4.6vw, 56px);

    /* ── Font Weights ── */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semi: 600;
    --fw-bold: 700;

    /* ── Line Heights ── */
    --lh-tight: 1.15;
    --lh-normal: 1.6;

    /* ── Letter Spacing ── */
    --ls-normal: 0;
    --ls-wide: 0.04em;
    --ls-wider: 0.06em;
    --ls-widest: 0.16em;

    /* ── Spacing ── */
    --space-xs: 8px;
    --space-sm: 14px;
    --space-md: 22px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 70px;
    --space-3xl: 100px;

    /* ── Layout ── */
    --container: 1200px;

    /* ── Radii ── */
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-full: 999px;

    /* ── Shadows ── */
    --shadow-sm: 0 12px 30px rgba(10, 26, 47, 0.08);
    --shadow-md: 0 24px 50px rgba(10, 26, 47, 0.2);

    /* ── Transitions ── */
    --ease: ease;
    --duration-fast: 0.2s;
    --duration-base: 0.25s;
    --duration-slow: 0.7s;
    --transition: all 0.25s ease;

    /* ── Z-Index Scale ── */
    --z-header: 50;
    --z-fab: 70;
}

/* ── Box Model & Base ───────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: var(--font-body);
    background: var(--ivory);
    color: var(--graphite);
    overflow-x: hidden;
}

/* ─── TYPOGRAPHY RESET ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--navy);
    line-height: 1.25;
    font-weight: bold;
}

h4 {
    font-family: var(--font-body);
}

p,
blockquote,
figure {
    margin: 0;
}

/* ─── LIST RESET ─── */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ─── LINK RESET ─── */
a {
    color: inherit;
    text-decoration: none;
}

/* ─── MEDIA RESET ─── */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* ─── FORM RESET ─── */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ─── TABLE RESET ─── */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ─── MISC RESET ─── */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

address {
    font-style: normal;
}

hr {
    border: none;
    border-top: 1px solid currentColor;
    margin: 0;
}

/* ─── SCROLLBAR (WebKit) ─── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--ivory);
}

::-webkit-scrollbar-thumb {
    background: var(--steel);
    border-radius: 2px;
}

/* ─── SELECTION ─── */
::selection {
    background: var(--navy);
    color: var(--white);
}

/* ─── OVERFLOW ─── */
html,
body {
    overflow-x: hidden;
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 3px;
}

/* ─── HIDDEN UTILITY ─── */
[hidden] {
    display: none !important;
}