/* ---------------------------------------------------------
   Cocoa County — landing page
   Content (logo, headline, form, etc.) stays fixed in place.
   Only the background visual scrolls behind it.
   --------------------------------------------------------- */

:root{
  --brown-950: #2e1c0c;
  --brown-900: #3a2410;
  --brown-800: #472d14;   /* primary panel brown, sampled from source art */
  --brown-700: #5a3a1c;
  --tan-300:   #cbb28c;   /* Express Your Interest / hairlines */
  --tan-400:   #b5986e;   /* Cocoa gold accent */
  --tan-500:   #a9855a;   /* Submit button fill */
  --cream-050: #f7f1e6;
  --white:     #ffffff;

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans:  "Poppins", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --scroll-duration: 1100ms;
  --autoplay-interval: 4000ms;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--brown-800);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

button{ font-family: inherit; cursor: pointer; }

/* ---------------------------------------------------------
   Overall shell — one static two-column layout
   --------------------------------------------------------- */

.hero{
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr min(27%, 560px);
  overflow: hidden;
  background: var(--brown-800);
}

/* ---------------------------------------------------------
   Visual column (left) — the ONLY part that scrolls
   --------------------------------------------------------- */

.visual{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
}

/* Background track: 3 panels wide, slid horizontally behind the fixed content */
.bg-track{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform var(--scroll-duration) var(--ease);
}

.bg-slide{
  flex: 0 0 calc(100% / 3);
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--brown-800);
}

.bg-slide--brown{ background-color: var(--brown-800); }

.scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,12,4,0.62) 0%, rgba(20,12,4,0.30) 34%, rgba(20,12,4,0) 58%),
    linear-gradient(0deg, rgba(15,9,3,0.35) 0%, rgba(15,9,3,0) 30%);
  pointer-events: none;
}

/* Fixed overlay content — sits above the scrolling background and never moves */
.logo{
  position: relative;
  z-index: 3;
  width: clamp(150px, 15vw, 240px);
  margin-bottom: auto;
}

.visual-content{
  position: relative;
  z-index: 3;
  margin-top: clamp(20px, 6vh, 60px);
}

.headline{
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.4vw, 4.1rem);
  line-height: 1.16;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.cocoa-box{
  margin-top: clamp(24px, 4vh, 46px);
  width: clamp(190px, 19vw, 280px);
  border: 2px solid var(--white);
  padding: 6px;
  position: relative;
  z-index: 3;
}
.cocoa-box img{ width: 100%; }

.dots{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(22px, 4vh, 44px);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.dots .dot{
  width: 34px;
  height: 4px;
  padding: 0;
  border: none;
  background: rgba(203,178,140,0.35);
  border-radius: 2px;
  transition: background 200ms ease;
}
.dots .dot.is-active{ background: var(--tan-300); }

/* ---------------------------------------------------------
   Decorative corner pattern (fixed, does not scroll)
   --------------------------------------------------------- */

.corner{
  position: absolute;
  width: clamp(160px, 20vw, 300px);
  height: clamp(140px, 18vw, 260px);
  background-image: url('../assets/pattern-tile.png');
  background-size: 92px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}
.corner--tl{
  top: 0; left: 0;
  -webkit-mask-image: radial-gradient(circle at top left, #000 45%, transparent 78%);
  mask-image: radial-gradient(circle at top left, #000 45%, transparent 78%);
}
.corner--br{
  bottom: 0; right: 0;
  -webkit-mask-image: radial-gradient(circle at bottom right, #000 45%, transparent 78%);
  mask-image: radial-gradient(circle at bottom right, #000 45%, transparent 78%);
}

/* ---------------------------------------------------------
   Form column (right) — always static, never scrolls
   --------------------------------------------------------- */

.col--form{
  position: relative;
  background: var(--brown-800);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 42px) clamp(24px, 3vw, 50px);
  overflow: hidden;
}

.legal{
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--cream-050);
  font-size: clamp(9px, 0.62vw, 11px);
  line-height: 1.6;
  text-align: right;
  letter-spacing: 0.01em;
}

.form-wrap{
  position: relative;
  z-index: 2;
  margin: auto 0;
}

.form-title{
  margin: 0 0 clamp(16px, 2.4vh, 28px);
  color: var(--tan-300);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.9vw, 2.1rem);
}

.interest-form{
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.7vh, 20px);
}

.interest-form input,
.interest-form textarea{
  width: 100%;
  background: transparent;
  border: 1px solid var(--tan-400);
  color: var(--cream-050);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  padding: clamp(10px, 1.3vh, 15px) 16px;
  border-radius: 0;
}

.interest-form textarea{ resize: none; min-height: 88px; }

.interest-form input::placeholder,
.interest-form textarea::placeholder{
  color: rgba(247, 241, 230, 0.75);
  font-family: var(--serif);
  font-style: italic;
}

.interest-form input:focus,
.interest-form textarea:focus{
  outline: none;
  border-color: var(--cream-050);
  box-shadow: 0 0 0 1px var(--cream-050);
}

.interest-form button{
  align-self: flex-start;
  margin-top: 6px;
  background: var(--tan-500);
  color: var(--brown-950);
  border: none;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 600;
  padding: 10px 34px;
  letter-spacing: 0.02em;
  transition: background 200ms ease, transform 200ms ease;
}
.interest-form button:hover{ background: var(--tan-300); }
.interest-form button:active{ transform: translateY(1px); }

.form-success{
  display: none;
  margin: 4px 0 0;
  color: var(--tan-300);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--serif);
}
.interest-form.is-sent .form-success{ display: block; }
.interest-form.is-sent input,
.interest-form.is-sent textarea,
.interest-form.is-sent button{ display: none; }

.contact{
  position: relative;
  z-index: 2;
  margin-top: clamp(18px, 3vh, 34px);
}
.phone{
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
}
.contact-links{
  margin: 2px 0 0;
  color: var(--cream-050);
  font-size: clamp(0.4rem, 0.4vw, 0.45rem);
}

/* ---------------------------------------------------------
   Mobile layout — stacked visual + form
   --------------------------------------------------------- */

@media (max-width: 900px){

  .hero{
    grid-template-columns: 1fr;
    grid-template-rows: 44% 56%;
  }

  .visual{
    padding: 22px 20px;
    justify-content: flex-start;
  }

  .logo{ width: 130px; }

  .visual-content{ margin-top: 14px; }

  .headline{ font-size: clamp(1.6rem, 7vw, 2.3rem); }

  .cocoa-box{
    width: 105px;
    margin-top: 18px;
  }

  .dots{ bottom: 16px; }

  .col--form{
    overflow-y: auto;
    padding: 18px 20px 24px;
    justify-content: flex-start;
  }

  .legal{ text-align: left; font-size: 9px; }

  .form-wrap{ margin: 14px 0; }

  .form-title{ font-size: 1.3rem; margin-bottom: 14px; }

  .interest-form{ gap: 12px; }

  .interest-form textarea{ min-height: 70px; }

  .contact{ margin-top: 14px; }

  .corner{ width: 130px; height: 110px; background-size: 60px; }
}

@media (max-width: 420px){
  .headline{ font-size: 1.5rem; }
  .phone{ font-size: 1.2rem; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  .bg-track{ transition: none; }
  .interest-form button{ transition: none; }
}
