/* Jacobs Ladder Electrical - styles.css */
/* Design: Industrial modern - charcoal + electric orange */

/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

/* ===== Custom Properties ===== */
:root {
  --charcoal: #32373c;
  --charcoal-deep: #1a1d20;
  --charcoal-light: #464b52;
  --orange: #ff6900;
  --orange-dark: #e55d00;
  --orange-glow: rgba(255, 105, 0, 0.15);
  --white: #ffffff;
  --off-white: #f5f5f3;
  --cream: #eae8e4;
  --text: #32373c;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
  --shadow-orange: 0 4px 20px rgba(255,105,0,.25);
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.65; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--charcoal); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== Skip Link ===== */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--orange); color: var(--white); padding: .75rem 1.5rem;
  border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Utility ===== */
.accent { color: var(--orange); }
.text-center { text-align: center; }
.section-label {
  display: inline-block; font-family: var(--font-display); font-size: .75rem;
  font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .75rem;
}
.section-divider {
  width: 60px; height: 3px; background: var(--orange); margin-bottom: 1.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ===== Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal-deep); border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem;
}
.nav-brand {
  display: flex; flex-direction: column; text-decoration: none;
}
.nav-brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  color: var(--white); letter-spacing: -0.01em; line-height: 1.1;
}
.nav-brand-name span { color: var(--orange); }
.nav-brand-sub {
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.45);
  letter-spacing: .08em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  color: rgba(255,255,255,.8); font-weight: 500; font-size: .9rem;
  padding: .5rem 1rem; border-radius: var(--radius);
  transition: all var(--transition); text-decoration: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(255,255,255,.1); }
.site-nav .nav-cta {
  background: var(--orange); color: var(--white) !important;
  font-weight: 700; margin-left: .5rem; padding: .55rem 1.25rem;
}
.site-nav .nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 200;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
  position: absolute; left: 0; transition: all .3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  background: var(--charcoal-deep); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover; background-position: center;
  opacity: .15;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,29,32,.97) 0%, rgba(50,55,60,.85) 50%, rgba(255,105,0,.1) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px;
  padding: 4rem 0;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--orange); }
.hero p {
  color: rgba(255,255,255,.75); font-size: 1.15rem; line-height: 1.7;
  max-width: 580px; margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,105,0,.15); border: 1px solid rgba(255,105,0,.3);
  color: var(--orange); font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .85rem 1.75rem; border-radius: var(--radius);
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition); line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }
.btn-outline-dark {
  background: transparent; color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--charcoal-deep); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--charcoal); padding: 3rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 900;
  color: var(--orange); line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--orange);
}
.stat-label {
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.65);
  margin-top: .4rem;
}

/* ===== Service Categories (Home) ===== */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.cat-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card img {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.25rem;
}
.cat-card h3 { margin-bottom: .75rem; }
.cat-card ul { display: flex; flex-direction: column; gap: .35rem; }
.cat-card li {
  font-size: .9rem; color: var(--text-muted); padding-left: 1.1rem;
  position: relative;
}
.cat-card li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
}

/* ===== Why Choose Us ===== */
.reasons-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.reason-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition);
}
.reason-card:hover {
  border-color: var(--orange); background: rgba(255,105,0,.05);
  transform: translateY(-3px);
}
.reason-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--white); border-radius: var(--radius);
  margin-bottom: 1.25rem; font-size: 1.3rem;
}
.reason-card h3 { color: var(--white); margin-bottom: .75rem; }
.reason-card p { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.testimonial-stars {
  color: var(--orange); font-size: 1.1rem; margin-bottom: .75rem;
  letter-spacing: .1em;
}
.testimonial-card blockquote {
  font-size: .95rem; line-height: 1.7; color: var(--text);
  font-style: italic; margin-bottom: 1rem;
}
.testimonial-author {
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.testimonial-source {
  font-size: .8rem; color: var(--text-muted);
}

/* ===== Services Page ===== */
.page-hero-banner {
  background: var(--charcoal-deep); padding: 3rem 0 2.5rem; position: relative;
}
.page-hero-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--orange), transparent);
}
.breadcrumb {
  font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--orange); }
.page-hero-banner h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero-banner p { color: rgba(255,255,255,.65); max-width: 600px; }

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; overflow: hidden;
  transition: all var(--transition); position: relative;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: var(--orange); transition: height var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.service-card:hover::before { height: 100%; }
.service-card h3 { margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.service-card h3 .svc-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-glow); color: var(--orange); border-radius: var(--radius);
  font-size: .9rem; flex-shrink: 0;
}
.service-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.key-points {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.key-points span {
  font-size: .78rem; font-weight: 600; background: var(--off-white);
  color: var(--charcoal-light); padding: .25rem .65rem; border-radius: 100px;
}

/* ===== About Page ===== */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.about-img {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 400px; object-fit: cover; }

.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--charcoal-deep); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  margin: 0 auto 1rem;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .team-title {
  font-size: .85rem; color: var(--orange); font-weight: 600; margin-bottom: .75rem;
}
.team-card p { font-size: .9rem; color: var(--text-muted); }

.area-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.area-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--white); transition: all var(--transition);
}
.area-card:hover { border-color: var(--orange); background: rgba(255,105,0,.1); }

/* ===== Contact Page ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.contact-info-card:last-of-type { border-bottom: none; }
.contact-icon-wrap {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-glow); color: var(--orange); border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: .25rem;
}
.contact-value { font-weight: 500; }
.contact-value a { color: var(--text); font-weight: 600; }
.contact-value a:hover { color: var(--orange); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .85rem;
  margin-bottom: .4rem; color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-status {
  display: none; padding: 1rem; border-radius: var(--radius);
  margin-top: 1rem; font-weight: 600;
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--orange); padding: 4rem 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(229,93,0,.5), transparent);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white); color: var(--charcoal); font-weight: 700;
}
.btn-white:hover { background: var(--off-white); color: var(--charcoal); box-shadow: var(--shadow-md); }
.btn-dark {
  background: var(--charcoal-deep); color: var(--white);
}
.btn-dark:hover { background: var(--charcoal); color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal-deep); color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--white); margin-bottom: .75rem; line-height: 1.2;
}
.footer-brand-name span { color: var(--orange); }
.site-footer p { font-size: .9rem; line-height: 1.6; }
.footer-heading {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0; display: flex;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.35);
}

/* ===== Leaflet Map ===== */
#map { border-radius: var(--radius-lg); border: 2px solid var(--orange); }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { transition-delay: .2s; }
.stagger.visible > *:nth-child(4) { transition-delay: .3s; }
.stagger.visible > *:nth-child(5) { transition-delay: .35s; }
.stagger.visible > *:nth-child(6) { transition-delay: .4s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--charcoal-deep); flex-direction: column;
    padding: 5rem 2rem 2rem; gap: .5rem; z-index: 150;
    transition: right .35s ease;
  }
  .site-nav.open { right: 0; }
  .site-nav a { padding: .75rem 1rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-left: 0; margin-top: 1rem; text-align: center; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 3rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-number { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ===== Visually Hidden ===== */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; border: 0 !important;
}
