/* ==========================================================
   EASAN ELECTRICAL SYSTEM LTD — DESIGN TOKENS
   ========================================================== */
:root {
  /* Colors — pulled from client logo (navy banner, gold text, atom accents) */
  --navy-deep:    #0A1B2E;
  --navy:         #0F2740;
  --navy-light:   #16385C;
  --brass:        #C9A227;
  --brass-light:  #E0BE4C;
  --signal:       #E1601E;
  --steel:        #5A6B7B;
  --off-white:    #F5F6F8;
  --white:        #FFFFFF;
  --text-dark:    #1B2530;
  --whatsapp:     #25D366;

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}

a { color: inherit; text-decoration: none; }

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

.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--brass);
  color: var(--navy-deep);
  padding: 8px 12px;
  z-index: 9999;
  border-radius: var(--radius);
}

/* Visible focus state everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ==========================================================
   TOP UTILITY BAR
   ========================================================== */
.topbar {
  background: var(--navy-deep);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar__item,
.topbar__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--off-white);
  opacity: 0.9;
}

.topbar__phone {
  color: var(--brass-light);
  font-weight: 500;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__social {
  display: flex;
  gap: 12px;
}

.topbar__social a {
  opacity: 0.8;
  transition: opacity 0.2s;
}
.topbar__social a:hover { opacity: 1; color: var(--brass-light); }

/* ==========================================================
   MAIN HEADER / NAV
   ========================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e2e5e9;
  position: sticky;
  top: 0;
  z-index: 100;
  /* Circuit-trace accent line under header */
  box-shadow: 0 2px 0 0 var(--brass);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--signal);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.btn-nav-cta {
  background: var(--brass);
  color: var(--navy-deep) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-nav-cta::after { display: none; }
.btn-nav-cta:hover {
  background: var(--brass-light);
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #C7CDD4;
  margin-top: 60px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  height: 42px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.footer-tagline {
  font-size: 0.9rem;
  color: #9DA8B3;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.footer-social a { color: #9DA8B3; transition: color 0.2s; }
.footer-social a:hover { color: var(--brass-light); }

.footer-heading {
  font-size: 0.95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-links,
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-links a,
.footer-contact a {
  color: #C7CDD4;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--brass-light); }

.footer-contact li { color: #9DA8B3; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #7C8791;
}

.site-footer__bottom a {
  color: var(--brass-light);
  font-weight: 500;
}
.site-footer__bottom a:hover { text-decoration: underline; }

/* ==========================================================
   FLOATING ACTION BUTTONS (WhatsApp + Call)
   ========================================================== */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }
.fab .icon { width: 26px; height: 26px; fill: var(--white); }

.fab--whatsapp { background: var(--whatsapp); }
.fab--call { background: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  .fab:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .topbar__info .topbar__item:first-child { display: none; }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--brass);
  color: var(--navy-deep);
}
.btn--primary:hover { background: var(--brass-light); }

.btn--outline {
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn--outline-dark {
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }

.btn--outline-light {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================
   SECTION HEADINGS
   ========================================================== */
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 32px;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,27,46,0.95) 20%, rgba(10,27,46,0.55) 70%);
}

.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.hero__circuit-pulse {
  stroke-dasharray: 50 850;
  animation: circuit-flow 5s linear infinite;
}

@keyframes circuit-flow {
  to { stroke-dashoffset: -930; }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  color: var(--white);
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 800px;
}

.hero__tagline {
  font-size: 1.15rem;
  color: #D5DBE1;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .hero__circuit-pulse { animation: none; }
}

/* ==========================================================
   TRUST STRIP
   ========================================================== */
.trust-strip {
  background: var(--white);
  padding: 64px 20px;
}

.trust-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.trust-list li {
  position: relative;
  padding-left: 28px;
  color: var(--steel);
}

.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--signal);
  border-radius: 50%;
}

/* ==========================================================
   SERVICES GRID
   ========================================================== */
.services-section {
  background: var(--off-white);
  padding: 72px 20px;
}

.services-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10,27,46,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(10,27,46,0.12);
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card__body {
  padding: 20px;
}

.service-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card__body p {
  font-size: 0.9rem;
  color: var(--steel);
}

.services-section__cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats-bar {
  background: var(--navy);
  padding: 48px 20px;
}

.stats-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brass-light);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #B9C2CB;
}

/* ==========================================================
   TESTIMONIALS PREVIEW
   ========================================================== */
.testimonials-preview {
  background: var(--white);
  padding: 72px 20px;
  text-align: center;
}

.testimonials-preview__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 8px;
}

.testimonial-card {
  background: var(--off-white);
  border-left: 3px solid var(--brass);
  padding: 24px;
  border-radius: var(--radius);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.testimonial-card cite {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
}

.testimonials-preview__cta {
  margin-top: 36px;
}

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  padding: 64px 20px;
  text-align: center;
}

.cta-banner__inner {
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

.cta-banner__inner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner__inner p {
  color: #C7CDD4;
  margin-bottom: 28px;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================
   PAGE HEADER (used on all interior pages)
   ========================================================== */
.page-header {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  padding: 72px 20px 56px;
  color: var(--white);
}

.page-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-header p {
  color: #C7CDD4;
  max-width: 560px;
}

/* ==========================================================
   FORMS (contact + appointment)
   ========================================================== */
.contact-section {
  padding: 72px 20px;
}
.contact-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}

.contact-details h2,
.contact-form-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-detail { margin-bottom: 24px; }
.contact-detail h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--signal);
  margin-bottom: 6px;
}
.contact-detail p { color: var(--steel); }
.contact-detail a { color: var(--navy); }
.contact-detail a:hover { color: var(--signal); }

.appointment-section {
  padding: 72px 20px;
}
.appointment-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.site-form { display: flex; flex-direction: column; gap: 18px; }
.site-form--wide .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row--full { grid-column: 1 / -1; }

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #D3D9DE;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-dark);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.site-form .btn { align-self: flex-start; border: none; cursor: pointer; }

/* Honeypot field — hidden from real users, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-alert--success {
  background: #E4F6E9;
  color: #1F7A3D;
  border: 1px solid #B7E4C4;
}
.form-alert--error {
  background: #FBEAE7;
  color: #B23A22;
  border: 1px solid #F0C4BA;
}

/* ==========================================================
   SERVICE DETAIL SECTIONS
   ========================================================== */
.service-detail {
  padding: 56px 20px;
  background: var(--white);
}
.service-detail--alt {
  background: var(--off-white);
}

.service-detail__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.service-detail--alt .service-detail__inner {
  direction: rtl;
}
.service-detail--alt .service-detail__body {
  direction: ltr;
}
.service-detail--alt img {
  direction: ltr;
}

.service-detail img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-detail__body h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-detail__body p {
  color: var(--steel);
  margin-bottom: 16px;
}

.service-detail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-detail__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--signal);
  border-radius: 50%;
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about-section {
  padding: 72px 20px;
}
.about-section__inner {
  max-width: 760px;
  margin: 0 auto;
}
.about-text h2 {
  font-size: 1.4rem;
  margin: 32px 0 14px;
}
.about-text h2:first-child { margin-top: 0; }
.about-text p {
  color: var(--steel);
  margin-bottom: 16px;
}
.trust-list--single {
  grid-template-columns: 1fr;
}

/* ==========================================================
   FAQ ACCORDION
   ========================================================== */
.faq-section {
  padding: 72px 20px;
  background: var(--off-white);
}
.faq-section__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #E2E5E9;
  border-radius: var(--radius);
  padding: 18px 22px;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.4rem;
  color: var(--signal);
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 12px;
  color: var(--steel);
  font-size: 0.92rem;
}

/* ==========================================================
   FULL TESTIMONIALS PAGE
   ========================================================== */
.testimonials-full {
  padding: 64px 20px;
}
.testimonials-full__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================
   HOMEPAGE RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat { border-right: none; }
  .trust-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e2e5e9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 500px; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .btn-nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .topbar__info { display: none; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .fab { width: 48px; height: 48px; }
  .fab .icon { width: 22px; height: 22px; }

  .hero { min-height: 78vh; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }

  .contact-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-form--wide .form-grid { grid-template-columns: 1fr; }

  .service-detail__inner,
  .service-detail--alt .service-detail__inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-detail img { height: 220px; }

  .testimonials-full__inner { grid-template-columns: 1fr; }
}
