/* Base */
:root {
  --bg: #F6F3EE;
  --ink: #3D2F2B;
  --ink-ghost: rgba(61, 47, 43, 0.1);
  --ink-ghost-2: rgba(68, 55, 52, 0.15);
  --paper: #FFFFFF;
  --cream-200: #E2D3C6;
  --brand-ink: #3D2F2B;
  --brand-cream: #FCF9F6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: 'Source Serif 4', serif;
}

/* Utilities */
.max-1440 {
  max-width: 1440px;
  margin-inline: auto;
}

.max-1196 {
  max-width: 1196px;
  margin-inline: auto;
}

.section {
  padding: 0.5em 1em 0 1em;
}

.section .section-inner {
  margin: 0 auto;
}

.section .section-inner.narrow {
  max-width: calc(988px + 248px);
}

.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Top Bar (LandingTopBar) */
.top-bar {
  height: 154.4px;
  background: var(--brand-ink);
  box-shadow: 0 20px 15.4px rgba(61, 47, 43, 0.19);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar .nav-slot {
  flex: 1;
  display: flex;
  justify-content: center;
}

.top-bar .nav-group {
  display: flex;
  gap: min(48px, 8vw);
  align-items: center;
}

.nav-item {
  position: relative;
  color: var(--brand-cream);
  text-decoration: none;
  font: 400 15px/27px 'Source Serif 4', serif;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5px;
  height: 1.8px;
  background: var(--brand-cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .12s;
}

.nav-item:hover::after {
  transform: scaleX(1);
}

.center-block {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-block .brand-mark {
  width: 100px;
  height: auto;
}

.brand-title {
  color: var(--brand-cream);
  font-family: 'Forum', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  margin-top: 6px;
}

.brand-title .amour {
  letter-spacing: 4.5px;
}

.brand-title .lacarte {
  letter-spacing: .8px;
  width: max-content;
}

/* Responsive nav visibility (match Flutter logic approximately) */
@media (max-width: 600px) {
  .hide-600 {
    display: none !important;
  }
}

/* Auth profile dropdown positioning under large top bar */
.top-bar .profile-dropdown {
  top: calc(154.4px - 4px);
}

@media (max-width: 400px) {
  .hide-400 {
    display: none !important;
  }
}

/* Primary Button with sliding rect */
.primary-btn {
  position: relative;
  display: inline-block;
  width: 222px;
  height: 59px;
  line-height: 59px;
  background: var(--brand-ink);
  color: var(--bg);
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  font: 500 18px 'Source Serif 4', serif;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: calc((59px - 31px) / 2);
  left: 222px;
  width: 146px;
  height: 31px;
  background: var(--brand-ink);
  transition: left .2s;
}

.primary-btn:hover::before {
  left: -153px;
}

/* Stacked section header */
.stacked-header {
  position: relative;
  padding: 20px 0;
}

.stacked-header .ghost {
  position: absolute;
  left: 0;
  top: 0;
  font: 500 80px/1.35 'Source Serif 4', serif;
  color: var(--ink-ghost);
}

.stacked-header .title {
  margin: 56px 0 0 138px;
  font: 500 40px/1.35 'Source Serif 4', serif;
  color: var(--ink);
}

/* Hero (V1) */
.v1-hero {
  position: relative;
  padding: 0 0 40px;
}

.v1-hero .hero-decor {
  position: absolute;
  left: 0;
  top: 200px;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.v1-hero .hero-decor img {
  display: block;
  height: 300px;
  object-fit: contain;
  opacity: .9;
}

.v1-hero .hero-inner {
  display: flex;
  align-items: center;
}

.v1-hero .hero-left {
  flex: 2;
  display: flex;
}

.v1-hero .hero-left-inner {
  margin-left: clamp(24px, 12vw, 180px);
  max-width: 876px;
  padding-top: min(86px, 7.6vw);
}

.v1-hero .hero-title {
  margin: 0;
  font: 500 72px/1.2 'Source Serif 4', serif;
  color: var(--ink);
}

.v1-hero .hero-subtitle {
  margin: 20px 0 30px;
  width: 75%;
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
  color: #443734;
}

.v1-hero .hero-right {
  flex: 1;
  padding-left: 8px;
  display: flex;
  justify-content: center;
}

.v1-hero .hero-envelope {
  width: min(520px, 90%);
  height: auto;
}

@media (max-width: 1100px) {
  .v1-hero .hero-title {
    font-size: 10vw;
  }

  .v1-hero .hero-subtitle {
    width: 90%;
  }
}

@media (max-width: 800px) {
  .v1-hero .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .v1-hero .hero-left-inner {
    margin-left: 24px;
    margin-right: 24px;
  }

  .v1-hero .hero-right {
    padding: 24px;
  }
}

/* Collections */
.cards .collection-card, .cards .designer-card {
  width: 360px;
}

.cards .image {
  width: 100%;
  border-radius: 2px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: none;
}

.aspect-547x730::before {
  content: '';
  display: block;
  padding-top: calc(730 / 547 * 100%);
}

.aspect-376x453::before {
  content: '';
  display: block;
  padding-top: calc(453 / 376 * 100%);
}

.aspect-478x605::before {
  content: '';
  display: block;
  padding-top: calc(605 / 478 * 100%);
}

.cards .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards .card-title {
  margin-top: 12px;
  text-align: center;
  font: 500 24px/1.35 'Source Serif 4', serif;
  color: var(--ink);
}

.designer-card.dimmed .image {
  opacity: .5;
}

.placeholder {
  background: var(--cream-200);
  box-shadow: 0 1px 4.6px var(--ink-ghost-2);
}

/* How it works */
.how-it-works .body {
  margin: 30px 0;
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
  color: #443734;
}

.hiw-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hiw-left {
  flex: 1 1 478px;
}

.hiw-right {
  flex: 1 1 576px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  background: #fff;
  border: 1px solid var(--cream-200);
  box-shadow: 0 1px 4.6px var(--ink-ghost-2);
  padding: 20px;
}

.step-title {
  font: 500 24px/1.35 'Source Serif 4', serif;
  color: var(--ink);
}

.step-text {
  margin-top: 4px;
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
  color: #443734;
}

.video-placeholder {
  margin-top: 30px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--cream-200);
  border-radius: 2px;
  box-shadow: 0 1px 4.6px var(--ink-ghost-2);
  font: 500 40px 'Source Serif 4', serif;
}

/* Why choose us */
.why-us .body {
  white-space: pre-line;
  margin-top: 30px;
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
  color: #443734;
}

/* Final CTA */
.final-cta {
  position: relative;
}

.final-cta .section-inner {
  position: relative;
  padding: 60px 24px;
}

.final-cta .decor {
  position: absolute;
  width: 300px;
  height: 200px;
  background: var(--cream-200);
  opacity: .7;
  filter: blur(.3px);
}

.final-cta .decor-right {
  right: 0;
  top: 0;
}

.final-cta .decor-left {
  left: 0;
  top: 0;
}

.final-cta .final-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.final-cta .final-title {
  margin: 0;
  text-align: center;
  font: 500 48px/1.15 'Source Serif 4', serif;
  color: var(--ink);
}

/* Footer */
.footer {
  width: 100%;
  background: var(--brand-ink);
  color: var(--brand-cream);
}

.footer-top {
  background: var(--brand-ink);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 45px 24px;
}

.footer-col.brand {
  width: 280px;
}

.footer .brand-mark {
  width: 100px;
  height: auto;
  display: block;
}

.footer .brand-title {
  margin-left: 0.5em;
  margin-top: 6px;
  font: 400 24px/1 'Forum', serif;
}

.footer .brand-title .amour {
  letter-spacing: 4.5px;
}

.footer .brand-title .lacarte {
  letter-spacing: .8px;
}

.footer .tagline {
  margin-top: 10px;
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
}

.footer-spacer {
  flex: 1;
}

.footer .nav {
  width: 165px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.footer .nav .nav-item {
  margin-bottom: 0.5em;
}

.footer-bottom {
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font: 400 18px/1.5 'Forum', serif;
  letter-spacing: .27px;
}

/* Footer brand row base */
.footer .brand-row {
  display: flex;
}

/* Footer responsiveness */
@media (max-width: 900px) {
  .footer-inner {
    flex-wrap: wrap;
  }

  .footer .wide-only {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .footer-col.brand, .footer .nav {
    width: auto;
    align-items: center;
    text-align: center;
  }

  .footer .brand-row {
    flex-direction: column;
    align-items: center;
  }

  .footer .brand-title {
    margin-left: 0;
    text-align: center;
  }

  .footer .stb-nav {
    margin-left: initial;
  }
}

/* legacy list styles removed to match Flutter visuals */

/* Keep footer nav items visible on small screens (override bundles header rules) */
@media (max-width: 500px) {
  .footer .stb-nav .nav-item {
    display: inline-block !important;
  }
}
