:root {
  --navy: #0b2545;
  --navy-light: #13315c;
  --steel: #8da9c4;
  --sand: #eef4ed;
  --accent: #d97706;
  --accent-dark: #b45309;
  --text: #1a1a1a;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 52px; width: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.15rem; letter-spacing: .3px; }
.brand-tag { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sand); color: var(--navy); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(11,37,69,.88) 0%, rgba(19,49,92,.75) 100%),
    url('../images/modern-business-building-scenery-touching-sky-scaled.jpg') center/cover;
  z-index: -1;
}
.hero-content { max-width: 760px; padding: 5rem 0; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 600px; margin: 1rem auto 0; }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .5rem;
}

.bg-alt { background: var(--bg-alt); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px;
  background: var(--sand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
}
.stats .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  color: var(--steel);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .5rem;
}

/* ---------- Two-col feature ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- CTA banner ---------- */
.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem;
  border-radius: var(--radius);
  margin: 3rem auto;
  max-width: 1100px;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); max-width: 600px; margin: 1rem auto 2rem; }

/* ---------- Blog ---------- */
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card-body { padding: 1.5rem; }
.post-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt { font-size: .95rem; }

article.post { max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem; }
article.post h1 { margin-bottom: .75rem; }
article.post .post-meta { margin-bottom: 2rem; }
article.post p { font-size: 1.08rem; margin-bottom: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info .item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info .item .icon {
  flex: 0 0 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-info strong { color: var(--navy); display: block; margin-bottom: .15rem; }
.contact-info span { color: var(--text-muted); }

form.contact-form { display: flex; flex-direction: column; gap: 1rem; }
form.contact-form label { font-weight: 600; font-size: .9rem; color: var(--navy); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .15s;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.form-status { font-size: .95rem; padding: .75rem; border-radius: 6px; display: none; }
.form-status.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.75); display: block; padding: .25rem 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255,255,255,.6); font-size: .95rem; }
.footer-brand img { height: 60px; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .5rem 0; width: 100%; }
  .brand-tag { display: none; }
}
