/* ============================================================
   Buzz Electrical — Mid-Tier Electrician Template
   Design: Arkdin-inspired
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-accent: #1646D2;
  --color-accent-hover: #0F3399;
  --color-heading: #010f34;
  --color-body: #788094;
  --color-gray-bg: #f5f7fa;
  --color-border: #ecf1f5;
  --color-white: #ffffff;
  --color-dark: #010f34;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Fixed-pixel max-width keeps the container constrained on desktop while
     allowing it to fill the viewport (minus padding) on phones. The previous
     75vw value left ~12.5% dead space on each side of mobile screens, making
     content feel "skinny down the middle". */
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(1, 15, 52, 0.06);
  --shadow-md: 0 4px 20px rgba(1, 15, 52, 0.08);
  --shadow-lg: 0 8px 40px rgba(1, 15, 52, 0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 6rem;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-top: 0.5rem;
}

.section-description {
  color: var(--color-body);
  font-size: 1rem;
  max-width: 540px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

.section-subtitle {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.fan-icon {
  animation: fan-rotate 3s linear infinite;
  flex-shrink: 0;
  margin-top: 0.15em;
}

@keyframes fan-rotate {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
}

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

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 51, 153, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-heading);
  transform: translateY(-2px);
}

/* ---------- TOP BAR — orange with angled edge ---------- */
#top-bar {
  background: var(--color-accent);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--color-white);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-text {
  font-size: 0.8125rem;
  font-weight: 500;
}

.top-bar-email,
.top-bar-address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-white);
  text-decoration: none;
}

.top-bar-email:hover {
  opacity: 0.8;
}

.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  transition: all var(--transition);
}

.social-circle:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-accent);
}

@media (max-width: 767px) {
  #top-bar {
    display: none;
  }
}

/* ---------- NAVBAR — with angled orange accent on left ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  height: 90px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
  overflow: hidden;
}

@media (max-width: 1023px) {
  #navbar {
    overflow: visible;
  }
}

/* Angled orange accent — left side */
#navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%);
  z-index: 0;
}

/* Angled orange accent — right side (mirrored) */
#navbar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 45% 100%);
  z-index: 0;
}

#navbar.navbar--scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  width: 100%;
  padding-left: 230px;
  padding-right: 230px;
}


/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-logo-text strong {
  font-weight: 700;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-heading);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Phone + CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.nav-phone-text {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.nav-phone:hover .nav-phone-text {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  border: 2px solid var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(15, 51, 153, 0.35);
}

/* Mobile phone icon — hidden on desktop, shown on mobile */
.nav-mobile-phone {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition);
}

.nav-mobile-phone:hover {
  background: var(--color-accent-hover);
}

/* Mobile right group — phone icon + hamburger */
.nav-mobile-right {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

@media (max-width: 1023px) {
  .nav-mobile-right {
    display: flex;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu — positioned below the navbar */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-heading);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-link:hover {
  color: var(--color-accent);
}

.mobile-menu-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
}

.mobile-menu-cta {
  margin-top: 0.75rem;
  text-align: center;
  border-bottom: none;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #navbar::before,
  #navbar::after {
    width: 140px;
  }

  .nav-inner {
    padding-left: 150px;
    padding-right: 150px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .nav-phone-text {
    font-size: 0.8125rem;
  }

  .nav-cta {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }

  .nav-logo-text {
    font-size: 1rem;
  }
}

@media (min-width: 1280px) and (max-width: 1499px) {
  #navbar::before,
  #navbar::after {
    width: 180px;
  }

  .nav-inner {
    padding-left: 190px;
    padding-right: 190px;
  }

  .nav-links {
    gap: 1.75rem;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Remove orange accents on mobile */
  #navbar::before,
  #navbar::after {
    display: none;
  }

  .nav-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Show mobile phone icon */
  .nav-mobile-phone {
    display: flex;
  }

  /* Hide welcome text, keep email + address */
  .top-bar-text {
    display: none;
  }
}

@media (max-width: 479px) {
  .nav-logo-text {
    font-size: 0.9rem;
  }

  .top-bar-email,
  .top-bar-address {
    font-size: 0.6875rem;
  }
}

/* ---------- HERO ---------- */
#hero {
  background: var(--color-dark);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

@media (max-width: 991px) {
  #hero > .container {
    max-width: 90vw;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  color: var(--color-white);
}

.hero-text .section-subtitle {
  margin-bottom: 1rem;
}

.hero-text h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: 3.5rem;
}

@media (max-width: 1399px) {
  .hero-text h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 1199px) {
  .hero-text h1 {
    font-size: 2.25rem;
  }
}

.hero-text p {
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Trust badges below hero buttons */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  display: inline-block;
}

.hero-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px 20px 20px 80px;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Top-right accent — orange curved bracket */
.hero-img-accent--top {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 120px;
  height: 120px;
  border-top: 4px solid var(--color-accent);
  border-right: 4px solid var(--color-accent);
  border-radius: 0 20px 0 0;
  z-index: 0;
}

/* Bottom-left accent — orange curved bracket */
.hero-img-accent--bottom {
  position: absolute;
  bottom: -14px;
  left: -14px;
  width: 120px;
  height: 120px;
  border-bottom: 4px solid var(--color-accent);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 0 0 20px;
  z-index: 0;
}

/* Orange dot decorations */
.hero-img-frame::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, var(--color-accent) 2.5px, transparent 2.5px);
  background-size: 12px 12px;
  z-index: 0;
  opacity: 0.5;
}

/* Orange glow behind image */
.hero-img-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
  z-index: 0;
}

@media (max-width: 991px) {
  .hero-text h1 {
    font-size: 1.875rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-img {
    max-width: 500px;
    margin-inline: auto;
  }

  .hero-img-frame img {
    height: 360px;
  }
}

@media (max-width: 575px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.875rem;
  }

  .hero-buttons .btn {
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
    width: 100%;
    justify-content: center;
  }

  .trust-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .hero-img-frame img {
    height: 280px;
  }

  .hero-img-accent--top,
  .hero-img-accent--bottom {
    width: 80px;
    height: 80px;
  }
}

/* ---------- STATS COUNTER ---------- */
.stats-section {
  background: rgba(22, 70, 210, 0.06);
  padding-block: 1.75rem;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  opacity: 0.4;
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .stat-number {
    font-size: 2.125rem;
  }
}

@media (max-width: 991px) {
  .stat-number {
    font-size: 1.875rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 639px) {
  .stats-section {
    padding-block: 1.3rem;
  }

  .stats-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .stat-divider {
    display: none;
  }
}

/* ---------- SERVICES ---------- */
#services {
  background: var(--color-white);
}

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

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

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

.service-card-icon {
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.service-card-icon svg {
  width: 48px;
  height: 48px;
}

.service-card-divider {
  border: none;
  height: 3px;
  width: 50px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-card-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}

.service-card-link:hover {
  color: var(--color-accent-hover);
}

/* Highlighted card (4th — Emergency) */
.service-card--highlight {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.service-card--highlight .service-card-icon {
  color: var(--color-white);
}

.service-card--highlight h3 {
  color: var(--color-white);
}

.service-card--highlight p {
  color: rgba(255, 255, 255, 0.85);
}

.service-card--highlight .service-card-divider {
  background: var(--color-white);
}

.service-card--highlight .service-card-link {
  color: var(--color-white);
}

.service-card--highlight .service-card-link:hover {
  color: var(--color-heading);
}

.service-card--highlight:hover {
  background: var(--color-accent-hover);
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 15px rgba(15, 51, 153, 0.35);
}

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

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

/* ---------- ABOUT ---------- */
#about {
  background: var(--color-gray-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.5rem;
  min-height: 480px;
}

/* Main image — large, top-right */
.about-img-main {
  width: 75%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: block;
}

/* Secondary image — smaller, overlapping bottom-left */
.about-img-secondary {
  width: 55%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  border: 4px solid var(--color-gray-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Orange accent — left border */
.about-img-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 70%;
  background: var(--color-accent);
  border-radius: 4px;
}

/* Orange accent — bottom border */
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 4px;
  background: var(--color-accent);
  border-radius: 4px;
}

.about-content .section-subtitle {
  margin-bottom: 0.5rem;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content > p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* Stat */
.about-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.about-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
}

/* Features 2x2 */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 70, 210, 0.08);
  border-radius: var(--radius-sm);
}

.about-feature-icon img,
.about-feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.about-feature h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-content {
    order: -1;
  }

  .about-img-wrap {
    max-width: 500px;
    margin-inline: auto;
    min-height: 380px;
  }

  .about-img-main {
    height: 340px;
  }

  .about-img-secondary {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- HOW WE WORK ---------- */
#how-we-work {
  background: var(--color-white);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

/* Dashed connecting line on desktop */
.how-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: calc(16.67% + 45px);
  right: calc(16.67% + 45px);
  height: 2px;
  border-top: 2px dashed var(--color-border);
  z-index: 0;
}

.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: var(--color-white);
  position: relative;
  transition: all var(--transition);
}

.how-step:hover .how-step-icon {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(22, 70, 210, 0.1);
}

.how-step-icon img,
.how-step-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.how-step-num {
  position: absolute;
  top: 0;
  right: calc(50% - 60px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.how-step h3 {
  margin-bottom: 0.5rem;
}

.how-step p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 260px;
  margin-inline: auto;
}

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

  .how-steps::before {
    display: none;
  }
}

@media (max-width: 575px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-section {
  position: relative;
  background: var(--color-dark);
  padding-block: 6rem;
  overflow: hidden;
}

/* Dot grid pattern background — matching reference screenshot */
.testimonials-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left content */
.testimonials-content {
  color: var(--color-white);
}

.testimonials-content .section-subtitle {
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.testimonials-content h2 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

/* Review cards */
.testimonial-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.testimonial-card:last-child {
  border-bottom: none;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 0.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* Right image */
.testimonials-img {
  position: relative;
}

.testimonials-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Orange quote icon overlapping the image */
.testimonials-quote-icon {
  position: absolute;
  top: 50%;
  left: -28px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(22, 70, 210, 0.4);
  z-index: 2;
}

@media (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-img {
    max-width: 500px;
    margin-inline: auto;
  }

  .testimonials-img img {
    height: 380px;
  }

  .testimonials-quote-icon {
    left: auto;
    right: 20px;
    top: -28px;
    transform: none;
  }
}

@media (max-width: 575px) {
  .testimonials-img img {
    height: 280px;
  }

  .testimonial-text {
    font-size: 0.875rem;
  }
}

/* ---------- FAQ ---------- */
#faq {
  background: var(--color-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.faq-images {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-images img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
}

.faq-content .section-subtitle {
  margin-bottom: 0.5rem;
}

.faq-content h2 {
  margin-bottom: 1.5rem;
}

/* Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--transition);
}

.faq-item.active {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  background: none;
  border: none;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-heading);
  transition: transform var(--transition);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-body);
}

@media (max-width: 991px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-images {
    flex-direction: row;
  }

  .faq-images img {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .faq-images {
    flex-direction: column;
  }

  .faq-images img {
    width: 100%;
  }
}

/* ---------- CONTACT ---------- */
#contact {
  background: var(--color-accent);
  padding: 5rem 0;
}

/* Centered header */
.contact-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-header .section-subtitle {
  color: var(--color-white);
}

.contact-header h2 {
  color: var(--color-white);
}

/* Contact meta row — address, phone, email centered */
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 3rem;
}

.contact-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

.contact-meta-link {
  color: rgba(255, 255, 255, 0.9);
  transition: opacity var(--transition);
}

.contact-meta-link:hover {
  opacity: 0.75;
}

/* Map + Form grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 420px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* Form card */
.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-body);
  margin-bottom: 1.5rem;
}

.optional {
  font-weight: 400;
  color: var(--color-body);
  font-size: 0.8125rem;
}

.form-error-msg a {
  color: var(--color-accent);
  font-weight: 600;
}

.btn-loading-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading-text[hidden] { display: none; }
.btn-default-text[hidden] { display: none; }

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spinner-rotate 0.7s linear infinite;
}

@keyframes btn-spinner-rotate {
  to { transform: rotate(360deg); }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.375rem;
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-heading);
  background: var(--color-gray-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(22, 70, 210, 0.15);
  background: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0a8b8;
}

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

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: #d32f2f;
  margin-top: 0.25rem;
  min-height: 1.2em;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1.0625rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #d32f2f;
}

/* Inline success block — replaces the form on successful submit.
   Lives as a sibling of the form inside .contact-form-wrap, so the
   white card + padding come from the parent. */
#form-success {
  text-align: center;
  padding: 1rem 0;
  min-height: 0;
}

.form-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.form-success-body {
  font-size: 1rem;
  color: var(--color-body);
  margin: 0;
  line-height: 1.6;
}

#form-error {
  padding: 1.25rem;
  background: #fff5f5;
  border: 1px solid #d32f2f;
  border-radius: 8px;
  text-align: center;
  color: #d32f2f;
}

#form-error a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Autofill override */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--color-gray-bg) inset;
  -webkit-text-fill-color: var(--color-heading);
  transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  /* On mobile, put the form above the map so visitors land on the message
     CTA first instead of having to scroll past the map. */
  .contact-form-wrap { order: 1; }
  .contact-map       { order: 2; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
}

.footer-top {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand .nav-logo-text {
  color: var(--color-white);
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer-col ul li {
  font-size: 0.9375rem;
}

/* Footer contact list with icons */
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact-list li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-contact-list li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li a:hover {
  color: var(--color-accent);
}

/* Working hours table */
.footer-hours {
  width: 100%;
  border-collapse: collapse;
}

.footer-hours tr td {
  padding: 0.375rem 0;
  font-size: 0.875rem;
}

.footer-hours tr td:first-child {
  padding-right: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-hours tr td:last-child {
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.footer-hours-highlight {
  color: var(--color-accent) !important;
  font-weight: 600;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

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

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

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

@media (max-width: 575px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ---------- Fade-In Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Print Styles ---------- */
@media print {
  #top-bar,
  #navbar,
  .hamburger,
  .mobile-menu,
  .hero-buttons,
  .nav-cta,
  .btn,
  .contact-form-wrap,
  .footer-socials,
  .social-circle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding-block: 2rem;
  }

  #contact {
    background: #fff;
    color: #000;
  }

  .contact-info h2,
  .contact-info p {
    color: #000;
  }

  .site-footer {
    background: #fff;
    color: #000;
  }
}
/* ============================================================
   n8n Canonical Class Styles — DO NOT TOUCH WITHOUT READING PLAN-templates.md
   These rules style the HTML emitted by the n8n Build Site Tokens
   generators, which use canonical class names from mid2 template.
   Mid's own demo HTML still uses its original classes (defined above).
   After n8n patches a client repo, the dynamic sections are replaced
   with canonical-class HTML which these rules style to match mid's design.
   ============================================================ */

/* Global: hidden attribute must override display rules (form success/error) */
[hidden] { display: none !important; }

/* --- Header logo (canonical) --- */
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.header-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.header-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-heading);
  letter-spacing: 0.5px;
}
.header-logo-text strong { font-weight: 800; }
.header-logo-img {
  display: block;
  max-height: 60px;
  width: auto;
}

/* --- Footer CTA logo (canonical) --- */
.footer-cta-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.footer-cta-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  letter-spacing: 0.5px;
}
.footer-cta-logo-text strong { font-weight: 800; }

/* --- Service card (canonical layout: thumb + body) --- */
.services-grid .service-card-thumb {
  position: relative;
  width: calc(100% + 3rem);
  height: 200px;
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.services-grid .service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services-grid .service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.services-grid .service-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
  line-height: 1.3;
}
.services-grid .service-card-desc {
  color: var(--color-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

/* --- Reviews grid (canonical) --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-accent);
}
.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body);
  font-style: italic;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-author-info {
  display: flex;
  flex-direction: column;
}
.review-name {
  font-weight: 700;
  color: var(--color-heading);
  font-size: 0.95rem;
}

/* --- Footer hours table (canonical) --- */
.footer-hours-table {
  width: 100%;
  border-collapse: collapse;
}
.footer-hours-table tr td {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-hours-table tr td:first-child { font-weight: 500; }
.footer-hours-table tr td:last-child {
  text-align: right;
  color: var(--color-white);
}
.footer-hours-table tr:last-child td { border-bottom: none; }

/* --- Footer emergency banner (canonical) --- */
.footer-emergency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(22, 70, 210, 0.15);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
}
.footer-emergency svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* --- Footer social links (canonical) --- */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  margin-right: 0.5rem;
  transition: all var(--transition);
}
.footer-social-link:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
