/* ==========================================================================
   BRIGHTWAVE AGENCY — landing page styles

   Contents
     1.  Design tokens (colours, fonts, sizes)
     2.  Base / reset
     3.  Layout helpers & typography
     4.  Buttons
     5.  Site header
     6.  Hero
     7.  Problems
     8.  Services
     9.  Process (numbered steps)
     10. Proof (testimonials & results)
     11. About
     12. FAQ
     13. Final call to action
     14. Footer
     15. Mobile sticky CTA & small-screen tweaks

   Breakpoints used: 900px, 860px, 760px, 640px, 560px
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand colours */
  --ink: #14171a;          /* near-black text & dark sections */
  --tide: #1e2329;         /* hero background, icon tiles */
  --tide-deep: #121519;    /* video frame background */
  --hivis: #f5be2e;        /* brand yellow */
  --hivis-hover: #e9ae14;
  --paper: #ffffff;
  --mist: #f3f3f0;         /* light grey section background */
  --line: #ddddd8;         /* borders & dividers */
  --muted: #555c63;        /* secondary text on light backgrounds */
  --danger: #b3261e;       /* red "x" icons in the problems list */

  /* Text & borders on dark backgrounds */
  --on-dark-strong: #d3d7db;
  --on-dark-lede: #b5bbc1;
  --on-dark-soft: #a7aeb5;
  --on-dark-muted: #9aa2a9;
  --on-dark-line: #4a525a;
  --on-dark-line-soft: #2e343a;

  /* Fonts */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  /* Layout */
  --max: 1120px;

  color-scheme: light;
}


/* ==========================================================================
   2. Base / reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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


/* ==========================================================================
   3. Layout helpers & typography
   ========================================================================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 88px 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  max-width: 20ch;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  margin: 0;
}

/* Intro paragraph under a section heading */
.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 58ch;
  margin-top: 14px;
}


/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 1rem/1 var(--body);
  padding: 16px 24px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--hivis);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--hivis-hover);
}

.btn-ghost {
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   5. Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font: 800 1.35rem/1 var(--display);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 34px;
  height: auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.02em;
}

.wordmark small {
  font: 600 0.62rem/1 var(--body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav .navlink {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.site-nav .navlink:hover {
  color: var(--ink);
}

.site-nav .btn {
  padding: 12px 18px;
}

@media (max-width: 760px) {
  .site-nav .navlink {
    display: none;
  }
}


/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  background: var(--tide);
  color: #fff;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  max-width: 13ch;
}

.hero .lede {
  color: var(--on-dark-strong);
  font-size: 1.2rem;
  margin-top: 20px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-copy {
  padding-bottom: 88px;
}

.hero-trust {
  margin-top: 28px;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 48px;
}

/* Yellow block behind the bottom half of the video */
.hero-media::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -400px;
  bottom: 0;
  height: 50%;
  background: var(--hivis);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tide-deep);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* White wave along the bottom edge of the hero */
.wave-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 40px;
  color: var(--paper);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 40px;
  }

  .hero-media::before {
    left: -20px;
    right: -20px;
  }

  .video-frame {
    max-width: 640px;
  }
}


/* ==========================================================================
   7. Problems
   ========================================================================== */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.pain-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.pain-list svg {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--danger);
}

.pain-list b {
  display: block;
  font-family: var(--display);
  font-size: 1.18rem;
}

.pain-list span {
  color: var(--muted);
}

.problems-close {
  margin-top: 28px;
  font-weight: 600;
  font-size: 1.15rem;
}

@media (max-width: 860px) {
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ==========================================================================
   8. Services
   ========================================================================== */
.services {
  background: var(--mist);
}

.svc-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}

.svc-table {
  margin-top: 44px;
  border-top: 2px solid var(--ink);
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.svc-row h3 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.svc-row .icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--tide);
  color: var(--hivis);
  display: grid;
  place-items: center;
}

.svc-row .icon svg {
  width: 22px;
  height: 22px;
}

.svc-row .col-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tide);
  margin-bottom: 4px;
}

.svc-row p {
  color: var(--muted);
}

.svc-note {
  margin-top: 28px;
  background: var(--paper);
  border-left: 6px solid var(--hivis);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  max-width: 680px;
}

@media (max-width: 860px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ==========================================================================
   9. Process (numbered steps)
   ========================================================================== */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 0 28px 0 0;
  position: relative;
}

/* Numbered circle */
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--hivis);
  font: 800 1.35rem/1 var(--display);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Connecting line to the next step */
.steps li::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 52px;
  right: 0;
  height: 2px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps li::after {
    display: none;
  }
}


/* ==========================================================================
   10. Proof (testimonials & results)
   Grid is 6 columns: the video slot spans 4, everything else spans 2.
   ========================================================================== */
.proof {
  background: var(--ink);
  color: #fff;
}

.proof .lede {
  color: var(--on-dark-lede);
}

.proof-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* A "slot" is one proof card. Dashed border = placeholder still to fill. */
.slot {
  grid-column: span 2;
  border: 2px dashed var(--on-dark-line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.slot .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--hivis);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}

.slot b {
  font-family: var(--display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 4px;
}

.slot p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* Slot with a real screenshot in it (detected automatically) */
.slot:has(> img) {
  padding-top: 56px;
  justify-content: flex-start;
  border-style: solid;
  border-color: var(--on-dark-line-soft);
}

.slot > img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  object-fit: cover;
}

.slot.msg > img {
  max-height: 300px;
  object-position: top;
}

/* Video testimonial slot (the big one) */
.slot.video {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 460px;
}

/* Once a YouTube video is pasted in, it fills the whole card */
.slot.video:has(iframe) {
  padding: 0;
  border-style: solid;
  border-color: var(--on-dark-line-soft);
  overflow: hidden;
}

.slot.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slot.video:has(iframe) > :not(iframe) {
  display: none;
}

/* Link inside a placeholder card */
.slot-link {
  margin-top: 14px;
  color: var(--hivis);
  font-weight: 600;
  text-decoration: none;
}

.slot-link:hover {
  text-decoration: underline;
}

.slot.video .play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hivis);
  display: grid;
  place-items: center;
  margin-bottom: auto;
  margin-top: 48px;
}

.slot.video .play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

/* Fake audio player for the call recording slot */
.audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.audio-bar .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hivis);
  display: grid;
  place-items: center;
  flex: none;
}

.audio-bar .dot svg {
  width: 16px;
  height: 16px;
  margin-left: 3px;
}

.audio-bar .wave {
  flex: 1;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--on-dark-line) 0 3px,
    transparent 3px 7px
  );
  -webkit-mask: linear-gradient(90deg, #000 0 40%, rgba(0, 0, 0, 0.5) 40%);
  mask: linear-gradient(90deg, #000 0 40%, rgba(0, 0, 0, 0.5) 40%);
}

.proof-honest {
  margin-top: 32px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  max-width: 64ch;
}

@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .slot {
    grid-column: span 1;
  }

  .slot.video {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .slot,
  .slot.video {
    grid-column: auto;
  }
}


/* ==========================================================================
   11. About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.portrait-wrap {
  position: relative;
  z-index: 0;
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: var(--mist);
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  position: relative;
}

/* Your photo sits on top of the placeholder. If the file is missing,
   the <img> removes itself and the placeholder shows instead. */
.portrait-photo {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  max-width: none;
  height: calc(100% + 4px);
  object-fit: cover;
  border-radius: 16px;
}

/* Yellow block peeking out behind the bottom-right of the photo */
.portrait::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 45%;
  height: 40%;
  background: var(--hivis);
  z-index: -1;
  border-radius: 16px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy .lede {
  margin-bottom: 8px;
}

.sign {
  margin-top: 24px;
  font: 700 1.2rem/1.2 var(--display);
}

.sign span {
  display: block;
  font: 400 0.95rem/1.4 var(--body);
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait {
    max-width: 380px;
  }
}


/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq {
  background: var(--mist);
}

.faq-list {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  max-width: 820px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font: 700 1.15rem/1.35 var(--display);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* +/– toggle indicator */
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font: 500 1.6rem/1 var(--body);
  color: var(--tide);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  color: var(--muted);
  padding: 0 0 24px;
  max-width: 68ch;
}


/* ==========================================================================
   13. Final call to action
   ========================================================================== */
.final {
  background: var(--hivis);
}

.final .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.final h2 {
  max-width: 16ch;
}

.final .lede {
  color: #3d4a40;
}

.final-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 10px 10px 0 var(--ink);
}

.final-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.final-card li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.final-card li:last-child {
  border-bottom: 0;
}

.final-card li svg {
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  color: var(--tide);
}

.final-card .btn {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.final-card .btn:hover {
  background: var(--tide);
}

.final-card .alt {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .final .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 40px 0;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
}


/* ==========================================================================
   15. Mobile sticky CTA & small-screen tweaks
   ========================================================================== */
.mobile-cta {
  display: none;
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
  }

  .mobile-cta .btn {
    width: 100%;
    box-shadow: 0 6px 20px rgba(20, 23, 26, 0.25);
  }

  /* Leave room so the sticky button doesn't cover the footer */
  .site-footer {
    padding-bottom: 96px;
  }
}
