/* ==========================================================================
   DESIGN TOKENS — Discover Sotogrande (visual variant 6, "Marina": marina navy, terracotta and
   ochre façades, fairway green and warm sand; Source Serif 4 and Figtree). The variable names
   are shared with variant 1 (--da-blue is the primary colour,
   --da-terracotta the accent).
   All colour, type, spacing, radius, motion and layout values live here.
   ========================================================================== */

/* Self-hosted fonts (OFL). Latin subset, variable weight. */
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-latin-variable.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-variable.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* ---- Brand palette ------------------------------------------------ */
	--da-blue: #0F2E4A;          /* marina navy — primary (12.6:1 on sand) */
	--da-blue-deep: #0A2136;     /* footer (white on it 16.4:1) */
	--da-blue-mid: #173B5C;      /* raised surfaces on dark */
	--da-terracotta: #A8462A;    /* terracotta façades — accent (white on it 5.9:1, 5.3:1 on sand) */
	--da-terracotta-strong: #8A3920; /* terracotta for text/buttons on light (white on it 7.8:1, 7.1:1 on sand) */
	--da-terracotta-soft: #E0A552;   /* ochre façades — accent on dark backgrounds (6.4:1 on navy) */
	--da-sage: #94A586;          /* sage — rules, fills (decorative only) */
	--da-sage-strong: #2F5A3C;   /* fairway green for text (7.2:1 on sand) */
	--da-sage-tint: #EEF0E7;
	--da-surface: #F8F3EA;       /* warm sand surface */
	--da-surface-deep: #EFE8DB;
	--da-white: #FFFFFF;

	/* ---- Text colours derived from the primary (not pure black) ------- */
	--da-ink: #0F2E4A;           /* headings — 12.6:1 on sand */
	--da-text: #1E2A33;          /* body — 13.3:1 on sand */
	--da-text-muted: #55606A;    /* secondary — 5.8:1 on sand */
	--da-text-on-dark: #FFFFFF;
	--da-text-on-dark-muted: #C7D3DE; /* 9.6:1 on navy */
	--da-rule: #DDD5C6;
	--da-rule-strong: #0F2E4A;
	--da-rule-on-dark: rgba(255, 255, 255, 0.2);
	--da-border-input: #737D86;  /* 4.3:1 on white — WCAG 1.4.11 */

	/* ---- Semantic ----------------------------------------------------- */
	--da-bg: var(--da-surface);
	--da-accent: var(--da-terracotta-strong);
	--da-focus: #A8462A;
	--da-error: #A12B1F;         /* 6.9:1 on white */
	--da-success: #2F5E43;
	--da-verify-bg: #FBE6C2;
	--da-verify-text: #6B3A0C;
	--da-overlay: rgba(10, 33, 54, 0.52); /* flat overlay (the hero uses its own gradient, variant.css) */
	--da-placeholder: #E7DFD0;
	--da-placeholder-dark: #2A4560;

	/* ---- Typography --------------------------------------------------- */
	--da-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--da-font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--da-fs-xs: 0.8125rem;                                  /* 13 */
	--da-fs-sm: 0.9375rem;                                  /* 15 */
	--da-fs-base: 1.0625rem;                                /* 17 */
	--da-fs-md: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--da-fs-lg: clamp(1.3125rem, 1.15rem + 0.7vw, 1.75rem);
	--da-fs-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
	--da-fs-2xl: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
	--da-fs-3xl: clamp(2.5rem, 1.6rem + 4vw, 5.25rem);
	--da-fs-display: clamp(2.75rem, 1.4rem + 6vw, 7rem);

	--da-lh-tight: 1.05;
	--da-lh-heading: 1.15;
	--da-lh-body: 1.65;
	--da-tracking-caps: 0.14em;
	--da-measure: 68ch;           /* max line length for reading */
	--da-measure-narrow: 52ch;

	/* ---- Spacing (4px base) ------------------------------------------- */
	--da-space-1: 0.25rem;
	--da-space-2: 0.5rem;
	--da-space-3: 0.75rem;
	--da-space-4: 1rem;
	--da-space-5: 1.5rem;
	--da-space-6: 2rem;
	--da-space-7: 3rem;
	--da-space-8: 4rem;
	--da-space-9: 6rem;
	--da-space-10: 8rem;
	--da-section-y: clamp(4.5rem, 3rem + 6vw, 9.5rem);
	--da-gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
	--da-grid-gap: clamp(1.25rem, 0.75rem + 2vw, 3rem);

	/* ---- Layout ------------------------------------------------------- */
	--da-container: 1320px;
	--da-header-h: 4.25rem;

	/* ---- Radii (restrained, editorial) -------------------------------- */
	--da-radius-sm: 4px;
	--da-radius: 6px;
	--da-radius-lg: 12px;

	/* ---- Motion ------------------------------------------------------- */
	--da-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--da-dur: 220ms;
	--da-dur-reveal: 800ms;

	/* ---- Elevation ---------------------------------------------------- */
	--da-shadow: 0 1px 2px rgba(15, 46, 74, 0.06), 0 12px 32px rgba(15, 46, 74, 0.08);
}

@media (min-width: 960px) {
	:root {
		--da-header-h: 5rem;
	}
}
