:root {
  --navy: #0a1f44;
  --navy-dark: #061530;
  --accent: #b8860b;
  --gray: #f4f6f9;
  --text: #2b2f36;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

header.is-compact {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

header.is-compact .topbar {
  padding-top: 8px;
  padding-bottom: 8px;
}

header.is-compact .mabadge {
  transform: scale(0.88);
  transform-origin: center top;
}

header nav > ul > li:has(> a[href="/site_map.htm"]) {
  display: none;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom: 2px solid var(--accent);
}

nav > ul > li {
  position: relative;
}

li.has-dropdown > a::after {
  content: " ▾";
  font-size: 10px;
}

.dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 255px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 300;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

li.has-dropdown.is-open > .dropdown,
li.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.brand {
  color: #fff;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

.dropdown li {
  width: 100%;
}

.dropdown a {
  display: block;
  color: var(--navy);
  font-weight: 500;
  padding: 10px 18px;
  border-bottom: none;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #f2f4f8;
  border-bottom: none;
}

.hero {
  position: relative;
  background: linear-gradient(rgba(6, 21, 48, 0.72), rgba(6, 21, 48, 0.72)),
    url("/images/construction-cem.jpg?v=20260806h") center / cover no-repeat;
  color: #fff;
  padding: 110px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: #e5e9f0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.btn:hover {
  background: #9c7009;
}

section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-sub {
  text-align: center;
  color: #666;
  margin: 0 auto 40px;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.55;
}

.services {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card-body p {
  font-size: 14px;
  color: #5a6472;
  margin-bottom: 10px;
}

.card-body a.more {
  position: static;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.card-body a.more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stats {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.stats h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 36px;
  font-weight: 800;
}

.stat-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.stat-grid .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.stat-grid .label {
  font-size: 14px;
  color: #cfd6e4;
  margin-top: 6px;
}

.split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.split h3 {
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
}

.split ul {
  list-style: none;
}

.split li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 800;
}

.page-hero p {
  max-width: 720px;
  margin: 12px auto 0;
  color: #cfd6e4;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 50px 20px;
}

.content h2 {
  color: var(--navy);
  margin: 28px 0 12px;
}

.content p {
  margin-bottom: 14px;
}

.content ul {
  margin: 0 0 18px 22px;
}

footer {
  background: var(--navy-dark);
  color: #cfd6e4;
  padding: 50px 20px 20px;
}

.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.foot-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}

.foot-grid p,
.foot-grid li {
  font-size: 14px;
  margin-bottom: 6px;
}

.foot-grid ul {
  list-style: none;
}

.foot-grid a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: #7c869c;
  margin-top: 40px;
  border-top: 1px solid #223055;
  padding-top: 16px;
}

.mabadge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-left: 14px;
}

.mabadge .ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6d883, #caa227 55%, #8a6a12 100%);
  border: 2px solid #7a5c10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mabadge .ring b {
  font-size: 15px;
  line-height: 1;
  color: #5b3d0a;
  font-weight: 800;
}

.mabadge .ring small {
  font-size: 6px;
  letter-spacing: 0.4px;
  color: #5b3d0a;
  font-weight: 700;
}

.mabadge .ribbon {
  margin-top: -5px;
  background: #8a1030;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .split,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .topbar {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
