:root {
  --ink: #17201c;
  --muted: #5d6861;
  --line: #dce4dd;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --safety: #f2c84b;
  --ground: #19664f;
  --deep: #0f2f2a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

main {
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  padding: 22px clamp(18px, 4vw, 64px) 56px;
  background:
    linear-gradient(110deg, rgba(15, 47, 42, 0.96), rgba(15, 47, 42, 0.78)),
    url("https://www.stamford.ac.uk/app/uploads/sites/3/2026/01/electrical-engineers-working-to-test-the-voltage-a-2026-01-07-05-43-35-utc-1-1024x683.jpg") center/cover;
  color: #fffdf4;
}

.nav,
.hero-grid,
.section,
.stats-band,
.cta {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: var(--safety);
  color: var(--deep);
  font-weight: 900;
  line-height: 1;
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.14);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffdf4;
  border: 3px solid var(--ground);
}

.brand-pram,
.brand-365 {
  display: block;
}

.brand-pram {
  font-size: 0.72rem;
}

.brand-365 {
  font-size: 1.28rem;
}

.brand-name {
  color: #fffdf4;
  font-size: 1.26rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.nav-phone {
  border: 1px solid rgba(242, 200, 75, 0.55);
  padding: 9px 12px;
  color: #fffdf4;
  font-weight: 800;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.button,
.contact-form button {
  min-height: 48px;
  border: 0;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
}

.primary,
.contact-form button {
  background: var(--safety);
  color: var(--deep);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fffdf4;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.trust-row span,
.sector-list span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.hero-media {
  position: relative;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.12);
}

.media-note {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(300px, 86%);
  padding: 18px;
  background: #fffdf4;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.media-note strong,
.media-note span {
  display: block;
}

.media-note span {
  margin-top: 6px;
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  transform: translateY(-28px);
}

.stats-band div {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ground);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.stats-band span,
.section p {
  color: var(--muted);
}

.section {
  padding: 76px 0;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.72;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 15px 16px 15px 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #26312c;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 13px;
  height: 13px;
  background: var(--ground);
  box-shadow: 5px 5px 0 var(--safety);
}

.image-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  height: 100%;
  min-height: 620px;
}

.image-stack img,
.image-stack img:nth-child(2) {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.muted,
.prices,
.answer-engine,
.local-seo {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
}

.muted,
.answer-engine {
  background: #eaf0e7;
}

.prices,
.local-seo {
  background: #fff;
}

.law-grid,
.process-grid,
.service-grid,
.price-grid,
.faq-grid,
.answer-grid,
.local-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

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

.law-grid article,
.process-card,
.service-grid article,
.price-grid article,
.faq-grid article,
.answer-grid article,
.local-grid article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(25, 102, 79, 0.16);
  background: var(--panel);
}

.answer-grid article {
  border-left: 4px solid var(--safety);
}

.service-grid p,
.price-grid p,
.faq-grid p,
.answer-grid p,
.local-grid p {
  font-size: 0.98rem;
}

.price-grid strong {
  display: block;
  margin: 14px 0 16px;
  color: var(--ground);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.price-grid a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 2px solid var(--safety);
  color: var(--deep);
  font-weight: 900;
}

.law-grid span,
.process-card span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--ground);
  font-weight: 900;
}

.outcomes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.outcome-panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(23, 32, 28, 0.08);
}

.doc-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 10px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.doc-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.doc-lines span {
  height: 12px;
  background: #e8eee8;
}

.doc-lines span:nth-child(2) {
  width: 76%;
}

.doc-lines span:nth-child(3) {
  width: 88%;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.result-row em {
  color: var(--muted);
  font-style: normal;
}

.stamp {
  display: inline-block;
  margin-top: 18px;
  border: 2px solid var(--ground);
  padding: 10px 14px;
  color: var(--ground);
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.ilfov-block {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.locality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.locality-list span {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 0.92rem;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
  margin-bottom: 64px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--deep);
  color: #fffdf4;
}

.cta p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 14px;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-direct span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.84);
}

.contact-hint {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    padding-bottom: 34px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero-grid,
  .split,
  .outcomes,
  .cta,
  .stats-band,
  .law-grid,
  .process-grid,
  .service-grid,
  .price-grid,
  .faq-grid,
  .answer-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-media img {
    height: 360px;
  }

  .stats-band {
    transform: translateY(0);
    margin-top: 18px;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .media-note {
    position: static;
    width: 100%;
  }

  .image-stack img,
  .image-stack img:nth-child(2) {
    width: 100%;
    height: 240px;
    min-height: 240px;
  }

  .result-row {
    display: grid;
  }
}
