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

:root {
  --navy: #1a2b45;
  --navy-deep: #111e30;
  --navy-mid: #1f3254;
  --coral: #e8624a;
  --coral-light: #f07a64;
  --coral-ink: #bd3b25;   /* darker coral for text on light bg (WCAG AA) */
  --coral-btn: #c4452e;   /* darker coral for button bg so white text passes AA */
  --white: #ffffff;
  --off-white: #f5f3ef;
  --light-gray: #e8e5e0;
  --text-muted: #8a97aa;
  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--white); color: var(--navy); overflow-x: hidden; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 16px; top: 12px; z-index: 1000; background: #111e30; color: #fff; padding: 10px 16px; border-radius: 4px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(17, 30, 48, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 42px; height: 42px; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--white); font-size: 15px; font-weight: 600; letter-spacing: 0.3px; line-height: 1.2; }
.logo-tagline { color: var(--text-muted); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--coral); color: var(--white); border: none;
  padding: 10px 24px; font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: var(--coral-light); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.25s, opacity 0.25s; }
.nav-cta-mobile { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh; background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 5vw 10vh; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(232,98,74,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(26,43,69,0.8) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  color: var(--coral); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--coral); }
h1 {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400; color: var(--white); line-height: 1.08; margin-bottom: 28px;
}
h1 em { font-style: italic; color: var(--coral); }
.hero-desc {
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.65);
  max-width: 520px; margin-bottom: 48px; font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-primary {
  background: var(--coral-btn); color: var(--white); padding: 16px 36px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--coral); transform: translateY(-2px); }
.btn-ghost {
  color: var(--white); font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--white); }
.hero-stats {
  position: absolute; right: 5vw; bottom: 10vh; z-index: 2;
  display: flex; flex-direction: column; gap: 32px;
}
.stat { text-align: right; }
.stat-num { font-family: var(--font-display); font-size: 2.8rem; color: var(--white); font-weight: 400; line-height: 1; }
.stat-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ── SECTION COMMON ── */
section { padding: 100px 5vw; }
.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: 16px;
}
/* Eyebrows on dark navy sections — use brighter coral (coral-ink is for light bg only) */
.contact .section-eyebrow,
.projects .section-eyebrow { color: var(--coral); }
h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400; line-height: 1.15; margin-bottom: 20px; color: var(--navy);
}
.section-rule { width: 48px; height: 3px; background: var(--coral); margin-bottom: 40px; }

/* ── WHO WE ARE ── */
.about { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { font-size: 16px; line-height: 1.8; color: #4a5568; margin-bottom: 20px; font-weight: 300; }
.about-quote {
  border-left: 3px solid var(--coral); padding-left: 24px; margin-top: 36px;
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  color: var(--navy); line-height: 1.6;
}
.about-quote cite { display: block; margin-top: 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-style: normal; color: #586275; font-family: var(--font-body); }
.about-visual {
  background: var(--navy); padding: 52px 48px; position: relative; overflow: hidden;
}
.about-visual::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  border-radius: 50%; border: 40px solid rgba(232,98,74,0.15);
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; position: relative; z-index: 1; }
.pillar { background: rgba(255,255,255,0.05); padding: 28px 24px; transition: background 0.2s; }
.pillar:hover { background: rgba(255,255,255,0.09); }
.pillar-icon { font-size: 1.5rem; margin-bottom: 12px; }
.pillar .pillar-title { font-family: var(--font-body); color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.3px; line-height: 1.3; }
.pillar p { color: rgba(255,255,255,0.72); font-size: 12px; line-height: 1.6; font-weight: 300; }

/* ── SERVICES ── */
.services { background: var(--white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px; }
.services-intro { max-width: 420px; font-size: 15px; line-height: 1.7; color: #5a6880; font-weight: 300; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; background: var(--light-gray); }
.service-card {
  background: var(--white); padding: 44px 36px;
  transition: background 0.25s, transform 0.25s;
  cursor: default; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--coral); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.service-card:hover { background: var(--navy); transform: translateY(-4px); }
.service-card:hover .service-num { color: rgba(232,98,74,0.3); }
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: rgba(255,255,255,0.55); }
.service-card:hover::after { transform: scaleX(1); }
.service-num { font-family: var(--font-display); font-size: 3rem; font-weight: 400; color: #838b95; line-height: 1; margin-bottom: 20px; transition: color 0.25s; }
.service-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--navy); transition: color 0.25s; }
.service-card p { font-size: 14px; line-height: 1.7; color: #56657a; font-weight: 300; transition: color 0.25s; }

/* ── PROJECTS ── */
.projects { background: var(--navy-deep); color: var(--white); }
.projects h2 { color: var(--white); }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.project-card { background: var(--navy-mid); padding: 40px 32px; position: relative; overflow: hidden; transition: background 0.25s; }
.project-card:hover { background: #253d5f; }
.project-sector {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--coral-light);
  font-weight: 600; margin-bottom: 20px;
}
.project-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--white); margin-bottom: 16px; line-height: 1.3; }
.project-card p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.72); font-weight: 300; margin-bottom: 24px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; }
.project-service { font-size: 11px; color: rgba(255,255,255,0.68); }
.project-outcome {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--coral-light); background: rgba(0,0,0,0.22); padding: 4px 10px;
}

/* ── WHY US ── */
.why { background: var(--off-white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-list { display: flex; flex-direction: column; gap: 0; }
.why-item {
  padding: 36px 0; border-bottom: 1px solid var(--light-gray);
  display: flex; gap: 24px; cursor: default;
}
.why-item:first-child { border-top: 1px solid var(--light-gray); }
.why-number { font-family: var(--font-display); font-size: 1.1rem; color: var(--coral-ink); font-weight: 400; min-width: 32px; margin-top: 2px; }
.why-body .why-title { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.why-body p { font-size: 14px; line-height: 1.7; color: #5a6880; font-weight: 300; }
.why-cta-panel {
  background: var(--navy); padding: 56px 48px; position: sticky; top: 100px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.why-cta-panel h3 { font-family: var(--font-display); font-size: 1.9rem; color: var(--white); font-weight: 400; line-height: 1.2; margin-bottom: 24px; }
.why-cta-panel p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.7; font-weight: 300; margin-bottom: 40px; }

/* ── CONTACT ── */
.contact { background: var(--navy-deep); color: var(--white); text-align: center; padding: 120px 5vw; }
.contact h2 { color: var(--white); margin-bottom: 16px; }
.contact-sub { color: rgba(255,255,255,0.55); font-size: 16px; font-weight: 300; max-width: 480px; margin: 0 auto 52px; line-height: 1.7; }
.contact-info { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; margin-top: 48px; }
.contact-item { text-align: center; }
.contact-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-value { font-size: 15px; color: var(--white); font-weight: 400; }
.contact-value a { color: var(--coral); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 580px; margin: 0 auto; text-align: left; }
.contact-form .row { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-form .row .field { flex: 1; min-width: 200px; }
.contact-form .field { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-family: var(--font-body); font-size: 15px; padding: 14px 16px;
  border-radius: 0; transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--coral); background: rgba(255,255,255,0.08); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn-primary { width: 100%; border: none; cursor: pointer; font-size: 14px; }
.contact-form .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.contact-form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .moat-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .moat {
  margin-bottom: 20px;
  /* Moat widget theming (Shadow DOM hooks) - matched to the site */
  --moat-surface: rgba(255,255,255,0.05);          /* matches form inputs */
  --moat-fg: #ffffff;
  --moat-fg-muted: #8a97aa;                         /* var(--text-muted) */
  --moat-border: rgba(255,255,255,0.12);           /* matches input borders */
  --moat-accent: #e8624a;                          /* var(--coral) brand */
  --moat-danger: #f07a64;                          /* var(--coral-light) */
  --moat-radius: 0;                                /* flat, like the inputs */
  --moat-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --moat-max-width: 100%;                          /* span the full form width */
}
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.6; min-height: 20px; }
.form-status.success { color: #57c79a; }
.form-status.error { color: var(--coral-light); }
.form-privacy { max-width: 580px; margin: 16px auto 0; font-size: 12px; line-height: 1.6; color: var(--text-muted); text-align: left; }
.form-privacy a { color: var(--coral-light); text-decoration: underline; }
.form-privacy a:hover { color: var(--coral); }

/* ── FOOTER ── */
footer {
  background: #0c1420; padding: 32px 5vw;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
footer p { color: rgba(255,255,255,0.62); font-size: 12px; }
footer p a { color: rgba(255,255,255,0.78); text-decoration: underline; transition: color 0.2s; }
footer p a:hover { color: rgba(255,255,255,0.95); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 12px; text-decoration: underline; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.95); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
.hero-content { animation: fadeUp 0.9s ease forwards; }
.hero-stats { animation: fadeUp 1s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .pillars { grid-template-columns: 1fr; }
  section { padding: 72px 5vw; }
  .contact { padding: 80px 5vw; }
  .about-visual { padding: 40px 28px; }
  .why-cta-panel { position: static; padding: 40px 32px; }

  /* mobile navigation */
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17,30,48,0.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding: 6px 5vw 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 2px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { color: var(--coral); font-weight: 600; }
  nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  section { padding: 56px 5vw; }
  .contact { padding: 60px 5vw; }
  .hero { padding-bottom: 12vh; }
  .hero-desc { font-size: 16px; margin-bottom: 36px; }
  .service-card { padding: 36px 26px; }
  .project-card { padding: 32px 24px; }
  .why-cta-panel { padding: 36px 26px; }
  .about-visual { padding: 32px 24px; }
  .contact-info { gap: 28px 40px; }
  .services-header, .projects-header { margin-bottom: 40px; }
  .footer-links { gap: 14px 20px; flex-wrap: wrap; }
  footer { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .logo-tagline { display: none; }
}

/* externalised: replaces former inline style attrs */
.why-cta-panel .btn-primary { text-align: center; }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 999px; cursor: pointer;
  background: var(--coral-btn); color: #fff; border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--coral); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
