/* Bob Michael Advertising — mobile-first, no build step */
:root {
  --navy: #0e1c2a;
  --navy-mid: #173044;
  --navy-soft: #23405a;
  --gold: #c6a15a;
  --gold-light: #e8d5a3;
  --gold-deep: #9a7840;
  --cream: #f6f1e7;
  --paper: #fbf8f2;
  --ink: #243040;
  --muted: #3f4e59;
  --hairline: rgba(198, 161, 90, 0.4);
  --shadow: 0 18px 40px rgba(14, 28, 42, 0.12);
  --font-serif: "Playfair Display", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 4.25rem;
  --max: 70rem;
  --pad: clamp(1.25rem, 5vw, 2rem);
  --radius: 0.85rem;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--gold);
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-italic.woff") format("woff");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-italic.woff") format("woff");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1.125rem; /* 18px — comfortable body size on a phone */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link:focus-visible { box-shadow: var(--focus); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  font-weight: 650;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
  margin-right: auto;
}
.brand img, .brand svg {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 0.45rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 0.18rem;
}

.header-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.4rem 0.9rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.0625rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-call:hover { background: var(--navy-mid); }
.btn-call .full-num { display: none; }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--navy);
  background: transparent;
  border: 1px solid transparent;
}
.nav-toggle-btn:hover { background: rgba(14, 28, 42, 0.05); }
.nav-toggle-btn .icon-menu,
.nav-toggle-btn .icon-close { width: 1.4rem; height: 1.4rem; }
.nav-toggle-btn .icon-close { display: none; }
.header-inner:has(#nav-toggle:checked) .icon-menu { display: none; }
.header-inner:has(#nav-toggle:checked) .icon-close { display: block; }
.nav-toggle:focus-visible + * .nav-toggle-btn,
.nav-toggle:focus-visible ~ .header-actions .nav-toggle-btn { box-shadow: var(--focus); }
.header-inner:has(#nav-toggle:checked) .site-nav { display: flex; }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem var(--pad) 1.1rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow);
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.12rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(14, 28, 42, 0.06);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.site-nav a:last-child { border-bottom: 0; }

body.nav-open { overflow: hidden; }

/* ---------- Shared ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  flex: 0 0 1.6rem;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.55rem); }
h3 { font-size: 1.2rem; }
.lede { margin: 0.9rem 0 0; font-size: 1.1875rem; color: var(--muted); max-width: 38rem; }
.section { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy .lede { color: rgba(246, 241, 231, 0.8); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.125rem;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 241, 231, 0.55);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--cream); }
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.7rem;
}
.btn-row .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--cream);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.28) 0%, rgba(8, 16, 26, 0.35) 35%, rgba(8, 16, 26, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 16, 26, 0.4) 0%, rgba(8, 16, 26, 0.08) 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.25rem 0 3.4rem;
  width: 100%;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.05rem, 9vw, 4.35rem);
  font-weight: 600;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-tag {
  margin: 1rem 0 0;
  font-size: clamp(1.12rem, 2.6vw, 1.45rem);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: rgba(246, 241, 231, 0.92);
  max-width: 26ch;
  line-height: 1.4;
}
.hero-note {
  margin: 1.15rem 0 0;
  font-size: 1.125rem;
  color: rgba(246, 241, 231, 0.72);
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--navy-mid);
  color: var(--cream);
  padding: 0.95rem 0;
  border-top: 1px solid rgba(198, 161, 90, 0.22);
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
}
.trust-list li {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0.25rem 0.7rem;
}
.trust-list li:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.service {
  background: #fff;
  border: 1px solid rgba(14, 28, 42, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.45rem;
  box-shadow: 0 1px 0 rgba(14, 28, 42, 0.03);
}
.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service h3 { margin-bottom: 0.45rem; }
.service p { margin: 0; color: var(--muted); font-size: 1.125rem; }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.story-photo { margin: 0; }
.story-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.story-photo figcaption {
  margin-top: 0.65rem;
  font-size: 1.0625rem;
  color: var(--muted);
  font-style: italic;
}
.story-copy p { margin: 0 0 1rem; }
.story-copy p:last-child { margin-bottom: 0; }
.award-line {
  margin: 1.15rem 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}
.award-years { color: var(--muted); font-family: var(--font-sans); font-size: 1.0625rem; }
.client-list-placeholder { display: none; }

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 2.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 161, 90, 0.22);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: rgba(246, 241, 231, 0.8); }

/* ---------- Portfolio ---------- */
.portfolio-note {
  margin: 0.85rem 0 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
}
.work-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14, 28, 42, 0.08);
  box-shadow: 0 1px 0 rgba(14, 28, 42, 0.03);
}
.work-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-card figcaption {
  padding: 0.95rem 1.05rem 1.1rem;
  font-size: 1.0625rem;
  color: var(--muted);
}
.work-card figcaption strong {
  display: block;
  color: var(--navy);
  font-weight: 650;
  margin-bottom: 0.15rem;
  font-size: 1.125rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.75rem;
}
.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.15rem;
  word-break: break-word;
}
.contact-list a:hover { color: var(--gold-deep); }
.contact-list span.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.2rem;
}
.contact-list li { padding-bottom: 0.9rem; border-bottom: 1px solid rgba(14, 28, 42, 0.08); }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(246, 241, 231, 0.86);
  padding: 2.4rem 0 2rem;
  font-size: 1.0625rem;
}
.footer-inner {
  display: grid;
  gap: 1.2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
}
.footer-brand img { width: 2.4rem; height: 2.4rem; border-radius: 0.4rem; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-text strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
}
.footer-brand-text span {
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.footer-meta { margin: 0.4rem 0 0; }
.footer-legal {
  margin: 1.1rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(198, 161, 90, 0.22);
  font-size: 1.0625rem;
  color: rgba(246, 241, 231, 0.72);
}

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  :root { --header-h: 4.35rem; }
  .brand img, .brand svg { width: 2.75rem; height: 2.75rem; flex-basis: 2.75rem; }
  .brand-name { font-size: 1.12rem; }
  .btn-call .short { display: none; }
  .btn-call .full-num { display: inline; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; min-width: 14rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
  .portfolio-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; }
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 1.15rem; }
  .section { padding: 4.6rem 0; }
}

@media (min-width: 900px) {
  .nav-toggle, .nav-toggle-btn { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.35rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-right: 0.4rem;
  }
  .site-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.35rem 0;
    border: 0;
    min-height: 0;
    color: var(--navy);
  }
  .site-nav a:hover { color: var(--gold-deep); }
  .header-inner { gap: 1.25rem; }
  .brand { margin-right: 0; }
  .header-actions { margin-left: auto; }

  .story-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: start; }
  .hero-inner { padding: 5.5rem 0 5rem; }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-links { justify-content: flex-end; }
}

@media (min-width: 1100px) {
  .hero h1 { max-width: 16ch; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
  .header-inner,
  .wrap {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }
  .site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
  .site-nav { top: calc(var(--header-h) + env(safe-area-inset-top)); }
}

.footer-meta a { color: var(--cream); text-decoration: none; }
.footer-meta a:hover { color: var(--gold-light); }


/* Trust bar: stacked, no leftover mid-dots on a phone */
@media (max-width: 699px) {
  .trust-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .trust-list li {
    padding: 0.15rem 0.4rem;
    text-align: center;
  }
  .trust-list li:not(:last-child)::after { content: none; }
}

/* Keep section titles clear of the sticky header */
section[id], #top { scroll-margin-top: calc(var(--header-h) + 0.8rem + env(safe-area-inset-top, 0px)); }

.work-card img { background: var(--cream); }
.story-photo img { background: var(--navy-mid); }

@media (max-width: 699px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0.4rem 1.15rem;
  }
}
