/* ==========================================================================
   Marissa's Home — design tokens
   ========================================================================== */
:root {
  --navy: #16305a;
  --navy-light: #345795;
  --navy-dark: #0e2140;
  --gold: #d9a520;
  --gold-soft: #f5bf1d;
  --cream: #fbf8f2;
  --ivory: #f4f0e8;
  --ink: #1b1b1b;
  --ink-soft: #4a4a4a;
  --line: #e2ded3;
  --white: #ffffff;

  --font-display: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-soft: 0 6px 24px rgba(22, 48, 90, 0.08);
  --shadow-lift: 0 14px 34px rgba(22, 48, 90, 0.14);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 64px 0; }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 17px; }
.section--navy .section-head p { color: rgba(255,255,255,0.78); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-soft); color: var(--navy-dark); }
.btn--gold:hover { background: #ffd147; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy);
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo strong { color: var(--gold); font-style: italic; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav__links a:hover { border-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 0;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--navy-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14,33,64,.55), rgba(14,33,64,.78));
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero__social {
  position: absolute;
  top: 25px;
  right: max(24px, calc((100% - 1180px) / 2 + 24px));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 31, 58, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(3px);
  transition: transform .18s ease, background .18s ease;
}
.hero__social a:hover { transform: translateY(-2px); background: rgba(18, 31, 58, 0.8); }
.hero__social svg { width: 20px; height: 20px; }
.hero__social img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
}
.hero__content {
  max-width: 680px;
  padding: 140px 24px 100px;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
  display: block;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
#rotatingCta { transition: opacity .25s ease; }
.hero p {
  font-size: 19px;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   About / story
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.story__portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  box-shadow: var(--shadow-lift);
}
.story__portrait img { width: 100%; height: 100%; object-fit: cover; }
.story__portrait--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.35);
}
.story__text .eyebrow { margin-bottom: 8px; }
.story__text h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 22px; }
.story__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--navy);
  line-height: 1.5;
  margin: 26px 0;
  padding-left: 22px;
  border-left: 3px solid var(--gold);
}
.story__text p { color: var(--ink-soft); font-size: 16.5px; }
.story__sign {
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
}

/* ==========================================================================
   Shop online cards
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.shop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-card .btn { margin-top: auto; }
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.shop-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--navy);
}
.shop-card__icon svg { width: 24px; height: 24px; }
.shop-card h3 { font-size: 19px; margin-bottom: 8px; }
.shop-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.shop-card a.btn { font-size: 12.5px; padding: 11px 20px; }

/* ==========================================================================
   Locations
   ========================================================================== */
.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.location-card__top {
  background: var(--navy);
  color: var(--white);
  padding: 28px 30px;
}
.location-card__top .badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.location-card__top h3 { color: var(--white); font-size: 24px; }
.location-card__body { padding: 28px 30px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.location-card__row {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.location-card__row svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.location-card__note { font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.location-card__body p.desc { color: var(--ink-soft); font-size: 15px; }
.location-card__actions { margin-top: auto; display: flex; gap: 12px; padding-top: 10px; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.newsletter h2 { font-size: clamp(26px, 3.6vw, 36px); }
.newsletter p.lead { color: rgba(255,255,255,0.82); font-size: 17px; margin-top: 14px; }
.newsletter-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 16px; }
.form-row:last-of-type { margin-bottom: 0; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
}
.form-check input { width: auto; margin-top: 3px; }
.form-check.is-disabled { opacity: 0.5; }
.form-check input:disabled { cursor: not-allowed; }
.form-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(245,191,29,0.16);
  border: 1px solid rgba(245,191,29,0.4);
  color: var(--gold-soft);
  display: none;
}
.form-status.is-visible { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 10px; font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-dark); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 50px;
  text-align: center;
}
.legal-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 46px); }
.legal-hero p { color: rgba(255,255,255,0.7); margin-top: 12px; }
.legal-body { padding: 64px 0 100px; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; color: var(--ink); margin: 24px 0 8px; }
.legal-content p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.legal-content p.legal-strong { color: var(--ink); font-weight: 700; }
.legal-content a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .story { grid-template-columns: 1fr; }
  .story__portrait { max-width: 360px; margin: 0 auto; }
  .locations { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero__content { padding: 120px 20px 70px; }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .shop-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .hero__actions .btn { flex: 1 1 auto; }
}
