/* =========================================================
   St. Xavier's Electricals — Site Stylesheet
   Palette: dark navy (trust) + amber/orange (electrical/construction) + white/grey
   ========================================================= */

:root {
  --navy: #0f2542;
  --navy-dark: #081729;
  --navy-light: #1c3a63;
  --accent: #f2a71b;
  --accent-dark: #d68c0a;
  --grey-bg: #f4f6f8;
  --grey-border: #e2e6ea;
  --text: #24303d;
  --text-light: #5b6b7a;
  --white: #ffffff;
  --success: #1e7e34;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(15, 37, 66, 0.10);
  --shadow-strong: 0 10px 30px rgba(15, 37, 66, 0.18);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 64px; /* space for mobile sticky bar */
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 16px; color: var(--text-light); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 20px; }
li { margin-bottom: 8px; color: var(--text-light); }

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

.section { padding: 64px 0; }
.section-grey { background: var(--grey-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy p { color: #c9d4e0; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-dark); }

.btn-whatsapp { background: #25d366; color: #ffffff; }
.btn-whatsapp:hover { background: #1ebc59; }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.section-head .cta-row, .hero-text .cta-row { justify-content: center; }
.hero-text .cta-row { justify-content: flex-start; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-name span { color: var(--accent-dark); }
.brand-tag { font-size: 0.72rem; color: var(--text-light); letter-spacing: 0.03em; margin-top: 2px; }

.mobile-menu { display: flex; align-items: center; gap: 32px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--navy); border-bottom-color: var(--accent); }

.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(242,167,27,0.05) 0, rgba(242,167,27,0.05) 2px, transparent 2px, transparent 26px);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 20px 56px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: var(--white); font-size: 2.6rem; }
.hero-text p.lead { color: #d7e0ea; font-size: 1.1rem; max-width: 560px; }

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.hero-badges li {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #eef2f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badges li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(2px);
}
.hero-panel h3 { color: var(--white); margin-bottom: 18px; font-size: 1.05rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stat strong { display: block; font-size: 1.8rem; color: var(--accent); font-family: 'Poppins', sans-serif; }
.hero-stat span { font-size: 0.82rem; color: #cfd9e3; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--grey-bg);
  border-bottom: 1px solid var(--grey-border);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  justify-content: center;
  padding: 22px 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
}
.trust-item .icon-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex: none;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }

.service-card .icon-box {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(242,167,27,0.14);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-card ul { margin: 14px 0 0; padding-left: 18px; }
.service-card li { font-size: 0.92rem; }
.service-card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--grey-bg);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Why choose us */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text);
  font-weight: 500;
}
.why-list .num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Project cards */
.project-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe6ee, #c9d4e0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--grey-border);
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; }

.project-card { padding: 0; overflow: hidden; }
.project-body { padding: 20px 22px 24px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: rgba(242,167,27,0.22);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.project-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }

/* Work gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-video { background: #10151c; }
.gallery-video video { object-fit: contain; background: #10151c; }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  pointer-events: none;
}

.note-banner {
  background: #fff8e8;
  border: 1px dashed var(--accent-dark);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  margin: 8px 0 40px;
}

/* Hiring cards */
.role-card { text-align: center; }
.role-card .icon-box { margin: 0 auto 16px; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-group .req { color: #c0392b; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,167,27,0.2);
}
.form-hint { font-size: 0.8rem; color: var(--text-light); }
.form-note {
  margin-top: 18px;
  font-size: 0.85rem;
  background: var(--grey-bg);
  border-radius: 8px;
  padding: 12px 16px;
}
.form-success {
  display: none;
  margin-top: 18px;
  background: #eafaf0;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.form-success.show { display: block; }

.form-group input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button:hover { background: var(--navy-light); }

.file-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text);
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--text-light); flex: none; margin-left: auto; font-size: 0.78rem; }
.file-remove {
  flex: none;
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
}
.file-remove:hover { background: rgba(192,57,43,0.1); }

.file-error {
  display: none;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #c0392b;
}
.file-error.show { display: block; }

.submit-error {
  display: none;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #c0392b;
  background: #fdecea;
  border: 1px solid #c0392b;
  border-radius: 8px;
  padding: 10px 14px;
}
.submit-error.show { display: block; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Contact info list */
.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon-box { width: 44px; height: 44px; font-size: 1.2rem; margin: 0; flex: none; }
.contact-info-list strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { color: var(--text-light); font-size: 0.92rem; }

.map-placeholder {
  border-radius: var(--radius);
  border: 1px solid var(--grey-border);
  background: var(--grey-bg);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

.map-embed {
  border-radius: var(--radius);
  border: 1px solid var(--grey-border);
  overflow: hidden;
}

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfd9e3; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.footer-inner h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name span { color: var(--accent); }
.footer-about p { color: #aebbc8; font-size: 0.92rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cfd9e3; font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #93a2b1;
}

/* Sticky mobile action bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--grey-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.mobile-action-bar .row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.mobile-action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
}
.mobile-action-bar a.wa { color: #1ebc59; }
.mobile-action-bar a.quote { color: var(--accent-dark); }
.mobile-action-bar .bar-icon { font-size: 1.15rem; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 52px 0 44px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #d7e0ea; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: 0.82rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

/* Story block (about) */
.story-block p { font-size: 1.02rem; color: var(--text); }
.pull-badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.pull-badge {
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 60px; }
  .mobile-menu { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 6px 20px 18px;
    border-bottom: 1px solid var(--grey-border);
    box-shadow: var(--shadow);
  }
  .mobile-menu.open .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mobile-menu.open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--grey-border); width: 100%; }
  .mobile-menu.open .header-cta { flex-direction: column; gap: 10px; padding-top: 16px; }
  .mobile-menu.open .header-cta .btn { width: 100%; }

  .hero h1 { font-size: 2rem; }
  .hero-badges { grid-template-columns: 1fr 1fr; }
  .hero-text .cta-row { justify-content: flex-start; }
  .hero-text .cta-row .btn { flex: 1 1 auto; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }

  .mobile-action-bar { display: block; }
  .section { padding: 44px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
