/* ============================================================
   COLLECTIVE ARTISTS WORKSHOP — site styles
   Locked: Ivory + Gold palette, Cormorant + Lora type, Stacked logo
   ============================================================ */

:root {
  /* Palette — warm ivory + charcoal + gold */
  --ink: #1a1a1a;
  --ink-soft: #2c2826;
  --ink-muted: #5a544c;
  --paper: #f5efe4;
  --paper-warm: #ede4d2;
  --paper-deep: #e3d7bf;
  --gold: #b8893a;
  --gold-deep: #8e6824;
  --gold-light: #d9b675;
  --rose: #7a1f2b;
  --line: rgba(26, 26, 26, 0.18);
  --line-soft: rgba(26, 26, 26, 0.08);

  /* Type — locked: Cormorant + Lora */
  --font-display: "Cormorant Garamond", "Cormorant", "Garamond", serif;
  --font-serif: "Lora", "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --header-h: 88px;
  --header-h-mobile: 64px;
  --max-w: 1440px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.6;
  /* offset for sticky header */
  scroll-padding-top: var(--header-h);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* === Typography === */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.eyebrow {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.eyebrow.gold { color: var(--gold-deep); }

.rule {
  width: 32px; height: 1px; background: var(--gold);
  border: 0; margin: 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* === Buttons === */
.btn {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--gold {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--small { font-size: 12px; padding: 10px 18px; letter-spacing: 0.2em; }
.btn--invert { border-color: rgba(245,239,228,0.4); color: var(--paper); }
.btn--invert:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* === Crow asset (mask-tinted — preserves silhouette, takes currentColor) === */
.crow {
  display: inline-block;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: url("assets/crow-camera.png");
          mask-image: url("assets/crow-camera.png");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
/* Aspect ratio for the camera mark is 568/536 ≈ 1.06 (effectively square) */
.crow--full,
.crow--crest,
.crow--head { /* legacy class names — all map to camera mark now */ }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px 18px 24px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled {
  padding: 12px 56px 12px 24px;
  background: rgba(245, 239, 228, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,0.25);
}
.header__brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.header__brand .crow {
  flex: 0 0 auto;
  width: 76px; height: 76px; /* camera mark is ~square */
  color: var(--ink);
  transition: width 0.25s ease, height 0.25s ease;
}
.header.is-scrolled .header__brand .crow {
  width: 56px; height: 56px;
}
.header.is-scrolled .header__monogram { font-size: 36px; }
.header.is-scrolled .header__sub { font-size: 11px; margin-top: 5px; }
.header__monogram {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.header__sub {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  font-family: var(--font-serif);
  font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 22px; margin-left: 40px; }
.nav__link {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--gold-deep); }
.nav__link.active { color: var(--gold-deep); }
.nav__link.active::after {
  content: "•"; position: absolute; bottom: -6px; left: 50%;
  transform: translateX(-50%); color: var(--gold);
  font-size: 14px; line-height: 1;
}

/* dropdown for "More" */
.nav__group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__group-trigger { padding-right: 14px; }
.nav__group-trigger::after {
  content: "▾"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 8px; color: var(--ink-muted);
}
/* When this group is "active" (we're on one of its child pages), swap the
   chevron for the same gold dot the regular nav links use. */
.nav__group-trigger.active::after {
  content: "•";
  right: auto;
  left: 50%;
  top: auto;
  bottom: -6px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.25);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav__dropdown a:hover { color: var(--gold-deep); background: var(--paper-warm); }

/* mobile menu trigger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__close {
  background: transparent; border: none;
  font-size: 28px; line-height: 1; color: var(--ink);
  font-family: var(--font-display); padding: 4px 8px;
}
.mobile-menu__list {
  list-style: none; padding: 32px 0 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu__list a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 32px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.01em;
}
.mobile-menu__list a.active { color: var(--gold-deep); }
.mobile-menu__cta { margin-top: 32px; }

/* === Page sections === */
.section { padding: 44px 80px; }
.section--warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--gold-light); }
.section--center { text-align: center; }
.container { max-width: var(--max-w); margin: 0 auto; }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,18,15,0.35) 0%,
    rgba(20,18,15,0.55) 60%,
    rgba(20,18,15,0.85) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 80px 72px;
  color: var(--paper);
  width: 100%;
}

/* === Generic grids === */
.grid { display: grid; gap: 48px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Footer === */
.footer { background: var(--paper-warm); color: var(--ink); }
.footer__belong {
  text-align: center;
  padding: 52px 32px 44px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__belong-title {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  font-weight: 500;
}
.footer__belong-title em { font-style: italic; color: var(--gold-deep); }
.footer__heart {
  display: inline-block;
  width: 40px; height: 36px;
  vertical-align: middle;
  margin-left: 16px;
  fill: var(--rose);
}
.footer__sub {
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 18px;
  font-size: 16px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 80px 32px;
}
.footer__cols h4 {
  font-family: var(--font-serif);
  font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 500; margin: 0 0 18px;
}
.footer__brand-tag {
  font-size: 15px; color: var(--ink-muted);
  line-height: 1.7; margin-top: 20px; max-width: 260px;
}
.footer__socials { display: flex; gap: 12px; margin-top: 22px; }
.footer__social {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.footer__social:hover { border-color: var(--gold); color: var(--gold-deep); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--ink); text-decoration: none; }
.footer ul a:hover { color: var(--gold-deep); }
.footer__newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  margin-top: 12px;
}
.footer__newsletter input {
  border: none; border-bottom: 1px solid var(--ink); background: transparent;
  padding: 10px 0;
  font-family: var(--font-serif); font-size: 15px;
  outline: none; color: var(--ink);
}
.footer__newsletter input[type="email"] { grid-column: 1 / -1; }
.footer__newsletter button {
  grid-column: 1 / -1; justify-self: start;
  margin-top: 14px; padding: 0; cursor: pointer; white-space: nowrap;
  border: none; background: transparent; color: var(--gold-deep);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
}
.footer__newsletter-thanks {
  margin-top: 16px;
  font-family: var(--font-serif); font-size: 15px;
  color: var(--gold-deep); line-height: 1.5;
}
.footer__legal {
  border-top: 1px solid var(--line-soft);
  padding: 20px 80px;
  display: flex; justify-content: space-between;
  font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
}

/* === Show card === */
.show-card { position: relative; overflow: hidden; }
.show-card__img {
  aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  filter: sepia(0.18) contrast(1.05);
  margin-bottom: 24px;
}

/* === Image strip === */
.img-strip {
  display: grid;
  gap: 4px;
  height: 380px;
  padding: 0 80px;
}

/* === Form inputs === */
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-size: 14px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1100px) {
  .header { padding: 16px 32px 16px 16px; }
  .header.is-scrolled { padding: 10px 32px 10px 16px; }
  .section { padding: 36px 40px; }
  .hero__content { padding: 0 40px 56px; }
  .footer__cols { padding: 56px 40px 32px; grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer__legal { padding: 20px 40px; }
  .img-strip { padding: 0 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --header-h: var(--header-h-mobile);
  }
  body { font-size: 16px; }

  .header {
    padding: 12px 20px;
    height: var(--header-h-mobile);
  }
  .header.is-scrolled { padding: 10px 20px; }
  .header__brand .crow {
    width: 44px; height: 44px;
  }
  .header__monogram { font-size: 22px; letter-spacing: 0.28em; }
  .header__sub { display: none; }

  .nav { display: none; }
  .nav__burger { display: flex; }

  .section { padding: 32px 20px; }
  .hero { min-height: 540px; }
  .hero__content { padding: 0 20px 40px; }

  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 32px; }
  .img-strip { grid-template-columns: 1fr !important; height: auto; padding: 0 20px; gap: 4px; }
  .img-strip > * { height: 240px; }

  .footer__cols { grid-template-columns: 1fr; padding: 48px 24px 24px; gap: 36px; }
  .footer__legal { padding: 18px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .footer__belong { padding: 56px 24px 40px; }
  .footer__belong-title { font-size: 40px; }

  .display-xl  { font-size: 56px !important; line-height: 1 !important; }
  .display-lg  { font-size: 44px !important; line-height: 1 !important; }
  .display-md  { font-size: 32px !important; line-height: 1.05 !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
