/* ============================================================
   VARA RESORT — main.css
   Design system: variables, reset, base typography, layout
   ============================================================ */

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

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colour palette — earth & plant tones */
  --forest:        #1a2e1c;
  --canopy:        #243824;
  --moss:          #3a5636;
  --fern:          #526e4a;
  --bark:          #2c1a0a;
  --earth:         #6b3f1e;
  --clay:          #a86040;
  --sand:          #d2b48c;
  --cream:         #f5ede0;
  --ivory:         #faf6f0;
  --gold:          #c4a05a;
  --gold-light:    #e0c080;
  --mist:          rgba(245, 237, 224, 0.06);

  /* Text colours */
  --text-dark:     #1a2e1c;
  --text-mid:      #3a4a38;
  --text-light:    #f5ede0;
  --text-muted:    rgba(245, 237, 224, 0.6);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Raleway', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  12rem;

  /* Layout */
  --max-width:  1440px;
  --col-gutter: 2rem;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   0.3s;
  --dur-mid:    0.6s;
  --dur-slow:   1s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--ivory);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: var(--font-body);
}

/* ── Base Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 8rem); }
h2 { font-size: clamp(2rem, 5vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 3rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  font-weight: 300;
  max-width: 60ch;
}

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.9;
  max-width: 55ch;
}

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

.container--narrow {
  max-width: 860px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gutter);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.btn--light {
  color: var(--cream);
  border: 1px solid rgba(245, 237, 224, 0.4);
  background: transparent;
}

.btn--light:hover {
  background: rgba(245, 237, 224, 0.1);
  border-color: var(--cream);
}

.btn--dark {
  color: var(--forest);
  border: 1px solid var(--forest);
  background: transparent;
}

.btn--dark:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn--gold {
  color: var(--forest);
  background: var(--gold);
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ── Form Elements ────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  background: transparent;
  border: 1px solid rgba(245, 237, 224, 0.3);
  color: var(--cream);
  outline: none;
  transition: border-color var(--dur-fast) ease;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--gold);
}

.input--dark {
  color: var(--text-dark);
  border-color: rgba(26, 46, 28, 0.3);
}

.input--dark::placeholder {
  color: rgba(26, 46, 28, 0.4);
}

.input--dark:focus {
  border-color: var(--forest);
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-block: var(--space-md);
}

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

/* ── Colour Helpers ───────────────────────────────────────── */
.bg-forest  { background-color: var(--forest); }
.bg-canopy  { background-color: var(--canopy); }
.bg-cream   { background-color: var(--cream); }
.bg-ivory   { background-color: var(--ivory); }

.text-light { color: var(--text-light); }
.text-dark  { color: var(--text-dark); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ── Responsive Breakpoints ──────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --col-gutter: 1.5rem;
    --space-xl: 5rem;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --col-gutter: 1.25rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
