/* ================================
   GREYBACK CLUB — GLOBAL STYLES
   ================================ */

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

/* ─── Tokens ─── */
:root {
  --cream:      #ECEDF1;   /* distinctly cool light grey — no warm/beige */
  --cream-deep: #E0E0E8;   /* medium-light cool grey */
  --black:      #1C1C1E;
  --black-soft: #2C2C2E;
  --gold:       #C4A97D;   /* warm metallic accent — kept intentional */
  --gold-light: #C2C2CC;   /* shifted cooler */
  --muted:      #565659;
  --warm-white: #F2F2F6;   /* cool off-white */
  --sage:       #9090A0;
  --mauve:      #A8A8B8;

  /* Grey palette — Cool, Ash, Warm, Shark tones */
  --moss:        #8090CC;   /* periwinkle blue pop */
  --moss-light:  #EAECF7;   /* very light periwinkle */
  --terra:       #6A6A7A;   /* cool mid-grey (Ash range) */
  --terra-light: #DADAE4;   /* light cool grey */
  --blush:       #9098C0;   /* blue-grey (Shark/Cool range) */
  --blush-light: #ECEEF7;   /* very light blue-grey */

  /* Blue pop — periwinkle/cornflower */
  --slate:       #8090CC;   /* periwinkle — the blue accent */
  --slate-light: #EAECF7;   /* light periwinkle wash */
  --slate-dark:  #4A5898;   /* deep periwinkle for dark sections */

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  --max: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
  --radius: 2px;
}

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

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

body {
  background-color: var(--cream);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }

/* Display headline — Almost 30 style: bold serif at dramatic scale */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Strong serif headline — medium weight for confident section heads */
.headline--strong {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Italic pull quote — Almost 30 uses thin italic serif as the delicate counterpoint */
.pull-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-color: var(--gold-light);
  background: rgba(236, 237, 241, 0.96);
  backdrop-filter: blur(8px);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav__links a:hover { color: var(--black); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--black); }
.nav__links a.active::after { width: 100%; }

.nav__cta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 9px 22px;
  transition: background 0.2s, color 0.2s;
}

.nav__cta:hover {
  background: var(--black);
  color: var(--cream);
}

/* ─── Spacers ─── */
.pt-nav { padding-top: 96px; }

/* ─── Sections ─── */
.section { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.section--tight { padding: clamp(40px, 6vw, 80px) var(--gutter); }
.section--dark { background: var(--black); color: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--moss  { background: var(--moss-light); }
.section--terra { background: var(--terra-light); }
.section--blush { background: var(--blush-light); }
.section--slate { background: var(--slate-light); }
.section--slate-dark { background: var(--slate-dark); color: var(--cream); }

.container { max-width: var(--max); margin: 0 auto; }

/* ─── Divider ─── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

.divider--center { margin: 24px auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 36px;
  transition: all 0.25s;
}

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

.btn--dark:hover {
  background: var(--black-soft);
}

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

.btn--outline:hover {
  background: var(--black);
  color: var(--cream);
}

.btn--outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-light);
}

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

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

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

.btn--moss {
  background: var(--moss);
  color: var(--warm-white);
  border: 1px solid var(--moss);
}
.btn--moss:hover {
  background: #6070B8;
  border-color: #6070B8;
}

.btn--terra {
  background: var(--terra);
  color: var(--warm-white);
  border: 1px solid var(--terra);
}
.btn--terra:hover {
  background: #505060;
  border-color: #505060;
}

/* ─── Form Elements ─── */
.input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-light);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

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

.input--light {
  color: var(--cream);
  border-color: rgba(255,255,255,0.2);
}

.input--light::placeholder { color: rgba(255,255,255,0.4); }
.input--light:focus { border-color: var(--gold); }

/* ─── Footer ─── */
.footer {
  background: var(--black);
  color: var(--cream);
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
}

.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 260px;
}

.footer__heading {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--cream); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}

.footer__social {
  display: flex;
  gap: 24px;
}

.footer__social a {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer__social a:hover { color: var(--cream); }

/* ─── Utilities ─── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.italic { font-style: italic; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ─── Mobile-first overrides ─── */
@media (max-width: 480px) {
  :root { --gutter: 20px; }

  /* Larger tap targets */
  .btn { padding: 16px 28px; font-size: 12px; }
  .nav__cta { padding: 12px 18px; }

  /* Email forms full width */
  .email-form, .reserve-form, .email-join__form {
    flex-direction: column;
  }

  .email-form button,
  .reserve-form button,
  .email-join__form button {
    width: 100%;
    padding: 16px;
    text-align: center;
  }
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.fade-up--delay-1 { animation-delay: 0.1s; }
.fade-up--delay-2 { animation-delay: 0.22s; }
.fade-up--delay-3 { animation-delay: 0.36s; }
.fade-up--delay-4 { animation-delay: 0.5s; }

/* ─── Image Placeholder ─── */
.img-placeholder {
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
