/* ============================================================
   CJ Grande by Sterling Hotels & Resorts — BASE DESIGN SYSTEM
   Tokens · Reset · Typography · Utilities
   ============================================================ */

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

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colors */
  --clr-dark:     #1A1612;
  --clr-dark-80:  rgba(26, 22, 18, 0.80);
  --clr-dark-60:  rgba(26, 22, 18, 0.60);
  --clr-dark-20:  rgba(26, 22, 18, 0.20);
  --clr-gold:     #C9A96E;
  --clr-gold-lt:  #DFC49A;
  --clr-gold-dk:  #A8894E;
  --clr-ivory:    #F5F0E8;
  --clr-cream:    #EDE8DC;
  --clr-white:    #FFFFFF;
  --clr-stone:    #8C8070;
  --clr-stone-lt: #B5AA9C;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Font Sizes — fluid */
  --fs-xs:   clamp(0.65rem,  1.2vw, 0.75rem);
  --fs-sm:   clamp(0.8rem,   1.5vw, 0.875rem);
  --fs-base: clamp(0.9rem,   1.8vw, 1rem);
  --fs-md:   clamp(1rem,     2vw,   1.125rem);
  --fs-lg:   clamp(1.125rem, 2.5vw, 1.375rem);
  --fs-xl:   clamp(1.5rem,   3.5vw, 2rem);
  --fs-2xl:  clamp(2rem,     5vw,   3rem);
  --fs-3xl:  clamp(2.5rem,   6vw,   4rem);
  --fs-4xl:  clamp(3rem,     8vw,   5.5rem);
  --fs-hero: clamp(3.5rem,   9vw,   7rem);

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* Section padding (responsive) */
  --section-py: clamp(60px, 10vw, 120px);

  /* Layout */
  --max-w: 1280px;
  --max-w-text: 760px;
  --gutter: clamp(16px, 3vw, 32px);

  /* Borders & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(26,22,18,0.08);
  --shadow-md: 0 8px 40px rgba(26,22,18,0.12);
  --shadow-lg: 0 24px 80px rgba(26,22,18,0.18);
  --shadow-gold: 0 8px 40px rgba(201,169,110,0.20);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.7s;

  /* Z-index layers */
  --z-base:    1;
  --z-card:   10;
  --z-nav:   100;
  --z-modal: 200;
  --z-toast: 300;
}

/* ── 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-body);
  font-weight: 400;
  font-size: var(--fs-base);
  color: var(--clr-dark);
  background-color: var(--clr-ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol { list-style: none; }

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

h1 { font-size: var(--fs-hero); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl);  letter-spacing: -0.01em; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  font-weight: 300; }
h5 { font-size: var(--fs-lg);  font-family: var(--font-body); font-weight: 500; }
h6 { font-size: var(--fs-md);  font-family: var(--font-body); font-weight: 500; }

p { line-height: 1.8; color: var(--clr-stone); }

strong { font-weight: 500; color: var(--clr-dark); }

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

.container--narrow {
  width: 100%;
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-py);
}

.section--dark { background-color: var(--clr-dark); }
.section--cream { background-color: var(--clr-cream); }
.section--ivory { background-color: var(--clr-ivory); }
.section--white { background-color: var(--clr-white); }

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ── Flex ──────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* ── Text Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-dark  { color: var(--clr-dark); }
.text-gold  { color: var(--clr-gold); }
.text-stone { color: var(--clr-stone); }
.text-white { color: var(--clr-white); }
.text-ivory { color: var(--clr-ivory); }

/* ── Label Tag (spaced uppercase) ──────────────────────────── */
.label-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.label-tag--dark {
  color: var(--clr-stone);
}

/* ── Gold Divider ───────────────────────────────────────────── */
.gold-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--clr-gold);
  margin-block: var(--sp-6);
}

.gold-divider--center { margin-inline: auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease);
}

.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--gold {
  background: var(--clr-gold);
  color: var(--clr-dark);
}
.btn--gold::after { background: var(--clr-gold-dk); }
.btn--gold:hover { color: var(--clr-white); }

.btn--outline-light {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--clr-white);
}
.btn--outline-light::after { background: var(--clr-white); }
.btn--outline-light:hover { color: var(--clr-dark); }

.btn--outline-dark {
  border: 1px solid var(--clr-dark);
  color: var(--clr-dark);
}
.btn--outline-dark::after { background: var(--clr-dark); }
.btn--outline-dark:hover { color: var(--clr-white); }

.btn--dark {
  background: var(--clr-dark);
  color: var(--clr-white);
}
.btn--dark::after { background: var(--clr-gold); }
.btn--dark:hover { color: var(--clr-dark); }

/* Icon inside button */
.btn svg { position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

/* ── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--clr-gold);
  color: var(--clr-dark);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--clr-gold);
  color: var(--clr-gold);
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-16); }
.section-header--center { text-align: center; }
.section-header--center .gold-divider { margin-inline: auto; }

/* ── Aspect Ratios ──────────────────────────────────────────── */
.aspect-landscape { aspect-ratio: 4/3; }
.aspect-portrait  { aspect-ratio: 3/4; }
.aspect-wide      { aspect-ratio: 16/9; }
.aspect-square    { aspect-ratio: 1/1; }
.aspect-hero      { aspect-ratio: 21/9; }

/* ── Object Fit ─────────────────────────────────────────────── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Overflow ───────────────────────────────────────────────── */
.overflow-hidden { overflow: hidden; }

/* ── Visually Hidden (accessibility) ───────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
