/* Phi Consulting Engineers – site stylesheet (hand-built, replaces WebSite X5 output) */
:root {
  --green: #a6c639;
  --green-dark: #8aa82a;
  --navy: #302659;
  --link: #253a58;
  --text: #111;
  --muted: #555;
  --bg: #fff;
  --rule: #e3e3e3;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 "Fira Sans", Arial, Helvetica, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 100; }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 10px; padding-bottom: 12px;
}
.logo img { width: 276px; }
.header-contact { color: var(--navy); font-size: 15px; line-height: 1.85; }
.header-contact h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; color: var(--navy); }
.header-contact b { font-weight: 700; }
.header-contact a { color: var(--navy); }

/* Navigation bar */
.navbar { background: var(--green); position: sticky; top: 0; z-index: 50; }
.navbar .wrap { display: flex; align-items: center; min-height: 52px; }
.nav-toggle {
  display: none; margin: 0 auto; background: none; border: 0; cursor: pointer;
  padding: 10px 14px; color: #fff;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-list {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.nav-list a {
  display: block; padding: 14px 11px; color: #fff; font-size: 15px; font-weight: 500;
  white-space: nowrap;
}
.nav-list a:hover, .nav-list a:focus, .nav-list a[aria-current="page"] {
  background: var(--green-dark); text-decoration: none;
}

/* Content */
main { padding: 26px 0 48px; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.content .text > :first-child { margin-top: 0; }
.content .media img { width: 100%; max-width: 520px; }
h1 { font-size: 26px; line-height: 1.3; margin: 0 0 14px; color: var(--navy); }
h2 { font-size: 21px; line-height: 1.35; margin: 26px 0 8px; color: var(--navy); }
p { margin: 0 0 16px; }
ul.services, .text ul { margin: 0 0 18px; padding-left: 24px; }
.text li { margin: 2px 0; }
.text ul.services a { color: var(--link); }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 28px; margin: 18px 0 8px; }
.offices p { margin: 0 0 10px; }
.offices b { display: block; }

.cta-btn {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  padding: 11px 22px; border-radius: 4px; margin: 6px 10px 6px 0;
}
.cta-btn:hover, .cta-btn:focus { background: #241c45; color: #fff; text-decoration: none; }
.cta-btn.alt { background: var(--green); }
.cta-btn.alt:hover, .cta-btn.alt:focus { background: var(--green-dark); }

/* Contact form */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 4px; background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form small { color: var(--muted); font-size: 13px; }
.notice { padding: 14px 16px; border-radius: 4px; margin: 0 0 18px; }
.notice.ok { background: #eef5d8; border: 1px solid var(--green); }
.notice.err { background: #fbeaea; border: 1px solid #c0392b; }

/* Landing page extras */
.points { list-style: none; padding: 0 !important; }
.points li { padding-left: 28px; position: relative; margin: 8px 0; }
.points li::before { content: "\2713"; position: absolute; left: 0; color: var(--green-dark); font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; margin: 12px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
}

/* Footer */
.site-footer { border-top: 4px solid var(--green); padding: 18px 0 26px; text-align: center; font-size: 13px; color: #333; line-height: 1.7; }
.site-footer p { margin: 0; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s; text-decoration: none;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { text-decoration: none; background: var(--green-dark); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .navbar .wrap { flex-direction: column; padding: 0; }
  .nav-list { display: none; flex-direction: column; text-align: center; }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px; border-top: 1px solid rgba(255,255,255,.25); }
}
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; text-align: center; }
  .logo img { width: 200px; }
  .header-contact { font-size: 14px; }
  .content { grid-template-columns: 1fr; gap: 20px; }
  .content .media { order: -1; }
  .wrap { padding: 0 16px; }
}
@media print {
  .navbar, .to-top, .form { display: none; }
}

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.content.onecol { grid-template-columns: minmax(0, 760px); }