/*
  Ascent Digital UK — shared stylesheet, BLOG/INFO-PAGE family.

  Scope: reset, colour/font variables, skip-link, nav, standard hero
  (52px/140px sizing per SITE_STANDARDS.md — NOT the home-page hero,
  which is intentionally larger and stays inline on index.html),
  section-tag/section-headline, CTA block, footer, reveal animation,
  mobile breakpoints.

  Token decision (2026-07-27): the site runs two component systems —
  this one (nav blurs on scroll, inline .nav-links.open dropdown,
  .cta/.footer-top markup) and assets/styles-location.css (custom
  cursor, full-screen .mobile-menu overlay, .cta-section/.footer-inner
  markup). They're genuinely different HTML/CSS, not just different
  tokens — unifying them means rewriting this family's footer/CTA/
  mobile-nav markup to match the other, which is real surgery, not a
  quick edit. Decided NOT to do that opportunistically; instead the
  colour tokens below were brought in line with styles-location.css
  (the richer, majority system — --dim raised from 0.45 to 0.75 alone
  is a meaningful readability/contrast improvement) so both families
  at least render on the same palette while they coexist. Treat
  styles-location.css as canonical for any brand-new page; migrate a
  page out of this file into that one only as part of a deliberate,
  tested pass — not as a drive-by edit.
*/

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100000;
  background: #1D9E75;
  color: #050505;
  padding: 12px 20px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #050505; --card: #0a0a0a; --surface: #0e0e0e; --border: #1a1a1a;
  --teal: #1D9E75; --teal-bright: #25c28e; --teal-glow: rgba(29,158,117,0.15); --teal-d: #16815f;
  --white: #ffffff; --dim: rgba(255,255,255,0.75); --muted: rgba(255,255,255,0.65); --ghost: rgba(255,255,255,0.07);
  --outfit: 'Outfit', system-ui, sans-serif; --sans: 'DM Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--black); color: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
/* NAV — canonical home page version */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  background: transparent;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
nav.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.logo-text {
  font-family: var(--outfit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.logo-text span { color: var(--teal); }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}
.nav-links a {
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--black);
  box-shadow: 0 0 30px rgba(29,158,117,0.3);
}
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* HERO — standard (non-home) size, per SITE_STANDARDS.md */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 clamp(24px, 4vw, 48px);
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(29,158,117,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(29,158,117,0.14) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient { animation: none; }
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 2; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding-top: 64px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--outfit);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.7s ease 0.1s forwards;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--teal);
}
.hero-title {
  font-family: var(--outfit);
  font-weight: 800;
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
  color: var(--white);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block; transform: translateY(110%);
  animation: heroLineUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.32s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 0.44s; }
.hero-title .accent { color: var(--teal); }
.hero-desc {
  font-size: 16px; font-weight: 300;
  color: var(--dim); line-height: 1.8;
  max-width: 580px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp 0.7s ease 0.6s forwards;
}
.hero-desc strong { color: var(--white); font-weight: 500; }

@keyframes heroLineUp {
  to { transform: translateY(0); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { min-height: 100vh; }
  .hero-title {
    font-size: clamp(36px, 9vw, 64px);
    line-height: 0.92;
    margin-bottom: 32px;
  }
}

/* SHARED */
.section-tag { font-family: var(--outfit); font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 10px; }
.section-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--teal); }
.section-headline { font-family: var(--outfit); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; color: var(--white); margin-bottom: 2.5rem; line-height: 1; }

/* CTA */
.cta { margin: 5rem 2.5rem; background: var(--teal); border-radius: 4px; padding: 4rem 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-headline { font-family: var(--outfit); font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 0.75rem; }
.cta-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.75); }
.cta-btn { font-family: var(--outfit); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--white); color: var(--teal); padding: 18px 36px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; transition: transform 0.2s; }
.cta-btn:hover { transform: translateY(-2px); }

/* FOOTER */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 3rem 2.5rem 2rem; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-logo-text { font-family: var(--outfit); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-logo-text em { font-style: normal; color: var(--teal); }
.footer-nav { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-nav a { font-family: var(--outfit); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { text-align: right; }
.footer-contact a { display: block; font-size: 13px; font-weight: 300; color: var(--teal); margin-bottom: 4px; }
.footer-contact span { font-size: 11px; font-weight: 300; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-family: var(--outfit); font-size: 10px; font-weight: 300; letter-spacing: 0.1em; color: var(--muted); }
.footer-locs { font-family: var(--outfit); font-size: 10px; font-weight: 300; letter-spacing: 0.1em; color: rgba(255,255,255,0.12); text-transform: uppercase; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: rgba(8,8,8,0.98); padding: 1.5rem 2.5rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .cta { margin: 0 1.5rem 4rem; padding: 2.5rem 1.75rem; flex-direction: column; align-items: flex-start; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
