/* ==========================================================================
   C&A Electric — Main Stylesheet
   Professional contractor / industrial feel
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0d2137;
  --blue:      #1a3a5c;
  --blue-mid:  #1e5080;
  --yellow:    #f5a623;
  --yellow-lt: #ffd970;
  --white:     #ffffff;
  --off-white: #f4f6f9;
  --gray-100:  #e8ecf0;
  --gray-400:  #8fa3b3;
  --gray-700:  #3a5268;
  --charcoal:  #1c2b3a;
  --text:      #2c3e50;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(13,33,55,0.14);
  --shadow-lg: 0 6px 28px rgba(13,33,55,0.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

/* ---------- Sticky Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.navbar-logo-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.navbar-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar-phone svg { color: var(--yellow); flex-shrink: 0; }

.navbar-cta {
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.navbar-cta:hover { background: var(--yellow-lt); transform: translateY(-1px); }

@media (max-width: 600px) {
  .navbar-contact .navbar-phone-label { display: none; }
  .navbar-cta { padding: 9px 14px; font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,33,55,0.96) 0%,
    rgba(26,58,92,0.80) 60%,
    rgba(26,58,92,0.50) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--yellow-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  background: var(--yellow-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245,166,35,0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ---------- Sections (general) ---------- */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark .section-label { color: var(--yellow); }
.section--dark h2 { color: var(--white); }
.section--dark p  { color: rgba(255,255,255,0.72); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--charcoal);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 32px 28px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--yellow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.65;
}

/* ---------- About / 47 Years ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

.about-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .section-label { text-align: left; }

.about-text h2 {
  font-size: 1.9rem;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.highlight-item svg { color: var(--yellow); flex-shrink: 0; margin-top: 2px; }

.highlight-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ---------- Clients ---------- */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px 52px;
  padding: 20px 0;
}

.client-logo-item {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 160px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.client-logo-item:hover { border-color: var(--yellow); box-shadow: var(--shadow); }

/* ---------- Quote / CTA ---------- */
.quote-section {
  background: var(--blue);
  padding: 72px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .quote-grid { grid-template-columns: 1fr; gap: 40px; }
}

.quote-info h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 14px;
}
.quote-info p {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 28px;
}

.quote-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
}

.quote-contact-item svg { color: var(--yellow); flex-shrink: 0; }

.quote-contact-item .qci-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.quote-contact-item .qci-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
}

/* Quote form */
.quote-form {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.quote-form h3 {
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--yellow-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245,166,35,0.4);
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 20px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-section-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a { color: var(--yellow); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}