/* ============================================
   ML ELECTRIC INC — Site Stylesheet
   Palette: Deep Navy #0F1B2D | Electric Amber #FFB703
            Sky Accent #219EBC | Off-white #F7F9FC
   ============================================ */

:root {
  --navy: #0F1B2D;
  --navy-2: #16263D;
  --amber: #F2711C;
  --amber-dark: #D95F0E;
  --sky: #219EBC;
  --ink: #1C2733;
  --gray: #5A6B7B;
  --line: #E3E9F0;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.10);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #C6D2E1;
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--amber); text-decoration: none; font-weight: 600; }
.topbar .lic { letter-spacing: 0.03em; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 44px; width: auto; }
.logo .logo-text { line-height: 1.1; }
.logo .logo-name {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--amber-dark);
  letter-spacing: 0.02em;
  display: block;
}
.logo .logo-name span { color: var(--amber-dark); }
.logo .logo-tag {
  font-size: 0.64rem;
  font-weight: 600;
  color: #7E93B4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
}

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--amber);
}

.nav-cta {
  background: var(--amber);
  color: var(--navy) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(242, 113, 28, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 113, 28, 0.45); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(33, 158, 188, 0.25), transparent 60%),
    radial-gradient(800px 420px at -5% 110%, rgba(242, 113, 28, 0.16), transparent 55%),
    linear-gradient(rgba(15, 27, 45, 0.88), rgba(15, 27, 45, 0.93)),
    url("https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1600&q=60&auto=format&fit=crop") center/cover no-repeat,
    var(--navy);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 4L22 32h8l-4 24 14-32h-9l7-20z' fill='%23FFFFFF' fill-opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 113, 28, 0.14);
  border: 1px solid rgba(242, 113, 28, 0.45);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 700px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead {
  font-size: 1.12rem;
  color: #B9C7D8;
  max-width: 590px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(242, 113, 28, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 26px rgba(242, 113, 28, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
  max-width: 640px;
}
.hero-stats .stat {
  border-left: 3px solid var(--amber);
  padding-left: 16px;
}
.hero-stats .stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stats .stat span { color: #9FB0C3; font-size: 0.86rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  color: var(--sky);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p { color: var(--gray); font-size: 1.04rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; fill: var(--amber); }
.card h3 { font-size: 1.15rem; font-weight: 750; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.94rem; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

/* ---------- Why us ---------- */
.feature-row { display: flex; gap: 18px; align-items: flex-start; }
.feature-row .num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-row h3 { font-size: 1.06rem; color: var(--navy); margin-bottom: 6px; }
.feature-row p { color: var(--gray); font-size: 0.93rem; }

/* ---------- Emergency strip ---------- */
.emergency {
  background: linear-gradient(100deg, var(--amber) 0%, #FF9142 100%);
  padding: 46px 0;
}
.emergency .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.emergency h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.emergency p { color: #4A3B00; font-weight: 500; }

/* ---------- Service area ---------- */
.area-band {
  background: var(--navy);
  color: var(--white);
}
.area-band .grid-2 { align-items: center; }
.area-band h2 { color: var(--white); }
.area-band .section-head p { color: #B9C7D8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #DCE6F2;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 110% 0%, rgba(242, 113, 28, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
  text-align: center;
  border-radius: 22px;
  padding: 64px 40px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: #B9C7D8; margin-bottom: 30px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(33, 158, 188, 0.25), transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.page-hero .eyebrow { color: var(--amber); }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #B9C7D8; max-width: 620px; font-size: 1.06rem; }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-of-type { border-bottom: none; }
.service-block .visual {
  border-radius: var(--radius);
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-block .visual svg { width: 110px; height: 110px; fill: var(--amber); opacity: 0.95; }
.service-block h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.service-block p { color: var(--gray); margin-bottom: 16px; }
.service-block ul { list-style: none; margin-bottom: 22px; }
.service-block ul li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.96rem;
}
.service-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--amber);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- About ---------- */
.values .card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 22px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; fill: var(--amber); flex: 0 0 auto; margin-top: 3px; }
.contact-line strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9FB0C3; }
.contact-line a, .contact-line span.val { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.contact-line a:hover { color: var(--amber); }

form.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
form.contact-form h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.86rem; color: var(--ink); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}
.form-note { font-size: 0.8rem; color: var(--gray); margin-top: 12px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #9FB0C3;
  padding: 60px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid a { color: #9FB0C3; text-decoration: none; display: block; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--amber); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo svg { height: 38px; width: auto; }
.footer-logo .fname { font-weight: 800; color: var(--amber); font-size: 1.1rem; letter-spacing: 0.02em; }
.footer-logo .fname span { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}
.footer-bottom .lic { color: var(--amber); font-weight: 600; }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
details.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--amber-dark); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--gray); margin-top: 12px; font-size: 0.95rem; }

/* ---------- Photo visuals ---------- */
.visual.photo { background-size: cover; background-position: center; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transition: transform .15s, box-shadow .15s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 5%;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
