/* ========================================
   ELEKTRON ELECTRICAL — Site Styles
   Brand: Bold industrial, electric blue + lightning yellow
   ======================================== */

:root {
  --navy: #0a1628;
  --navy-2: #142849;
  --blue: #1e63d8;
  --blue-light: #4a9eff;
  --yellow: #fbbf24;
  --yellow-dark: #f59e0b;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 40px rgba(10,22,40,0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.75rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 3px solid var(--yellow);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.brand img {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}
@media (max-width: 480px) {
  .brand img { width: 72px; height: 72px; }
  .brand { font-size: 1.3rem; }
}

.nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--navy);
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--gray-light); color: var(--blue); }
.nav a.active { background: var(--navy); color: var(--white); }

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  text-align: center;
  margin: 0.25rem;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-call {
  background: var(--navy);
  color: var(--yellow);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.btn-call:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

.section .btn-ghost,
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }

/* ===== Hero ===== */

.hero {
  background:
    linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(20,40,73,0.85) 100%),
    radial-gradient(circle at 80% 30%, rgba(251,191,36,0.15) 0%, transparent 60%);
  background-color: var(--navy);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-text h1 { color: var(--white); }
.hero-text h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--yellow);
  margin-top: 1rem;
  border-radius: 2px;
}
.eyebrow {
  display: inline-block;
  background: rgba(251,191,36,0.15);
  color: var(--yellow);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(251,191,36,0.3);
}
.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.75rem;
  max-width: 600px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hero-image img {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Page Hero (subpages) ===== */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-bottom: 4px solid var(--yellow);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.9); margin-left: auto; margin-right: auto; }

/* ===== Sections ===== */

.section { padding: 4rem 0; }
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  margin: 0.85rem auto 0;
  border-radius: 2px;
}
.section-sub {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}
.section-dark .section-sub { color: rgba(255,255,255,0.75); }

/* ===== Grids ===== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===== Cards ===== */

.card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}
.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

/* ===== Service detail (services page) ===== */

.service-detail {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  border-left: 5px solid var(--yellow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-detail:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-detail h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ===== Portfolio ===== */

.portfolio-grid .port-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.port-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.port-item:hover img { transform: scale(1.05); }
.port-item span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.portfolio-detail .port-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.port-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.port-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.port-body { padding: 1.5rem; }
.port-body h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }

.placeholder-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.placeholder-card .placeholder-img {
  font-size: 4rem;
  text-align: center;
  padding: 3rem 0 1rem;
}
.placeholder-card h2 { color: var(--white); }
.placeholder-card p { color: rgba(255,255,255,0.9); }
.placeholder-card .port-body { text-align: center; }

/* ===== Quotes / testimonials ===== */

.quote {
  background: rgba(255,255,255,0.06);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--yellow);
}
.quote p {
  font-style: italic;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.75rem;
}
.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.95rem;
}

/* ===== About ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text h2 { margin-top: 1.5rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { margin-bottom: 1rem; }
.checklist { list-style: none; margin: 0.5rem 0 1rem; }
.checklist li {
  padding: 0.4rem 0;
  font-weight: 500;
  color: #1f2937;
}
.about-side img {
  border-radius: var(--radius-lg);
  background: var(--gray-light);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.badge-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.badge {
  background: var(--navy);
  color: var(--yellow);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

/* ===== Contact ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.contact-card h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.contact-card p { margin-bottom: 1rem; }
.muted { color: var(--gray); font-size: 0.9rem; }

.form-wrap {
  background: var(--gray-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}
.form-wrap h2 { margin-bottom: 0.5rem; }
.form-wrap > p { color: var(--gray); margin-bottom: 1.5rem; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; color: var(--navy); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--gray-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,99,216,0.15);
}

/* ===== CTA Band ===== */

.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band .lead { color: rgba(255,255,255,0.92); margin: 0 auto 1.5rem; }
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ===== Footer ===== */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1rem;
  border-top: 4px solid var(--yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: var(--yellow);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer p { margin-bottom: 0.5rem; line-height: 1.5; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-links { list-style: none; }
.footer-links li { padding: 0.2rem 0; }
.copy {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.credit {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.credit a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.credit a:hover { color: #ff00cc; text-shadow: 0 0 8px rgba(255,0,204,0.5); }

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 280px; padding: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-wrap { justify-content: space-between; }
  .contact-form { grid-template-columns: 1fr; }
  .form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.95rem; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
  .trust-row { gap: 0.75rem; font-size: 0.85rem; }
}
