/* ==========================================================================
   ClickTwice Media — styles.css
   One stylesheet for: index.html, services.html, about.html, privacy.html,
   404.html

   Brand rules honoured here:
     - 4 fixed colours only (plus two derived tints for rules/secondary text
       on dark, noted below)
     - Anton for headlines + logo, Barlow for body
     - Green is the single accent: primary buttons, current-page marker,
       one emphasis per section. Never a large ground behind dark text.
     - Flat and square: no border-radius, no drop shadows, no gradients.
     - One page-load moment (hero only), disabled for reduced motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Brand — fixed, do not change */
  --charcoal: #121311;
  --green:    #B4C725;
  --field:    #4A4E45;
  --bone:     #F5F4F0;

  /* Derived tints. Not new brand colours — these are the bone and charcoal
     grounds mixed, used only for hairline rules and secondary text on dark.
     Both are checked for contrast: --bone-dim on charcoal = 7.8:1 */
  --bone-dim: #A5A7A0;
  --rule:     #D8D6CF;  /* hairline on bone   */
  --rule-dark:#33362F;  /* hairline on charcoal */

  /* Layout */
  --maxw:   1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --sec-y:  clamp(56px, 8vw, 108px);

  /* Type */
  --f-head: "Anton", "Arial Narrow", "Haettenschweiler", sans-serif;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 120px; /* keeps #anchors clear of the sticky header */
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-size: 1.125rem;      /* 18px */
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Nothing in this brand is rounded. */
* { border-radius: 0 !important; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 8.4vw, 6rem);   /* 44px → 96px */
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.875rem, 4.4vw, 2.5rem); /* 30px → 40px */
  line-height: 1.02;
}

h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);  /* 20px → 24px */
  line-height: 1.1;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.2;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1875rem, 2.1vw, 1.375rem); /* 19px → 22px */
  line-height: 1.5;
  font-weight: 500;
  max-width: 34ch;
}

.prose { max-width: 66ch; }
.prose--narrow { max-width: 58ch; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--field);
  margin: 0 0 18px;
  line-height: 1.3;
}

.small { font-size: 1rem; color: var(--field); }

/* Inline links inside running text */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--field);
  transition: text-decoration-color 120ms linear;
}
.link:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

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

.section { padding-block: var(--sec-y); }
.section[id] { scroll-margin-top: 110px; }

/* Dark ground */
.section--dark {
  background: var(--charcoal);
  color: var(--bone);
}
.section--dark .eyebrow { color: var(--bone-dim); }
.section--dark .small    { color: var(--bone-dim); }

/* A hard rule where two light sections meet */
.section--ruled { border-top: 2px solid var(--charcoal); }

.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { max-width: 20ch; }
.section__head p { margin-top: 18px; max-width: 60ch; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--bone);
  padding: 14px 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9375rem;
  text-decoration: none;
  z-index: 100;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   5. FOCUS  (accessibility)
   The green ring alone is low-contrast on the bone ground, so it is paired
   with a charcoal ring drawn with box-shadow at 0 blur. That is a flat ring,
   not a drop shadow — the brand rule still holds.
   -------------------------------------------------------------------------- */

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--charcoal);
}

.section--dark :focus-visible,
.footer :focus-visible {
  box-shadow: 0 0 0 6px var(--bone);
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  font-size: 1rem;              /* 16px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  padding: 17px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}

.btn--primary {
  background: var(--green);
  color: var(--charcoal);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--charcoal);
  color: var(--bone);
  border-color: var(--charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--ghost:hover {
  background: var(--charcoal);
  color: var(--bone);
}

/* Ghost button sitting on a charcoal ground */
.btn--ghost-light {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.btn--ghost-light:hover {
  background: var(--bone);
  color: var(--charcoal);
}

.btn--sm { padding: 12px 18px; font-size: 0.9375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* On a phone the buttons go full width — bigger tap targets and a straighter
   left edge than two buttons of different lengths stacked. */
@media (max-width: 519px) {
  .btn-row { display: grid; grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   7. HEADER
   Two rows on mobile so the phone number never leaves the screen, one row
   from 860px up. No JavaScript anywhere.
   -------------------------------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 2px solid var(--charcoal);
}

.hdr__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 12px;
}

.hdr__brand {
  display: block;
  line-height: 0;
  margin-right: auto;
}
.hdr__brand img { height: 30px; width: auto; }

.hdr__nav {
  order: 3;
  width: 100%;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

.hdr__nav ul {
  display: flex;
  gap: clamp(16px, 5vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdr__nav a {
  display: block;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 4px 0 7px;
  border-bottom: 3px solid transparent;
}
.hdr__nav a:hover { border-bottom-color: var(--field); }

/* Current page: green bar. The bar's presence — not its colour — is the cue,
   and aria-current carries the state for screen readers. */
.hdr__nav a[aria-current="page"] { border-bottom-color: var(--green); }

/* The phone button is deliberately tight on mobile so that a real 14-character
   number — "(701) 555-0142" — still sits on the same line as the logo at
   375px. Do not increase the font size here without re-checking that. */
.hdr__tel {
  white-space: nowrap;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 14px;
}

@media (min-width: 860px) {
  .hdr__inner { padding-block: 24px; gap: 32px; }   /* 24px clear space below the logo */
  .hdr__brand img { height: 40px; }
  .hdr__nav {
    order: 0;
    width: auto;
    border-top: 0;
    padding-top: 0;
  }
  .hdr__nav a { padding: 0 0 4px; }
  .hdr__tel { font-size: 0.9375rem; letter-spacing: 0.08em; padding: 12px 18px; }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(52px, 8vw, 104px) clamp(56px, 8vw, 104px);
}

.hero h1 { max-width: 13ch; }

.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  line-height: 1.45;
  font-weight: 500;
  max-width: 32ch;
}

.hero__support {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 2px solid var(--charcoal);
  max-width: 56ch;
  color: var(--field);
}

/* The single page-load moment. */
.hero__inner { animation: rise 520ms cubic-bezier(.2,.7,.3,1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   9. GRIDS
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(30px, 4vw, 44px);
}

.grid--4 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* A column that sits under a hard rule — the house pattern, no cards. */
.col {
  border-top: 2px solid var(--charcoal);
  padding-top: 22px;
}
.section--dark .col { border-top-color: var(--bone); }

.col h3 { margin-bottom: 12px; }
.col p  { font-size: 1.0625rem; }

.col__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid var(--field);
  padding-bottom: 3px;
}
.col__more:hover { border-bottom-color: currentColor; }
.section--dark .col__more { border-bottom-color: var(--bone-dim); }

/* --------------------------------------------------------------------------
   10. STEPS  (how it works)
   -------------------------------------------------------------------------- */

.steps { counter-reset: step; }

.step { border-top: 2px solid var(--charcoal); padding-top: 22px; }

.step__n {
  display: block;
  font-family: var(--f-head);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--field);
  margin-bottom: 10px;
}

/* Step one is the only call to action in the sequence, so its numeral goes
   full charcoal while the rest sit back in --field. No green needed here. */
.step:first-child .step__n { color: var(--charcoal); }

.step h3 { margin-bottom: 10px; }
.step p  { font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   11. WORK GRID  (6 vertical 9:16 slots)
   -------------------------------------------------------------------------- */

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

@media (min-width: 700px)  { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .work-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.work__slot {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--field);
  overflow: hidden;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 9 / 16) {
  .work__slot { height: 0; padding-bottom: 177.78%; }
}

.work__slot video,
.work__slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__n {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--f-head);
  font-size: 1.125rem;
  color: var(--bone-dim);
  letter-spacing: 0.06em;
}

.work__note { margin-top: 26px; color: var(--bone-dim); font-size: 1rem; }

/* --------------------------------------------------------------------------
   12. TRADE LIST
   -------------------------------------------------------------------------- */

.trades {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trades li {
  border: 2px solid var(--charcoal);
  padding: 9px 15px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   13. SERVICES PAGE BLOCKS
   -------------------------------------------------------------------------- */

.svc {
  border-top: 2px solid var(--charcoal);
  padding-top: 30px;
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  gap: 26px;
}

@media (min-width: 900px) {
  .svc { grid-template-columns: 5fr 7fr; gap: 48px; }
}

.svc__label h2 { margin-bottom: 12px; }

.svc__n {
  font-family: var(--f-head);
  font-size: 1.25rem;
  color: var(--field);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.svc__body p { max-width: 62ch; }

/* A single flagged line inside a service block — the section's one emphasis */
.flag {
  border-left: 4px solid var(--green);
  padding-left: 18px;
  margin-top: 22px;
  font-weight: 500;
}

.section--dark .flag { border-left-color: var(--green); }

/* Plain list used for formats / what you own */
.plain {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 62ch;
}
.plain li {
  border-top: 1px solid var(--rule);
  padding: 11px 0;
  font-size: 1.0625rem;
}
.plain li:last-child { border-bottom: 1px solid var(--rule); }

.section--dark .plain li { border-top-color: var(--rule-dark); }
.section--dark .plain li:last-child { border-bottom-color: var(--rule-dark); }

/* --------------------------------------------------------------------------
   14. ABOUT PAGE
   -------------------------------------------------------------------------- */

.person { border-top: 2px solid var(--charcoal); padding-top: 24px; }

.person__role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--field);
  margin-bottom: 14px;
}

.person__mark { height: 52px; width: 52px; margin-bottom: 18px; }

/* Names are h2 so the heading order runs h1 → h2 with no gap. Sized down from
   the default h2 because a name is not a section title. */
.person h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   15. FORM
   -------------------------------------------------------------------------- */

.form-block {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 940px) {
  .form-block { grid-template-columns: 5fr 7fr; }
}

.form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  color: var(--charcoal);
  background: var(--bone);
  border: 2px solid var(--charcoal);
  padding: 13px 14px;
  width: 100%;
  appearance: none;
}

.field textarea { min-height: 132px; resize: vertical; }

.field select {
  /* square caret, drawn flat — no gradient, no image asset needed */
  background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%),
                    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--field); opacity: 1; }

.form__submit { grid-column: 1 / -1; }
.form__submit .btn { width: 100%; }

@media (min-width: 600px) {
  .form__submit .btn { width: auto; }
}

.form__note {
  grid-column: 1 / -1;
  font-size: 1rem;
  color: var(--field);
  margin: 0;
}

.contact__direct { margin-top: 28px; }

.contact__direct dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--field);
  margin-top: 18px;
}
.contact__direct dd {
  margin: 4px 0 0;
  font-family: var(--f-head);
  font-size: 1.5rem;
  text-transform: uppercase;
}
.contact__direct dd a { color: inherit; text-decoration: none; border-bottom: 3px solid var(--green); }
.contact__direct dd a:hover { border-bottom-color: var(--charcoal); }

/* --------------------------------------------------------------------------
   16. CTA BAND
   -------------------------------------------------------------------------- */

.cta { padding-block: clamp(48px, 6vw, 80px); }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 16px; max-width: 52ch; color: var(--bone-dim); }

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  background: var(--charcoal);
  color: var(--bone);
  padding-block: clamp(48px, 6vw, 72px) 34px;
  border-top: 3px solid var(--green);
}

.footer__top {
  display: grid;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 780px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: start; gap: 48px; }
}

.footer__brand img { height: 38px; width: auto; }
.footer__addr { margin-top: 20px; font-style: normal; color: var(--bone-dim); }

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__contact a {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--f-head);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.footer__contact a:hover { border-bottom-color: var(--green); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.9375rem;
  color: var(--bone-dim);
}

.footer__bottom a { color: var(--bone-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--bone); }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */

.err { padding-block: clamp(72px, 12vw, 150px); }
.err__code {
  font-family: var(--f-head);
  font-size: clamp(5rem, 20vw, 12rem);
  line-height: 0.82;
  color: var(--charcoal);
  margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   19. LEGAL / LONG-FORM TEXT  (privacy page)
   -------------------------------------------------------------------------- */

.legal p,
.legal ul { max-width: 66ch; }

.legal h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-top: 52px;
  margin-bottom: 14px;
}
.legal h2:first-child { margin-top: 0; }

.legal ul {
  margin: 0 0 1.15em;
  padding-left: 20px;
}
.legal li { margin-bottom: 10px; }

.legal__updated {
  border-top: 2px solid var(--charcoal);
  padding-top: 16px;
  margin-top: 56px;
  color: var(--field);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   20. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__inner { opacity: 1; transform: none; }
}
