/* ==========================================================================
   A21 Building & Electrical Services — shared stylesheet
   ========================================================================== */

:root {
  --navy: #1c2f6b;
  --navy-dark: #101d47;
  --lime: #a8c93f;
  --lime-dark: #8bab2c;
  --cream: #f6f7f2;
  --white: #ffffff;
  --text-dark: #1a1d24;
  --text-mid: #4b5262;
  --text-light: #7a8093;
  --border: #e3e5eb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(16, 29, 71, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 29, 71, 0.16);
  --max-width: 1180px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--lime-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--text-mid); margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--navy-dark); }
.btn--lime:hover { background: var(--lime-dark); box-shadow: var(--shadow-lg); }
.btn--outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--whatsapp { background: #25d366; color: var(--white); }
.btn--whatsapp:hover { background: #1ebc59; }
.btn--block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime);
  font-weight: 800;
  font-size: 1.1rem;
}
.logo-text strong { display: block; font-size: 1.05rem; color: var(--navy-dark); }
.logo-text span { display: block; font-size: 0.68rem; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-mid);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px; background: var(--lime);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy-dark);
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy-dark);
  position: relative; transition: all 0.2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(168,201,63,0.25), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--lime); }
.hero p.lead { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.75); font-weight: 600; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stat { text-align: center; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 8px; }
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--lime); font-family: 'Poppins', sans-serif; }
.hero-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.75); }

/* Trust bar */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-bar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.trust-bar li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-mid); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(168,201,63,0.16);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--lime-dark);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 14px; }
.service-card a.more { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.service-card a.more:hover { color: var(--lime-dark); }

/* Project gallery */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.gallery-filters button {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-mid);
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.project-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  position: relative;
}
.project-photo::before {
  content: "\1F4F7";
  display: block;
  font-size: 1.6rem;
  position: absolute;
  top: 14px; left: 14px;
  opacity: 0.6;
}
.project-body { padding: 20px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime-dark);
  margin-bottom: 8px;
}
.project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-body p { font-size: 0.9rem; color: var(--text-mid); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--lime-dark); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; color: var(--text-mid); margin-bottom: 18px; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.author-name { font-weight: 700; font-size: 0.92rem; color: var(--navy-dark); }
.author-loc { font-size: 0.8rem; color: var(--text-light); }

/* CTA banner */
.cta-banner {
  background: var(--lime);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(16,29,71,0.75); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 34px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-row .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--lime);
}
.contact-row strong { display: block; font-size: 0.95rem; }
.contact-row span, .contact-row a { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.contact-row a:hover { color: var(--lime); }
.contact-socials { display: flex; gap: 10px; margin-top: 24px; }
.contact-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.contact-socials a:hover { background: var(--lime); color: var(--navy-dark); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(168,201,63,0.25);
}
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.9rem; }
.form-status.success { color: #2f9e44; }
.form-status.error { color: #d64545; }

/* Map */
.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 340px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--lime); }
.footer-about p { font-size: 0.88rem; margin: 14px 0 18px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2rem; }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 10px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.breadcrumb a:hover { color: var(--lime); }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Temporary password gate */
#site-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.site-gate-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.site-gate-logo {
  display: inline-block;
  background: var(--navy);
  color: var(--lime);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.site-gate-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.site-gate-card p { color: var(--text-mid); font-size: 0.88rem; margin-bottom: 18px; }
#site-gate-form { display: flex; gap: 8px; }
#site-gate-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
#site-gate-form input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(168,201,63,0.25); }
#site-gate-form button {
  background: var(--lime);
  color: var(--navy-dark);
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
#site-gate-form button:hover { background: var(--lime-dark); }
#site-gate-error { display: none; color: #d64545; font-weight: 600; font-size: 0.85rem; margin-top: 12px; margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .services-grid, .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hero h1 { font-size: 2rem; }
  .services-grid, .gallery-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
