/* --------------------------------------------------
   Base variables
-------------------------------------------------- */
:root {
  --primary: #0b4c8a;
  --primary-dark: #07345e;
  --accent: #f6b000;
  --bg-light: #f5f7fb;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border-soft: #e5e7eb;
  --radius: 10px;
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.08);
  --container-width: 1120px;
}

/* --------------------------------------------------
   Reset & base
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
}

body {
  scroll-behavior: smooth;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------
   Top bar
-------------------------------------------------- */
.top-bar {
  background: var(--primary-dark);
  color: #e5e9f0;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.top-bar-contact a {
  color: #e5e9f0;
  text-decoration: none;
  margin-left: 14px;
  font-weight: 500;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

/* Nav */
.header-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a:hover::after {
  width: 100%;
}

/* --------------------------------------------------
   Hero section (Designeu-style)
-------------------------------------------------- */
.hero-section {
  position: relative;
  background-image: url("hero-interior.jpg");
  background-size: cover;
  background-position: center;
  color: #f9fafb;
  padding: 60px 0 70px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 52, 94, 0.88), rgba(7, 52, 94, 0.68));
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero-text h1 {
  margin: 0 0 12px 0;
  font-size: 30px;
  font-weight: 700;
}

.hero-text p {
  margin: 0 0 18px 0;
  font-size: 15px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.hero-links {
  margin-top: 12px;
}

.hero-location-link {
  font-size: 13px;
  color: #e5e9f0;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #ffcc33;
}

.btn-outline {
  background: transparent;
  color: #f9fafb;
  border-color: #f9fafb;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.hero-info {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-card {
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

/* --------------------------------------------------
   Sections common
-------------------------------------------------- */
.section {
  padding: 42px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-alt {
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 26px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--primary-dark);
}

.section-header p {
  margin: 6px 0 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* --------------------------------------------------
   Metrics (live counters)
-------------------------------------------------- */
.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.metric-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  min-width: 180px;
  text-align: center;
}

.metric-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------
   About
-------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
}

.about-text p {
  margin: 0 0 12px 0;
  color: var(--text-main);
  font-size: 14px;
}

.about-details ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
}

.about-details li {
  margin-bottom: 8px;
  color: var(--text-main);
}

/* --------------------------------------------------
   Services
-------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 18px 20px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid #e5e7eb;
}

.service-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--primary-dark);
}

.service-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------
   Projects & popup
-------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-body {
  padding: 14px 16px 16px 16px;
}

.project-body h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: var(--primary-dark);
}

.project-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Popup */
.project-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.project-popup.visible {
  display: flex;
}

.project-popup-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  max-width: 720px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.popup-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

#popupImage {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

.popup-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-main);
}

/* --------------------------------------------------
   Clients
-------------------------------------------------- */
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.client-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  min-width: 120px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.client-item img {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
  display: inline-block;
}

.clients-text {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------
   Contact & form
-------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

.contact-details {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.contact-details h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--primary-dark);
}

.contact-details p {
  margin: 6px 0;
  font-size: 13px;
  color: var(--text-main);
}

.contact-details a {
  color: var(--primary-dark);
  text-decoration: none;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.contact-form-card h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--primary-dark);
}

.contact-form-card label {
  display: block;
  margin: 8px 0 4px 0;
  font-size: 13px;
  font-weight: 600;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 13px;
}

.contact-form-card textarea {
  resize: vertical;
}

.contact-form-card button {
  margin-top: 12px;
  width: 100%;
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: #e5e9f0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 900px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-nav {
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 40px 0 46px 0;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    padding: 0 18px;
  }
}