/* =========================================================
   Base
========================================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background: #ffffff;
  padding-top: 72px; /* keep space for fixed header */
}
.container {
  width: 1100px;
  max-width: 92vw;
  margin: 0 auto;
  padding-inline: 30px;
}

/* =========================================================
   Header (fixed)
========================================================= */
.site-header {
  background: #000;
  color: #fff;
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 30px;
  width: 100%;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Menu (nudged 10% from right edge) */
.main-nav { margin-right: 10%; }
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
  transition: color .15s ease, opacity .15s ease;
  outline: none;
  font-size: 20px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #fff;
  opacity: 0; transform: scaleX(0.5);
  transition: opacity .18s ease, transform .18s ease, background-color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: #ff8c00; }
.main-nav a:hover::after,
.main-nav a:focus-visible::after { opacity: 1; transform: scaleX(1); background: #ff8c00; }
.main-nav a.active { color: #ff8c00; }
.main-nav a.active::after { opacity: 1; transform: scaleX(1); background: #ff8c00; }

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none; /* becomes flex on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* When menu is open, animate the "X" */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mobile menu behavior ---------- */
@media (max-width: 700px) {

  /* Header layout: keep logo left, burger right */
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 12px 20px;
  }

  .logo img {
    height: 40px;
  }

  /* Show burger on mobile */
  .menu-toggle {
    display: flex;
  }

  /* Turn off margin-right we used on desktop */
  .main-nav {
    margin-right: 0;
  }

  /* Make the nav become a dropdown panel */
  .main-nav {
    position: absolute;
    top: 72px;          /* below fixed header (same height as header on desktop) */
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    padding: 16px 20px;

    display: none;      /* hidden by default */
    flex-direction: column;
    z-index: 999;       /* above body, below header z (1000 is header) is fine */
  }

  /* When active */
  .main-nav.open {
    display: flex;
  }

  /* Stack links vertically */
  .main-nav ul {
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    list-style: none;
  }

  .main-nav a {
    font-size: 18px;
    color: #0f172a;              /* dark text now (because bg is white) */
    font-weight: 600;
    padding: 6px 2px;
  }

  /* kill the underline animation bar on mobile */
  .main-nav a::after {
    display: none;
  }

  /* active link color on mobile */
  .main-nav a.active {
    color: #ff8c00;
  }
}


/* =========================================================
   Home: Hero slideshow
========================================================= */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.hero-slideshow { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-size: 42px; font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  text-align: center; white-space: nowrap;
}

/* =========================================================
   Sections (generic)
========================================================= */
.section { padding: 56px 0; }
.section h2 { margin: 0 0 10px; font-size: 28px; }
.section p  { margin: 0; color: #475569; }

/* =========================================================
   Highlights (Home: three cards)
========================================================= */
.highlights {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 50px 30px;
  background: #ffffff;
  flex-wrap: wrap; /* ensures it wraps nicely on smaller screens */
}

.highlight {
  flex: 1;
  min-width: 280px; /* keeps from shrinking too much */
  background: #EBF4FF;
  padding: 20px 20px 30px 28px; /* space for orange stick */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
}

/* orange accent bar on the left */
.highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: linear-gradient(180deg, #ffb266 0%, #ff8c00 100%);
  border-radius: 3px;
}

.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15,23,42,0.12),
              inset 0 1px 0 rgba(255,255,255,0.7);
}

.highlight h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
  position: relative;
}

/* add icons before headings */
.highlights .highlight:nth-child(1) h3::before {
  content: "🇨🇦 ";
}
.highlights .highlight:nth-child(2) h3::before {
  content: "⚡ ";
}
.highlights .highlight:nth-child(3) h3::before {
  content: "🛡️ ";
}

.highlight p {
  font-size: 16px;
  color: #475569;
  margin: 0;
  line-height: 1.65;
  text-align: left;
}

/* =========================================================
   Home: Services preview cards
========================================================= */
.home-services {
  padding: 60px 30px;
  background: #f9f9f9;
  text-align: center;
}
.home-services h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ff8c00;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}


.home-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-teaser {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-teaser:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.service-teaser img {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 8px; margin-bottom: 15px;
}
.service-teaser h3 {
  font-size: 20px;
  margin: 8px 0;
  color: #0f172a;
}
.service-teaser p  {
  font-size: 14px;
  color: #555;
}

/* =========================================================
   Partners
========================================================= */
.partners {
  padding: 60px 30px;
  background: #fff;
  text-align: center;
}
.partners h3 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #ff8c00;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.partner-logos img {
  width: 160px;
  height: 80px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.2s ease;
}
.partner-logos img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
@media (max-width: 700px) {
  .partner-logos { gap: 20px; }
  .partner-logos img { max-height: 50px; max-width: 120px; }
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: #000;
  color: #fff;
  padding: 40px 30px 20px;
  font-family: Arial, Helvetica, sans-serif;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-left { flex: 1; text-align: left; }
.footer-brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-license {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 2px solid #ff8c00;
}
.footer-tagline {
  font-size: 13px;
  color: #bbb;
  line-height: 1.5;
  max-width: 260px;
  font-style: italic;
}
/* Right half (contact + hours) */
.footer-right {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-contact div,
.footer-hours div {
  font-size: 15px;
  color: #bbb;
  margin: 3px 0;
  padding-left: 8px;
  border-left: 2px solid #ff8c00;
  line-height: 1.6;
}
.footer-contact strong,
.footer-hours strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.footer-bottom {
  text-align: center;
  margin-top: 24px;
  color: #888;
  font-size: 13px;
  border-top: 1px solid #222;
  padding-top: 12px;
}
@media (max-width: 800px) {
  .footer-inner { flex-direction: column; }
  .footer-right { flex-direction: column; }
  .footer-bottom { font-size: 12px; margin-top: 18px; }
}

/* =========================================================
   Shared Page Banner (About / Services / Projects / Industrial)
========================================================= */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero__inner {
  position: relative;
  padding: 20px;
}
.page-hero__inner h1 {
  font-size: 42px;
  margin: 0 0 12px;
}
.page-hero__inner p  {
  font-size: 18px;
  margin: 0;
  color: #e5e7eb;
}
/* Optional per-page helpers */
.page-hero.about    { background: url("img/about_banner.jpg") center/cover no-repeat; }
.page-hero.services { background: url("img/services_banner.jpg") center/cover no-repeat; }
.page-hero.projects { background: url("img/projects_banner.jpg") center/cover no-repeat; }
@media (max-width: 600px) {
  .page-hero { height: 220px; }
  .page-hero__inner h1 { font-size: 34px; }
  .page-hero__inner p  { font-size: 16px; }
}

/* =========================================================
   About page (story, stats, values)
========================================================= */
.about-story {
  padding: 60px 30px;
  background: #f9f9f9;
}
.about-story-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.about-text { flex: 1; }
.about-text h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #0f172a;
}
.about-text p  {
  text-align: left;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .about-story-inner { flex-direction: column; text-align: center; }
  .about-text p { text-align: center; }
}

/* Fancy Stats */
.stats-fx {
  background: linear-gradient(180deg, #f7f8fb 0%, #f2f4f8 100%);
  padding: 56px 20px;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}
.stats-fx__grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stats-fx__card {
  flex: 1 1 240px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  padding: 24px 16px;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stats-fx__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15,23,42,0.10);
}
.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 0 rgba(255,140,0,0);
  transition: text-shadow .2s ease;
}
.stat-num.counting {
  text-shadow: 0 0 14px rgba(255,140,0,0.25);
}
.stat-num .suffix {
  color: #ff8c00;
  margin-left: 2px;
  font-weight: 800;
}
.stat-label {
  color: #475569;
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
}
@media (max-width: 1000px) {
  .stats-fx__card { flex: 1 1 calc(50% - 12px); }
}
@media (max-width: 560px)  {
  .stats-fx__card { flex: 1 1 100%; }
}

/* Values */
.values {
  padding: 70px 30px;
  background: #f9f9f9;
}
.values-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.values h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #0f172a;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.value-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.value-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #ff8c00;
}
.value-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0f172a;
}
.value-card p  {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* =========================================================
   Services page (cards grid + CTA band)
========================================================= */
.services-page {
  padding: 50px 30px;
  background: #fff;
}
.services-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .services-page__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-page__grid { grid-template-columns: 1fr; }
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}
.svc-card__media {
  flex: 1;
  max-height: 180px;
  overflow: hidden;
}
.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-card__body {
  padding: 20px;
  text-align: center;
}
.svc-card__body h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}
.svc-card__body p  {
  margin: 0 0 15px;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}
.svc-card__btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff8c00;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease;
}
.svc-card__btn:hover {
  background: #e67600;
}

/* CTA band (reuse across pages) */
.svc-cta {
  padding: 50px 30px 70px;
  background: #f9f9f9;
  color: #000;
}

.svc-cta__box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}
.svc-cta__box h2 {
  margin: 0 0 6px;
  font-size: 28px;
}
.svc-cta__box p  {
  margin: 0 0 14px;
  color: #fff;
}

/* Global primary button */
.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: #ff8c00;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s, transform .15s ease, opacity .15s ease;
}
.btn-primary:hover {
  background: #e67600;
  transform: translateY(-2px);
}

/* =========================================================
   Projects page (listing grid)
========================================================= */
.projects-filters {
  padding: 24px 30px 8px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}
.projects-filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.active {
  background: #ff8c00;
  color: #fff;
  border-color: #ff8c00;
}

.projects-search input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 240px;
  outline: none;
}
.projects-search input:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255,140,0,.2);
}

.projects-grid-wrap {
  padding: 26px 30px 50px;
  background: #fafafa;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  justify-content: center;   /* center cards if fewer than a row */
}
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px)  {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(15,23,42,0.08);
  transition: box-shadow .2s ease, transform .2s ease;
}
.project-card:hover {
  box-shadow: 0 16px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  background: #111;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.badge-industrial    { background: linear-gradient(180deg, #d97706, #b45309); }
.badge-commercial    { background: linear-gradient(180deg, #2563eb, #1d4ed8); }
.badge-institutional { background: linear-gradient(180deg, #0ea5e9, #0284c7); }
.badge-residential   { background: linear-gradient(180deg, #16a34a, #15803d); }
.badge-solar         { background: linear-gradient(180deg, #f59e0b, #d97706); }
.badge-ev            { background: linear-gradient(180deg, #9333ea, #7e22ce); }

.project-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px 16px 18px;
}
.project-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
}
.project-body p  {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
}
.project-body .meta {
  margin-top: auto;
  font-size: 0.9rem;
  color: #555;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #334155;
  font-size: 14px;
}
.meta li { margin: 2px 0; }

/* =========================================================
   Industrial / Service Detail Pages (Intro, Capabilities, Process, Why Us)
========================================================= */
.svc-intro {
  padding: 50px 30px;
  background: #fff;
}
.svc-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.svc-intro__inner h2 {
  font-size: 28px;
  margin: 0 0 12px;
  color: #0f172a;
}
.svc-intro__inner p  {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.cap-grid {
  padding: 20px 30px 50px;
  background: #fafafa;
}
.cap-grid__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .2s;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.cap-ico {
  font-size: 28px;
  margin-bottom: 8px;
}
.cap-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  color: #0f172a;
}
.cap-card p  {
  margin: 0;
  color: #475569;
  font-size: 14px;
}
@media (max-width: 900px) {
  .cap-grid__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cap-grid__inner { grid-template-columns: 1fr; }
}

/* Why Us */
.why-us {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.why-us__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.why-us h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #242424;
  letter-spacing: 0.5px;
}

/* Grid layout for cards */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Individual cards */
.why-card {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* Text inside cards */
.why-card h3 {
  color: #242424;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.why-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* ===== Contact page ===== */
.contact {
  padding: 56px 30px;
  background: #fff;
}
.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}
@media (max-width: 980px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* Info card */
.contact-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.contact-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #0f172a;
}

.contact-list {
  display: grid;
  gap: 14px;
}
.contact-list .item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid rgba(15,23,42,0.06);
}
.contact-list .ico { font-size: 20px; line-height: 1; }
.contact-list strong { color: #0f172a; }
.contact-list a {
  color: #0f172a;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }

/* Map */
.contact-map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(15,23,42,0.08);
}
.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* Form */
.contact__form form {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.contact__form h2 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #0f172a;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  outline: none;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255,140,0,.15);
}
.field .err {
  color: #b42318;
  min-height: 1em;
  display: inline-block;
  margin-top: 4px;
}

/* Invalid state */
.field .invalid,
.field input.invalid,
.field textarea.invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180,35,24,.12);
}

/* Checkbox */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  color: #334155;
}
.check input {
  width: 18px;
  height: 18px;
}

/* Success message */
.form-success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Project Pages (detail)
========================================================= */

/* Hero */
.project-hero {
  background: url('img/prj_nextstar_hero.jpg') center/cover no-repeat;
  position: relative;
}
.project-hero .page-hero__overlay {
  background: rgba(0,0,0,.45);
}

/* Layout */
.project-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}
.project-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr .9fr;
}
@media (max-width: 960px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  padding: 24px;
}
.card h2,
.card h3 {
  color: #242424;
  margin: 0 0 12px;
}
.muted { color: #666; }
.divider {
  height: 1px;
  background: #eee;
  margin: 18px 0;
}

/* Meta list */
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.meta-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.meta-key { color: #777; }

/* Tags (avoid .badge conflict from project cards) */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
  background: #eef2f6;
  border-left: 4px solid #0073e6;
  color: #1f2d3d;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  justify-content: center;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-caption {
  font-size: .9rem;
  color: #555;
  margin-top: 6px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border: 0;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Lists & utilities */
.bullet {
  padding-left: 18px;
}
.bullet li {
  margin: 6px 0;
}

.crumb {
  font-size: .95rem;
  color: #666;
  margin-bottom: 12px;
}
.crumb a {
  color: inherit;
  text-decoration: none;
}
.crumb a:hover { text-decoration: underline; }

/* Keep CTA centering */
.svc-cta .svc-cta__box { text-align: center; }

/* Confidential notice */
.notice {
  font-size: .9rem;
  color: #555;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 12px 14px;
}

/* Lightbox nav arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:focus,
.lightbox-next:focus,
.lightbox-close:focus {
  outline: 2px solid #ff8c00;
  outline-offset: 2px;
}
