:root {
  --blue: #0f4c81;
  --blue-dark: #08345a;
  --dark: #141414;
  --text: #333;
  --muted: #666;
  --light: #f5f7fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.header-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.brand .mk {
  color: var(--blue);
  font-size: 31px;
  line-height: 1;
}

.brand .brand-text {
  color: var(--dark);
  font-size: 23px;
}

.brand .ct {
  color: var(--blue);
  font-size: 23px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dark);
  font-weight: 700;
  white-space: nowrap;
}

.phone-icon {
  font-size: 18px;
}

.phone-label {
  color: var(--muted);
}

.phone-number {
  color: var(--blue);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--blue);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white) !important;
  border: 2px solid var(--blue);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 999px;
  transition: 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 0;
}

.hero-photo {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-photo-1 {
  background-image: url('../images/hero-1.jpg');
  background-position: center center;
}

.hero-photo-2 {
  background-image: url('../images/hero-2.jpg');
  background-position: center center;
}

.hero-photo-3 {
  background-image: url('../images/hero-3.jpg');
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 40, 75, 0.74);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  padding: 100px 0;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: #f5f7fa;
  margin-bottom: 26px;
}

.hero-cta {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue) !important;
}

.hero-cta:hover {
  color: var(--white) !important;
  background: var(--blue);
  border-color: var(--blue);
}

section {
  scroll-margin-top: 92px;
}

.section,
.services {
  padding: 78px 20px;
}

.section h2,
.services h2 {
  color: var(--blue);
  text-align: center;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 28px;
}

.section-subtitle,
.contact-subtitle {
  text-align: center;
  max-width: 720px;
  margin: -12px auto 30px;
  color: var(--muted);
  font-size: 18px;
}

.services {
  background: var(--white);
}

.service-photo-grid {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-photo-grid img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}

.service-photo-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.areas {
  background: var(--light);
}

.areas-grid {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.areas-grid div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 800;
  color: var(--dark);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.about {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.about p {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 18px;
}

.testimonials-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  color: var(--text);
  margin-bottom: 14px;
}

.testimonial-card strong {
  color: var(--blue);
}

#reviews {
  background: var(--light);
}

.contact-card {
  width: min(900px, 92%);
  margin: 0 auto;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
  color: var(--dark);
}

.field label span {
  color: var(--blue);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 16px;
  background: var(--white);
}

textarea {
  resize: vertical;
}

.contact-direct-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-direct-title {
  font-weight: 900;
  text-align: center;
  margin-bottom: 14px;
  color: var(--dark);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 15px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--blue);
  font-weight: 800;
}

.contact-pill:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.contact-email {
  word-break: break-word;
}

.footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .header-phone {
    display: none;
  }

  .header-nav {
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .header-wrap {
    min-height: 70px;
  }

  .header-nav {
    display: none;
  }

  .header-phone {
    display: flex;
    margin-left: auto;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-weight: 800;
  }

  .mobile-cta {
    margin: 14px 24px 20px;
  }

  .service-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .areas-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-inner {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .brand .mk {
    font-size: 28px;
  }

  .brand .brand-text,
  .brand .ct {
    font-size: 18px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-inner {
    padding: 78px 0;
  }

  .hero-bg {
    grid-template-columns: 1fr;
  }

  .hero-photo-2,
  .hero-photo-3 {
    display: none;
  }

  .service-photo-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .services {
    padding: 58px 16px;
  }
}

/* Email button fix */
.contact-direct {
  flex-wrap: wrap;
}

.email-pill {
  font-size: 15px;
}

.contact-email {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile email fix */
@media (max-width: 580px) {
  .contact-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-pill {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    padding: 11px 12px;
    font-size: 14px;
  }

  .email-pill {
    max-width: 310px;
    font-size: 13px;
  }

  .email-pill .contact-email {
    display: block;
    margin-top: 2px;
  }
}

/* Mobile contact line in header */
.mobile-header-contact {
  display: none;
}

@media (max-width: 760px) {
  .header-wrap {
    flex-wrap: wrap;
  }

  .mobile-header-contact {
    display: block;
    order: 3;
    width: 100%;
    text-align: center;
    padding: 6px 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: #0f4c81;
    text-decoration: none;
    border-top: 1px solid #eef2f6;
  }

  .mobile-header-contact:hover {
    color: #08345a;
  }
}

/* Mobile header contact closer to logo */
.brand-mobile-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-header-contact {
  display: none;
}

@media (max-width: 760px) {
  .header-wrap {
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 14px;
  }

  .brand-mobile-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .mobile-header-contact {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #0f4c81;
    text-decoration: none;
    line-height: 1.1;
    padding-left: 2px;
  }

  .burger {
    margin-left: auto;
  }
}