:root {
  --blue-dark: #0f5c8f;
  --blue: #1a7bb5;
  --blue-mid: #2e8fc7;
  --blue-light: #6fb8e0;
  --ink: #333333;
  --grey-bg: #f5f6f7;
  --grey-line: #e2e5e8;
  --white: #ffffff;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

.hp-field { display: none; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--grey-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo { width: 42px; height: 42px; }

.brand-text-name {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand-text-tag {
  color: #8a8f94;
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,60,110,0.88) 0%, rgba(15,80,130,0.55) 55%, rgba(15,80,130,0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
}

.hero-inner h1 {
  font-size: 2.3rem;
  margin: 0 0 8px;
}

.hero-inner h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #cfe8f8;
  margin: 0 0 20px;
  max-width: 520px;
}

.hero-inner p {
  max-width: 520px;
  margin: 0 0 12px;
  color: #eaf4fb;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-dark);
  border: none;
  padding: 13px 26px;
  font-weight: 600;
  border-radius: 3px;
  margin-top: 14px;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; background: #eaf4fb; }

.btn-solid {
  background: var(--blue);
  color: var(--white);
}
.btn-solid:hover { background: var(--blue-dark); }

/* Photo grid (home) */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 60px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.photo-grid img { width: 100%; height: 260px; object-fit: cover; }

/* Key services */
.section { padding: 70px 40px; }
.section-grey { background: var(--grey-bg); }
.section-title {
  text-align: center;
  color: var(--blue);
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 4px;
  padding: 28px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}
.service-card .icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: var(--blue);
}
.services-grid-more {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: 18px auto 0;
}
.services-grid-more .service-card { flex: 1; }

.center-btn { text-align: center; margin-top: 34px; }

/* About */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 40px auto 0;
}
.about-photos img { height: 190px; object-fit: cover; width: 100%; }

/* Clients */
.clients-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}
.clients-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--grey-line);
  border-left: 1px solid var(--grey-line);
}
.clients-grid div {
  border-right: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clients-grid img { max-height: 60px; width: auto; }

/* Testimonial */
.testimonial-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}
.testimonial-layout img { border: 1px solid var(--grey-line); box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.testimonial-layout h3 { color: var(--blue); font-size: 1.35rem; }

/* Contact form section on home */
.contact-cta { text-align: center; }
.contact-cta form {
  max-width: 480px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-underline {
  border: none;
  border-bottom: 1px solid #bbb;
  background: transparent;
  padding: 8px 2px;
  font-size: 1rem;
  font-family: inherit;
}
.field-underline:focus { outline: none; border-bottom-color: var(--blue); }

/* Services page rows */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.svc-row.alt { grid-template-columns: 1fr 1fr; }
.svc-row.alt .svc-text { order: 1; }
.svc-row.alt .svc-img { order: 2; }
.svc-row:not(.alt) .svc-img { order: 1; }
.svc-row:not(.alt) .svc-text { order: 2; }
.svc-text h3 { color: var(--blue); font-size: 1.4rem; margin-top: 0; }
.svc-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 2px; }

/* Contact page */
.contact-panel {
  max-width: var(--max-width);
  margin: -70px auto 0;
  background: var(--white);
  position: relative;
  z-index: 2;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contact-panel h3 { color: var(--blue); font-size: 1.6rem; margin-top: 0; }
.contact-panel form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.field-box {
  border: 1px solid #d5d8db;
  padding: 13px 14px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: inherit;
}
.field-box:focus { outline: none; border-color: var(--blue); }
.required { color: #d33; }

.contact-info { display: flex; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.contact-info .item { display: flex; gap: 10px; max-width: 260px; }
.contact-info strong { display: block; color: var(--ink); }
.contact-info .icon-sm { width: 20px; height: 20px; flex-shrink: 0; color: var(--blue); margin-top: 3px; }

.map-frame { width: 100%; height: 340px; border: 0; border-radius: 2px; }

/* Footer */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 30px 40px 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand-name { font-weight: 700; }
.footer-brand-tag { font-size: 0.8rem; color: #cfe4f2; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--white); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #dcecf6;
}
.footer-bottom a { color: #dcecf6; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-more { flex-direction: column; }
  .clients-layout, .testimonial-layout, .contact-panel, .svc-row {
    grid-template-columns: 1fr;
  }
  .svc-row.alt .svc-text, .svc-row.alt .svc-img,
  .svc-row:not(.alt) .svc-text, .svc-row:not(.alt) .svc-img { order: initial; }
  .about-photos { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
