@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(220, 40%, 13%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 40%, 13%);
  --primary: hsl(220, 55%, 15%);
  --primary-foreground: hsl(210, 40%, 98%);
  --muted: hsl(215, 20%, 95%);
  --muted-foreground: hsl(215, 15%, 47%);
  --accent: hsl(205, 85%, 45%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 25%, 88%);
  --navy-light: hsl(220, 45%, 22%);
  --radius: 0.5rem;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-padding { padding: 5rem 0; }
@media (min-width: 768px) { .section-padding { padding: 7rem 0; } }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .navbar-inner { height: 5rem; } }

.navbar-logo {
  display: flex; align-items: center; gap: 0.5rem;
}
.navbar-logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: var(--primary-foreground); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.875rem;
}
.navbar-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.125rem;
}
.navbar-logo-text span { color: var(--accent); }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  border-radius: 0.375rem; color: var(--muted-foreground); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: hsla(205, 85%, 45%, 0.1);
}

.nav-cta {
  display: none; padding: 0.625rem 1.25rem; background: var(--primary);
  color: var(--primary-foreground); font-size: 0.875rem; font-weight: 600;
  border-radius: 0.5rem; transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-light); }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

/* Mobile menu toggle */
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: none; background: none;
  cursor: pointer; color: var(--foreground); font-size: 1.5rem;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem; border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
}
.mobile-menu.open { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; color: var(--muted-foreground); transition: all 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--accent); background: hsla(205, 85%, 45%, 0.1);
}
.mobile-menu .nav-cta-mobile {
  margin-top: 0.5rem; padding: 0.75rem 1rem; background: var(--primary);
  color: var(--primary-foreground); font-size: 0.875rem; font-weight: 600;
  border-radius: 0.5rem; text-align: center;
}

/* Hero sections */
.hero-primary {
  background: var(--primary); color: var(--primary-foreground);
}
.hero-primary p { color: hsla(210, 40%, 98%, 0.7); }

.hero-image-section {
  position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden;
}
.hero-image-section .hero-bg {
  position: absolute; inset: 0;
}
.hero-image-section .hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-image-section .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(220, 55%, 15%, 0.95), hsla(220, 55%, 15%, 0.8), hsla(220, 55%, 15%, 0.5));
}

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: hsla(205, 85%, 45%, 0.2); color: var(--accent);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}

.label {
  display: block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; font-weight: 600; border-radius: 0.5rem;
  transition: all 0.2s; border: none; cursor: pointer; font-size: 1rem;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { opacity: 0.9; }
.btn-outline {
  background: transparent; border: 2px solid hsla(210, 40%, 98%, 0.3);
  color: var(--primary-foreground);
}
.btn-outline:hover { background: hsla(210, 40%, 98%, 0.1); }

/* Cards */
.card {
  background: var(--card); border-radius: 0.75rem;
  border: 1px solid var(--border); padding: 1.75rem;
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

.card-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: hsla(205, 85%, 45%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
}

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

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Stats */
.stat-card {
  background: var(--muted); border-radius: 0.75rem; padding: 1.5rem; text-align: center;
}
.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 2rem; color: var(--accent);
}
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p {
  color: var(--muted-foreground); max-width: 640px; margin: 0 auto;
}
.section-header.light h2 { color: var(--primary-foreground); }
.section-header.light p { color: hsla(210, 40%, 98%, 0.7); }

/* ISO cards */
.iso-card {
  background: hsla(210, 40%, 98%, 0.1); backdrop-filter: blur(8px);
  border-radius: 0.75rem; border: 1px solid hsla(210, 40%, 98%, 0.1);
  padding: 1.75rem;
}
.iso-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 0.375rem;
  background: hsla(205, 85%, 45%, 0.2); color: var(--accent);
  font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem;
}

/* Benefits */
.benefit-card {
  display: flex; gap: 1rem; padding: 1.5rem; border-radius: 0.75rem;
  background: hsla(215, 20%, 95%, 0.5);
}
.benefit-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: hsla(205, 85%, 45%, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}

/* Projects */
.project-thumb {
  height: 12rem; background: linear-gradient(135deg, hsla(220,55%,15%,0.1), hsla(205,85%,45%,0.05), var(--muted));
  display: flex; align-items: center; justify-content: center;
  color: hsla(205, 85%, 45%, 0.4);
}

/* Team */
.avatar {
  width: 5rem; height: 5rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-foreground); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.25rem; margin: 0 auto 1rem;
}
.avatar-lg {
  width: 5rem; height: 5rem; border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-foreground); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.5rem; flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--primary); color: var(--primary-foreground);
  padding: 4rem 0 2rem;
}
.footer p, .footer span { color: hsla(210, 40%, 98%, 0.7); }
.footer h4 { font-weight: 600; margin-bottom: 1rem; }
.footer a { color: hsla(210, 40%, 98%, 0.7); transition: color 0.2s; font-size: 0.875rem; }
.footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid hsla(210, 40%, 98%, 0.1);
  text-align: center; font-size: 0.875rem; color: hsla(210, 40%, 98%, 0.5);
}

/* Utilities */
.bg-card { background: var(--card); }
.bg-primary { background: var(--primary); }
.bg-background { background: var(--background); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.pt-20 { padding-top: 5rem; }
.leading-relaxed { line-height: 1.7; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.h-full { height: 100%; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }

/* Timeline */
.timeline { position: relative; }
.timeline-line {
  position: absolute; left: 1.5rem; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
@media (min-width: 768px) { .timeline-line { left: 2rem; } }
.timeline-step {
  position: relative; display: flex; gap: 1.5rem;
}
@media (min-width: 768px) { .timeline-step { gap: 2rem; } }
.timeline-dot {
  width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--primary-foreground); font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.875rem;
}
@media (min-width: 768px) {
  .timeline-dot { width: 4rem; height: 4rem; font-size: 1rem; }
}

/* Filter buttons */
.filter-btn {
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem;
  font-weight: 500; border: none; cursor: pointer; transition: all 0.2s;
  background: var(--muted); color: var(--muted-foreground);
}
.filter-btn.active { background: var(--accent); color: var(--accent-foreground); }

/* Status badges */
.status { font-size: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 9999px; font-weight: 500; }
.status-completed { background: #dcfce7; color: #15803d; }
.status-in-progress { background: #fef3c7; color: #b45309; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem;
  border: 1px solid var(--border); background: var(--background);
  color: var(--foreground); font-size: 0.875rem; font-family: inherit;
  transition: box-shadow 0.2s;
}
.form-input:focus { outline: none; box-shadow: 0 0 0 2px hsla(205, 85%, 45%, 0.3); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

/* Checkmark list */
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-icon { color: var(--accent); flex-shrink: 0; margin-top: 0.125rem; }

/* Link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-weight: 600; transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.75rem; }

/* Advisory cards on dark bg */
.advisory-card {
  background: hsla(210, 40%, 98%, 0.1); backdrop-filter: blur(8px);
  border-radius: 0.75rem; border: 1px solid hsla(210, 40%, 98%, 0.1);
  padding: 1.5rem; text-align: center;
}
.advisory-card p { color: var(--primary-foreground); font-weight: 600; }

/* Contact info card */
.contact-card {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem;
  background: var(--card); border-radius: 0.75rem; border: 1px solid var(--border);
}

/* CTA section */
.cta-section {
  background: var(--primary); text-align: center;
}
.cta-section h2 { color: var(--primary-foreground); }
.cta-section p { color: hsla(210, 40%, 98%, 0.7); max-width: 36rem; margin: 0 auto 2rem; }

/* Service detail layout */
.service-detail { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: flex-start; }
@media (min-width: 1024px) { .service-detail { grid-template-columns: 1fr 1fr; } }
.service-detail + .service-detail { margin-top: 4rem; padding-top: 4rem; border-top: 1px solid var(--border); }

.service-icon-lg {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background: hsla(205, 85%, 45%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
}

/* Min height page */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrap main { flex: 1; padding-top: 4rem; }
@media (min-width: 768px) { .page-wrap main { padding-top: 5rem; } }

/* Project Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox-overlay.active { display: flex; opacity: 1; }

.lightbox-container {
  position: relative; width: 90vw; max-width: 900px; height: 80vh;
  border-radius: 1rem; overflow: hidden; display: flex;
  background: var(--card); box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.lightbox-image-panel {
  flex: 1; position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(220,55%,12%), hsl(205,85%,20%));
  display: flex; align-items: center; justify-content: center;
  transition: flex 0.4s ease;
}
.lightbox-image-panel img {
  width: 100%; height: 100%; object-fit: cover;
}
.lightbox-image-panel .lightbox-placeholder {
  font-size: 6rem; opacity: 0.3;
}

.lightbox-details-panel {
  width: 0; overflow: hidden; transition: width 0.4s ease;
  background: var(--card); display: flex; flex-direction: column;
}
.lightbox-details-panel.open {
  width: 340px; border-left: 1px solid var(--border);
}
@media (max-width: 768px) {
  .lightbox-details-panel.open {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 70%; z-index: 5;
    border-left: 1px solid var(--border);
  }
}

.lightbox-details-inner {
  padding: 2rem; overflow-y: auto; flex: 1;
  min-width: 200px;
}
.lightbox-details-inner h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem;
  color: var(--foreground);
}
.lightbox-details-inner p {
  font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1rem;
}
.lightbox-detail-row {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); font-size: 0.8125rem;
}
.lightbox-detail-row span:first-child { color: var(--muted-foreground); }
.lightbox-detail-row span:last-child { font-weight: 600; color: var(--foreground); }

.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(0,0,0,0.5); color: #fff; border: none; cursor: pointer;
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(0,0,0,0.7); }

.lightbox-slide-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 2.5rem; height: 4rem;
  background: rgba(0,0,0,0.4); color: #fff; border: none; cursor: pointer;
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem 0 0 0.5rem; transition: all 0.3s;
}
.lightbox-slide-btn:hover { background: rgba(0,0,0,0.6); }
.lightbox-slide-btn.shifted { right: 340px; }
@media (max-width: 768px) {
  .lightbox-slide-btn.shifted { right: 70%; }
}
