/* ==========================================================
   PRANA BRIDAL — design system
   Minimalism with warmth. Asymmetric editorial grids.
   ========================================================== */

:root {
  --bone:      #F4EFE9;
  --ivory:     #FAF7F2;
  --paper:     #ECE6DC;
  --charcoal:  #1B1B1B;
  --ink:       #2A2724;
  --muted:     #6E6760;
  --whisper:   #B6ADA3;
  --rule:      #DDD3C5;
  --accent:    #8A6B4A;   /* warm bronze, used sparingly */

  --serif:     "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:      "Inter", "Helvetica Neue", Arial, sans-serif;

  --max:       1440px;
  --gutter:    clamp(20px, 4vw, 60px);

  --t-fast:    180ms cubic-bezier(.2,.6,.2,1);
  --t-med:     420ms cubic-bezier(.2,.6,.2,1);
  --t-slow:    900ms cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.55; }
button { font: inherit; color: inherit; cursor: pointer; }

/* typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.1;
  color: var(--charcoal);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

/* layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  transition: background var(--t-med), backdrop-filter var(--t-med), padding var(--t-med);
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.nav-left, .nav-right {
  display: flex;
  gap: 36px;
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav-right { justify-content: flex-end; }
.nav-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.42em;
  font-weight: 300;
  color: var(--charcoal);
  padding-left: 0.42em; /* optical centering vs. tracking */
}
.nav a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

@media (max-width: 880px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .nav-brand { justify-self: center; font-size: 18px; }
  .nav-toggle { display: block; justify-self: end; }
  .mobile-menu {
    position: fixed; inset: 0;
    background: var(--ivory);
    z-index: 49;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform var(--t-med);
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================
   HERO  (asymmetric, not full-bleed slab)
   ========================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  padding-top: 110px;
  padding-bottom: 60px;
  gap: var(--gutter);
}
.hero-text {
  padding: 0 0 80px var(--gutter);
}
.hero-text .eyebrow { margin-bottom: 28px; display: block; }
.hero-text h1 { margin-bottom: 36px; }
.hero-text p {
  max-width: 38ch;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-image {
  position: relative;
  height: 92vh;
  overflow: hidden;
  margin-right: var(--gutter);
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.6s cubic-bezier(.2,.6,.2,1);
}
.hero-image.in img { transform: scale(1); }
.hero-meta {
  position: absolute;
  bottom: 24px; left: 24px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  mix-blend-mode: difference;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-text { padding: 0 0 40px 0; }
  .hero-image { height: 70vh; margin-right: 0; }
}

/* ==========================================================
   GENERIC SECTIONS
   ========================================================== */
.section {
  padding: 120px 0;
}
.section.tight { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  margin-bottom: 60px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
}
.section-head p {
  color: var(--muted);
  max-width: 56ch;
}
@media (max-width: 880px) {
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* ==========================================================
   COLLECTION TEASER (home)
   asymmetric, alternating offset rows
   ========================================================== */
.col-list {
  display: flex;
  flex-direction: column;
  gap: 140px;
}
.col-card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gutter);
  align-items: center;
}
.col-card:nth-child(even) {
  grid-template-columns: 5fr 7fr;
  direction: rtl;
}
.col-card:nth-child(even) > * { direction: ltr; }
.col-card .img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
}
.col-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.col-card:hover .img img { transform: scale(1.04); }
.col-card .meta .eyebrow { margin-bottom: 18px; display: block; }
.col-card .meta h3 {
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: 18px;
}
.col-card .meta p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 44ch;
}
@media (max-width: 880px) {
  .col-list { gap: 80px; }
  .col-card, .col-card:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ==========================================================
   BUTTONS / LINKS
   ========================================================== */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 6px;
  transition: gap var(--t-fast), opacity var(--t-fast);
}
.link-arrow:hover { gap: 16px; opacity: 1; }
.link-arrow .arrow { display: inline-block; transition: transform var(--t-fast); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
  transition: background var(--t-fast), color var(--t-fast);
}
.btn:hover { background: transparent; color: var(--charcoal); opacity: 1; }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--ivory); }

/* ==========================================================
   COLLECTIONS INDEX  (gallery grid)
   ========================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px var(--gutter);
}
.collection-tile .frame {
  aspect-ratio: 4/5;
  background: var(--paper);
  overflow: hidden;
}
.collection-tile .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.collection-tile:hover .frame img { transform: scale(1.04); }
.collection-tile .meta { padding: 22px 0 0; }
.collection-tile .meta .eyebrow { display: block; margin-bottom: 8px; }
.collection-tile .meta h3 { font-size: 34px; }
@media (max-width: 880px) {
  .collections-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* ==========================================================
   COLLECTION DETAIL  (mosaic)
   ========================================================== */
.col-hero {
  padding: 130px 0 60px;
}
.col-hero h1 {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1;
  margin-bottom: 28px;
}
.col-hero .meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.col-hero p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 16px;
}
.dress-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 120px;
}
.dress-tile {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
  position: relative;
}
.dress-tile a { display: block; height: 100%; }
.dress-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow), opacity var(--t-fast);
}
.dress-tile:hover img { transform: scale(1.03); }
.dress-tile .label {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference;
}
/* asymmetric pattern: 7-5, 5-7, 4-4-4, repeat */
.dress-tile:nth-child(6n+1) { grid-column: span 7; }
.dress-tile:nth-child(6n+2) { grid-column: span 5; }
.dress-tile:nth-child(6n+3) { grid-column: span 5; }
.dress-tile:nth-child(6n+4) { grid-column: span 7; }
.dress-tile:nth-child(6n+5) { grid-column: span 6; }
.dress-tile:nth-child(6n+6) { grid-column: span 6; }
@media (max-width: 880px) {
  .dress-mosaic { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dress-tile,
  .dress-tile:nth-child(6n+1),
  .dress-tile:nth-child(6n+2),
  .dress-tile:nth-child(6n+3),
  .dress-tile:nth-child(6n+4),
  .dress-tile:nth-child(6n+5),
  .dress-tile:nth-child(6n+6) { grid-column: span 1; }
}

/* ==========================================================
   DRESS DETAIL
   ========================================================== */
.dress-page {
  padding: 110px 0 120px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
}
.dress-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dress-gallery img {
  width: 100%;
  background: var(--paper);
}
.dress-info {
  position: sticky;
  top: 110px;
  align-self: start;
}
.dress-info .eyebrow { margin-bottom: 18px; display: block; }
.dress-info h1 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 24px; }
.dress-info .code {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 28px;
}
.dress-info p { color: var(--muted); margin-bottom: 28px; }
.dress-specs {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}
.dress-specs dt {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.dress-specs dd { margin: 0; font-family: var(--serif); font-size: 18px; }
@media (max-width: 880px) {
  .dress-page { grid-template-columns: 1fr; gap: 36px; padding-top: 100px; }
  .dress-info { position: static; }
}

/* ==========================================================
   ATELIER  (long-form story)
   ========================================================== */
.story {
  max-width: 760px;
  margin: 0 auto;
  padding: 130px var(--gutter) 120px;
}
.story h1 {
  font-size: clamp(44px, 7vw, 92px);
  margin-bottom: 60px;
  line-height: 1;
}
.story p {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 60ch;
}
.story p.lede {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 48px;
}
.story figure { margin: 48px 0; }
.story figure img { width: 100%; }
.story figcaption {
  margin-top: 12px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================
   BOUTIQUES
   ========================================================== */
.boutique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}
.boutique-item {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.boutique-item h3 {
  font-size: 24px;
  font-family: var(--serif);
  margin-bottom: 12px;
}
.boutique-item .country {
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; display: block;
}
.boutique-item p { color: var(--muted); margin: 0 0 6px; }
@media (max-width: 880px) {
  .boutique-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.contact-grid h1 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 24px; }
.contact-grid .eyebrow { display: block; margin-bottom: 16px; }
.contact-grid .info p { color: var(--muted); margin: 0 0 8px; }
form.prana-form { display: grid; gap: 22px; }
form.prana-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.prana-form label {
  display: block;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
form.prana-form input,
form.prana-form textarea,
form.prana-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast);
}
form.prana-form input:focus,
form.prana-form textarea:focus,
form.prana-form select:focus { border-bottom-color: var(--charcoal); }
form.prana-form textarea { min-height: 120px; resize: vertical; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  form.prana-form .row { grid-template-columns: 1fr; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bone);
  padding: 90px 0 36px;
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--gutter);
  margin-bottom: 80px;
}
.footer h4 {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.footer .brand-mark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.4em;
  color: var(--charcoal);
  margin-bottom: 18px;
}
.footer .brand-mark + p { color: var(--muted); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ==========================================================
   FADE-IN ON SCROLL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   UTILITIES
   ========================================================== */
.center { text-align: center; }
.muted  { color: var(--muted); }
.divider { height: 1px; background: var(--rule); margin: 80px 0; }
.spacer-l { height: 120px; }
.spacer-m { height: 60px; }
.spacer-s { height: 24px; }

/* loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--paper) 0%, #e5dccd 50%, var(--paper) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
