/* ========================================
   Excelo Consulting Engineers
   Clean, modern single-page site
   ======================================== */

:root {
  --navy:        #0f172a;
  --navy-light:  #1e293b;
  --cyan:        #1ac8db;
  --cyan-hover:  #15b0c2;
  --cyan-light:  rgba(26, 200, 219, 0.08);
  --cyan-glow:   rgba(26, 200, 219, 0.15);
  --white:       #ffffff;
  --bg:          #f8fafc;
  --bg-alt:      #f1f5f9;
  --text:        #1e293b;
  --text-light:  #f8fafc;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
  --shadow:      0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius:      8px;
  --radius-lg:   12px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w:       1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan-hover); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.section-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--navy); }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo img { height: 57px; width: auto; }
.navbar-logo span { color: var(--white); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; }

.navbar-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--white); }

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.navbar-cta:hover { background: var(--cyan-hover); color: var(--navy); transform: translateY(-1px); }

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--white); }

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--navy);
  padding: 160px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at 70% 20%, var(--cyan-glow) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid rgba(26, 200, 219, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 .accent { color: var(--cyan); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary:hover { background: var(--cyan-hover); color: var(--navy); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  font-family: var(--font);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); color: var(--white); }
.btn-secondary svg { width: 18px; height: 18px; }

/* Stat badges */
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 130px;
}
.hero-stat-number { font-size: 1.5rem; font-weight: 800; color: var(--white); display: block; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 500; margin-top: 2px; }

/* Hero right — image card */
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-image img { width: 100%; height: 400px; object-fit: cover; }
.hero-image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ========================================
   Services
   ======================================== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ========================================
   About / Why Excelo
   ======================================== */
.about { background: var(--bg); }
.about-text { max-width: 800px; margin-top: 48px; }
.about-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--text);
}
.about-list svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.about-image { margin-top: 40px; }
.about-image img { max-height: 70px; object-fit: contain; }

/* ========================================
   Team
   ======================================== */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.team-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  overflow: hidden;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-role { font-size: 0.82rem; font-weight: 600; color: var(--cyan); margin-bottom: 4px; }
.team-quals { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.team-card p:last-child { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; text-align: left; }

/* ========================================
   Projects
   ======================================== */
.projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background 0.3s;
}
.project-card:hover .project-card-overlay { background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.3) 50%); }
.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.project-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); }

.projects-extra {
  display: none;
  margin-top: 24px;
}
.projects-extra.show { display: grid; }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
  background: var(--cyan);
  color: var(--white);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-content {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.lightbox-content h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ========================================
   Clients
   ======================================== */
.clients { background: var(--white); }
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 40px;
  margin-top: 48px;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.client-logo img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.7;
  mix-blend-mode: multiply;
  transition: filter 0.3s, opacity 0.3s;
}
.client-logo img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ========================================
   Calculators CTA Banner
   ======================================== */
.calc-banner {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.calc-banner h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.calc-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.calc-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.calc-tool-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* ========================================
   Contact
   ======================================== */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  align-self: flex-start;
  padding: 14px 32px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.form-submit:hover { background: var(--cyan-hover); }

.contact-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; color: var(--cyan); }
.contact-item-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-item-text span,
.contact-item-text a { font-size: 0.88rem; color: var(--text-muted); }
.contact-item-text a:hover { color: var(--cyan); }

.contact-socials { display: flex; gap: 12px; margin-top: 32px; }
.contact-social {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.contact-social:hover { border-color: var(--cyan); background: var(--cyan-light); }
.contact-social svg { width: 18px; height: 18px; color: var(--text-muted); }
.contact-social:hover svg { color: var(--cyan); }

/* ========================================
   Insights / Articles
   ======================================== */
.insights { background: var(--bg); }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.insight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.insight-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
}
.insight-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.insight-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}
.insight-card .read-more:hover { color: var(--cyan-hover); }

/* Article Page */
.article-page {
  padding: 120px 0 80px;
  background: var(--white);
}
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 24px;
}
.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-light);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.article-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 32px;
}
.article-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 12px;
}
.article-page p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-page ul,
.article-page ol {
  margin: 0 0 20px 20px;
  color: var(--text);
}
.article-page li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-cta {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--cyan);
}
.article-cta p {
  color: var(--text);
  margin-bottom: 0;
  font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--navy);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 48px; width: auto; }
.footer-logo span { color: var(--white); font-size: 1rem; font-weight: 700; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--white); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }

  /* Mobile nav */
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero { padding: 120px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-image { display: none; }

  .section { padding: 64px 0; }
  .section-title { font-size: 1.75rem; }

  .services-grid,
  .team-grid,
  .projects-grid,
  .insights-grid { grid-template-columns: 1fr; }

  .article-page h1 { font-size: 1.5rem; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-stats { flex-direction: column; }
  .hero-stat { min-width: auto; }

  .calc-banner h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .navbar-cta { display: none; }
}
