/* ============================================
   Finesse Electrical Ltd — West Lothian
   Clean, modern, professional electrical site
   ============================================ */

:root {
  /* Brand — dark navy + electric blue accent */
  --brand-dark: #1e293b;
  --brand-charcoal: #334155;
  --brand-accent: #3b82f6;
  --brand-accent-hover: #2563eb;
  --brand-accent-light: #dbeafe;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;

  /* Typography */
  --font-heading: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spacing & effects */
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.08), 0 2px 4px -2px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.08), 0 4px 6px -4px rgba(30, 41, 59, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

/* ----- Header (sticky) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.site-logo {
  height: 110px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--brand-charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--brand-accent);
  background: var(--brand-accent-light);
}

.phone-link {
  font-weight: 600;
  color: var(--brand-accent);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--brand-accent-hover);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 1.5rem 1.5rem;
    gap: 0.5rem;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
    border-radius: var(--radius);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 4rem 1.5rem 4.5rem;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-charcoal) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero .subheading {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  opacity: 0.95;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  color: var(--white);
}

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

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

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Section divider (diagonal) */
.section-divider {
  height: 48px;
  background: var(--gray-50);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

.section-divider--up {
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
}

.section-divider--down {
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
  margin-top: 0;
  margin-bottom: -1px;
}

/* ----- Sections ----- */
.section {
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section--alt {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--gray-600);
  max-width: 65ch;
}

/* About */
.about-content {
  display: grid;
  gap: 1.5rem;
}

.about-content p {
  margin: 0;
}

.about-photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--brand-accent);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Area covered */
.towns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
  list-style: none;
  padding: 0;
}

.towns-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.towns-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.map-embed-wrap {
  margin-top: 1.5rem;
  position: relative;
  width: 100%;
  max-width: 640px;
  padding-bottom: 75%; /* 4:3 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.why-item .icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--brand-accent);
}

.why-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}

.why-item span {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* CTA banner */
.cta-banner {
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-charcoal) 100%);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.cta-banner p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  font-size: 1rem;
}

.cta-banner .phone-link {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1.25rem;
  background: var(--brand-accent);
  color: var(--white) !important;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.cta-banner .phone-link:hover {
  background: var(--brand-accent-hover);
}

.cta-banner .secondary-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--brand-accent-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.cta-banner .secondary-link:hover {
  text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2rem 1.5rem;
  background: var(--brand-dark);
  color: var(--white);
  text-align: center;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.site-footer .phone-link {
  font-weight: 600;
  font-size: 1.0625rem;
}

.site-footer nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--brand-accent-light);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ----- Services page ----- */
.page-hero {
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-charcoal) 100%);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.page-hero .subtitle {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  opacity: 0.95;
  font-style: italic;
}

/* Services list (two-column) */
.services-list-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--brand-accent);
  border-radius: 50%;
}

.services-contact-intro {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.cta-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .services-list-wrap {
    grid-template-columns: 1fr;
  }
}

/* What's included */
.included-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.included-list .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--brand-accent);
}

/* ----- Utility ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem 3.5rem;
  }

}
