/* ============================================================
   BASE.CSS — Kings Court Hotel
   Design tokens, resets, typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand Colours */
  --clr-forest:      #1F3A2E;
  --clr-forest-dark: #162A21;
  --clr-forest-mid:  #2A4D3C;
  --clr-forest-light:#3A6B52;
  --clr-cream:       #F5F1E8;
  --clr-cream-dark:  #EDE8DA;
  --clr-cream-light: #FAF8F3;
  --clr-gold:        #C2A45E;
  --clr-gold-light:  #D4B87A;
  --clr-gold-dark:   #A8893F;
  --clr-white:       #FFFFFF;
  --clr-black:       #0D0D0D;
  --clr-text:        #2C2C2C;
  --clr-text-light:  #5A5A5A;
  --clr-text-muted:  #8A8A8A;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Montserrat', 'Helvetica Neue', sans-serif;
  --font-script:  'Great Vibes', cursive;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-xxl:  10rem;

  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
  --shadow-gold: 0 4px 20px rgba(194,164,94,0.25);

  /* Border Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Z-index layers */
  --z-base:     1;
  --z-overlay:  10;
  --z-nav:      100;
  --z-modal:    1000;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-cream-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--clr-forest);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--clr-text-light);
  line-height: 1.8;
}

/* ── Gold Divider ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.gold-divider span {
  color: var(--clr-gold);
  font-size: 1.2rem;
}

/* ── Section Label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ── Script Accent ── */
.script-accent {
  font-family: var(--font-script);
  font-size: 1.6em;
  color: var(--clr-gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ── Focus Styles (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 3px;
}

/* ── Selection ── */
::selection {
  background: var(--clr-gold);
  color: var(--clr-white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-cream-dark); }
::-webkit-scrollbar-thumb {
  background: var(--clr-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-gold-dark); }
