/* Son & Rho Apparel Co. — site styles
   Palette: French Blue / Slate Blue / Seafoam / Lemon / Ivory
   Type: Satoshi (variable) */

@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0F3D4C;        /* French Blue */
  --slate: #385A64;      /* Slate Blue */
  --seafoam: #9EB7B1;    /* Seafoam */
  --lemon: #F2C94C;      /* Lemon */
  --ivory: #F7F4EC;      /* Ivory */
  --white: #FFFFFF;
  --ink-soft: rgba(15, 61, 76, 0.7);
  --ink-faint: rgba(15, 61, 76, 0.45);
  --line: rgba(15, 61, 76, 0.14);

  --max: 1240px;
  --gutter: clamp(24px, 6vw, 96px);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Satoshi", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.08;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--lemon);
  display: inline-block;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.serif-script { font-family: "Satoshi", sans-serif; font-style: italic; }
.founder-byline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  justify-content: center;
}
.founder-byline img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--ivory);
}
.founder-byline > div { text-align: left; }
.founder-title { font-size: 1rem; font-weight: 600; letter-spacing: .04em; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--slate); }
.btn-lemon { background: var(--lemon); color: var(--ink); }
.btn-lemon:hover { background: #e6bb2f; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-outline-light { background: transparent; color: var(--ivory); border-color: rgba(247,244,236,0.5); }
.btn-outline-light:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand img { height: 60px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a.btn {
  color: var(--ivory);
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover:not(.btn), .nav-links a.active:not(.btn) { color: var(--ink); }
.nav-links a.btn:hover { color: var(--ivory); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--lemon);
}
.nav-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--ivory); flex-direction: column; justify-content: flex-start; padding: 40px var(--gutter); gap: 28px; transform: translateX(100%); transition: transform .3s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { margin: 18px 0 8px; }
.hero-subhead {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  color: var(--slate);
  margin: 0 0 22px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--seafoam);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 420px; }
}

/* ---------- Hero motion slideshow ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: heroFade 18s infinite, heroZoom 18s infinite ease-in-out;
}
.hero-slide:nth-child(1) { animation-delay: 0s, 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s, 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s, 12s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  28%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 8vw, 110px) 0; }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-dark p { color: rgba(247,244,236,0.72); }
.section-dark .eyebrow { color: var(--lemon); }
.section-dark .badge { color: var(--seafoam); }
.section-seafoam { background: var(--seafoam); }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }

/* ---------- Anchors / services grid ---------- */
.anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.anchor-card {
  background: var(--ivory);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
}
.anchor-card .num { font-size: .8rem; color: var(--slate); font-weight: 700; letter-spacing: .1em; margin-bottom: 22px; }
.anchor-card h3 { margin-bottom: 14px; }
.anchor-card p { flex: 1; font-size: 0.95rem; }
.anchor-card a { font-weight: 600; font-size: 0.85rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 800px) { .anchors { grid-template-columns: 1fr; } }

/* ---------- Image + text split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.split.reverse .split-img { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; }
.split-img img { width: 100%; display: block; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: -1; }
}

/* ---------- Process ---------- */
.process-list { counter-reset: step; margin-top: 10px; }
.process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item::before {
  content: counter(step, decimal-leading-zero);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lemon);
}
.section-dark .process-item { border-color: rgba(247,244,236,0.15); }
.process-item h4 { margin-bottom: 6px; }
.process-item p { margin: 0; font-size: 0.94rem; }

/* ---------- Work / case studies ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-media { aspect-ratio: 4/3; overflow: hidden; background: var(--seafoam); }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media.tone-ink { background: var(--ink); display:flex; align-items:center; justify-content:center; }
.work-media.tone-slate { background: var(--slate); display:flex; align-items:center; justify-content:center; }
.work-media.tone-seafoam { background: var(--seafoam); display:flex; align-items:center; justify-content:center; }
.work-media .mark { font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; color: var(--ivory); text-align: center; padding: 0 20px; }
.work-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.work-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.work-body h3 { margin-bottom: 10px; }
.work-body p { font-size: .93rem; flex: 1; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Work gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--seafoam);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(15,61,76,.82) 0%, rgba(15,61,76,0) 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span {
  color: var(--ivory);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (hover: none) {
  .gallery-caption { opacity: 1; background: linear-gradient(to top, rgba(15,61,76,.75) 0%, rgba(15,61,76,0) 65%); }
}

/* ---------- Quote ---------- */
.quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; color: var(--ink); font-style: italic; line-height: 1.4; }
.section-dark .quote p { color: var(--ivory); }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--slate); }
.section-dark .quote cite { color: var(--seafoam); }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: 70px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(247,244,236,0.15);
}
.footer-brand { font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer-top p { color: rgba(247,244,236,0.65); font-size: .92rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lemon); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: rgba(247,244,236,0.75); font-size: .92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 14px; }
.footer-bottom span { color: rgba(247,244,236,0.5); font-size: .8rem; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding-top: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-top: 16px; max-width: 760px; }
.page-header p.lede { max-width: 640px; margin-top: 20px; }

/* ---------- Leadership ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { text-align: left; }
.team-photo { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 20px; background: var(--seafoam); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.tone { display:flex; align-items:center; justify-content:center; background: var(--ink); }
.team-photo.tone span { color: var(--ivory); font-weight: 700; font-size: 2.2rem; }
.team-card h3 { margin-bottom: 4px; }
.team-role { font-size: .82rem; font-weight: 600; color: var(--slate); letter-spacing: .04em; margin-bottom: 12px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-item .eyebrow { margin-bottom: 14px; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid rgba(247,244,236,0.15); }
.contact-list .label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lemon); display: block; margin-bottom: 6px; }
.contact-list a, .contact-list span.value { font-size: 1.05rem; font-weight: 500; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; }

/* ---------- Preorder ---------- */
.hidden-field { position: absolute; left: -9999px; }
.preorder-category { margin-bottom: 8px; }
.preorder-category h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.preorder-list { list-style: none; margin: 0; padding: 0; }
.preorder-item {
  display: grid;
  grid-template-columns: 1fr 130px 130px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pi-info { display: flex; flex-direction: column; gap: 4px; }
.pi-name { font-weight: 600; font-size: 1rem; }
.pi-price { color: var(--slate); font-weight: 600; font-size: .92rem; }
.size-select {
  font-family: inherit;
  font-size: .92rem;
  padding: 10px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  height: 44px;
}
.qty-stepper button {
  width: 40px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1;
}
.qty-stepper button:hover { background: var(--ivory); }
.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 640px) {
  .preorder-item { grid-template-columns: 1fr; gap: 10px; }
  .size-select, .qty-stepper { width: 100%; }
}

.order-summary-bar {
  position: sticky;
  bottom: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid var(--lemon);
  z-index: 50;
}
.order-summary-bar .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--seafoam); }
.order-summary-bar .amount { font-size: 1.6rem; font-weight: 700; color: var(--lemon); }
.order-error {
  display: none;
  background: #f3d9d9;
  color: #7a2b2b;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.order-error.show { display: block; }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.badge-row .badge { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.divider { height: 1px; background: var(--line); width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: left; }
.stat .n { font-size: clamp(2rem,3.6vw,3rem); font-weight: 700; color: var(--ink); }
.stat .l { font-size: .8rem; color: var(--slate); font-weight: 600; letter-spacing: .04em; margin-top: 6px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
