:root {
  --orange: #ff6a00;
  --orange-dark: #e05e00;
  --orange-soft: #fff1e6;
  --gray-900: #333333;
  --gray-700: #444444;
  --gray-500: #767676;
  --gray-200: #ececec;
  --gray-100: #f7f7f7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav { display: flex; }
.nav-list { list-style: none; display: flex; gap: 8px; }
.nav-link { display: block; padding: 8px 16px; text-decoration: none; color: var(--gray-700); font-size: 1rem; font-weight: 500; border-radius: 8px; transition: color .15s ease, background .15s ease; }
.nav-link:hover { color: var(--orange); background: var(--orange-soft); }
.nav-link.is-active { color: var(--orange); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--white), var(--gray-100)); }
.eyebrow { color: var(--orange); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; margin-bottom: 16px; }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.1; color: var(--gray-900); font-weight: 700; margin-bottom: 12px; }
.hero-title .accent { color: var(--orange); }
.hero-sub { font-size: 1.15rem; color: var(--gray-500); margin-bottom: 0; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 80px 0; background: linear-gradient(180deg, var(--white), var(--gray-100)); }
.page-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; color: var(--gray-900); font-weight: 700; margin-bottom: 16px; }
.page-sub { font-size: 1.15rem; color: var(--gray-500); max-width: 600px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--orange); color: var(--white); border: 2px solid var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange-soft); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-100); }
.section-title { font-size: 2rem; color: var(--gray-900); font-weight: 700; margin-bottom: 16px; }
.section-text { font-size: 1.05rem; color: var(--gray-500); max-width: 640px; margin-bottom: 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin-top: 16px; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-title { color: var(--orange); font-size: 1.2rem; margin-bottom: 8px; }
.card-text { color: var(--gray-500); }
a.card { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 16px 40px rgba(255,106,0,0.14); }
a.card:hover .card-title { color: var(--orange-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { height: 36px; width: auto; }
.footer-text { color: var(--gray-500); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .main-nav.open { max-height: 320px; }
  .nav-list { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav-link { padding: 14px 24px; font-size: 1.1rem; }
  .grid { grid-template-columns: 1fr; }
  .hero, .page-hero { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.footer-text a { color: inherit; text-decoration: none; }
.footer-text a:hover { color: inherit; text-decoration: underline; }


/* ---------- Page banner (leading image) ---------- */
.page-banner { line-height: 0; }
.page-banner-img { display: block; width: 100%; height: auto; }

/* ---------- Contact ---------- */
.contact-body { max-width: 640px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-weight: 600; text-decoration: none; }
.contact-link:hover { color: var(--orange-dark); text-decoration: underline; }

.page-banner + .section { padding-top: 28px; }

/* ---------- Panel cards (home) ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 16px; }
.card { padding: 0; overflow: hidden; }
.card-media { display: block; line-height: 0; }
.card-media img { display: block; width: 100%; height: auto; }
.card-body { display: block; padding: 16px 18px; }
.card-title { font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Nav: hamburger-only items ---------- */
.nav-item-hamburger-only { display: none; }
@media (max-width: 768px) {
  .nav-item-hamburger-only { display: block; }
}

.section-home { padding-top: 32px; }

.card-cta { display: inline-block; margin-top: 12px; color: var(--orange); font-weight: 600; text-decoration: none; }
.card-cta:hover { color: var(--orange-dark); text-decoration: underline; }

/* ---------- Services page (engineers) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; margin-top: 8px; }
.service-sub { color: var(--gray-700); font-weight: 600; font-size: 1rem; margin: 16px 0 8px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { color: var(--gray-500); font-size: .95rem; padding-left: 18px; position: relative; margin-bottom: 6px; }
.service-list li:last-child { margin-bottom: 0; }
.service-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.page-sub a { color: var(--orange); font-weight: 600; text-decoration: none; }
.page-sub a:hover { color: var(--orange-dark); text-decoration: underline; }

.service-text { color: var(--gray-500); margin-bottom: 12px; }
.service-text:last-child { margin-bottom: 0; }
.service-note { color: var(--gray-500); font-size: .95rem; margin-bottom: 8px; }

.card-media a { display: block; line-height: 0; }
.card-media a img { transition: transform .2s ease; }
.card-media a:hover img { transform: scale(1.03); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
