/* ═══════════════ RESET & BASE ═══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:        #0d2d54;
  --navy-dark:   #081e3a;
  --navy-mid:    #1e4f88;
  --blue:        #315f97;
  --blue-light:  #4a7bbf;
  --accent:      #79c7ff;
  --white:       #ffffff;
  --gray-50:     #f8f9fb;
  --gray-100:    #f1f4f8;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #4a5568;
  --gray-700:    #3e4d5d;
  --gray-900:    #1c2c3f;
  --shadow:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.14);
  --radius:      8px;
  --radius-lg:   14px;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 0.9rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.hero-actions .btn-primary {
  background: rgba(255,255,255,0.69);
  border-color: transparent;
  color: var(--navy);
  box-shadow: none;
}
.hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.88);
  border-color: transparent;
  color: var(--navy-dark);
}
.btn-accent {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-accent:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-outline-white {
  background: rgba(8,30,58,0.45);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ═══════════════ TOP BAR ═══════════════ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 9px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
}
.top-bar-item:hover { color: var(--white); }
.top-bar-address { cursor: default; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--navy-mid);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 9px 16px !important;
  border-radius: var(--radius) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--navy-dark) !important; color: var(--white) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8,30,58,0.92) 0%, rgba(13,45,84,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  max-width: 860px;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════ SECTION UTILITIES ═══════════════ */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: var(--navy-dark);
  color: var(--white);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--accent); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-rule {
  width: 60px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
}
.section-rule.center { margin: 0 auto 20px; }
.section-rule.light { background: var(--accent); }
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-desc.light { color: rgba(255,255,255,0.7); }

/* ═══════════════ ABOUT ═══════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-para {
  font-size: 1.05rem;
  color: var(--gray-700);
  margin-bottom: 18px;
  line-height: 1.75;
}
.about-highlights {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--gray-700);
}
.about-highlights li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
}
.about-photo {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════ SERVICES ═══════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  width: 58px;
  height: 58px;
  background: rgba(13,45,84,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ═══════════════ PROJECT TYPES ═══════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.project-img-wrap { overflow: hidden; height: 240px; }
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }
.project-card-body { padding: 28px; }
.project-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.project-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px !important;
}
.project-card-body p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ═══════════════ PROCESS ═══════════════ */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 auto 16px;
  width: 72px;
  height: 72px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.process-connector {
  flex-shrink: 0;
  width: 40px;
  height: 3px;
  background: var(--gray-200);
  margin-top: 35px;
  position: relative;
}
.process-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -5px;
  border: 6px solid transparent;
  border-left-color: var(--gray-200);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}
.form-group select option { background: var(--navy-dark); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(121,199,255,0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-success.visible { display: flex; }
.contact-info { padding-top: 8px; }
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  background: rgba(121,199,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}
.contact-value {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
}
a.contact-value:hover { color: var(--accent); }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
}
.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════ FADE-IN ANIMATION ═══════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-wrap: wrap; justify-content: center; }
  .process-connector { display: none; }
  .process-step { flex: 0 0 calc(33% - 20px); }
}

/* Hide tagline and tighten nav links before items start wrapping */
@media (max-width: 1050px) {
  .logo-sub { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 7px; font-size: 0.74rem; }
  .nav-cta { padding: 9px 12px !important; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .top-bar-address { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 0.85rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
  .navbar { position: relative; }
}

@media (max-width: 768px) {
  .hero-content { padding: 72px 24px; }
  .hero-headline { font-size: 2rem; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-step { flex: 0 0 calc(50% - 20px); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .top-bar-inner { gap: 16px; }
  .nav-logo-img { height: 54px; }
  .process-step { flex: 0 0 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
