:root {
  --navy: #22303C;
  --navy-deep: #16212C;
  --navy-footer: #0F1820;
  --blue: #1C6585;
  --green: #4CC95B;
  --cyan: #33BDE4;
  --ground: #F7F7F7;
  --tint: #F2F5F7;
  --line: #E2E6EA;
  --muted: #4A5866;
  --on-dark: #C9D4DE;
  --on-dark-muted: #A9B8C6;
  --head: Montserrat, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--navy); background: #fff; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); margin: 0; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-deep); color: #fff; }

.eyebrow { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--cyan); }
.h2 { font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--on-dark); }
.intro { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn--accent { background: var(--cyan); color: var(--navy-deep); }
.btn--accent:hover { background: #5ccbec; color: var(--navy-deep); }
.btn--ghost { border: 1.5px solid #5D7184; color: #fff; font-weight: 600; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); color: #fff; }

/* Header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.nav a { color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav .btn--dark, .nav .btn--dark:hover { color: #fff; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.hero__art { position: absolute; right: -40px; top: 10px; width: 640px; height: 560px; opacity: .55; pointer-events: none; }
.hero .container { position: relative; display: flex; flex-direction: column; gap: 28px; padding-top: 112px; padding-bottom: 96px; }
.hero h1 { max-width: 760px; font-weight: 800; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -.01em; }
.hero__text { max-width: 620px; font-size: 19px; line-height: 1.6; color: var(--on-dark); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; max-width: 760px; margin: 40px 0 0; background: #2E3F4F; border: 1px solid #2E3F4F; border-radius: 12px; overflow: hidden; }
.facts div { background: #1B2834; padding: 20px 24px; }
.facts dt { font-size: 14px; color: var(--on-dark-muted); margin-top: 4px; }
.facts dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 30px; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--blue); }
.card h3 { font-weight: 700; font-size: 22px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Projects */
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.projects-head .intro { margin-bottom: 0; max-width: 640px; }
.projects-head > p { max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.site { background: var(--navy); color: #fff; border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 220px; }
.site__state { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
.site h3 { font-weight: 800; font-size: 30px; }
.site p { font-size: 15px; line-height: 1.6; color: var(--on-dark); flex-grow: 1; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--navy-deep); background: #8BE39A; padding: 6px 12px; border-radius: 999px; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 18px; }
.about__text p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.about__logo { background: var(--ground); border-radius: 16px; padding: 40px; display: flex; justify-content: center; }
.about__logo img { width: 100%; max-width: 480px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; }
.contact__info .intro { margin-bottom: 0; }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.contact__list a, .contact__list address { color: #fff; text-decoration: none; display: flex; align-items: flex-start; gap: 14px; min-height: 44px; font-style: normal; line-height: 1.5; }
.contact__list a { align-items: center; }
.contact__list a:hover { color: var(--cyan); }
.contact__list svg { flex-shrink: 0; }
.form { flex: 1 1 440px; background: #fff; color: var(--navy); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.form label, .form .wpcf7-form > p { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form input:not([type=submit]), .form textarea { border: 1px solid #C7D0D8; border-radius: 8px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--navy); }
.form input:not([type=submit]) { height: 48px; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--blue); }
.form .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy-footer); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero .container { padding-top: 72px; padding-bottom: 64px; }
  .hero__art { width: 420px; height: 370px; right: -160px; opacity: .3; }
  .site-header { position: static; }
  .site-header .logo img { height: 44px; }
  .form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Contact Form 7 */
.form .wpcf7 { margin: 0; }
.form .wpcf7-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7-form-control-wrap input,
.form .wpcf7-form-control-wrap textarea { width: 100%; }
.form .wpcf7-submit { height: 52px; width: 100%; justify-content: center; }
.form .wpcf7-submit:disabled { opacity: .6; cursor: progress; }
.form .wpcf7-spinner { display: none; }
.form .wpcf7-not-valid { border-color: #B42318 !important; }
.form .wpcf7-not-valid-tip { color: #B42318; font-size: 13px; font-weight: 500; margin-top: 6px; }
.form .wpcf7-response-output { margin: 0 !important; padding: 12px 14px !important; border-radius: 8px; font-size: 14px; border-width: 1px !important; }
.form .wpcf7 form.sent .wpcf7-response-output { border-color: #1E8E3E !important; color: #14632B; background: #EAF7EE; }
.form .wpcf7 form.invalid .wpcf7-response-output,
.form .wpcf7 form.failed .wpcf7-response-output,
.form .wpcf7 form.spam .wpcf7-response-output { border-color: #B42318 !important; color: #8A1A12; background: #FDECEA; }
.form .cf-turnstile, .form .wpcf7-turnstile { min-height: 65px; }
.form-missing { font-size: 15px; color: var(--muted); }

/* Client / Contractor form */
.form .lec-group { display: flex; flex-direction: column; gap: 18px; }
.form .lec-group[hidden] { display: none !important; }
.form label small, .form .lec-hint { font-size: 12px; font-weight: 400; color: #5D6B78; }
.form .lec-legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form select { height: 48px; border: 1px solid #C7D0D8; border-radius: 8px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--navy); background: #fff; width: 100%; }
.form select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--blue); }
.form input[type=file] { height: auto; border: 1px dashed #C7D0D8; padding: 12px 14px; font-size: 14px; background: #F7F9FA; }
.form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.form .wpcf7-radio .wpcf7-list-item { margin: 0; }
.form .wpcf7-radio label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.form .wpcf7-radio input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }

/* "I am a…" switch: two large segments */
.form .lec-type .wpcf7-radio .wpcf7-list-item { flex: 1 1 160px; }
.form .lec-type .wpcf7-radio label { justify-content: center; width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #C7D0D8; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--navy); background: #fff; box-sizing: border-box; }
.form .lec-type .wpcf7-radio label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.form .lec-type .wpcf7-radio input { accent-color: var(--cyan); }

/* Role: pill buttons */
.form .lec-role .wpcf7-radio label { min-height: 44px; padding: 0 16px; border: 1px solid #C7D0D8; border-radius: 999px; font-size: 15px; font-weight: 500; }
.form .lec-role .wpcf7-radio label:has(input:checked) { border-color: var(--blue); background: #EAF6FB; }
.form input[type=radio] { height: 16px; width: 16px; padding: 0; border: 0; flex: none; }
