/* ─── Design Tokens ────────────────────────────────────────────── */
:root {
  --primary:          hsl(220, 70%, 15%);
  --primary-light:    hsl(220, 60%, 25%);
  --primary-fg:       hsl(0, 0%, 100%);
  --secondary:        hsl(220, 15%, 92%);
  --secondary-fg:     hsl(220, 70%, 15%);
  --background:       hsl(220, 15%, 97%);
  --foreground:       hsl(220, 20%, 15%);
  --card:             hsl(0, 0%, 100%);
  --card-fg:          hsl(220, 20%, 15%);
  --muted:            hsl(220, 15%, 90%);
  --muted-fg:         hsl(220, 15%, 45%);
  --accent:           hsl(355, 85%, 50%);
  --accent-hover:     hsl(355, 85%, 45%);
  --accent-fg:        hsl(0, 0%, 100%);
  --border:           hsl(220, 15%, 85%);
  --radius:           0.5rem;
  --gradient-hero:    linear-gradient(135deg, hsl(220,70%,15%) 0%, hsl(220,60%,25%) 100%);
  --gradient-overlay: linear-gradient(90deg, hsl(220,70%,15%,0.95) 0%, hsl(220,60%,25%,0.80) 100%);
  --shadow-sm:  0 1px 2px 0 hsl(220,20%,15%,0.05);
  --shadow-md:  0 4px 6px -1px hsl(220,20%,15%,0.10);
  --shadow-lg:  0 10px 15px -3px hsl(220,20%,15%,0.10);
  --shadow-xl:  0 20px 25px -5px hsl(220,20%,15%,0.15);
}

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Utilities ────────────────────────────────────────────────── */
.container { max-width: 1366px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-fg); }
.bg-primary { background-color: var(--primary); color: var(--primary-fg); }
.bg-secondary { background-color: var(--secondary); }
.bg-card { background-color: var(--card); }
.gradient-hero { background: var(--gradient-hero); }
.section { padding: 5rem 0; }
.section-sm { padding: 4rem 0; }

/* ─── Typography ───────────────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.75; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all 0.3s ease; border: 2px solid transparent;
}
.btn-accent {
  background-color: var(--accent); color: var(--accent-fg);
}
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary {
  background-color: var(--primary); color: var(--primary-fg);
}
.btn-primary:hover { background-color: var(--primary-light); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-xl { padding: 1.1rem 2.75rem; font-size: 1.1rem; }

/* ─── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
  height: 80px; display: flex; align-items: center;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { width: 48px; height: 48px; object-fit: contain; }
.nav-logo-text .brand { font-weight: 700; font-size: 1.1rem; color: var(--primary); line-height: 1; }
.nav-logo-text .sub { font-size: 0.7rem; font-weight: 600; color: var(--foreground); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.875rem;
  font-weight: 500; color: var(--foreground); transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary); color: var(--primary-fg);
}
.nav-cta { margin-left: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--foreground); transition: all 0.3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 0.75rem 1rem; }

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-overlay);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 1rem; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0.92; max-width: 700px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-arrow {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  animation: bounce 1.5s infinite;
}
.scroll-arrow svg { width: 32px; height: 32px; color: #fff; transform: rotate(90deg); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ─── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: var(--gradient-hero); color: #fff; padding: 8rem 0 5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 1.25rem; }
.page-hero p  { opacity: 0.9; max-width: 650px; margin: 0 auto; font-size: 1.15rem; }
.page-hero svg { margin: 0 auto 1.5rem; display: block; }
.page-hero-img {
  position: relative; padding: 10rem 0;
  background-size: cover; background-position: center;
}
.page-hero-img::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-overlay);
}
.page-hero-img .container { position: relative; z-index: 2; }
.page-hero-img h1, .page-hero-img p { color: #fff; }

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-xl); }
.card-hover:hover { transform: translateY(-4px); }
.card-body { padding: 1.5rem; }
.card-body-lg { padding: 2rem; }
.card-body-xl { padding: 3rem; }

/* ─── Icon Box ─────────────────────────────────────────────────── */
.icon-box {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box-lg { width: 64px; height: 64px; }
.icon-box-xl { width: 80px; height: 80px; border-radius: 50%; }
.icon-box svg, .icon-box-lg svg, .icon-box-xl svg { color: #fff; }
.icon-box-accent { background: var(--accent); }
.icon-box-round { border-radius: 50%; }
.icon-box-accent-soft { background: hsl(355,85%,50%,0.12); }
.icon-box-accent-soft svg { color: var(--accent); }

/* ─── Stats Bar ────────────────────────────────────────────────── */
.stats-bar { background: var(--primary); color: #fff; padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.stat-val { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; }
.stat-label { opacity: 0.8; margin-top: 0.25rem; }

/* ─── Grids ────────────────────────────────────────────────────── */
.grid-2  { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3  { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-4  { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient-hero); color: #fff;
  border-radius: var(--radius); padding: 4rem 2rem; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ─── Checklist ────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted-fg); }
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.num-list { display: flex; flex-direction: column; gap: 0.75rem; }
.num-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.num-badge {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}

/* ─── Project Gallery ──────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: all 0.3s ease; aspect-ratio: 4/3;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  color: #fff; cursor: pointer; font-size: 2rem; line-height: 1;
  opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── Contact Form ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; }
.form-control {
  padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; background: var(--background);
  color: var(--foreground); transition: border-color 0.2s;
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 150px; resize: vertical; }

/* ─── Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; background: var(--primary); color: #fff;
}
.badge-outline {
  background: transparent; border: 1px solid var(--border); color: var(--muted-fg);
}

/* ─── Section Heading ──────────────────────────────────────────── */
.section-head { margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted-fg); max-width: 600px; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }

/* ─── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { width: 40px; height: 40px; object-fit: contain; }
.footer-logo .brand { color: #fff; font-weight: 700; }
.footer-logo .sub { font-size: 0.7rem; opacity: 0.8; }
.footer a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-item { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; opacity: 0.65; }

/* ─── Career Cards ─────────────────────────────────────────────── */
.job-card .job-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; margin: 0.5rem 0 1rem; }
.job-type { color: var(--accent); font-weight: 600; }
.req-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }

/* ─── Service Block ────────────────────────────────────────────── */
.service-block { padding: 2.5rem; border-radius: var(--radius); }
.service-block.alt { background: hsl(220,15%,92%,0.4); }
.service-block-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.service-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

/* ─── Cert Colors ──────────────────────────────────────────────── */
.cert-blue   { background: hsl(210,80%,50%); }
.cert-green  { background: hsl(145,65%,40%); }
.cert-orange { background: hsl(30,90%,50%); }

/* ─── Map ──────────────────────────────────────────────────────── */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; }

/* ─── Back to top ──────────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 90;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}
#back-to-top.show { display: flex; }
#back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ─── AOS Overrides ────────────────────────────────────────────── */
[data-aos] { transition-duration: 600ms !important; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-4     { grid-template-columns: repeat(2, 1fr); }
  .req-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2  { grid-template-columns: repeat(2, 1fr); }
  .grid-3  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
