/* ═══════════════════════════════════════════
   CALDER NORTH v4.0 — 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;1,9..40,300&display=swap');

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

:root {
  /* Core palette */
  --bg:           #0D0B09;
  --bg-2:         #111009;
  --bg-3:         #161410;
  --bg-4:         #1C1915;
  --surface:      #201D19;
  --surface-2:    #2A2620;

  /* Text */
  --text:         #EDE8DF;
  --text-2:       #B8B0A4;
  --text-3:       #7A7268;
  --text-4:       #4A4440;

  /* Accent */
  --gold:         #8B6F47;
  --gold-light:   #C4A882;
  --gold-pale:    #3A2E20;

  /* Rules */
  --rule:         rgba(237,232,223,0.08);
  --rule-2:       rgba(237,232,223,0.14);

  /* Typography */
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-h:        68px;
  --page-pad:     clamp(1.5rem, 5vw, 5rem);
  --section-gap:  clamp(4rem, 8vw, 8rem);
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── SELECTION ── */
::selection { background: var(--gold); color: var(--bg); }

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { line-height: 1.85; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  background: rgba(13,11,9,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--rule);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold-light); font-style: italic; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.4rem 1rem;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
  margin-left: 1rem;
  font-family: var(--sans);
}
.nav-cta:hover { background: var(--gold-light); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 1px; background: var(--text); transition: all 0.3s; }

/* mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--gold-light); }
.drawer-close {
  position: absolute;
  top: 1.25rem; right: 1.75rem;
  font-size: 1.5rem;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
}

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); }

/* ── SECTION WRAPPER ── */
.section { padding: var(--section-gap) var(--page-pad); }
.section-sm { padding: clamp(3rem,5vw,5rem) var(--page-pad); }
.container { max-width: 1200px; margin: 0 auto; }

/* ── SECTION LABELS ── */
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.rule-gold {
  width: 40px; height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 400;
  transition: all 0.22s;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 0.5px solid var(--rule-2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  border: 0.5px solid var(--rule);
  font-size: 0.7rem;
}
.btn-ghost:hover { color: var(--text); border-color: var(--rule-2); }

/* ── DIVIDERS ── */
.divider { border: none; border-top: 0.5px solid var(--rule); margin: 0; }

/* ── CARDS ── */
.card {
  background: var(--bg-3);
  border: 0.5px solid var(--rule);
  padding: 2rem 2rem 2.5rem;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--rule-2); background: var(--bg-4); }

/* ── POETRY EXCERPT ── */
.poem-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 2;
  color: var(--text-2);
  font-weight: 300;
}
.poem-text p { margin-bottom: 0.6rem; }

/* ── LYRIC LABEL ── */
.lyric-section {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  display: block;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.lyric-section:first-child { margin-top: 0; }

/* ── NEWSLETTER FORM ── */
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
}
.newsletter-form input {
  flex: 1;
  background: var(--surface);
  border: 0.5px solid var(--rule-2);
  border-right: none;
  padding: 0.75rem 1.1rem;
  font-size: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--text-4); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--gold-light); }

/* ── FOOTER ── */
.footer {
  border-top: 0.5px solid var(--rule);
  padding: clamp(3rem,5vw,5rem) var(--page-pad) 2rem;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand {}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-logo em { font-style: italic; color: var(--gold-light); }
.footer-tagline {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-social:hover { color: var(--gold-light); }

.footer-col-title {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-newsletter-label {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 0.5px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.7rem; color: var(--text-4); }

/* ── FORM STYLES ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  border: 0.5px solid var(--rule-2);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: var(--serif);
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-4); font-style: italic; }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-3); color: var(--text); }
.form-input.error, .form-textarea.error { border-color: #c0614a; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 0.5px solid var(--rule-2);
  color: var(--text-3);
}
.tag-gold {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── PRICE BADGE ── */
.price {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 400;
}
.price-range { font-size: 0.82rem; color: var(--text-3); margin-top: 0.15rem; }

/* ── SUCCESS STATE ── */
.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success.visible { display: block; }
.success-glyph {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1rem;
}
.success-title { font-family: var(--serif); font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }
.success-sub { font-size: 0.85rem; color: var(--text-3); line-height: 1.8; }

/* error banner */
.error-banner {
  display: none;
  background: rgba(192,97,74,0.12);
  border: 0.5px solid #c0614a;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #e08070;
  font-family: var(--serif);
  font-style: italic;
}
.error-banner.visible { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 0.5px solid var(--rule-2); border-bottom: none; }
}
