/* =========================================================
   Hristi Accommodation — Colors & Type
   Source of truth: colors derived from villa-hristi-web/src/styles.scss
   Lake Ohrid palette: water blue, terracotta stone, golden
   sunset, warm ivory. Fraunces serif display + Inter body.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ---- Primary palette ---- */
  --c-ohrid-azure:      #4A90B8;  /* Lake water */
  --c-stone-linen:      #E8E0D0;  /* Old stone */
  --c-terracotta-ember: #C4643A;  /* Rooftop clay */

  /* ---- Secondary palette ---- */
  --c-alpine-green:     #5A7A52;  /* Hillside pines */
  --c-driftwood-tan:    #B8956A;  /* Weathered wood */
  --c-aegean-mist:      #A8C8D8;  /* Morning haze */
  --c-warm-ivory:       #F5F0E8;  /* Linen cream */

  /* ---- Accent palette ---- */
  --c-golden-amber:     #D4945A;  /* Late-afternoon sun */
  --c-midnight-blue:    #1A2E42;  /* Lake at night */
  --c-sage-mist:        #9CAF88;  /* Garden leaves */
  --c-sunset-orange:    #F58A1F;  /* Signature sunset */

  /* ---- Neutrals ---- */
  --c-white:    #FFFFFF;
  --c-peach:    #FFF4E8;  /* bg-alt */
  --c-ink-60:   #5a5347;
  --c-ink-12:   rgba(26, 46, 66, 0.12);
  --c-ink-06:   rgba(26, 46, 66, 0.06);

  /* ---- Semantic surface + foreground ---- */
  --bg:          var(--c-white);
  --bg-alt:      var(--c-peach);
  --bg-inverse:  var(--c-midnight-blue);
  --bg-card:     var(--c-warm-ivory);

  /* Section surfaces — ONE calm warm-paper base for all light sections.
     Structure comes from typography, cards and whitespace, not colour blocks.
     The only deliberate colour shifts are Reviews (dusk) and Booking (midnight). */
  --surface-paper:  #FAF7F1;  /* main warm-paper base */
  --surface-paper2: #F4EDE0;  /* a touch warmer — gentle alternation only */
  --surface-dusk:   #E9D3B5;  /* Reviews — golden dusk (the warm colour moment) */

  --fg1:         var(--c-midnight-blue);        /* headings, strong body */
  --fg2:         var(--c-ink-60);               /* secondary / muted */
  --fg-inverse:  var(--c-warm-ivory);
  --fg-muted-inverse: rgba(245, 240, 232, 0.72);

  --accent:      var(--c-golden-amber);
  --accent-soft: rgba(212, 148, 90, 0.14);
  --link:        var(--c-ohrid-azure);
  --border:      rgba(26, 46, 66, 0.12);
  --border-soft: rgba(26, 46, 66, 0.06);

  /* ---- Typography ---- */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  /* Type scale (fluid) */
  --fs-display: clamp(2.75rem, 6vw, 4.5rem);   /* h1 / hero */
  --fs-h1:      clamp(2.25rem, 5vw, 3.25rem);
  --fs-h2:      clamp(1.75rem, 4vw, 2.75rem);
  --fs-h3:      clamp(1.25rem, 2.5vw, 1.5rem);
  --fs-lead:    1.125rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;  /* eyebrow / label */

  /* Line heights */
  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-body:   1.6;

  /* Letter spacing */
  --ls-tight:  -0.015em;
  --ls-normal: 0;
  --ls-wide:   0.08em;
  --ls-eyebrow: 0.12em;

  /* ---- Spacing scale (4pt) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-pad-y:    clamp(3rem, 8vw, 6rem);
  --container-pad-x:  clamp(1rem, 4vw, 2rem);

  /* ---- Radii ---- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---- Elevation (soft, layered) ---- */
  --shadow-xs: 0 1px 2px rgba(26, 46, 66, 0.05);
  --shadow-sm: 0 2px 6px rgba(26, 46, 66, 0.06), 0 1px 2px rgba(26, 46, 66, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 46, 66, 0.08), 0 2px 4px rgba(26, 46, 66, 0.04);
  --shadow-lg: 0 18px 48px rgba(26, 46, 66, 0.12), 0 4px 8px rgba(26, 46, 66, 0.05);
  --shadow-xl: 0 28px 70px rgba(26, 46, 66, 0.18), 0 6px 12px rgba(26, 46, 66, 0.06);
  --shadow-accent: 0 10px 28px rgba(212, 148, 90, 0.30);

  /* ---- Focus ring (keyboard accessibility) ---- */
  --focus-ring-color:  var(--c-terracotta-ember);
  --focus-ring-width:  2px;
  --focus-ring-offset: 2px;

  /* ---- Motion ---- */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);   /* hero-like, decelerating */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-xs: 0.15s;
  --dur-sm: 0.25s;
  --dur-md: 0.35s;
  --dur-lg: 0.6s;
  --dur-xl: 0.9s;

  /* ---- Signature gradients ---- */
  --grad-sunset: linear-gradient(180deg, #F58A1F 0%, #D4945A 60%, #C4643A 100%);
  --grad-lake:   linear-gradient(180deg, #A8C8D8 0%, #4A90B8 60%, #1A2E42 100%);
  --grad-dusk:   linear-gradient(180deg, #1A2E42 0%, #C4643A 70%, #F58A1F 100%);
  --grad-overlay-bottom: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
}

/* =========================================================
   Element defaults
   ========================================================= */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--fg1);
  background: var(--bg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
  color: var(--fg1);
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p  { margin: 0 0 var(--space-4); text-wrap: pretty; }

a  { color: var(--link); text-decoration: none; transition: opacity var(--dur-sm) ease; }
a:hover { opacity: 0.7; }

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

/* Keyboard focus — visible ring for keyboard users only (not on mouse click).
   Applies site-wide to links, buttons, inputs, and custom controls.
   The outline follows each element's own border-radius automatically. */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
/* Suppress the legacy default outline only where focus-visible takes over. */
:focus:not(:focus-visible) { outline: none; }

/* Eyebrow / micro label pattern (used across site) */
.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg2);
}
