/* ========================================
   Buddy's Electric Service — Stylesheet
   Clean minimalist · Navy + Gold
======================================== */

/* ── Reset & Base ─────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0A1628;
  --navy-light: #132038;
  --navy-mid: #1A2D4A;
  --gold: #C8A45C;
  --gold-light: #D4B76E;
  --gold-pale: #F5EDDA;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-50: #FAFAF9;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 164, 92, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--white);
}

.btn-light:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
  transform: translateY(-1px);
}

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

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}

.btn-nav:hover {
  background: var(--gold-light);
}

.btn-full {
  width: 100%;
}

/* ── Section Shared ───────────────────── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.section-header--centered {
  text-align: center;
}

.section-header--centered .section-sub {
  margin: 0 auto;
}

/* ── Header ───────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo-accent {
  color: var(--gold);
  font-weight: 600;
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu li a:not(.btn) {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  transition: color 0.2s;
  position: relative;
}

.nav-menu li a:not(.btn):hover {
  color: var(--navy);
}

.nav-menu li a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-menu li a:not(.btn):hover::after {
  width: 100%;
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────── */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-content {
  max-width: 520px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-trust span {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  border-radius: 6px;
}

.hero-image-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.4;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* ── Services ─────────────────────────── */
.services {
  padding: 120px 0;
  background: var(--white);
}

.services .section-header {
  margin-bottom: 64px;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 40px 32px;
  transition: all 0.35s var(--ease-out);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  margin-bottom: 24px;
  color: var(--gold);
  transition: all 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.service-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── About ────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--off-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: 6px;
}

.about-image-border {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.35;
}

.about-content .section-title {
  margin-bottom: 28px;
}

.about-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--navy);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ── Why Us ───────────────────────────── */
.why-us {
  padding: 120px 0;
  background: var(--navy);
  color: var(--white);
}

.why-us .section-eyebrow {
  color: var(--gold);
}

.why-us .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 72px;
}

.why-item {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-number {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}

.why-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.why-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 400px;
}

/* ── Reviews ──────────────────────────── */
.reviews {
  padding: 120px 0;
  background: var(--white);
}

.reviews .section-header {
  margin-bottom: 64px;
}

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

.review-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: all 0.3s var(--ease-out);
}

.review-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

.review-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.75;
  font-style: italic;
}

.review-author {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── CTA ──────────────────────────────── */
.cta {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 92, 0.08);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 92, 0.06);
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 40px;
}

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

/* ── Contact ──────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--off-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 20px;
}

.contact-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.6;
}

.contact-link {
  color: var(--navy);
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--gold);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 14px 16px;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-success-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
}

.form-success p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── Footer ───────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  padding: 80px 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col ul li span {
  display: flex;
  justify-content: space-between;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-image img {
    height: 560px;
  }

  .about-inner {
    gap: 48px;
  }

  .why-grid {
    gap: 40px 48px;
  }

  .contact-inner {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid .review-card:last-child {
    grid-column: span 2;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu li a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
  }

  .nav-menu li a:not(.btn)::after {
    display: none;
  }

  .nav-menu li:last-child {
    margin-top: 16px;
  }

  .nav-menu li .btn-nav {
    text-align: center;
    display: block;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    height: 400px;
  }

  .hero-image-accent {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* About mobile */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap img {
    height: 400px;
  }

  /* Services mobile */
  .services {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Why Us mobile */
  .why-us {
    padding: 80px 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Reviews mobile */
  .reviews {
    padding: 80px 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid .review-card:last-child {
    grid-column: auto;
  }

  /* CTA mobile */
  .cta {
    padding: 80px 0;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact mobile */
  .contact {
    padding: 80px 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrap {
    padding: 32px 24px;
  }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }
}

/* ── Reduced motion ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Scroll reveal (progressive enhanc.) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}
