/* =========================================================
   Steady Work Media — styles.css
   Palette: navy / warm off-white / terracotta accent
   ========================================================= */

:root {
  --navy:       #16233b;
  --navy-2:     #1f3155;
  --ink:        #1a2233;   /* body text on light */
  --cream:      #f7f4ee;   /* page background */
  --cream-2:    #efeae0;   /* alt section / cards */
  --paper:      #fffdf9;   /* card surface */
  --accent:     #c65d3b;   /* terracotta */
  --accent-dk:  #a94a2c;
  --muted:      #5c6472;
  --line:       #e2dccf;
  --line-navy:  rgba(255,255,255,.14);

  --maxw: 1080px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(22,35,59,.06);
  --shadow-md: 0 14px 40px -18px rgba(22,35,59,.35);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #fff;
  padding: 14px 24px; border-radius: 10px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(198,93,59,.7); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: .95rem; border-radius: 8px; }
.btn-invert { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn-invert:hover { background: #fff; border-color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: .92rem; letter-spacing: .02em;
}
.brand-mark.small { width: 28px; height: 28px; font-size: .8rem; border-radius: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(198,93,59,.10), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner { padding: 88px 24px 92px; max-width: 860px; }
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dk); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4rem);
  max-width: 15ch;
}
.hero .lede {
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  color: var(--muted); margin-top: 22px; max-width: 46ch; line-height: 1.5;
}
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }

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

/* ---------- Service cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service { position: relative; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8d0c0; }
.service-num {
  font-family: var(--serif); font-size: .9rem; font-weight: 600;
  color: var(--accent); letter-spacing: .04em; margin-bottom: 14px;
}
.service h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service p { color: var(--muted); }
.service .price {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--ink); font-size: .98rem;
}
.service .price strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Sample work ---------- */
.work { margin: 0; }
.work-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(22,35,59,.03) 0 12px, transparent 12px 24px),
    var(--cream-2);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; }
.work-ph { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.work figcaption { padding: 16px 4px 0; }
.work-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dk); background: rgba(198,93,59,.10);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.work-title { font-family: var(--serif); font-weight: 500; color: var(--navy); font-size: 1.08rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: center; }
.photo-slot {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(22,35,59,.03) 0 12px, transparent 12px 24px),
    var(--cream);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 1.1rem; }
.about-copy p + p { margin-top: 16px; }

/* ---------- Closing CTA band ---------- */
.cta-band { background: var(--navy); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-band h2 { color: var(--cream); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p { color: rgba(247,244,238,.72); font-size: 1.15rem; margin: 14px 0 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 1px solid var(--line-navy); padding: 30px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(247,244,238,.75); font-size: .95rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--serif); }
.footer-email { color: var(--cream); text-decoration: none; font-weight: 500; }
.footer-email:hover { color: var(--accent); }
.footer-copy { color: rgba(247,244,238,.55); }

/* ---------- Reveal animation (progressive enhancement only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ======================= Responsive ======================= */
@media (max-width: 860px) {
  .grid-3, .grid-work, .steps { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 260px; }
}

@media (max-width: 620px) {
  .hero-inner { padding: 60px 24px 64px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-work, .steps { grid-template-columns: 1fr; }
  .header-cta { display: none; }              /* keep header clean on phones; hero CTA is right there */
  .section-head { margin-bottom: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions { gap: 12px; }
  .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
}
