/* ============================================
   Badami — Coming Soon Landing Page (V3)
   Color palette: cream, soft beige, muted brown, rose accents
   ============================================ */

:root {
  --cream: #FAF9F6;
  --cream-warm: #f6f3ec;
  --beige: #EBE7E0;
  --brown: #776D69;
  --dark-truffle: #5A4B47;
  --rose: #D99A9F;
  --rose-muted: #C48C90;
  --font-display: "IvyPresto Disp Semi Bd", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark-truffle);
  background-color: var(--cream-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-synthesis: none;
}

/* ----- Menu bar ----- */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 1.75rem;
  pointer-events: none;
}

.menu-bar__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  pointer-events: auto;
}

.menu-bar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.35rem;
  text-decoration: none;
  color: var(--dark-truffle);
  opacity: 0.9;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.menu-bar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(90, 75, 71, 0.4);
  transform: scaleX(0);
  transform-origin: center;
  transition: none;
}

.menu-bar__link:hover {
  color: var(--dark-truffle);
  opacity: 1;
}

.menu-bar__link:hover::after,
.menu-bar__link:focus-visible::after {
  transform: scaleX(1);
}

.menu-bar__icon {
  display: block;
  width: 30px;
  height: 30px;
}

.menu-bar__link:focus-visible {
  outline: 2px solid var(--rose-muted);
  outline-offset: 3px;
  border-radius: 2px;
  opacity: 1;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  overflow: hidden;
}

/* Full-bleed video backdrop — visible around central content only */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--cream-warm);
}

.hero-bg__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: #F6F3EC;
  opacity: 0.5;
  pointer-events: none;
}

/* Calm center surface — opaque cream; no motion behind content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(36rem, calc(100% - 2rem));
  padding: clamp(1.4rem, 3.5vh, 2.4rem) clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  background: var(--cream-warm);
  border-radius: 20px;
}

@media (min-width: 769px) {
  .hero-content {
    max-width: min(52rem, 72vw);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.05rem 1rem;
  }

  .hero-content {
    max-width: 100%;
    padding: clamp(1.75rem, 4vh, 2.5rem) 1.25rem;
    border-radius: 16px;
  }

  .hero-bg__overlay {
    opacity: 0.58;
  }
}

.logo {
  width: clamp(200px, 56vw, 400px);
  height: auto;
  margin-bottom: 0.25rem;
  display: block;
  opacity: 0;
  animation: fadeFloatIn 1.15s ease-out 0.1s forwards;
}

@media (max-width: 768px) {
  /* ~12% smaller than base clamp for vertical balance on small screens only */
  .logo {
    width: clamp(176px, 49vw, 352px);
  }
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.58rem, 3.55vw, 2.22rem);
  font-weight: 400;
  font-synthesis: none;
  color: var(--dark-truffle);
  letter-spacing: 0.04em;
  margin: 0 auto 0.65rem;
  line-height: 1.24;
  max-width: 100%;
  opacity: 0;
  animation: fadeFloatIn 1.15s ease-out 0.35s forwards;
}

.subheadline {
  font-family: var(--font-body);
  font-size: clamp(0.7875rem, 1.725vw, 0.9375rem);
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.02em;
  margin: 0 auto 1rem;
  line-height: 1.7;
  max-width: 46ch;
}

.email-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.email-form input {
  min-width: 0;
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-truffle);
  background: #fff;
  border: 2px solid var(--beige);
  outline: none;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(196, 140, 144, 0.08),
    0 8px 26px rgba(90, 75, 71, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  animation: inputGlowBreath 4s ease-in-out infinite;
}

.email-form input::placeholder {
  color: #A89B84;
}

.email-form input:focus {
  border-color: rgba(196, 140, 144, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(196, 140, 144, 0.16),
    0 16px 38px rgba(90, 75, 71, 0.09);
  animation-play-state: paused;
}

.email-form button {
  width: 100%;
  padding: 1rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brown);
  border: none;
  cursor: pointer;
  border-radius: 14px;
  min-height: 44px;
  transition: background-color 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px rgba(90, 75, 71, 0.14);
}

.email-form button:hover {
  background: var(--dark-truffle);
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.email-form button:focus {
  outline: none;
  box-shadow:
    0 14px 30px rgba(90, 75, 71, 0.14),
    0 0 0 4px rgba(196, 140, 144, 0.25);
}

.email-form button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
  filter: none;
}

.email-form-honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 0;
  min-height: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--brown);
}

.form-status:empty {
  display: none;
}

.form-status--success {
  color: var(--rose-muted);
  font-size: clamp(0.7875rem, 1.725vw, 0.9375rem);
}

.form-status--error {
  color: var(--rose-muted);
}

.form-success-state {
  text-align: center;
  padding: 1.25rem;
  animation: fadeSlideUp 0.6s ease-out;
}

.form-success-state h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-truffle);
}

.form-success-state p {
  font-family: var(--font-body);
  color: var(--brown);
  font-size: 0.875rem;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-note {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--dark-truffle);
}

@media (min-width: 1024px) {
  .headline {
    white-space: nowrap;
    max-width: none;
  }
}

@keyframes fadeFloatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes inputGlowBreath {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(196, 140, 144, 0.08),
      0 8px 26px rgba(90, 75, 71, 0.06),
      0 0 0 0 rgba(217, 154, 159, 0.2);
    border-color: var(--beige);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(196, 140, 144, 0.12),
      0 10px 34px rgba(90, 75, 71, 0.08),
      0 0 28px 6px rgba(217, 154, 159, 0.35);
    border-color: rgba(196, 140, 144, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo,
  .headline {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .email-form input {
    animation: none;
  }

  .menu-bar__link {
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .email-form button:hover {
    transform: none;
  }

  .hero-bg__video {
    display: none;
  }

  .form-success-state {
    animation: none;
  }
}

/* ----- Visual Section ----- */
.visual {
  width: 100%;
}

.visual-placeholder {
  width: 100%;
  min-height: 60vh;
  background: linear-gradient(
    135deg,
    var(--cream-warm) 0%,
    var(--beige) 50%,
    var(--cream-warm) 100%
  );
}

/* Replace .visual-placeholder with an img or background-image when ready:
   e.g. background: url('assets/hero-image.jpg') center/cover no-repeat; */

/* ----- Brand Values ----- */
.values {
  padding: 5.25rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.values-list {
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--dark-truffle);
  line-height: 2;
}

.values-list li {
  position: relative;
  padding-left: 1.5rem;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--rose-muted);
  border-radius: 50%;
}

/* ----- Brand Note ----- */
.brand-note {
  padding: 0 1.5rem 4.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.brand-note p {
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--brown);
  line-height: 1.8;
  text-align: center;
}

/* ----- Footer ----- */
.footer {
  padding: 3.5rem 1.5rem;
  background: var(--cream-warm);
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.footer-form {
  margin: 0 auto 1.5rem;
}

.copyright {
  font-size: 0.8rem;
  color: #A89B84;
  letter-spacing: 0.03em;
}
