/* ──────────────────────────────────────────────────────────────
   NOPA NOPA STUDIO — Bay Area Boudoir
   Shared stylesheet. Every page links this one file.
   ──────────────────────────────────────────────────────────────
   DESIGN TOKENS — change here, propagates everywhere.
   ────────────────────────────────────────────────────────────── */
:root{
  --white:   #ffffff;
  --black:   #0a0a0a;
  --cherry:  #d4152a;      /* the one accent — use sparingly */
  --ink:     #141414;      /* body copy */
  --mute:    #6b6b6b;      /* captions, metadata */
  --line:    #e8e8e8;      /* hairline dividers */
  --wash:    #f6f6f6;      /* alt section bg */

  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --nav-h:   72px;
  --pad:     clamp(16px, 4vw, 48px);
  --maxw:    1680px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ display:block; max-width:100%; height:auto; }
a{ color: inherit; text-decoration: none; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
}
.nav .brand{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--black);
}
.nav-links{
  display: flex; gap: 32px; align-items: center;
  list-style: none;
}
.nav-links a{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  border-bottom-color: var(--cherry);
}
.nav-links .cta-link{
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border: none !important;
}
.nav-links .cta-link:hover{ background: var(--cherry); }

/* Mobile nav */
.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span{
  display: block; position: absolute; left: 4px; right: 4px; height: 2px;
  background: var(--black); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span:nth-child(1){ top: 10px; }
.nav-toggle span:nth-child(2){ top: 16px; }
.nav-toggle span:nth-child(3){ top: 22px; }
body.menu-open .nav-toggle span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2){ opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: var(--white);
    flex-direction: column; gap: 0;
    padding: 24px var(--pad) 40px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  }
  body.menu-open .nav-links{ transform: translateY(0); }
  .nav-links a{
    padding: 18px 0;
    border-bottom: 1px solid var(--line) !important;
    width: 100%;
  }
  .nav-links .cta-link{
    margin-top: 16px;
    text-align: center;
    border-bottom: none !important;
  }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero{
  padding: clamp(48px, 10vw, 120px) var(--pad) clamp(32px, 6vw, 72px);
  max-width: var(--maxw); margin: 0 auto;
}
.hero-eyebrow{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}
.hero-eyebrow .mark{ color: var(--cherry); }
.hero h1{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--black);
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 .accent{ color: var(--cherry); }
.hero p.lede{
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink);
  line-height: 1.55;
}

/* ── IMAGE SECTIONS ─────────────────────────────────────────── */
.full{
  width: 100%;
  background: var(--black);
  overflow: hidden;
}
.full img{
  width: 100%;
  max-height: 92vh;
  object-fit: cover;
}

.pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--white);
  margin: 2px 0;
}
.pair img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
@media (max-width: 640px){
  .pair{ grid-template-columns: 1fr; }
}

/* Cherry callout — the ONE red moment per page */
.cherry-section{
  background: var(--cherry);
  color: var(--white);
  padding: clamp(80px, 12vw, 160px) var(--pad);
  text-align: center;
}
.cherry-section .quote{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  max-width: 18ch;
  margin: 0 auto;
}
.cherry-section .quote-sub{
  margin-top: 32px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.9;
}

.cherry-image{
  background: var(--cherry);
  padding: clamp(32px, 6vw, 80px);
  display: grid;
  place-items: center;
}
.cherry-image img{
  max-width: min(640px, 100%);
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ── GALLERY GRIDS (for studio.html / location.html) ────────── */
.grid-section{
  padding: clamp(32px, 5vw, 64px) 2px;
}
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.grid figure{
  margin: 0; line-height: 0;
  overflow: hidden;
  background: var(--wash);
}
.grid img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.grid figure:hover img{ transform: scale(1.03); }
@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .grid{ grid-template-columns: 1fr; } }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-head{
  padding: clamp(64px, 10vw, 140px) var(--pad) clamp(32px, 5vw, 64px);
  max-width: var(--maxw); margin: 0 auto;
}
.section-head .eyebrow{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.section-head h1,
.section-head h2{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
}
.section-head p{
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink);
}

/* ── TWO-COLUMN TEXT (about page) ───────────────────────────── */
.two-col{
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(32px, 5vw, 80px) var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.two-col img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.two-col h2{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  color: var(--black);
}
.two-col h2 .accent{ color: var(--cherry); }
.two-col p{ margin-bottom: 20px; font-size: 17px; line-height: 1.65; }
.two-col p:last-child{ margin-bottom: 0; }
@media (max-width: 820px){
  .two-col{ grid-template-columns: 1fr; }
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 18px 36px;
  border: none; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-primary{
  background: var(--black); color: var(--white);
}
.btn-primary:hover{ background: var(--cherry); }
.btn-ghost{
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black);
  padding: 16.5px 34.5px;
}
.btn-ghost:hover{ background: var(--black); color: var(--white); }

.center-cta{
  text-align: center;
  padding: clamp(64px, 10vw, 140px) var(--pad);
}

/* ── FORMS (contact page) ───────────────────────────────────── */
.form-wrap{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(80px, 12vw, 160px);
}
.form-row{ margin-bottom: 28px; }
.form-row label{
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.form-row label .req{ color: var(--cherry); margin-left: 4px; }
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: none;
  border-bottom: 1.5px solid var(--black);
  padding: 10px 0;
  transition: border-color 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-bottom-color: var(--cherry);
}
.form-row textarea{ min-height: 140px; resize: vertical; line-height: 1.55; }
.form-row select{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23141414' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
/* Honeypot — hidden from humans, visible to naive bots */
.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden;
}
.form-note{
  margin-top: 24px;
  font-size: 13px; color: var(--mute); line-height: 1.6;
}

/* Flash messages (set by send.php redirect) */
.flash{
  padding: 18px 20px;
  margin: 0 0 32px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600;
}
.flash-error{ background: var(--cherry); color: var(--white); }
.flash-ok{    background: var(--black);  color: var(--white); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer{
  background: var(--black);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) var(--pad) 32px;
}
.foot-top{
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 820px){
  .foot-top{ grid-template-columns: 1fr; gap: 32px; }
}
.foot-brand{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  margin-bottom: 16px;
}
.foot-tag{
  font-size: 14px; opacity: 0.65; max-width: 36ch; line-height: 1.6;
}
.foot-col h4{
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 20px;
}
.foot-col ul{ list-style: none; }
.foot-col li{ margin-bottom: 12px; }
.foot-col a{ font-size: 14px; opacity: 0.85; }
.foot-col a:hover{ color: var(--cherry); opacity: 1; }
.foot-bottom{
  max-width: var(--maxw); margin: 32px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.5;
}

/* ── MOTION PREFS ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
