/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --fig:        #3D2B3D;
  --red-plum:   #8B3A52;
  --red-plum-deep: #6E2D41;   /* darker variant for text on plum bg */
  --green-haze: #4A6741;
  --cream:      #F5F0E8;
  --sage:       #9DAF8E;
  --cream-dark: #EDE6D6;
  --text:       #2A2028;
  --text-light: #7A6E78;
  --dark-bg:    #7A3248;      /* red-plum as section background */
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Jost', sans-serif;
  --nav-h: 64px;
  --r: 0.75rem;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-b); }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
body > nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
  background: rgba(237,230,214,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61,43,61,0.08);
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fig);
  white-space: nowrap;
}
.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red-plum); }

/* Hamburger */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 24px; height: 16px;
  background: none; border: none; padding: 0;
}
.nav-hamburger span {
  display: block; height: 1.5px;
  background: var(--fig);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(61,43,61,0.08);
  z-index: 190;
  flex-direction: column;
  padding: 1.5rem clamp(1.2rem, 5vw, 3rem) 2rem;
  gap: 0.25rem;
  /* Force its own compositing layer so text paints independently of the
     nav's backdrop-filter (works around a Chromium repaint bug). */
  transform: translateZ(0);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(61,43,61,0.06);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--red-plum); }

/* ─────────────────────────────────────────
   SHARED HELPERS
───────────────────────────────────────── */
.wrap {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 3rem);
}
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 0.85rem;
  display: block;
}
h2.sec {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400; line-height: 1.1;
  color: var(--fig); margin-bottom: 1.25rem;
}
.btn-p {
  display: inline-block;
  background: var(--fig); color: var(--cream);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border-radius: 100px; border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-p:hover { background: var(--red-plum); transform: translateY(-1px); }
.btn-o {
  display: inline-block;
  background: transparent; color: var(--fig);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.85rem 1.8rem; border-radius: 100px;
  border: 1px solid var(--fig);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-o:hover { border-color: var(--red-plum); color: var(--red-plum); transform: translateY(-1px); }
.img-ph {
  width: 100%; background: var(--cream-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-light); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}
.img-ph svg { opacity: 0.25; }

/* ─────────────────────────────────────────
   HERO  (mobile-first → stacked)
───────────────────────────────────────── */
#hero {
  padding-top: var(--nav-h);
  min-height: 100svh;
  background: var(--cream);
  display: flex; flex-direction: column;
}
.hero-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--cream-dark), #d8cfc0);
  flex-shrink: 0; position: relative; overflow: hidden;
}
.hero-img .img-ph { height: 100%; }
.hero-img .img-ph img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-badge {
  position: absolute; bottom: 1.2rem; right: 1.2rem;
  background: var(--cream);
  border: 1px solid rgba(61,43,61,0.1);
  border-radius: 1rem; padding: 0.8rem 1.1rem;
  box-shadow: 0 6px 20px rgba(61,43,61,0.12);
  font-size: 0.72rem; color: var(--text-light);
  line-height: 1.3;
}
.hero-badge strong {
  display: block; font-family: var(--font-d);
  font-size: 1.5rem; color: var(--fig); font-weight: 500;
}
.hero-copy {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem);
}
.hero-copy .eyebrow { color: var(--red-plum); }
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 300; line-height: 1.06;
  color: var(--fig); margin-bottom: 1.2rem;
}
.hero-title em { font-style: italic; color: var(--red-plum); }
.hero-sub {
  font-size: 0.95rem; color: var(--text-light);
  line-height: 1.85; margin-bottom: 2rem;
  max-width: 42ch;
}
.hero-facts {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.9rem;
  margin-bottom: 2rem; max-width: 44ch;
}
.hero-facts li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.95rem; color: var(--text-light); line-height: 1.5;
}
.hero-facts .hf-dot {
  flex-shrink: 0; margin-top: 0.1rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(61,43,61,0.05);
  border: 1px solid rgba(139,58,82,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.hero-facts strong { color: var(--fig); font-weight: 500; }
.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-ctas .btn-p, .hero-ctas .btn-o { text-align: center; }

/* ─────────────────────────────────────────
   UGC PORTFOLIO
───────────────────────────────────────── */
#ugc { background: var(--dark-bg); }
#ugc h2.sec { color: var(--cream); }
.ugc-top {
  display: flex; flex-direction: column; gap: 1.25rem;
  margin-bottom: 2rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ftab {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  border: 1px solid rgba(245,240,232,0.3); color: rgba(245,240,232,0.75);
  background: transparent; transition: all 0.2s;
}
.ftab.active, .ftab:hover { background: var(--cream); color: var(--fig); border-color: var(--cream); }

/* Mobile: simple 2-col grid, all same ratio */
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0.75rem;
}
.ugc-card {
  border-radius: var(--r); overflow: hidden;
  background: var(--cream-dark); position: relative; cursor: pointer;
}
.ugc-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: linear-gradient(150deg, var(--cream-dark), #cfc5b5);
  transition: transform 0.3s;
}
.ugc-card:hover .ugc-thumb { transform: scale(1.04); }
.ugc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: transparent;
}
.ugc-card.is-empty .ugc-video { visibility: hidden; }   /* file not uploaded yet */
.ugc-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  padding-left: 3px;                                     /* optically centre ▶ */
  background: rgba(245,240,232,0.85);
  border: 1px solid rgba(61,43,61,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--fig); cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.ugc-card:hover .ugc-play { transform: translate(-50%, -50%) scale(1.08); }
.ugc-card.is-playing .ugc-play { opacity: 0; pointer-events: none; }
.ugc-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(61,43,61,0.18);
  opacity: 0; transition: opacity 0.2s; z-index: 2;
}
.ugc-card.is-playing .ugc-progress { opacity: 1; }
.ugc-bar { display: block; height: 100%; width: 0; background: var(--red-plum); }
.ugc-caption { position: relative; z-index: 1; background: var(--cream-dark); padding: 0.85rem 0.95rem 1.05rem; }
.ugc-caption .uc { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.ugc-caption .ut { font-family: var(--font-d); font-style: italic; color: var(--fig); font-size: 0.98rem; margin-top: 0.2rem; }
.ugc-caption .um { font-size: 0.68rem; color: var(--text-light); margin-top: 0.25rem; }

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
#services { background: var(--cream-dark); }
.services-intro { margin-bottom: 2.5rem; }
.services-intro p { font-size: 0.92rem; color: var(--text-light); line-height: 1.85; max-width: 55ch; }
.services-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.svc {
  background: var(--cream); border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(61,43,61,0.06);
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.svc::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red-plum); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.svc:hover { box-shadow: 0 10px 30px rgba(61,43,61,0.09); transform: translateY(-2px); }
.svc:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(74,103,65,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 1.25rem;
}
.svc-name {
  font-family: var(--font-d); font-size: 1.35rem;
  font-weight: 500; color: var(--fig); margin-bottom: 0.6rem;
}
.svc-desc { font-size: 0.87rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1.25rem; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.svc-list li {
  font-size: 0.78rem; color: var(--text-light);
  display: flex; align-items: center; gap: 0.5rem;
}
.svc-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0;
}
.svc-price {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(61,43,61,0.08);
  font-size: 0.72rem; color: var(--text-light);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.svc-note {
  margin-top: 1.75rem; text-align: center;
  font-size: 0.9rem; color: var(--text-light);
}
.svc-cta {
  display: inline-block; margin-top: 1.25rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--red-plum); text-decoration: none;
  transition: opacity 0.2s;
}
.svc-cta:hover { opacity: 0.65; }
.form-status {
  margin-top: 0.85rem; min-height: 1.2em;
  font-size: 0.85rem; color: var(--text-light);
}

/* ─────────────────────────────────────────
   CLIENTS
───────────────────────────────────────── */
#clients { background: var(--dark-bg); text-align: center; }
.clients-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 2rem; display: block;
}
.logos {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.75rem;
}
.logo-pill {
  height: 34px; padding: 0 1.2rem;
  background: rgba(245,240,232,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.75); opacity: 0.7;
  transition: opacity 0.2s;
}
.logo-pill:hover { opacity: 1; }
.testimonial {
  margin-top: 2.5rem;
  font-family: var(--font-d); font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(245,240,232,0.88); line-height: 1.6;
}
.testimonial-attr {
  margin-top: 0.5rem;
  font-size: 0.72rem; color: rgba(245,240,232,0.55); letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact { background: var(--cream-dark); }
.contact-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-lead { font-size: 0.92rem; color: var(--text-light); line-height: 1.85; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 0.85rem; }
.cinfo {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.87rem; color: var(--text-light);
}
.cinfo a {
  color: inherit; text-decoration: none;
  transition: color 0.2s ease;
}
.cinfo a:hover { color: var(--red-plum); }
.cinfo-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(61,43,61,0.06);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.cform {
  background: var(--cream); border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(61,43,61,0.06);
  box-shadow: 0 4px 20px rgba(61,43,61,0.06);
}
.frow { display: flex; flex-direction: column; gap: 0; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.fg label {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.fg input, .fg select, .fg textarea {
  font-family: var(--font-b); font-size: 0.9rem;
  background: var(--cream-dark);
  border: 1px solid rgba(61,43,61,0.1);
  border-radius: 0.5rem; padding: 0.7rem 0.9rem;
  color: var(--text); outline: none;
  transition: border-color 0.2s; resize: vertical;
  width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--red-plum); }
.fg textarea { min-height: 110px; }
.fsub { width: 100%; margin-top: 0.25rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--dark-bg);
  padding: 2rem clamp(1.2rem, 5vw, 3rem);
}
.footer-inner {
  display: flex; flex-direction: column; gap: 1.25rem;
  align-items: flex-start;
}
.footer-logo { font-family: var(--font-d); font-size: 1.1rem; color: var(--cream); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,0.45); transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 0.7rem; color: rgba(245,240,232,0.28); letter-spacing: 0.05em; }

/* ─────────────────────────────────────────
   DEV NOTE
───────────────────────────────────────── */
.dev-note {
  position: fixed; bottom: 1rem; right: 1rem;
  background: var(--dark-bg); color: var(--cream);
  font-size: 0.65rem; letter-spacing: 0.07em;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  opacity: 0.7; pointer-events: none; z-index: 999;
}

/* ─────────────────────────────────────────
   TABLET  ≥ 640px
───────────────────────────────────────── */
@media (min-width: 640px) {
  /* Hero: side by side */
  #hero { flex-direction: row; min-height: 100svh; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas a:nth-child(1) { order: 2; } /* View My Work to the middle */
  .hero-ctas a:nth-child(2) { order: 1; } /* Let's Collaborate to the left */
  .hero-ctas a:nth-child(3) { order: 3; } /* Let's Chat stays on the right */
  .hero-img {
    width: 45%; aspect-ratio: auto;
    flex-shrink: 0; order: 2;
  }
  .hero-copy { order: 1; flex: 1; justify-content: center; align-items: center;}
  .hero-badge { bottom: 2rem; right: auto; left: 1.5rem; }

  /* Services: 2 col */
  .services-grid { display: grid; grid-template-columns: repeat(2,1fr); }

  /* UGC: 3 col */
  .ugc-grid { grid-template-columns: repeat(3,1fr); }

  /* Contact: side by side */
  .contact-grid { flex-direction: row; gap: 3.5rem; align-items: start; }
  .contact-grid > * { flex: 1; }

  /* Form row: 2 col */
  .frow { flex-direction: row; gap: 1rem; }
  .frow .fg { flex: 1; }

  /* Footer */
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─────────────────────────────────────────
   DESKTOP  ≥ 900px
───────────────────────────────────────── */
@media (min-width: 900px) {
  /* Nav: show links, hide hamburger */
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-drawer { display: none !important; }

  /* Hero: bigger image */
  .hero-img { width: 48%; }

  /* Services: 3 col */
  .services-grid { grid-template-columns: repeat(3,1fr); }

  /* UGC: 5 col → 10 videos sit as two even rows of 5 */
  .ugc-grid {
    grid-template-columns: repeat(5,1fr);
    grid-auto-rows: auto;
  }

  /* UGC filter row */
  .ugc-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ─────────────────────────────────────────
   ULTRA-WIDE  ≥ 2000px  (scale up the hero)
───────────────────────────────────────── */
@media (min-width: 2000px) {
  .hero-copy { padding: clamp(4rem, 6vw, 7rem) clamp(3rem, 5vw, 6rem); }
  .hero-copy .eyebrow { font-size: 0.85rem; }
  .hero-title { font-size: 6.5rem; }
  .hero-sub { font-size: 1.2rem; max-width: 48ch; }
  .hero-ctas .btn-p, .hero-ctas .btn-o {
    font-size: 0.85rem; padding: 1rem 2.2rem;
  }
}
