/*
Theme Name: Curator Cask
Theme URI: https://curatorcask.com
Author: Curator Cask
Description: The Curator Cask Program — a luxury whiskey cask ownership experience.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curator-cask
*/

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

:root {
  --vault: #0D0B09;
  --barrel: #1A0F06;
  --oak: #3D1E0A;
  --gold: #C4973E;
  --gold-light: #E2C07A;
  --gold-dim: #8A6428;
  --parch: #F0E4CC;
  --smoke: #A89880;
  --smoke-light: #C4B09A;
  --rule: rgba(196,151,62,0.18);
  --rule-dark: rgba(42,30,18,0.8);
}

html { scroll-behavior: smooth; }

body {
  background: var(--vault);
  color: var(--smoke);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: linear-gradient(to bottom, rgba(13,11,9,0.95) 0%, transparent 100%);
}
.nav-mark {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
}
.nav-cta {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.nav-cta:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px 80px;
  position: relative;
}
/* Hero background image — real img tag for LCP, positioned as background */
.hero-bg-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}
.hero > *:not(.hero-bg-img) {
  position: relative;
  z-index: 2;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,11,9,0.72) 0%,
    rgba(13,11,9,0.55) 40%,
    rgba(13,11,9,0.72) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 28px;
}
.hero-crest {
  width: 160px;
  height: auto;
  margin-bottom: 36px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.hero-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 0.95;
  margin-bottom: 36px;
}
.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  margin: 0 auto 36px;
}
.hero-tagline {
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  color: var(--parch);
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 64px;
}
.line2 {
  position: relative;
  display: inline-block;
}
.hero-tm {
  position: absolute;
  top: 15%;
  right: -0.4em;
  font-size: 0.18em;
  font-style: normal;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
  line-height: 1;
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  animation: nudge 2.8s ease-in-out infinite;
}
.hero-scroll span {
  font-family: 'Playfair Display', serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(8px); opacity: 0.6; }
}

/* SECTIONS */
section {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
section.full { max-width: none; padding: 100px 0; }

.sec-label {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.divider {
  border: none;
  border-top: 0.5px solid var(--rule-dark);
  margin: 0;
}

/* DECLARATION */
.declaration {
  text-align: center;
  padding: 110px 60px;
  max-width: 820px;
  margin: 0 auto;
}
.declaration-text {
  font-size: clamp(20px, 2.6vw, 30px);
  font-style: italic;
  color: var(--parch);
  opacity: 0.92;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.declaration-text-line2 {
  display: block;
  margin-top: 8px;
}
.declaration-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 28px auto;
}
.declaration-philosophy {
  font-size: clamp(20px, 2.6vw, 30px);
  font-style: italic;
  color: var(--gold-light);
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 28px;
}
.declaration-sub {
  font-size: 16px;
  color: var(--smoke);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* THREE MOMENTS */
.moments {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 0.5px solid var(--rule-dark);
  border-bottom: 0.5px solid var(--rule-dark);
}
.moment {
  padding: 52px 48px;
  border-right: 0.5px solid var(--rule-dark);
}
.moment:last-child { border-right: none; }
.moment-num {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 20px;
}
.moment-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
  line-height: 1.2;
}
.moment-body {
  font-size: 15.5px;
  color: var(--smoke);
  line-height: 1.7;
}
.moment-body em { color: var(--smoke-light); font-style: normal; }

/* SPIRIT */
.spirit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.spirit-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: 24px;
}
.spirit-body {
  font-size: 17px;
  color: var(--smoke);
  line-height: 1.75;
  margin-bottom: 20px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule-dark);
}
.spec-row:first-child { border-top: 0.5px solid var(--rule-dark); }
.spec-label {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  font-size: 15px;
  color: var(--parch);
  opacity: 0.95;
}

/* RELATIONSHIP */
.relation-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.relation-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  position: sticky;
  top: 100px;
}
.relation-items { display: flex; flex-direction: column; gap: 40px; }
.relation-item {
  padding-left: 24px;
  border-left: 1px solid var(--gold-dim);
}
.ri-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--parch);
  opacity: 0.95;
  margin-bottom: 8px;
}
.ri-body { font-size: 15.5px; color: var(--smoke); line-height: 1.7; }

/* VISIT CTA */
.visit-section {
  background: var(--barrel);
  padding: 110px 60px;
  text-align: center;
  border-top: 0.5px solid var(--rule-dark);
}
.visit-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: 16px;
}
.visit-location {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 20px;
}
.visit-sub {
  font-size: 18px;
  font-style: italic;
  color: var(--smoke);
  margin-bottom: 56px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.visit-form {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label {
  font-family: 'Playfair Display', serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(196,151,62,0.25);
  border-radius: 3px;
  padding: 12px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--parch);
  outline: none;
  transition: border-color 0.3s;
}
.field-input::placeholder { color: var(--smoke); opacity: 0.5; }
.field-input:focus { border-color: rgba(196,151,62,0.6); }
textarea.field-input { resize: vertical; min-height: 100px; }
.submit-btn {
  width: 100%;
  background: transparent;
  border: 0.5px solid var(--gold-dim);
  border-radius: 3px;
  padding: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s, border-color 0.3s;
}
.submit-btn:hover { background: rgba(196,151,62,0.08); border-color: var(--gold); }
.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--smoke);
  opacity: 0.6;
  margin-top: 16px;
  font-style: italic;
}

/* FOOTER */
footer {
  background: #0A0806;
  padding: 36px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--rule-dark);
}
.foot-mark {
  display: none;
}
.foot-copy {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--parch);
  opacity: 0.75;
}
.foot-note {
  font-size: 12px;
  color: var(--parch);
  opacity: 0.75;
}

/* HERO CONTENT FADE IN */
.hero-eyebrow,
.sa-wrap,
.hero-fade {
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.3s forwards;
}

/* Wordmark visible immediately for LCP — no animation */
.hero-wordmark {
  opacity: 1 !important;
  animation: none !important;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wpforms-container,
.wpforms-container .wpforms-form,
.wpforms-container .wpforms-field-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.wpforms-field-label,
.wpforms-field-label-inline,
.wpforms-field-sublabel,
.wpforms-field-description,
.wpforms-field span,
.wpforms-field p,
.wpforms-field label {
  font-family: 'Playfair Display', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--gold-light) !important;
  opacity: 1 !important;
  margin-bottom: 6px !important;
}
.wpforms-field-sublabel {
  font-size: 10px !important;
  color: var(--smoke-light) !important;
  text-transform: none !important;
  letter-spacing: 0.06em !important;
  opacity: 1 !important;
}
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  width: 100% !important;
  background: rgba(255,255,255,0.06) !important;
  border: 0.5px solid rgba(196,151,62,0.35) !important;
  border-radius: 3px !important;
  padding: 12px 16px !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  color: var(--parch) !important;
  outline: none !important;
  transition: border-color 0.3s !important;
  box-shadow: none !important;
  -webkit-text-fill-color: var(--parch) !important;
}
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
  color: var(--smoke-light) !important;
  opacity: 0.7 !important;
}
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: rgba(196,151,62,0.7) !important;
}
.wpforms-field textarea { min-height: 100px !important; resize: vertical !important; }
.wpforms-submit-container { text-align: center !important; }
.wpforms-submit {
  width: 100% !important;
  background: transparent !important;
  border: 0.5px solid var(--gold-dim) !important;
  border-radius: 3px !important;
  padding: 16px !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 11px !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: var(--gold-light) !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  transition: background 0.3s, border-color 0.3s !important;
}
.wpforms-submit:hover {
  background: rgba(196,151,62,0.08) !important;
  border-color: var(--gold) !important;
}
.wpforms-confirmation-container-full,
.wpforms-confirmation-container-full p {
  background: transparent !important;
  border: 0.5px solid var(--gold-dim) !important;
  border-radius: 3px !important;
  color: var(--gold-light) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  text-align: center !important;
  padding: 24px !important;
}
.wpforms-error-container,
.wpforms-field .wpforms-error {
  color: #e07070 !important;
  font-size: 12px !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* SHIELD ANIMATION */
.sa-wrap {
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  position: relative;
  width: 220px;
  height: 234px;
  z-index: 1000;
}
.sa-shield {
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 234px;
}
.sa-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 234px;
  pointer-events: none;
  overflow: visible;
  z-index: 1000;
}
.sa-shield-outline { stroke-dasharray:800; stroke-dashoffset:800; transition:stroke-dashoffset 1.4s ease 0.2s; }
.sa-shield-outline.sa-drawn { stroke-dashoffset:0; }
.sa-q-outline { stroke-dasharray:1000; stroke-dashoffset:1000; }
.sa-q-outline.sa-drawn { stroke-dashoffset:0; }
.sa-div-v { stroke-dasharray:234; stroke-dashoffset:234; transition:stroke-dashoffset 0.6s ease 0.7s; }
.sa-div-v.sa-drawn { stroke-dashoffset:0; }
.sa-div-h { stroke-dasharray:220; stroke-dashoffset:220; transition:stroke-dashoffset 0.5s ease 1s; }
.sa-div-h.sa-drawn { stroke-dashoffset:0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ================================================================
   MOBILE — max-width 768px
   All desktop/laptop styles unchanged above this point
   ================================================================ */
@media (max-width: 768px) {

  /* NAV */
  nav {
    padding: 20px 24px;
  }

  /* HERO */
  .hero {
    padding: 100px 24px 60px !important;
  }
  .sa-wrap {
    margin-bottom: 20px;
  }
  .hero-wordmark {
    font-size: clamp(52px, 14vw, 80px);
  }
  .hero-tagline {
    font-size: 18px;
    padding: 0 12px;
  }

  /* SECTIONS */
  section {
    padding: 60px 24px;
  }

  /* DECLARATION */
  .declaration {
    padding: 60px 24px;
  }
  .declaration-text {
    font-size: clamp(20px, 5vw, 28px);
  }
  .declaration-sub {
    font-size: 15px;
  }

  /* THREE MOMENTS — stack vertically */
  .moments {
    grid-template-columns: 1fr;
  }
  .moment {
    padding: 40px 24px;
    border-right: none;
    border-bottom: 0.5px solid var(--rule-dark);
  }
  .moment:last-child {
    border-bottom: none;
  }

  /* SPIRIT — stack vertically */
  .spirit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* RELATIONSHIP — stack vertically */
  .relation-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .relation-heading {
    position: static;
  }
  .relation-items {
    gap: 28px;
  }

  /* VISIT CTA */
  .visit-section {
    padding: 60px 24px;
  }
  .visit-sub {
    font-size: 16px;
    white-space: normal;
  }
  .visit-form {
    max-width: 100%;
  }

  /* FORM — stack first/last name vertically */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* FOOTER */
  footer {
    padding: 28px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* WPFORMS */
  .wpforms-field input,
  .wpforms-field textarea {
    font-size: 16px !important; /* prevent iOS zoom on focus */
  }

}

/* ================================================================
   SMALL MOBILE — max-width 420px
   ================================================================ */
@media (max-width: 420px) {

  .hero-wordmark {
    font-size: clamp(44px, 16vw, 64px);
  }
  .sa-wrap {
    margin-bottom: 8px;
  }
  .moment-title {
    font-size: 20px;
  }
  .spec-row {
    flex-direction: column;
    gap: 4px;
  }
  .spec-value {
    text-align: left;
  }

}
