/* ============================================================
   COURTNEY COLLECTIVE - design tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100;0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Jost:wght@300;400;500&display=swap');

:root{
  --ivory:      #FAF8F3;
  --ivory-2:    #F1EDE4;
  --ink:        #1E1B17;
  --ink-soft:   #55504A;
  --line:       #DEDACE;
  --line-soft:  #EAE6DB;
  --clay:       #B08268;   /* muted dusty clay - sparing accent, not the AI-default terracotta */
  --clay-soft:  #E7D9CD;
  --white:      #FFFFFF;

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.eyebrow{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1,h2,h3{
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0;
}

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

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.left-icons{ display:flex; align-items:center; gap:14px; }

.menu-btn{
  background:none; border:none; padding:6px;
  display:flex; flex-direction:column; gap:5px;
}
.menu-btn span{ width:22px; height:1px; background: var(--ink); display:block; }

.back-btn{ background:none; border:none; padding:6px; display:flex; align-items:center; justify-content:center; }
.back-btn:hover .icon{ stroke: var(--clay); }

.wordmark{
  font-family: var(--serif);
  font-weight: 300;
  font-size: 21px;
  letter-spacing: .38em;
  text-transform: lowercase;
  white-space: nowrap;
}

.header-icons{ display:flex; gap:18px; align-items:center; }
.header-icons button{ background:none; border:none; }
.icon{ width:19px; height:19px; stroke: var(--ink); fill:none; stroke-width:1.4; }

/* ---------- Nav Drawer ---------- */
.drawer-overlay{
  position: fixed; inset:0; background: rgba(30,27,23,.35);
  opacity:0; pointer-events:none; transition: opacity .25s ease;
  z-index: 60;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.drawer{
  position: fixed; top:0; left:0; height:100%; width:290px;
  background: var(--ivory);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 61;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}
.drawer.open{ transform: translateX(0); }
.drawer .close-drawer{
  background:none; border:none; font-family: var(--sans);
  font-size: 12px; letter-spacing:.15em; text-transform:uppercase;
  margin-bottom: 42px; padding:0;
}
.drawer nav a{
  display:block;
  font-family: var(--serif);
  font-size: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.drawer nav a:hover{ color: var(--clay); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  transition: all .2s ease;
}
.btn:hover{ background: var(--ivory); color: var(--ink); }
.btn.outline{ background: transparent; color: var(--ink); }
.btn.outline:hover{ background: var(--ink); color: var(--ivory); }
.btn:disabled{ opacity:.35; cursor:not-allowed; }
.btn:disabled:hover{ background: var(--ink); color: var(--ivory); }
.btn.full{ width:100%; }

.link-arrow{
  font-size: 12px; letter-spacing:.12em; text-transform:uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.link-arrow:hover{ color: var(--clay); border-color: var(--clay); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display:flex; align-items:center; justify-content:center;
  padding: 90px 32px;
  text-align:center;
  border-bottom: 1px solid var(--line);
  background: var(--ink); /* shows while video loads */
}
.hero-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08) brightness(0.95);
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,.55) 100%);
}
.hero-content{ position: relative; z-index: 2; }
.hero .wordmark-big{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 8vw, 84px);
  letter-spacing: .5em;
  text-transform: lowercase;
  margin: 0 0 22px;
  color: var(--ivory);
  text-indent: .5em; /* re-center the extra trailing tracking */
}
.hero-content p{
  max-width: 480px; margin: 0 auto;
  color: rgba(250,248,243,.82);
  font-size: 15px;
}

.hero.hero-thin{
  min-height: 26vh;
  padding: 40px 32px;
}
.hero.hero-thin .wordmark-big{
  font-size: clamp(26px, 5vw, 44px);
  letter-spacing: .3em;
  text-indent: .3em;
  margin-bottom: 10px;
}

/* ---------- Section headers ---------- */
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom: 34px; flex-wrap:wrap; gap:12px;
}
.section-head h2{ font-size: 26px; letter-spacing:.04em; }

.section{ padding: 68px 32px; }
.section.line-top{ border-top:1px solid var(--line); }
.section.tint{ background: var(--ivory-2); }
.section.quote-paths{ background: var(--ivory); }
.section.quote-paths .path-card{ background: var(--white); padding: 24px; }

/* ---------- Carousel / Grid ---------- */
.carousel{
  display:flex; gap: 22px;
  overflow-x:auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -ms-overflow-style:none; scrollbar-width:none;
}
.carousel::-webkit-scrollbar{ display:none; }
.carousel .card{ scroll-snap-align:start; flex: 0 0 250px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
}

.card{ display:block; }
.card .frame{
  aspect-ratio: 3/4;
  background: var(--white);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative;
  transition: border-color .2s ease;
}
.card:hover .frame{ border-color: var(--ink); }
.card .frame svg{ width:72%; height:72%; }
.card .meta{ padding-top: 12px; }
.card .name{ font-family: var(--serif); font-size: 16px; }
.card .price{ font-size: 12.5px; color: var(--ink-soft); margin-top:2px; }

/* ---------- Custom orders teaser ---------- */
.custom-teaser{
  position: relative;
  overflow: hidden;
  padding: 90px 32px;
  text-align:center;
  background: var(--ink);
  color: var(--ivory);
}
.custom-teaser-media{
  position: absolute; top: 0; right: 0; height: 100%;
  aspect-ratio: 2117 / 1318;
  z-index: 0;
  background: url('customorders3.jpg') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,1) 100%);
}
.custom-teaser-media::after{
  content: ''; position: absolute; inset: 0;
  background: rgba(10,9,8,.4);
}
.custom-teaser-content{ position: relative; z-index: 1; }
.custom-teaser h2{ color: var(--ivory); font-size: clamp(26px,4vw,38px); margin-bottom:16px; }
.custom-teaser p{ color: #C9C3B8; max-width:460px; margin:0 auto 30px; font-size:14.5px; }
.custom-teaser .btn{ border-color: var(--ivory); background: var(--ivory); color: var(--ink); }
.custom-teaser .btn:hover{ background: transparent; color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 56px 32px 30px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4{
  font-family: var(--sans); font-size: 11px; letter-spacing:.18em;
  text-transform:uppercase; color: var(--ink-soft); margin: 0 0 16px;
}
.footer-grid p, .footer-grid a{ font-size: 14px; color: var(--ink-soft); }
.footer-grid a{ display:block; margin-bottom: 9px; }
.footer-grid a:hover{ color: var(--ink); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size: 12px; color: var(--ink-soft);
}
.footer-grid a.footer-terms-link{
  color: #2952CC; text-decoration: underline;
  font-size: 11px; margin-top: 14px;
}
.footer-grid a.footer-terms-link:hover{ color: #1B3A9E; }

/* ---------- Rental Collection page ---------- */
.collection-title{ padding-top:32px; padding-bottom:0; }
.collection-title .section-head{ margin-bottom:16px; }
.collection-results{ padding-top:18px; }
.collection-layout{ display:block; }

.filter-sort-bar{
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding: 14px 0; margin-bottom: 28px;
}
.filter-trigger{
  display:flex; align-items:center; gap:8px;
  background:none; border:none; font-family:var(--sans);
  font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; color:var(--ink);
}
.filter-trigger:hover{ color: var(--clay); }
.filter-active-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:50%;
  background: var(--ink); color: var(--ivory); font-size:10.5px;
}
.filter-active-count:empty{ display:none; }

.sort-select-wrap{ display:flex; align-items:center; gap:8px; }
.sort-select-wrap label{ font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); }
.sort-select-wrap select{
  border:none; background:none; font-family:var(--sans); font-size:12.5px;
  color:var(--ink); padding:4px 22px 4px 4px; cursor:pointer;
  appearance:none; -webkit-appearance:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%231E1B17' stroke-width='1.6'/></svg>");
  background-repeat:no-repeat; background-position:right center; background-size:14px;
}
.sort-select-wrap select:focus{ outline:none; }

.filter-overlay{
  position: fixed; inset:0; background: rgba(30,27,23,.35);
  opacity:0; pointer-events:none; transition: opacity .25s ease;
  z-index: 60;
}
.filter-overlay.open{ opacity:1; pointer-events:auto; }
.filter-panel{
  position: fixed; top:0; right:0; height:100%; width:320px; max-width:86vw;
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 61;
  padding: 28px 30px;
  border-left: 1px solid var(--line);
  overflow-y:auto;
}
.filter-panel.open{ transform: translateX(0); }
.filter-panel-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:26px;
}
.filter-panel-header h3{ font-size: 13px; letter-spacing:.1em; text-transform:uppercase; font-family:var(--sans); margin:0; }
.filter-panel-close{
  background:none; border:none; font-family:var(--sans); font-size:20px;
  line-height:1; cursor:pointer; color:var(--ink-soft); padding:0;
}
.filter-panel-close:hover{ color:var(--ink); }

.filter-group{ border-bottom: 1px solid var(--line-soft); padding-bottom:16px; margin-bottom:16px; }
.filter-group:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.filter-group summary{
  cursor:pointer; font-size: 12.5px; letter-spacing:.08em; text-transform:uppercase;
  display:flex; justify-content:space-between; align-items:center;
  padding: 4px 0; list-style:none;
}
.filter-group summary::-webkit-details-marker{ display:none; }
.filter-group summary::after{ content:'+'; font-size:14px; }
.filter-group[open] summary::after{ content:'–'; }
.filter-group label{
  display:flex; align-items:center; gap:9px;
  font-size: 13.5px; padding: 7px 0; color: var(--ink-soft); cursor:pointer;
}
.filter-group label:hover{ color: var(--ink); }
.filter-group input{ accent-color: var(--ink); }

.filter-count{
  font-size:13px; color: var(--ink-soft); margin-bottom:22px;
}
.clear-filters{
  font-size:12px; text-transform:uppercase; letter-spacing:.08em;
  color: var(--clay); background:none; border:none; padding:0; margin-top:10px;
}

.empty-state{
  text-align:center; padding: 60px 20px; color: var(--ink-soft);
  border: 1px dashed var(--line); grid-column: 1/-1;
}

/* ---------- Item Booking page ---------- */
.booking-layout{
  display:grid; grid-template-columns: 1fr 420px; gap: 56px;
  align-items:start;
}
.back-link{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft);
  margin-bottom: 26px;
}
.back-link:hover{ color: var(--ink); }

.gallery-main{
  aspect-ratio: 3/4; background: var(--white); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; margin-bottom: 14px;
}
.gallery-main svg{ width:60%; height:60%; }
.gallery-thumbs{ display:flex; gap:10px; }
.gallery-thumbs button{
  width: 56px; height: 56px; border: 1px solid var(--line); background: var(--white);
  padding:8px;
}
.gallery-thumbs button.active{ border-color: var(--ink); }
.gallery-thumbs svg{ width:100%; height:100%; }

.dress-title{ font-size: 30px; margin-bottom: 8px; }
.dress-size{ font-size: 12px; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-soft); margin-bottom:14px; }
.dress-desc{ color: var(--ink-soft); font-size: 14.5px; margin: 14px 0 18px; }
.dress-from{ font-size: 14px; margin-bottom: 4px; }
.dress-from b{ font-family: var(--serif); font-size: 19px; font-weight:400; }
.shipping-note{ font-size: 12px; color: var(--ink-soft); font-style: italic; margin-bottom: 22px; }

details.info-accordion{ border-top: 1px solid var(--line); padding: 16px 0; }
details.info-accordion:last-of-type{ border-bottom: 1px solid var(--line); }
details.info-accordion summary{
  cursor:pointer; display:flex; justify-content:space-between; align-items:center;
  font-size: 13px; letter-spacing:.06em; text-transform:uppercase; list-style:none;
}
details.info-accordion summary::-webkit-details-marker{ display:none; }
details.info-accordion summary::after{ content:'⌄'; font-size:16px; }
details.info-accordion[open] summary::after{ content:'⌃'; }
details.info-accordion .body{ padding-top: 12px; font-size: 13.5px; color: var(--ink-soft); }

/* Booking panel */
.booking-panel{
  border: 1px solid var(--line);
  padding: 28px;
  position: sticky; top: 100px;
}
.booking-panel h3{
  font-size: 12px; letter-spacing:.14em; text-transform:uppercase; font-family:var(--sans);
  margin-bottom:16px;
}
.field-label{
  font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft);
  margin: 18px 0 9px;
}
.field-label:first-child{ margin-top:0; }

.pill-group{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{
  padding: 9px 16px; border:1px solid var(--line); background: var(--white);
  font-size: 13px; color: var(--ink);
}
.pill.active{ border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.pill:hover:not(.active){ border-color: var(--ink); }
.pill.pill-multiline{ display:flex; flex-direction:column; align-items:center; gap:2px; line-height:1.3; }
.pill .pill-sub{ display:block; font-size:11px; opacity:.7; }

.size-grid{ display:flex; gap:8px; }
.size-pill{
  width:42px; height:42px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); font-size:12.5px; background:var(--white);
}
.size-pill.active{ border-color: var(--ink); background: var(--ink); color: var(--ivory); }

/* Calendar */
.cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cal-head button{ background:none; border:none; font-size: 16px; color: var(--ink-soft); padding:4px 8px; }
.cal-head button:hover{ color: var(--ink); }
.cal-head .cal-label{ font-family: var(--serif); font-size:15px; }
.cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap:4px; text-align:center; }
.cal-grid .dow{ font-size:10.5px; color: var(--ink-soft); padding-bottom:6px; letter-spacing:.05em; }
.cal-day{
  aspect-ratio: 1; display:flex; align-items:center; justify-content:center;
  font-size: 12.5px; border: 1px solid transparent; background: none; color: var(--ink);
}
.cal-day.muted{ color: #C9C3B8; }
.cal-day.disabled{ color: #D9D4C8; text-decoration: line-through; cursor:not-allowed; }
.cal-day.selectable:hover{ border-color: var(--line); }
.cal-day.start{ background: var(--ink); color: var(--ivory); }
.cal-day.in-range{ background: var(--clay-soft); }
.cal-day.end{ background: var(--ink); color: var(--ivory); }
.cal-legend{ font-size: 11px; color: var(--ink-soft); margin-top:10px; }

.date-readout{
  display:flex; justify-content:space-between; font-size:13px; margin-top:16px;
  padding-top:14px; border-top:1px solid var(--line-soft);
}
.date-readout div span{ display:block; font-size:11px; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; margin-bottom:3px; }

.total-row{
  display:flex; justify-content:space-between; align-items:baseline;
  margin: 22px 0 16px; padding-top:16px; border-top:1px solid var(--line);
}
.total-row .label{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); }
.total-row .amount{ font-family: var(--serif); font-size: 24px; }

.notice{
  font-size: 12px; color: var(--ink-soft); background: var(--ivory-2);
  border: 1px solid var(--line); padding: 10px 12px; margin-top:14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2,1fr); }
  .booking-layout{ grid-template-columns: 1fr; }
  .booking-panel{ position: static; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce){
  .hero-video{ display:none; }
  .hero{ background: var(--ink) url('https://images.pexels.com/videos/9512048/pexels-photo-9512048.jpeg?auto=compress&cs=tinysrgb&h=1200') center/cover; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: repeat(2,1fr); gap: 16px 12px; }
  .wrap, .section{ padding-left:18px; padding-right:18px; }
  .site-header .bar{ padding: 14px 18px; position: relative; }
  .wordmark{
    font-size: 12px; letter-spacing: .24em;
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 40vh; padding: 44px 24px; }
  .hero .wordmark-big{ font-size: 32px; font-weight: 100; letter-spacing: .32em; margin-bottom: 14px; }
  .hero-content p{ font-size: 12.5px; }
  .hero.hero-thin{ min-height: 18vh; padding: 26px 20px; }

  /* New Rentals down + other pages: scale text to match the smaller hero */
  .section-head h2{ font-size: 18px; }
  .link-arrow{ font-size: 10px; }
  .section{ padding: 48px 18px; }
  .card .name{ font-size: 13px; }
  .card .price{ font-size: 11px; }
  .custom-teaser{ padding: 34px 20px; }
  .custom-teaser-media{ aspect-ratio: 11 / 10; background-position: left center; }
  .custom-teaser h2{ font-size: 27px; }
  .custom-teaser p{ font-size: 12.5px; }
  .footer-grid h4{ font-size: 10px; }
  .footer-grid p, .footer-grid a{ font-size: 12.5px; }
  .footer-bottom{ font-size: 11px; justify-content:center; text-align:center; }
  .back-link{ font-size: 11px; }
  .footer-about{ display:none; }
  .collection-title{ padding-top:26px; padding-bottom:0; }
  .collection-title .section-head{ margin-bottom:10px; }
  .collection-results{ padding-top:14px; }
  .filter-panel{ width:100%; }
  .filter-panel-header h3{ font-size: 12px; }
  .filter-group summary{ font-size: 12px; }
  .filter-group label{ font-size: 12.5px; }
  .filter-sort-bar{ padding:12px 0; margin-bottom:20px; }
  .filter-trigger, .sort-select-wrap label, .sort-select-wrap select{ font-size:11px; }
  .dress-title{ font-size: 20px; }
  .dress-desc{ font-size: 12.5px; }
  .dress-from{ font-size: 12.5px; }
  .dress-from b{ font-size: 15px; }
  .total-row .amount{ font-size: 18px; }
  .booking-panel h3{ font-size: 11px; }
}
