/* VoltFix Electric — electrician demo */
:root {
  --navy: #0f2a43;
  --navy-dark: #0a1c2e;
  --yellow: #f5a623;
  --light: #f7f9fb;
  --white: #ffffff;
  --dark: #1d2733;
  --muted: #64748b;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2.9rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
img { display: block; width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.eyebrow, .hero-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; color: var(--yellow); margin-bottom: 0.5rem; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(10, 28, 46, 0.95); backdrop-filter: blur(8px); z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--white); text-decoration: none; }
.logo span { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #dbe4ee; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--yellow); }
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }
.btn-light { background: var(--yellow); color: var(--navy-dark); }
.btn-light:hover { background: #ffb33d; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: url('../images/hero.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgba(10, 28, 46, 0.65); }
.hero-content { position: relative; color: var(--white); padding: 0 24px; max-width: 720px; }
.hero-sub { font-size: 1.15rem; color: rgba(247, 249, 251, 0.9); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* SERVICES */
.section-head { text-align: center; margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--white); border-top: 4px solid var(--yellow); border-radius: 10px; padding: 30px 26px; box-shadow: var(--shadow); transition: transform 0.25s; }
.service-card:hover { transform: translateY(-5px); }
.service-card svg { color: var(--navy); margin-bottom: 14px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--navy); }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ABOUT */
.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img img { border-radius: 12px; box-shadow: var(--shadow); }
.about-text p { color: var(--muted); margin-bottom: 1.2rem; }

/* WHY US */
.why { background: var(--navy-dark); color: var(--white); }
.why .section-head h2 { color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 26px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--yellow); }
.feature p { color: rgba(247, 249, 251, 0.8); font-size: 0.9rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-addr { margin-bottom: 0.4rem; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.contact-addr svg { flex-shrink: 0; color: var(--yellow); }
.contact-note { margin-top: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.contact-form { display: flex; flex-direction: column; gap: 8px; background: var(--light); padding: 26px; border-radius: 12px; }
.contact-form label { font-size: 0.9rem; font-weight: 600; margin-top: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { padding: 12px 14px; border: 1px solid #dbe4ee; border-radius: 6px; font-family: inherit; font-size: 0.95rem; background: var(--white); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--yellow); border-color: transparent; }
.contact-form .btn { margin-top: 16px; align-self: flex-start; }

/* FOOTER */
.footer { background: var(--navy-dark); color: rgba(247, 249, 251, 0.6); padding: 28px 0; text-align: center; font-size: 0.85rem; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 900px) {
  .services-grid, .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(10, 28, 46, 0.98); padding: 20px 24px; gap: 18px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .hero h1 { font-size: 2.1rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .features-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}


/* BACK TO TOP */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #f5a623; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { font-weight: 700; font-size: 1.05rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: inherit; text-decoration: none; font-size: .85rem; opacity: .8; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: .82rem; opacity: .7; }
