/* ═══════════════════════════════════════════════════════════════
   TCUK SHARED STYLES
   Source of truth for all root pages.
   Token values live in brand.css — do not redeclare :root here.
   Page-specific overrides go in page-level CSS files.
═══════════════════════════════════════════════════════════════ */

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

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--brand-dark);
  color: var(--brand-white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, 70px);
}

.scroll-anchor,
section[id],
[id="main-content"] {
  scroll-margin-top: var(--scroll-offset, 70px);
}

.scroll-anchor {
  display: block;
  height: 0;
  visibility: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--brand-charcoal);
  background: var(--brand-white);
}

a { color: var(--brand-dark); }

/* ── NAV ── */
nav {
  background: var(--brand-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--brand-primary);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.nav-logo img { display: block; height: auto; max-height: 32px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--brand-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand-dark); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: var(--brand-white) !important;
  font-weight: 600 !important;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── FOCUS STYLES ── */
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.nav-mobile a:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.nav-burger:focus-visible,
.footer-bottom a:focus-visible,
.footer-col ul li a:focus-visible,
.audience-card a:focus-visible,
.form-note a:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.nav-logo,
.nav-links a,
.nav-mobile a,
.btn-primary,
.btn-outline,
.nav-burger,
.footer-bottom a,
.footer-col ul li a,
.audience-card a,
.form-note a {
  outline: none;
}

/* ── BUTTONS ── */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--brand-gradient);
  color: var(--brand-white);
  border: 1.5px solid transparent;
}
.btn-primary:hover { opacity: 0.88; color: var(--brand-white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--brand-charcoal);
  border: 1.5px solid var(--brand-border);
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-dark); transform: translateY(-1px); }

/* ── SECTION SHARED ── */
section { padding: 4.5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand-ink);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-lead {
  font-size: 1rem;
  color: var(--brand-muted-text);
  max-width: 600px;
  margin-bottom: 3rem;
}

h1, h2 { font-family: 'DM Serif Display', serif; color: var(--brand-ink); line-height: 1.15; }

/* ── EYEBROW / BADGE ── */
.eyebrow,
.hero-badge {
  display: inline-block;
  background: var(--brand-gradient);
  color: var(--brand-white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── BRAND ACCENT TEXT ── */
.brand-accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--brand-primary);
}

/* ── HERO (shared) ── */
.hero {
  background: var(--brand-hero-grad);
  border-bottom: 1px solid var(--brand-border);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--brand-mid);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── ENQUIRY FORM ── */
.enquiry {
  background: var(--brand-hero-grad);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.enquiry .section-label { color: var(--brand-dark); }
.enquiry .section-title { color: var(--brand-ink); }
.enquiry .section-lead  { color: var(--brand-muted-text); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--brand-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--brand-charcoal);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-muted);
}
.form-group select option { background: var(--brand-white); color: var(--brand-charcoal); }
.form-group .field-error { display: none; font-size: 13px; color: #b42318; margin-top: 4px; line-height: 1.4; }
.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}
.form-submit { margin-top: 0.5rem; }
.form-note { font-size: 12px; color: var(--brand-muted-text); margin-top: 1rem; }
.form-status { display: none; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.form-status.is-error { display: block; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
#form-success {
  display: none;
  background: var(--brand-muted);
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--brand-dark);
  font-weight: 500;
  margin-top: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--brand-footer-bg);
  color: var(--brand-mid);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--brand-footer-border);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--brand-mid); max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--brand-charcoal); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--brand-mid); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brand-dark); }
.footer-bottom {
  border-top: 1px solid var(--brand-footer-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 13px; color: var(--brand-muted-text); }
.footer-bottom a { color: var(--brand-muted-text); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-dark); }

/* ── MOBILE MENU ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-burger:hover { background: var(--brand-section-alt); }
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--brand-white);
  border-top: 1px solid var(--brand-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.nav-mobile.open { max-height: 360px; padding: 0.5rem 0 1rem; }
.nav-mobile a {
  padding: 0.75rem 1.5rem;
  color: var(--brand-mid);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--brand-border);
  transition: color 0.2s, background 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--brand-dark); background: var(--brand-section-alt); }
.nav-mobile .nav-mobile-cta {
  display: block;
  margin: 0.75rem 1.5rem 0;
  background: var(--brand-gradient);
  color: var(--brand-white) !important;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.nav-mobile .nav-mobile-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .section-title { font-size: 1.6rem; }
}
