@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500;1,600&family=Inter:wght@400;500;600&display=swap');

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

/* COLOURS — matched to the TV Credits page */
:root {
  --purple: #6b3fa0;
  --purple-light: #f1eaf8;
  --purple-dark: #4e2c78;
  --text: #221d26;
  --muted: #6b6470;
  --border: #e7e1ea;
  --bg: #faf8fb;
  --bg2: #f3eef7;
  --surface: #ffffff;
}

html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }

/* NAV */
nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 100;
}
.logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; color: var(--text); }
.logo span { color: var(--purple); font-style: italic; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--purple); }

/* UTILITIES */
.section-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 1.5rem; font-weight: 600; display: block; }

.btn-primary {
  background: var(--purple); color: #fff;
  border: 1px solid var(--purple); padding: 12px 22px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border-radius: 999px; transition: background 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost {
  background: none; border: 1px solid var(--purple); padding: 12px 22px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; color: var(--purple); border-radius: 999px; transition: background 0.2s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { background: var(--purple-light); }

/* FOOTER */
footer {
  padding: 24px 3rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--text); }
.footer-logo span { color: var(--purple); font-style: italic; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--purple); }

/* MATCH THE CREDITS PAGE LOOK ACROSS THE SITE
   (these override the older styles written into each page) */
html body h1, html body h2 { font-weight: 600 !important; }
html body h1 em, html body h2 em { color: var(--purple); }
html body .card-title, html body .service-card h3 { font-weight: 600; }

html body .hero-sub, html body .intro-strip p, html body .card-desc,
html body .service-card p, html body .about-hero-right p, html body .story-content p,
html body .sector-item p, html body .approach-item p, html body .info-block p,
html body .contact-hero p { font-size: 15px !important; line-height: 1.65 !important; }
html body .hero-sub { font-size: 18px !important; max-width: 560px; }

/* Rounded cards with space between, instead of a ruled grid */
html body .work-grid, html body .services-grid, html body .sectors-grid {
  border: none !important; gap: 16px;
}
html body .work-card, html body .service-card, html body .sector-item {
  border: 1px solid var(--border) !important; border-radius: 14px; background: var(--surface); overflow: hidden;
}
html body .service-card:hover { background: var(--purple-light); }

/* Forms */
html body .form-group input, html body .form-group select, html body .form-group textarea {
  font-family: inherit !important; background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 10px !important;
}
html body .form-group input:focus, html body .form-group select:focus, html body .form-group textarea:focus { border-color: var(--purple) !important; }

/* Work page photo filters as rounded pills */
html body .filter-bar { gap: 8px; flex-wrap: wrap; }
html body .filter-btn { border-radius: 999px !important; border: 1px solid var(--purple) !important; background: var(--surface) !important; color: var(--purple) !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; padding: 8px 16px !important; }
html body .filter-btn.active { background: var(--purple) !important; color: #fff !important; }

/* Stats and portrait */
html body .portrait-placeholder { border-radius: 14px; }
html body .stat-num, html body .approach-num { font-weight: 600; }

/* SAME READING WIDTH AS THE CREDITS PAGE on laptops and desktops:
   backgrounds still run edge to edge, content sits in a centred column */
@media (min-width: 769px) {
  html body > nav, html body > footer,
  html body > section, html body > div:not(.lightbox):not(#lightbox) {
    padding-left: max(3rem, calc((100% - 920px) / 2)) !important;
    padding-right: max(3rem, calc((100% - 920px) / 2)) !important;
  }
  html body > .hero .hero-rule { left: max(3rem, calc((100% - 920px) / 2)); right: max(3rem, calc((100% - 920px) / 2)); }
  html body > .hero .hero-accent { right: max(3rem, calc((100% - 920px) / 2)); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 1.5rem; }
  nav ul { gap: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
}

/* PHONE MENU: logo on top, links on one row underneath */
@media (max-width: 600px) {
  nav { flex-wrap: wrap; row-gap: 0.5rem; padding: 14px 1.25rem 10px; }
  nav ul { width: 100%; flex-wrap: wrap; justify-content: space-between; column-gap: 0.75rem; row-gap: 0.25rem; }
  nav a { font-size: 14px; display: inline-block; padding: 0.3rem 0; }
  .logo { font-size: 22px; }
  html body .hero-sub { font-size: 16px !important; }
}
