:root {
  --navy: #0f172a;
  --gold: #C59B27;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-word {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.brand-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
}

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

.menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-ghost {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

/* Icons Fix (Prevents huge oversized icons) */
svg.icon {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

.icon-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

/* Hero Section */
.hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero-card {
  background: var(--white);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-card h3 {
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Form Styles */
.panel {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.panel-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.hero-provider {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-provider a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* Sections & Cards */
.section {
  padding: 70px 0;
}

.page-top {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-top h1 {
  font-size: 2.2rem;
  margin-top: 5px;
}

.page-top p {
  color: #94a3b8;
  margin-top: 5px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: 2rem;
  color: var(--navy);
}

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

.service-grid, .benefit-grid, .step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card, .benefit, .step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.service-icon, .benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fefce8;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3, .benefit h3, .step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.service-card p, .benefit p, .step p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--text-dark);
  padding: 4px 0;
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.btn-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.step-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.steps-note {
  text-align: center;
  margin-top: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
}

.soon {
  text-align: center;
  margin-top: 25px;
  color: var(--muted);
  font-style: italic;
}

.notice {
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #854d0e;
}

/* Community Section */
.community {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.community-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.community-art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background: var(--bg-light);
  border-radius: 12px;
}

/* East London Map Section */
.east {
  background: var(--navy);
  color: var(--white);
}

.east-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

.east h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.east p {
  color: #94a3b8;
  margin-bottom: 15px;
}

.map {
  background: #1e293b;
  height: 200px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.map-pin {
  color: var(--gold);
  font-size: 2.2rem;
  animation: pulse 2s infinite;
}

.map-label {
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: var(--white);
  margin-top: 5px;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Provider Application & Layout */
.application-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-top: 40px;
}

.process-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  height: fit-content;
}

.process-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-list div {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-dark);
}

.process-list b {
  color: var(--gold);
}

.badge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.verify {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.verify .check {
  color: #16a34a;
  font-weight: bold;
}

/* Provider CTA & Final CTA */
.provider-cta-inner {
  background: var(--gold);
  color: var(--navy);
  padding: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.provider-cta-inner .eyebrow {
  color: var(--navy);
}

.mini-process {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.final-cta .btn {
  margin: 10px 5px 0;
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

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

.copyright {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .service-grid, .benefit-grid, .step-grid, .east-wrap, .community-wrap, .footer-grid, .application-layout {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .menu {
    display: block;
  }
  .provider-cta-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ---------- Images ---------- */
.hero { background: linear-gradient(90deg, rgba(15,23,42,.93) 0%, rgba(15,23,42,.78) 45%, rgba(15,23,42,.35) 100%), var(--navy) url(images/hero-london.jpg) no-repeat center 15% / cover; padding: 70px 0 90px; }
.service-card { overflow: hidden; }
.service-photo { display: block; width: calc(100% + 60px); max-width: none; height: 170px; object-fit: cover; margin: -30px -30px 22px; }
.community-art { padding: 0; overflow: hidden; position: relative; background: none; }
.community-art img { display: block; width: 100%; height: 340px; object-fit: cover; }
.community-badge { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--navy); border: 2px solid var(--gold); border-radius: 50px; padding: 8px 22px; }
.community-badge svg { height: 44px !important; display: block; }

/* ---------- Legal pages ---------- */
.legal h3 { margin: 26px 0 8px; font-size: 1.1rem; color: var(--navy); }
.legal p, .legal li { color: var(--text-dark); font-size: 0.95rem; margin-bottom: 10px; }
.legal ul { padding-left: 20px; margin-bottom: 10px; }
.legal a { color: var(--navy); font-weight: 600; }

/* ---------- Map and mobile header ---------- */
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 12px; background: #1e293b; }
.map-embed a { display: block; margin-top: 8px; font-size: 0.8rem; color: #94a3b8; text-decoration: underline; }
@media (min-width: 901px) { .east-wrap { grid-template-columns: 1fr 440px; } }
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .nav-actions .btn { white-space: nowrap; padding: 8px 12px; font-size: 0.85rem; }
}
