/* ==========================================================================
   Cro Cherry — global: fonts, tokens, reset, base typography, layout utilities
   Source of truth: Figma "Cro Cherry" (desktop frames are 1512px wide).

   SCALING MODEL
   Desktop (≥1200px): all desktop sizes are written in rem as Figma px / 16, and the root
   font-size scales with the viewport so the layout is a proportional copy of Figma. The client
   asked for everything 20 % smaller than Figma (2026-10-22), so 1rem = 12.8px at 1512px —
   the 1512 design is shown as if the screen were 1890px wide (like 80 % browser zoom).
   Tablet / mobile (<1200px): fixed 16px root with their own type scale.
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	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: "Lora";
	src: url("../fonts/lora-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora-latin-wght-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	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: "Lora";
	src: url("../fonts/lora-latin-ext-wght-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Nunito Sans";
	src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 1000;
	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: "Nunito Sans";
	src: url("../fonts/nunito-sans-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (Figma variables "Colors" + text styles) ---------- */
:root {
	/* Colors */
	--color-bg: #f7f3e9;              /* Background */
	--color-bg-accent: #efe9da;       /* Accent background */
	--color-cherry: #9e3b33;          /* Cherry — primary CTA, accents */
	--color-olive: #4f553f;
	--color-yellow: #eebe56;
	--color-heading: #3a332e;         /* Typography/Header */
	--color-body: #5a514a;            /* Typography/Body */
	--color-line-strong: #a94d46;
	--color-line-subtle: #b65f57;
	--color-brand-red: #e40613;       /* logo squares only */
	--color-white: #ffffff;

	/* Families */
	--font-serif: "Lora", Georgia, "Times New Roman", serif;
	--font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Type scale — mobile/tablet values; desktop values set in the ≥1200 block below */
	--fs-display: 2.75rem;    /* Hero title (Figma 110) */
	--fs-h1: 2.5rem;          /* Typography/Header (64) */
	--fs-h2: 2.125rem;        /* Typography/Section (56) */
	--fs-quote: 1.5rem;       /* Typography/Quote, Card/Value (40) */
	--fs-h3: 1.375rem;        /* Menu title (30) */
	--fs-lead: 1.25rem;       /* Body/Large (32) */
	--fs-body: 1.0625rem;     /* Body/Regular, Tag, Card/Title (24) */
	--fs-card: 1rem;          /* Card/Body (20) */
	--fs-small: 0.9375rem;    /* Body/Link (18) */
	--fs-xs: 0.8125rem;

	--lh-tight: 1.15;
	--lh-heading: 1.32;
	--lh-body: 1.42;

	/* Spacing (Figma uses 8-based steps) */
	--space-2xs: 0.25rem;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--space-2xl: 5rem;
	--space-3xl: 7.5rem;

	/* Layout */
	--gutter: 1rem;                 /* Figma desktop: 40px side padding */
	--container-max: 100%;
	--radius-sm: 0.5rem;
	--radius-md: 0.9375rem;         /* cards / dropdown tiles (15) */
	--radius-pill: 100rem;

	--header-height: 4.5rem;
	--transition: 200ms ease;
	--z-header: 100;
	--z-overlay: 200;
	--z-drawer: 300;
}

@media (min-width: 768px) {
	:root {
		--fs-display: 4rem;
		--fs-h1: 3rem;
		--fs-h2: 2.5rem;
		--fs-quote: 1.875rem;
		--fs-lead: 1.375rem;
		--fs-body: 1.125rem;
		--gutter: 2rem;
	}
}

/* Desktop: Figma at 80 % (1rem = 12.8px @1512, ~10.2px @1200). Large desktops grow only gently
   (+0.8px per 250px: ~14.1px @1920, ~16.1px @2560) and keep the content in a centred column;
   full-bleed photos and bands still span the screen. */
@media (min-width: 1200px) {
	html {
		font-size: min(calc(100vw / 118.125), calc(12.8px + (100vw - 1512px) / 312.5));
	}

	:root {
		--fs-display: 6.875rem;   /* 110 */
		--fs-h1: 4rem;            /* 64 */
		--fs-h2: 3.5rem;          /* 56 */
		--fs-quote: 2.5rem;       /* 40 */
		--fs-h3: 1.875rem;        /* 30 */
		--fs-lead: 2rem;          /* 32 */
		--fs-body: max(1.5rem, 15px);     /* 24; floors keep small text readable at the 80 % scale */
		--fs-card: max(1.25rem, 14px);    /* 20 */
		--fs-small: max(1.125rem, 13px);  /* 18 */
		--fs-xs: max(0.875rem, 12px);     /* 14 */
		--gutter: 2.5rem;         /* 40 */
		--header-height: 8.25rem; /* 132 */
		--container-max: 118.125rem; /* 1512 / 0.8: the column fills a 1512 screen at the 80 % scale */
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-body);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.is-locked {
	overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol {
	margin: 0;
}

:where(ul[role="list"], ol[role="list"]) {
	list-style: none;
	padding: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

button {
	cursor: pointer;
}

.icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: middle;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
.text-display,
.text-h1,
.text-h2,
.text-h3,
.text-quote {
	color: var(--color-heading);
	font-family: var(--font-serif);
	font-weight: 400;
}

.text-display { font-size: var(--fs-display); line-height: var(--lh-tight); }
.text-h1,
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.text-h2,
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
.text-h3,
h3 { font-size: var(--fs-h3); line-height: 1.28; }
.text-quote { font-size: var(--fs-quote); line-height: var(--lh-body); }
.text-lead { font-size: var(--fs-lead); line-height: var(--lh-body); }
.text-small { font-size: var(--fs-small); }

/* Typography/Tag — Lora Medium, uppercase */
.text-tag {
	font-family: var(--font-serif);
	font-size: var(--fs-body);
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: var(--lh-heading);
	text-transform: uppercase;
}

/* "Lower Section Title" — Lora Medium Italic, cherry subtitle under section titles */
.text-subtitle {
	color: var(--color-cherry);
	font-family: var(--font-serif);
	font-size: var(--fs-body);
	font-style: italic;
	font-weight: 500;
	line-height: var(--lh-heading);
}

.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--space-2xl);
}

.bg-accent { background: var(--color-bg-accent); }
.bg-cherry { background: var(--color-cherry); color: var(--color-bg); }

/* ---------- Accessibility ---------- */
.screen-reader-text,
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip: auto;
	background: var(--color-heading);
	color: var(--color-bg);
	border-radius: var(--radius-pill);
}

:focus-visible {
	outline: 2px solid var(--color-cherry);
	outline-offset: 3px;
}

/* Focus ring on dark backgrounds (photos, cherry band): light instead of cherry. */
.site-header--transparent:not(.is-solid) :focus-visible,
.cta-banner :focus-visible,
.quote-band--cherry :focus-visible,
.hero-home :focus-visible,
.page-hero :focus-visible,
.brand-card:focus-visible,
.visit-card:focus-visible {
	outline-color: var(--color-bg);
}
