/* =========================================================
   MARINA — curtain studio
   Style inspired by wovnhome.com:
   warm neutrals, generous whitespace, large editorial type.
   ========================================================= */

:root {
  --bg:        #f6f1e8;   /* base cream */
  --bg-soft:   #efe7d8;   /* warm sand */
  --bg-dark:   #2a2620;   /* deep espresso */
  --ink:       #1f1c17;   /* text */
  --ink-soft:  #5a544b;   /* secondary */
  --line:      #d8cdb9;   /* hairline */
  --accent:    #6a5742;   /* warm brown CTA */
  --accent-2:  #b8a079;   /* taupe */
  --white:     #fff;

  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw:   1280px;
  --pad:    clamp(20px, 4vw, 56px);
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- typography ---------- */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow.light { color: #c8bfae; }

.display, .display-2 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--ink);
}
.display    { font-size: clamp(44px, 7.5vw, 104px); }
.display-2  { font-size: clamp(34px, 5vw, 68px); line-height: 1.06; }
.display-2.light { color: #f5ecd9; }

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 36px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-link {
  padding: 8px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-link:hover { color: var(--accent); }

.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 241, 232, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.32em;
  font-weight: 400;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav a { color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn-ghost { padding: 12px 20px; font-size: 11px; }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--pad) 32px;
    transform: translateY(-110%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #f7f0e1;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.hero:hover .hero-media img { transform: scale(1); }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,16,10,0) 0%,
    rgba(20,16,10,0.15) 35%,
    rgba(20,16,10,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 64px;
}
.hero .eyebrow { color: #d6c9b1; }
.hero .lede   { color: #ece4d2; }
.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-actions .btn-primary {
  background: #f7f0e1;
  color: var(--ink);
}
.hero-actions .btn-primary:hover { background: #fff; }
.hero-actions .btn-link { color: #f7f0e1; }
.hero-actions .btn-link:hover { color: #fff; }

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  display: flex;
  gap: clamp(28px, 6vw, 80px);
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-stats span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8bda4;
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--bg-dark);
  color: #f0e6d3;
  padding: 18px 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #ece2cc; }

.section-head {
  max-width: 880px;
  margin-bottom: 72px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-lede {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 620px;
  margin: 16px 0 0;
}
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }
.section-dark .section-lede { color: #c0b6a0; }

/* ---------- collection cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px) clamp(20px, 2vw, 36px);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #e7dcc7;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 12px;
}
.card-body { padding: 22px 4px 0; }
.card-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 26px);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.card-body p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 15px;
}
.card-price {
  margin-top: 10px !important;
  font-size: 14px !important;
  letter-spacing: 0.08em;
  color: var(--ink) !important;
  font-weight: 500;
}

/* ---------- feature split ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--bg-soft);
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.feature-media { min-height: 540px; }
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-text {
  padding: clamp(60px, 8vw, 110px) clamp(28px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-text p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 480px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 16px; height: 1px;
  background: var(--accent);
}

/* ---------- swatches ---------- */

.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(2, 1fr); } }

.swatch {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.swatch::before {
  content: "";
  display: block;
  aspect-ratio: 1;
  background: var(--c, #ddd);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .35s ease;
}
.swatch:hover::before { transform: scale(0.96); }
.swatch figcaption {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.center-cta { text-align: center; margin: 0; }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  padding: 36px 28px 36px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps li:last-child { border-right: 0; }
@media (max-width: 980px) {
  .steps li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .steps li { border-right: 0; padding-right: 0; }
}

.steps li { padding-left: 0; }
.steps li::before { content: ""; }
.step-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent-2);
}
.steps h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 14px;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 320px; }
}
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery-tall { grid-row: span 1; } }
.gallery-wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery-wide { grid-column: span 2; } }
@media (max-width: 560px) { .gallery-wide { grid-column: span 1; } }

/* ---------- reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

.review {
  margin: 0;
  padding: 36px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--ink);
}
.review figcaption {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact-text p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 460px;
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.contact-info li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-info li span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}
.contact-info a:hover { color: var(--accent); }

/* form */
.form {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #faf6ee;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
  font-size: 15px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  background: #fff;
}
.form-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  text-align: center;
}
.form-note a { text-decoration: underline; }
.form-success {
  margin: 0;
  padding: 14px 16px;
  background: #ecf0e6;
  color: #2c4523;
  font-size: 14px;
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: #d4c8af;
  padding: 80px 0 24px;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand .brand-mark {
  color: #f5ecd9;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  margin: 0;
  color: #a99e85;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-cols h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5ecd9;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  padding: 6px 0;
  color: #b0a48b;
  font-size: 14px;
  transition: color .2s;
}
.footer-cols a:hover { color: #f5ecd9; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #897e68;
  font-size: 12px;
}
.footer-bottom a:hover { color: #d4c8af; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
