/* ============================================================
   Aloha Girl Cosmetics — Landing Page
   Palette: warm sand / cream / golden / espresso ink
   ============================================================ */

:root {
  --sand:       #efe7dc;
  --cream:      #f7f1e8;
  --linen:      #e8ddcd;
  --tan:        #d8c3a8;
  --gold:       #c79a6b;
  --espresso:   #2a221b;
  --ink:        #1c1814;
  --muted:      #8a7c6c;
  --white:      #fffdf9;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Sacramento', cursive;

  --maxw: 1280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: rgba(255,255,255,0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  background: none;
}
.btn--dark   { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--espresso); transform: translateY(-2px); }
.btn--light  { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost  { background: none; color: var(--ink); border-color: var(--tan); }
.btn--ghost:hover { background: var(--linen); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,34,27,0.07);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.9rem 2rem;
  gap: 1rem;
}
.nav__brand img { height: 54px; margin: 0 auto; }
.nav__links { display: flex; gap: 1.8rem; align-items: center; }
.nav__links--right { justify-content: flex-end; }
.nav__links a {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__cart { color: var(--gold) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--cream);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--espresso);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,24,20,0.28), rgba(28,24,20,0.12) 45%, rgba(28,24,20,0.5));
}
.hero__content { position: relative; z-index: 2; color: var(--cream); padding: 0 1.5rem; }
.hero__wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 8rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__sub {
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  margin: 0.4rem 0 1.6rem;
  padding-left: 0.55em;
}
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  margin-bottom: 2rem;
  color: var(--sand);
}
.hero__scroll {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.8);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--sand);
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  animation: scroll 28s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}
.marquee__track span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Product ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 2rem;
}
.product__media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 70px -30px rgba(42,34,27,0.45);
}
.product__name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4rem;
}
.product__shade { color: var(--gold); font-style: italic; }
.product__meta {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.product__price {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
}
.product__price span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.6rem;
}
.product__copy { color: var(--espresso); margin-bottom: 1.6rem; max-width: 44ch; }
.product__list {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.55rem;
}
.product__list li {
  font-size: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--espresso);
}
.product__list li::before {
  content: '✿';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}
.product__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.product__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ---------- Story ---------- */
.story {
  background: var(--linen);
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(3rem, 7vw, 6rem) 2rem;
}
.story__img img { width: 100%; border-radius: 4px; box-shadow: 0 24px 50px -28px rgba(42,34,27,0.5); }
.story__img--a { transform: translateY(-1.5rem); }
.story__img--b { transform: translateY(1.5rem); }
.story__text { text-align: center; padding: 0 0.5rem; }
.story__text h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.4rem;
}
.story__text p { color: var(--espresso); margin-bottom: 1.1rem; font-size: 0.95rem; }
.story__sign {
  font-family: var(--script);
  font-size: 2rem !important;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  gap: 2.5rem;
  text-align: center;
}
.pillar { padding: 0 1rem; }
.pillar h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--muted); font-size: 0.9rem; }
.pillar + .pillar { border-left: 1px solid var(--tan); }

/* ---------- Glow / Gallery ---------- */
.glow { background: var(--ink); color: var(--cream); padding: clamp(4rem, 8vw, 7rem) 2rem; }
.glow__head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.glow__head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--sand);
}
.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery__item { overflow: hidden; border-radius: 4px; margin: 0; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--sand);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}
.newsletter__inner { max-width: 560px; margin: 0 auto; }
.newsletter__mark { height: 64px; width: auto; margin: 0 auto 1.2rem; opacity: 0.85; }
.newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.6rem;
}
.newsletter p { color: var(--espresso); margin-bottom: 2rem; }
.newsletter__form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter__form input {
  flex: 1 1 260px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--tan);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.newsletter__form input:focus { outline: none; border-color: var(--gold); }
.newsletter__msg { margin-top: 1rem; color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.1rem; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso);
  color: var(--sand);
  padding: clamp(3rem, 6vw, 5rem) 2rem 2rem;
}
.footer__brand { text-align: center; margin-bottom: 3rem; }
.footer__brand img { height: 70px; margin: 0 auto 0.8rem; filter: invert(1) brightness(1.6); }
.footer__brand p { font-family: var(--serif); font-style: italic; color: var(--tan); }
.footer__cols {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.footer__cols h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__cols a { display: block; font-size: 0.85rem; color: var(--sand); opacity: 0.8; padding: 0.25rem 0; }
.footer__cols a:hover { opacity: 1; color: var(--white); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(216,195,168,0.18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--tan);
}
.footer__social a { margin-left: 1.2rem; text-transform: uppercase; letter-spacing: 0.15em; }
.footer__social a:hover { color: var(--white); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  z-index: 100;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.4);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { grid-template-columns: 1fr auto 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__media { max-width: 460px; margin: 0 auto; }
  .story { grid-template-columns: 1fr; }
  .story__img--a, .story__img--b { transform: none; max-width: 460px; margin: 0 auto; }
  .story__text { order: -1; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--tan); padding-top: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .nav__brand img { height: 44px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
  .product__actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
