/* ==========================================================================
   Shine Aura Electricals — Website Template
   Mobile-first. Breakpoints: 640px (tablet), 960px (desktop), 1200px (wide)
   ========================================================================== */

:root {
  --navy: #14213d;
  --navy-soft: #1c2c4d;
  --navy-border: #26375c;
  --blue: #1e3a5f;
  --blue-hover: #2f6690;
  --amber: #f5a623;
  --amber-tint: rgba(245, 166, 35, 0.15);
  --ink: #14213d;
  --muted: #5b6b82;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --bg-alt: #f4f7fb;
  --bg-nav-mid: #eef3f9;
  --white: #ffffff;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --radius: 8px;
  --radius-sm: 4px;
  --wrap: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
ul { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-body);
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #e5951a; color: var(--navy); }
.btn-primary-solid { background: var(--blue); color: #fff; padding: 11px 22px; font-size: 14px; }
.btn-primary-solid:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); font-size: 14px; padding: 11px 22px; }
.btn-outline:hover { background: var(--bg-nav-mid); color: var(--blue); }
.full-width { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid #eef1f5; min-height: var(--header-h);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); }
.brand-tag { font-size: 10px; color: var(--muted-2); letter-spacing: 0.06em; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: #334155; }
.main-nav .nav-cta a.btn-primary-solid { color: #fff; }
.main-nav .nav-cta a.btn-primary-solid:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: none; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 14px; }
.cta-desktop { display: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); padding: 56px 0 60px; overflow: hidden; }
.hero-bolt { position: absolute; right: -100px; top: -100px; opacity: 0.12; pointer-events: none; }
.hero-inner { position: relative; max-width: 680px; }
.pill { display: inline-block; background: var(--amber-tint); color: var(--amber); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.hero h1 { font-size: 34px; line-height: 1.16; color: #fff; margin-top: 18px; font-weight: 700; }
.hero-sub { font-size: 16px; line-height: 1.6; color: #c3cad9; margin-top: 18px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid #eef1f5; }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #eef1f5; color: #334155; font-weight: 600; font-size: 14px; }
.trust-item svg { color: var(--blue); flex-shrink: 0; }
.trust-item:last-child { border-bottom: none; }

/* ---------- Section basics ---------- */
section { padding: 56px 0; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.section-label.light { color: var(--amber); }
.section-heading h2 { font-size: 26px; color: var(--ink); }
.section-heading.center { text-align: center; max-width: 600px; margin: 0 auto 36px; }
.section-heading.with-action { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.on-dark { color: #fff; }
.placeholder-note { font-size: 13px; color: #8b96ad; margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.about-copy h2 { font-size: 26px; margin-top: 4px; }
.about-copy p { font-size: 15px; color: var(--muted); margin-top: 14px; line-height: 1.75; }
.about-photo { border-radius: var(--radius); width: 100%; height: auto; }
.stat-row { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.stat dt { font-size: 13px; color: var(--muted-2); order: 2; margin-top: 2px; }
.stat dd { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--blue); margin: 0; order: 1; }
.stat { display: flex; flex-direction: column; }

/* ---------- Why us ---------- */
.why-us { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.why-grid li { text-align: center; }
.why-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-nav-mid); color: var(--blue); }
.why-grid h3 { font-size: 15px; margin-top: 14px; }
.why-grid p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.product-card-body { padding: 18px; }
.product-card-body h3 { font-size: 16px; }
.product-card-body p { font-size: 13.5px; color: var(--muted-2); margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--navy); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.testimonial-card { background: var(--navy-soft); border-radius: var(--radius); padding: 24px; }
.stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14.5px; color: #dbe1ec; margin-top: 14px; line-height: 1.7; }
.testimonial-name { font-size: 13.5px; color: #8b96ad; margin-top: 14px; font-weight: 600; }

/* ---------- Contact + form ---------- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-info h2 { font-size: 26px; margin-top: 4px; }
.contact-info > p { font-size: 14.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #334155; }
.contact-list svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.enquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.enquiry-form h3 { font-size: 18px; }
.form-sub { font-size: 13.5px; color: var(--muted-2); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.form-row .form-field { margin-top: 0; }
label { font-size: 13px; font-weight: 600; color: #334155; }
input, select, textarea {
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px;
  border: 1px solid #cbd5e1; border-radius: 6px; color: var(--ink); background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
::placeholder { color: var(--muted-2); }
.enquiry-form button { margin-top: 20px; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-status.success { color: #15803d; }
.form-status.error { color: #b91c1c; }

.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.map-card h3 { font-size: 18px; }
.map-embed {
  margin-top: 18px; margin-bottom: 20px;
  aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { display: block; width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--navy-border); }
.footer-brand p { font-size: 13.5px; color: #8b96ad; margin-top: 14px; line-height: 1.7; max-width: 320px; }
.footer-brand .brand-name { color: #fff; font-size: 16px; }
.social-list { display: flex; gap: 12px; margin-top: 18px; }
.social-list a {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy-soft); color: #c3cad9;
}
.social-list a:hover { color: #fff; }
.footer-heading { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer nav ul { display: flex; flex-direction: column; gap: 11px; }
.site-footer nav a { font-size: 14px; color: #8b96ad; }
.site-footer nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-contact li { font-size: 14px; color: #8b96ad; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; font-size: 13px; color: #5b6b82; }

/* ==========================================================================
   Tablet — 640px+
   ========================================================================== */
@media (min-width: 640px) {
  .hero h1 { font-size: 42px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 22px 16px; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Desktop — 960px+
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 84px; }

  .header-bar { padding-top: 18px; padding-bottom: 18px; }
  .header-phone { display: flex; }
  .cta-desktop { display: inline-flex; }
  .nav-toggle { display: none; }

  .main-nav { display: block !important; }
  .main-nav ul { display: flex; }
  .nav-cta { display: none !important; }

  .hero { padding: 88px 0 96px; }
  .hero h1 { font-size: 50px; }
  .hero-sub { font-size: 17px; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-right: 1px solid #eef1f5; border-bottom: none; padding: 26px 24px; }
  .trust-item:last-child { border-right: none; }

  section { padding: 88px 0; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-copy h2 { font-size: 32px; }

  .section-heading.with-action { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .contact-grid { grid-template-columns: 0.85fr 1fr; gap: 60px; }
  .contact-info h2 { font-size: 30px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ==========================================================================
   Wide desktop — 1200px+
   ========================================================================== */
@media (min-width: 1200px) {
  .hero h1 { font-size: 54px; }
}

/* ---------- Mobile nav (below 960px) ---------- */
@media (max-width: 959.98px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    border-top: 1px solid #eef1f5; overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; padding: 20px 20px 0; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #f2f4f7; }
  .nav-cta { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
  .nav-cta .mobile-phone { display: flex !important; justify-content: center; padding: 10px 0; font-size: 15px; }
}

/* ---------- Notice modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 33, 61, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modal-fade .15s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative;
  background: #fff; border-radius: var(--radius);
  max-width: 380px; width: 100%;
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(20, 33, 61, 0.35);
  animation: modal-pop .18s ease;
}
.modal-icon { margin-bottom: 14px; }
.modal-box p { font-size: 15.5px; color: var(--ink); line-height: 1.5; margin-bottom: 22px; }
.modal-box .btn { width: 100%; }
.modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 22px; line-height: 1; color: var(--muted-2); cursor: pointer;
  border-radius: 50%;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
