@import url('./local-fonts.css');

:root {
  /* Colors from design-reference design system */
  --color-cream: #F0E6D2;
  --color-cream-2: #F7F1E4;
  --color-espresso: #2B2118;
  --color-espresso-70: #4A3C2E;
  --color-safari-green: #3B4A2E;
  --color-safari-green-dark: #2B3621;
  --color-safari-green-light: #566B41;
  --color-gold: #B8860B;
  --color-gold-dark: #97700A;
  --color-gold-light: #D3A73E;
  --color-sand: #D8C9A8;
  --color-sand-dark: #C2AF85;
  --color-rust: #A6431E;
  --color-white: #FFFFFF;
  --color-black: #000000;

  --surface-page: var(--color-cream);
  --surface-card: var(--color-cream-2);
  --surface-sunken: var(--color-sand);
  --surface-inverse: var(--color-espresso);
  --surface-nav: var(--color-safari-green);

  --text-primary: var(--color-espresso);
  --text-secondary: var(--color-espresso-70);
  --text-on-dark: var(--color-cream);
  --text-on-green: var(--color-cream);
  --text-accent: var(--color-gold-dark);
  /* Client-authorized contrast correction (2026-10-19), for small gold text
     on cream only. Keep original gold backgrounds and decoration unchanged. */
  --text-gold-accessible: #856209;
  --text-gold-on-sand: #6D5007;
  --text-link: var(--color-safari-green-dark);
  --text-link-hover: var(--color-gold-dark);

  --border-subtle: var(--color-sand);
  --border-strong: var(--color-sand-dark);
  --border-on-dark: rgba(240, 230, 210, 0.25);

  --btn-primary-bg: var(--color-safari-green);
  --btn-primary-bg-hover: var(--color-safari-green-dark);
  --btn-primary-text: var(--color-cream);

  --btn-secondary-bg: transparent;
  --btn-secondary-border: var(--color-espresso);
  --btn-secondary-text: var(--color-espresso);
  --btn-secondary-bg-hover: var(--color-espresso);
  --btn-secondary-text-hover: var(--color-cream);

  --accent-star: var(--color-gold);
  --accent-divider: var(--color-gold);

  --focus-ring: var(--color-gold);
  --shadow-color: 30, 22, 12;

  /* Typography from design-reference tokens */
  --font-serif-display: "Playfair Display", "Georgia", serif;
  --font-sans-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --text-display-xl: 4rem;
  --text-display-lg: 2.75rem;
  --text-display-md: 2.25rem;
  --text-display-sm: 1.75rem;
  --text-body-lg: 1.4375rem;
  --text-body-md: 1.25rem;
  --text-body-sm: 1.125rem;
  --text-label: 1rem;

  --leading-tight: 1.12;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-wide: 0.14em;
  --tracking-normal: 0;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display-bold: 700;

  /* Spacing, radius, shadows, motion, layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(var(--shadow-color), 0.08);
  --shadow-card: 0 4px 16px rgba(var(--shadow-color), 0.12);
  --shadow-raised: 0 12px 32px rgba(var(--shadow-color), 0.18);
  --shadow-inset-line: inset 0 -2px 0 rgba(var(--shadow-color), 0.08);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;

  --container-max: 1200px;
  --container-pad: var(--space-5);
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans-body);
  background: var(--surface-page);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.app-shell {
  min-height: 100vh;
  background: var(--surface-page);
}

.btn,
.button,
button[type='button'],
button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}

.btn-primary,
.button-primary,
button[type='submit'] {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.button-primary:hover,
button[type='submit']:hover {
  background: var(--btn-primary-bg-hover);
}

.btn-secondary,
.button-secondary {
  background: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
  color: var(--btn-secondary-text);
}

.btn-secondary:hover,
.button-secondary:hover {
  background: var(--btn-secondary-bg-hover);
  border-color: var(--btn-secondary-bg-hover);
  color: var(--btn-secondary-text-hover);
}

.container {
  width: min(var(--container-max), calc(100% - (var(--container-pad) * 2)));
  margin: 0 auto;
}

/* Preserve the reference's warm gold hue; raise small labels from 3.66:1
   to 4.52:1 on cream (4.97:1 on cream-2). Scoped token overrides also cover
   the Guide's original inline declarations without altering their metrics. */
.nav-link,
.about-story-kicker,
.about-team-role,
.about-quote a,
.balloon-eyebrow,
.contact-kicker,
.packages-list .pkg-route,
.guide-page [data-copy="intro_kicker"],
.guide-page [data-copy="editorial_kicker"],
.safari-page .sf-24,
.safari-page .sf-6,
.safari-page .sf-56,
.safari-page .sf-29,
.safari-page .sf-44,
.safari-page .sf-74,
.legal-summary-title {
  --color-gold-dark: var(--text-gold-accessible);
}

.safari-page .sf-34 .sf-44 {
  --color-gold-dark: var(--text-gold-on-sand);
}

/* Original dark-gold hover backgrounds need white text (4.53:1), rather
   than the original espresso (3.48:1). Both colors remain in the source palette. */
.topbar .enquire-link:is(:hover, :focus-visible),
.home-enquire-primary:hover,
.packages-enquire-primary:hover,
.about-enquire-primary:hover,
.guide-enquire-primary:hover,
.gallery-page .enquire-cta a:first-child:hover,
.safari-page [data-safari-hover="h51"]:hover {
  color: var(--color-white) !important;
}
