/* =========================================================
   PPC Studio — shared stylesheet
   Monochrome, mobile-first, clean.
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --grey-900: #1c1c1c;
  --grey-700: #3a3a3a;
  --grey-500: #6b6b6b;
  --grey-400: #8a8a8a;
  --grey-300: #cfcfcf;
  --grey-200: #e6e6e6;
  --grey-100: #f2f2f2;
  --grey-50: #f8f8f8;
  --white: #ffffff;
  --line: #e6e6e6;
  --line-dark: #2a2a2a;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--grey-700);
  font-weight: 400;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grey-500);
  margin: 0 0 1.2rem;
  display: block;
}

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

.section { padding: clamp(64px, 12vw, 140px) 0; }
.section--tight { padding: clamp(48px, 8vw, 96px) 0; }
.section--grey { background: var(--grey-50); }
.section--black { background: var(--black); color: var(--grey-200); }
.section--black h1,
.section--black h2,
.section--black h3 { color: var(--white); }
.section--black .lead { color: var(--grey-300); }
.section--black .eyebrow { color: var(--grey-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.9rem;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--white); color: var(--black); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), opacity 0.3s var(--ease);
}
.textlink:hover { gap: 0.8em; opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
/* On light hero pages the header text is dark by default */
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--black);
}
.brand__mark {
  width: 26px; height: 26px;
  background: var(--black);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 3px;
}
/* Transparent header over dark hero -> white text */
.site-header.on-dark:not(.is-solid):not(.is-open) .brand { color: var(--white); }
.site-header.on-dark:not(.is-solid):not(.is-open) .brand__mark { background: var(--white); color: var(--black); }
.site-header.on-dark:not(.is-solid):not(.is-open) .nav__link { color: rgba(255,255,255,0.85); }
.site-header.on-dark:not(.is-solid):not(.is-open) .nav__cta { border-color: rgba(255,255,255,0.6); color: #fff; }
.site-header.on-dark:not(.is-solid):not(.is-open) .nav__cta:hover { background:#fff; color:var(--black); }
.site-header.on-dark:not(.is-solid):not(.is-open) .burger span { background: #fff; }

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--black); }
.nav__cta {
  border: 1px solid var(--black);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--black);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--black); color: var(--white); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
.dropdown a {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  color: var(--grey-700);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover { background: var(--grey-50); color: var(--black); }

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--black);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.mobile-nav {
  position: fixed;
  inset: 74px 0 0 0;
  background: #fff;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 3rem;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .mobile-sub a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--grey-700);
  padding: 0.55rem 0 0.55rem 1rem;
  border-bottom: 1px dashed var(--line);
}
.mobile-nav a.btn { margin-top: 1.6rem; width: 100%; justify-content: center; color: var(--white); border-bottom: none; font-size: 1rem; padding: 1rem 1.9rem; }
.mobile-nav a.btn:hover { color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero--short { min-height: 66vh; }
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transform: scale(1.05);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.85) 100%);
}
.hero__inner { padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__meta div { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.hero__meta strong { display:block; color:#fff; font-size:1.02rem; font-weight:600; letter-spacing: 0.02em; }

/* ---------- Generic content ---------- */
.measure { max-width: 68ch; }
.measure-sm { max-width: 54ch; }

.grid { display: grid; gap: clamp(24px, 4vw, 44px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 6vw, 68px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.card {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.08); border-color: var(--grey-300); }
.card__num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; color: var(--grey-400); }
.card h3 { margin-top: 0.8rem; }
.card p { color: var(--grey-700); margin-bottom: 0; }
.card .textlink { margin-top: 1.2rem; }

.section--black .card { background: var(--grey-900); border-color: var(--line-dark); color: var(--grey-300); }
.section--black .card h3 { color:#fff; }
.section--black .card p { color: var(--grey-400); }
.section--black .card:hover { border-color: var(--grey-700); box-shadow:none; }

/* Feature split */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(100%) contrast(1.03); transition: transform 0.8s var(--ease); }
.split:hover .split__media img { transform: scale(1.04); }

/* List with rules */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list .tick {
  width: 22px; height: 22px; margin-top: 3px;
  border: 1px solid var(--black);
  border-radius: 50%;
  display:inline-flex; align-items:center; justify-content:center;
  flex: none;
}
.rule-list .tick svg { width: 12px; height: 12px; }
.rule-list strong { color: var(--black); font-weight: 600; }
.rule-list p { margin: 0.25rem 0 0; color: var(--grey-600, var(--grey-700)); font-size: 0.98rem; }
.section--black .rule-list li { border-color: var(--line-dark); }
.section--black .rule-list strong { color:#fff; }
.section--black .rule-list .tick { border-color: var(--grey-500); }

/* Big stat/step numbers */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__n {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--grey-200);
  line-height: 1; margin-bottom: 0.6rem;
}
.section--black .step__n { color: var(--line-dark); }

/* Marquee-ish keyword band */
.pill-row { display:flex; flex-wrap:wrap; gap:0.6rem; }
.pill {
  border:1px solid var(--line); border-radius:100px;
  padding:0.5rem 1rem; font-size:0.85rem; color:var(--grey-700); background:#fff;
}
.section--black .pill { border-color: var(--line-dark); color: var(--grey-300); background: transparent; }

/* Location grid */
.loc-grid { display:grid; grid-template-columns: 1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
.loc-grid a {
  background:#fff; padding:1.1rem 1.2rem;
  display:flex; align-items:center; justify-content:space-between;
  font-weight:600; color:var(--black);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.loc-grid a:hover { background:var(--black); color:#fff; padding-left:1.6rem; }
.loc-grid a span { color: var(--grey-400); font-weight: 400; font-size: 0.85rem; }
.loc-grid a:hover span { color: rgba(255,255,255,0.6); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 3rem 1.4rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--black);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--grey-500);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--grey-700); padding: 0 0 1.4rem; margin: 0; max-width: 72ch; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left:auto; margin-right:auto; }
.cta-band .lead { max-width: 52ch; margin: 0 auto 2rem; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; color: var(--grey-700); }
.field .req { color: var(--black); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.08);
}
.field--full { grid-column: 1 / -1; }
.form-note { font-size: 0.85rem; color: var(--grey-500); }
.hp { display:none !important; }
.form-status { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; }
.form-status--ok { color: #0a0a0a; }
.form-status--err { color: #8a1f1f; }
.form-status:empty { display: none; }

.contact-cols { display:grid; grid-template-columns:1fr; gap: clamp(36px,6vw,72px); }
.contact-aside dt { font-size:0.78rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--grey-500); font-weight:600; margin-top:1.6rem; }
.contact-aside dd { margin:0.3rem 0 0; font-size:1.1rem; font-weight:500; color:var(--black); }
.contact-aside dd a { border-bottom:1px solid var(--grey-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--grey-400); padding: clamp(56px, 8vw, 96px) 0 2.5rem; }
.footer-top { display:grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand { color:#fff; }
.footer-brand .brand__mark { background:#fff; color:#000; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: var(--grey-400); font-size: 0.95rem; }
.footer-col h4 { color:#fff; font-size:0.8rem; letter-spacing:0.16em; text-transform:uppercase; margin-bottom:1rem; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin-bottom:0.6rem; }
.footer-col a { color: var(--grey-400); font-size:0.95rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; padding-top:2rem; font-size:0.85rem; color:var(--grey-500); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--grey-500); padding-top: 100px; }
.crumbs a { color: var(--grey-500); border-bottom:1px solid transparent; }
.crumbs a:hover { color: var(--black); border-color: var(--grey-300); }
.crumbs span { color: var(--grey-400); }

/* Inner page hero (no image) */
.page-hero { padding: 130px 0 clamp(40px,7vw,80px); border-bottom:1px solid var(--line); }
.page-hero .eyebrow { color: var(--grey-500); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .contact-cols { grid-template-columns: 1.4fr 0.9fr; }
}

@media (min-width: 940px) {
  .nav { display: block; }
  .burger, .mobile-nav { display: none; }
  .loc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  body { font-size: 18px; }
}
