/* ============================================================
   JIMED Electrical — brand palette drawn from the logo
   Gold #F6C915 · Violet #5B27B8 · Deep night #14092b
   ============================================================ */
:root {
  --gold: #f6c915;
  --gold-soft: #ffe27a;
  --violet: #6d2fd6;
  --violet-deep: #3d178a;
  --night: #140a2b;
  --night-2: #1c1140;
  --night-3: #241650;
  --ink: #f4f1fb;
  --muted: #b7add6;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.04);
  --grad: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 20%, var(--violet) 75%);
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #111; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--grad); color: #1a0f38;
  box-shadow: 0 12px 30px -10px rgba(246, 201, 21, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(246, 201, 21, 0.6); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(16, 8, 36, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; }
.brand img { border-radius: 50%; }
.brand-text { font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--gold); font-weight: 600; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav-menu a { font-weight: 500; color: var(--muted); font-size: 0.96rem; transition: color 0.15s; }
.nav-menu a:hover { color: var(--ink); }
.nav-cta {
  background: rgba(246,201,21,0.12); color: var(--gold) !important;
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid rgba(246,201,21,0.3);
}
.nav-cta:hover { background: rgba(246,201,21,0.2); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle at 60% 40%, rgba(109,47,214,0.55), transparent 60%),
              radial-gradient(circle at 30% 70%, rgba(246,201,21,0.28), transparent 55%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; margin: 0 0 1.1rem; letter-spacing: -0.02em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.6rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0; margin: 0; }
.hero-badges li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.92rem; }
.hero-badges li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.hero-art { display: flex; justify-content: center; }
.logo-ring {
  position: relative; width: min(360px, 80vw); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
}
.logo-ring::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--violet), var(--gold));
  padding: 5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.85;
  animation: spin 14s linear infinite;
}
.logo-ring img { width: 100%; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.8rem 0; }
.stat { text-align: center; }
.stat strong { display: block; font-family: "Sora", sans-serif; font-size: 1.1rem; color: var(--gold-soft); }
.stat span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--night-2), var(--night)); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 0.8rem; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Services grid ---------- */
.grid.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(246,201,21,0.4); background: rgba(255,255,255,0.06); }
.card .icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 12px; background: linear-gradient(135deg, rgba(246,201,21,0.18), rgba(109,47,214,0.22));
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; margin: 0 0 0.45rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
.why-copy > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.ticks li::before {
  content: "⚡"; position: absolute; left: 0; top: 0.05rem;
  color: var(--gold); font-size: 0.95rem;
}
.why-card {
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow);
}
.why-card h3 { margin: 0 0 1.1rem; font-size: 1.15rem; }
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.qa-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.65rem 0.9rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); border-radius: 10px; font-size: 0.94rem;
}
.pass {
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em;
  color: #0b3d16; background: #6ee7a0; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.qa-foot { margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.steps li {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.4rem 1.4rem;
}
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: "Sora", sans-serif; font-weight: 700; color: #1a0f38;
  background: var(--grad); margin-bottom: 1rem;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.about-logo { display: flex; justify-content: center; }
.about-logo img { border-radius: 50%; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
.about-copy p { color: var(--muted); }
.about-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.about-badges span {
  font-size: 0.85rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--ink);
}

/* ---------- Recent work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.work-card:hover { transform: translateY(-5px); border-color: rgba(246,201,21,0.4); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.work-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.work-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(246,201,21,0.1); border: 1px solid rgba(246,201,21,0.25);
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.work-body h3 { margin: 0.2rem 0 0; font-size: 1.12rem; }
.work-body p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.work-card--cta {
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border-color: rgba(246,201,21,0.28);
  justify-content: center;
}
.work-card--cta .work-body { gap: 0.7rem; padding: 2rem 1.6rem; }
.work-card--cta .btn { margin-top: 0.6rem; align-self: flex-start; }
.work-note { text-align: center; color: var(--muted); margin: 2.2rem 0 0; }
.work-note a { color: var(--gold-soft); font-weight: 600; }
.work-note a:hover { text-decoration: underline; }

/* ---------- Reviews ---------- */
.reviews-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 0.8rem; }
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 1.05rem; line-height: 1; }
.rating-text { color: var(--muted); font-size: 0.92rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.review {
  margin: 0; padding: 1.6rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.2s, border-color 0.2s;
}
.review:hover { transform: translateY(-4px); border-color: rgba(246,201,21,0.4); }
.review .stars { font-size: 0.95rem; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.review figcaption { color: var(--gold-soft); font-weight: 600; font-size: 0.92rem; margin-top: auto; }
.reviews-cta { text-align: center; margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 1rem; }
.contact-copy > p { color: var(--muted); }
.contact-details { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-details li { display: grid; gap: 0.15rem; }
.contact-details strong { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.contact-details a:hover { color: var(--gold-soft); }

.contact-form {
  background: linear-gradient(160deg, var(--night-3), var(--night-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow);
}
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 0.95rem; transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,0.07);
}
/* Native dropdown popup renders on a white background — force dark, readable option text */
.field select option { color: #14092b; background: #ffffff; }
.field textarea { resize: vertical; }
.form-note { font-size: 0.9rem; margin: 0.9rem 0 0; text-align: center; min-height: 1.2rem; }
.form-note.ok { color: #6ee7a0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,0.25); padding: 2.4rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.footer-brand img { border-radius: 50%; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { width: 100%; color: var(--muted); font-size: 0.82rem; margin: 0.6rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-actions, .hero-badges { justify-content: center; }
  .lead { margin-inline: auto; }
  .grid.services { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { text-align: center; }
  .about-badges { justify-content: center; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16, 8, 36, 0.98); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-menu.open { max-height: 360px; }
  .nav-menu li { padding: 0.3rem 0; }
  .nav-cta { display: inline-block; text-align: center; margin-top: 0.4rem; }
}
@media (max-width: 520px) {
  .grid.services, .work-grid, .steps, .strip-inner, .field-row { grid-template-columns: 1fr; }
}

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