/* ============================================================
   Allie North — UGC portfolio
   Rebuilt from the original template. Notable fixes vs. original:
     - removed dead rules left over from the "Jordan Lee" template
       (.grid-4, .project, .contact-handle, .service-icon, .footer-nav
       was referenced but never defined)
     - the original had the same `.contact-row .socials a:hover` rule
       twice; the second override set the icon colour to purple-dark on a
       purple background, so the icon vanished on hover. Single source now.
     - mobile used `order: -1` on the hero image, pushing the headline
       below a photo and two stat cards. Headline now comes first.
     - added :focus-visible, prefers-reduced-motion and a skip link.
   ============================================================ */

:root {
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #a78bfa;
  --ink: #16121f;
  --muted: #5a5566;
  --bg: #ffffff;
  --bg-soft: #faf7fd;
  --line: rgba(109, 40, 217, 0.12);
  --gradient: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 45%, #fdf4ff 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(109, 40, 217, 0.12);
  --shadow-lg: 0 20px 50px rgba(109, 40, 217, 0.18);
  --wrap: 1120px;
  --section-y: clamp(56px, 8vw, 96px);
  --focus: 3px solid var(--purple-dark);
}

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

html {
  scroll-behavior: smooth;
  /* Sticky header must not cover anchored sections. */
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  /* Avoids one- or two-word orphan lines in large headings. */
  text-wrap: balance;
}

ul, ol {
  list-style: none;
}

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

.container {
  width: min(var(--wrap), 92%);
  margin: 0 auto;
}

.container-narrow {
  width: min(760px, 92%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--purple-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid var(--purple);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.72rem;
}

.btn-lg {
  padding: 17px 42px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--purple-dark);
  border-color: rgba(124, 58, 237, 0.35);
}

.btn-ghost:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--purple-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 7vw, 80px);
}

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

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.05rem, 4.6vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 46ch;
  color: var(--muted);
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}

.availability-center {
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex: none;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials-center {
  justify-content: center;
  margin-top: 26px;
}

.socials a {
  color: var(--ink);
  transition: color 0.2s, transform 0.2s;
}

.socials a:hover {
  color: var(--purple-dark);
  transform: translateY(-2px);
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.stat {
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 10px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--purple-dark);
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}

.section-tint {
  background: var(--bg-soft);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

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

/* ---------- Work cards ---------- */
.card .media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
}

.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card .media:hover img {
  transform: scale(1.04);
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 14px;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  transition: background 0.2s;
}

.play svg {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  padding: 12px;
  width: 50px;
  height: 50px;
}

.card .media:hover .play {
  background: rgba(0, 0, 0, 0.3);
}

/* ---------- Services ---------- */
.service {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Enquiry ---------- */
.eyebrow-center {
  text-align: center;
}

.enquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  max-width: 560px;
  margin: 0 auto;
}

.enquiry-lead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.enquiry-list {
  display: grid;
  gap: 9px;
  margin-bottom: 26px;
  text-align: left;
}

.enquiry-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.enquiry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

.enquiry-cta {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.enquiry-cta a {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700;
  color: var(--purple-dark);
  word-break: break-all;
}

.enquiry-cta a:hover {
  text-decoration: underline;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 28px);
  counter-reset: step;
}

.process li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.process li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 10px;
}

.process h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-copy .section-title {
  color: var(--ink);
}

.about-copy .btn {
  margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--purple);
  transition: transform 0.2s;
}

.faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
}

/* ---------- Contact ---------- */
.contact-section {
  text-align: center;
  background: var(--gradient);
}

.contact-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-sub {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--purple-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox video {
  max-width: min(420px, 100%);
  max-height: 82vh;
  width: 100%;
  border-radius: 14px;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  /* Headline first on mobile. The original used order:-1 on the image,
     which pushed the value proposition below a photo and two stat cards. */
  .hero-media {
    order: 1;
    max-width: 420px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    margin-left: 0;
  }
  .nav.open {
    max-height: 320px;
  }
  .nav a {
    padding: 14px 4%;
    border-top: 1px solid var(--line);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .process {
    grid-template-columns: 1fr;
  }
  /* Stacked pills of differing widths look untidy; make them full width. */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    text-align: center;
  }
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card .media:hover img,
  .btn:hover,
  .service:hover,
  .socials a:hover {
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .socials,
  .lightbox,
  .btn {
    display: none;
  }
}
