:root {
  --navy: #132743;
  --navy-dark: #0c1b2e;
  --blue: #2f6fdb;
  --blue-light: #3b82f6;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #1f2937;
  --text-muted: #5b6472;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* stop the sticky header covering headings when jumping to an anchor */
section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

h1, h2, h3 { color: var(--navy); margin: 0 0 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6eaf0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

.header-call {
  white-space: nowrap;
  font-size: 14px;
  padding: 8px 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47,111,219,0.3);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  max-width: 920px;
  margin: 0 auto 18px;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  color: #cdd8ea;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services */
.services {
  padding: 80px 0;
  background: var(--bg-soft);
  text-align: center;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 17px;
}

/* flex rather than grid so the trailing 2 of 5 cards centre instead of
   hugging the left edge */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.service-card { flex: 0 1 calc((100% - 48px) / 3); }

@media (max-width: 860px) {
  .service-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 520px) {
  .service-card { flex-basis: 100%; }
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: 0 4px 16px rgba(19,39,67,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(19,39,67,0.12);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.service-card h3 { font-size: 19px; }

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* Why */
.why {
  padding: 70px 0;
}

.why-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

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

.why-list li {
  font-size: 17px;
  padding-left: 30px;
  position: relative;
}

.why-list li::before {
  content: "✔";
  color: var(--blue);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.why-cta {
  text-align: center;
  background: var(--bg-soft);
  padding: 32px 40px;
  border-radius: var(--radius);
}

.why-cta p {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--navy);
}

/* Contact */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.contact h2 { color: #fff; }

.contact .section-sub { color: #cdd8ea; }

/* Quote form */
.quote-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 660px;
  margin: 0 auto 36px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.field-row {
  display: flex;
  gap: 18px;
}

.field {
  flex: 1 1 0;
  margin-bottom: 18px;
  min-width: 0;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.req { color: #d92d20; }
.opt { color: var(--text-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5dde8;
  border-radius: 10px;
  /* 16px keeps iOS Safari from zooming in on focus */
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,111,219,0.18);
}

.field input.invalid,
.field select.invalid {
  border-color: #d92d20;
  background: #fff8f7;
}

.field-error {
  display: block;
  color: #d92d20;
  font-size: 13px;
  margin-top: 5px;
  min-height: 0;
}

/* honeypot — kept out of view and out of the tab order */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.form-status {
  margin: 16px 0 0;
  font-size: 15px;
  text-align: center;
  border-radius: 10px;
}

.form-status:empty { margin: 0; }

.form-status.is-error {
  color: #b42318;
  background: #fef3f2;
  padding: 12px 14px;
}

.form-status.is-success {
  color: #05603a;
  background: #ecfdf3;
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.6;
}

.form-status a { color: inherit; font-weight: 700; }

.contact-alt {
  color: #9db3d3;
  font-size: 15px;
  margin: 0 0 16px;
}

@media (max-width: 560px) {
  .quote-form { padding: 22px 18px; }
  .field-row { flex-direction: column; gap: 0; }
}

.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 24px 36px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 220px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-3px);
}

.contact-icon { font-size: 28px; }

.contact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9db3d3;
}

.contact-value {
  font-size: 18px;
  font-weight: 700;
}

.service-area {
  color: #9db3d3;
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  background: var(--navy-dark);
  color: #9db3d3;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-direction: column;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  opacity: 0.95;
  /* logo is dark navy on white; lift it off the dark footer */
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; padding-top: 8px; }
  .hero { padding: 60px 0 60px; }
}
