/* ==========================================================================
   Charlie Bowman — UGC Portfolio
   Mobile-first stylesheet. Breakpoints: 600px (tablet), 960px (desktop).
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --teal: #0a789d;
  --teal-dark: #075d7a;
  --teal-tint: #e7f1f5;
  --bg: #f5f5f5;
  --bg-soft: #ececec;
  --white: #ffffff;
  --ink: #121212;
  --muted: #4b5560;
  --black: #0a0a0a;
  --border: #e2e2e0;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-card: 12px;
  --radius-photo: 10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
  text-align: left;
}

h1, h2, h3 {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Signature teal square full-stop, used after key headlines */
.dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--teal);
  margin-left: 0.06em;
  transform: translateY(-0.12em);
}

.no-break {
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px -12px rgba(10, 120, 157, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--teal-dark);
}

.btn-white:hover {
  background: var(--ink);
  color: var(--white);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--teal);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 2px;
  position: relative;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--white);
  transition: right 0.25s var(--ease);
}

.header-link:hover::after {
  right: 0;
}

/* ---- Hero ---- */
.hero {
  padding-block: clamp(40px, 8vw, 88px) clamp(20px, 3vw, 36px);
  background: radial-gradient(ellipse 65% 55% at 82% 15%, var(--bg-soft), transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75em;
}

.hero-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(3.4rem, 15vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.3em;
}

.hero-location {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 1.1em;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.hero-tagline strong {
  font-weight: 700;
}

.hero-tagline .accent {
  color: var(--teal-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-left: 4px;
}

.hero-photo-wrap {
  border-radius: var(--radius-photo);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--border);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.35);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* ---- Section headings ---- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1;
  color: var(--ink);
}

.section-intro {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

/* ---- Work section ---- */
.work {
  padding-block: clamp(56px, 9vw, 96px) clamp(48px, 8vw, 96px);
  background: var(--bg);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 40px);
}

.chip {
  padding: 0.6em 1.3em;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
}

.video-card {
  opacity: 1;
}

.video-card[hidden] {
  display: none;
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1b1b1b;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.video-card:hover .video-frame {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -20px rgba(0, 0, 0, 0.35);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1b1b1b;
}

.video-frame canvas.poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.18);
  opacity: 1;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.video-frame.is-playing .video-play-indicator {
  opacity: 0;
}

.video-play-indicator svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.mute-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.55);
  color: var(--white);
  border: none;
  backdrop-filter: blur(2px);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}

.mute-btn:hover {
  background: rgba(10, 120, 157, 0.85);
  transform: scale(1.06);
}

.mute-btn svg {
  width: 18px;
  height: 18px;
}

.video-caption {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 12px;
}

.video-caption-main {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}

.video-caption-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal-dark);
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---- About ---- */
.about {
  padding-block: clamp(48px, 8vw, 96px);
  background: var(--white);
}

.about-heading {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1;
  margin-bottom: clamp(24px, 5vw, 40px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-photo);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.9em;
}

.about-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.about-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.8em 0;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.services-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ---- Optional sections (kept for future use) ---- */
.logo-strip {
  padding-block: clamp(32px, 6vw, 56px);
}

.logo-strip-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 6vw, 56px);
}

.logo-strip-row span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--border);
  letter-spacing: 0.03em;
}

.how-it-works {
  padding-block: clamp(48px, 8vw, 96px);
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.packages {
  padding-block: clamp(48px, 8vw, 96px);
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--white);
}

.package-card.featured {
  border-color: var(--teal);
  box-shadow: 0 20px 40px -28px rgba(10, 120, 157, 0.5);
}

.package-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.package-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.package-card ul {
  display: grid;
  gap: 10px;
}

.package-card li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.package-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--teal);
}

/* ---- CTA ---- */
.cta {
  background: var(--teal);
  color: var(--white);
  padding-block: clamp(40px, 6vw, 72px);
  text-align: center;
}

.cta-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.25em;
  text-align: center;
  opacity: 0.9;
}

.cta-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(3.1rem, 10.5vw, 6.2rem);
  line-height: 1;
  margin-bottom: 0.45em;
}

.cta-body {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  max-width: 52ch;
  width: 100%;
  margin: 0 auto 1.6em;
  text-align: center;
  opacity: 0.92;
}

.cta .btn {
  padding: 0.75em 1.3em;
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: 22px;
}

.site-footer .container {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--teal);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .icon-btn:hover,
  .video-card:hover .video-frame {
    transform: none;
  }
}

/* ==========================================================================
   Tablet — 600px+
   ========================================================================== */
@media (min-width: 600px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Desktop — 960px+
   ========================================================================== */
@media (min-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .hero .container {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .hero-name {
    font-size: 7.5rem;
  }
}
