/* ==========================================================================
   Silver Peak Electrical & Fire Alarm Ltd. — static site styles
   Design system extracted faithfully from the original React/Tailwind build.
   No build step. Plain CSS. Light theme only (the site never toggled dark).
   ========================================================================== */

:root {
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  /* Colour tokens (HSL components, used as hsl(var(--x)) like the original) */
  --background: 40 20% 98%;       /* warm off-white page background */
  --foreground: 220 10% 10%;      /* near-black text */
  --card: 0 0% 100%;              /* white cards */
  --primary: 15 85% 50%;          /* electric orange-red */
  --primary-foreground: 0 0% 100%;
  --secondary: 215 25% 15%;       /* deep navy */
  --secondary-foreground: 0 0% 100%;
  --muted: 40 10% 92%;
  --muted-foreground: 220 5% 40%;
  --accent: 40 15% 90%;
  --border: 40 10% 88%;

  --radius: 0.5rem;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* keep anchor targets clear of the fixed navbar */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

a { color: inherit; }

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

::selection {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section { padding-block: 6rem; } /* py-24 */

.section--bg      { background: hsl(var(--background)); }
.section--dark    { background: hsl(var(--secondary)); color: #fff; }
.section--primary { background: hsl(var(--primary)); color: #fff; }
.section--bordered { border-top: 1px solid hsl(var(--border)); }

.eyebrow { /* small pill label above a heading */
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.eyebrow--light { background: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 1.25rem; height: 1.25rem; }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.2);
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-glass {
  background: hsl(0 0% 100% / 0.1);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-glass:hover { background: hsl(0 0% 100% / 0.2); }

.btn-dark {
  background: hsl(var(--secondary));
  color: #fff;
}
.btn-dark:hover { background: hsl(var(--secondary) / 0.9); }

.btn-white {
  background: #fff;
  color: hsl(var(--primary));
}
.btn-white:hover { background: #fafaf9; }

/* --------------------------------------------------------------------------
   Navbar (fixed, blurred)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.navbar__inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand__mark {
  width: 2.5rem; height: 2.5rem;
  background: hsl(var(--primary));
  color: #fff;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.brand__mark svg { width: 1.5rem; height: 1.5rem; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.brand__tag  { font-size: 0.75rem; color: hsl(var(--muted-foreground)); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.brand--light .brand__name { color: #fff; }
.brand__name-wrap { display: flex; flex-direction: column; gap: 0.15rem; }

.navlinks { display: none; align-items: center; gap: 2rem; }
.navlinks a {
  font-size: 0.875rem; font-weight: 600;
  color: hsl(var(--foreground) / 0.8);
  text-decoration: none;
  transition: color .15s ease;
}
.navlinks a:hover { color: hsl(var(--primary)); }

.navbar__actions { display: flex; align-items: center; gap: 1rem; }
.navbar__phone {
  display: none;
  align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color .15s ease;
}
.navbar__phone svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.navbar__phone:hover { color: hsl(var(--primary)); }
.navbar__email {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.navbar__email:hover { background: hsl(var(--foreground) / 0.9); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: hsl(var(--secondary));
  color: #fff;
  padding: 8rem 0 5rem; /* pt-32 pb-20 */
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('assets/hero-bg.png') center / cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: overlay;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    hsl(var(--secondary)),
    hsl(var(--secondary) / 0.8),
    transparent);
}
.hero .container { position: relative; z-index: 10; }
.hero__content { max-width: 56rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__badge svg { width: 1rem; height: 1rem; }

.hero__title {
  font-size: 2.25rem; font-weight: 700; color: #fff;
  margin-bottom: 1.5rem; line-height: 1.1;
}
.hero__title .accent { color: hsl(var(--primary)); }

.hero__sub {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.625;
}

.btn-row { display: flex; flex-direction: column; gap: 1rem; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section__head { max-width: 42rem; margin-bottom: 4rem; }
.section__title {
  font-size: 1.875rem; font-weight: 700;
  margin-bottom: 1rem;
}
.section--dark .section__title,
.section--primary .section__title { color: #fff; }
.section__lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.section__head--center { max-width: 56rem; margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  border-radius: 1rem;
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.card:hover .card__icon { transform: scale(1.1); }
.card__icon {
  width: 3rem; height: 3rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform .2s ease;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.card__desc { color: hsl(var(--muted-foreground)); }

/* --------------------------------------------------------------------------
   Split (advantage / about)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.split__title {
  font-size: 1.875rem; font-weight: 700; color: #fff;
  margin-bottom: 1.5rem;
}
.split__text {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.625;
}
.checklist { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; }
.checklist svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); flex-shrink: 0; }
.checklist span { font-size: 1.125rem; color: hsl(0 0% 100% / 0.9); }

.offset-img { position: relative; }
.offset-img::before {
  content: "";
  position: absolute; inset: 0;
  background: hsl(var(--primary) / 0.2);
  transform: translate(1rem, 1rem);
  border-radius: 1.5rem;
  z-index: -1;
}
.offset-img img {
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Pills (who we work with)
   -------------------------------------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.pill {
  padding: 0.75rem 1.5rem;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta { text-align: center; max-width: 48rem; margin-inline: auto; }
.cta__title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.cta__lead { font-size: 1.25rem; color: hsl(0 0% 100% / 0.9); margin-bottom: 2.5rem; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: hsl(var(--secondary));
  color: #fff;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__lead { color: hsl(var(--muted-foreground)); max-width: 24rem; margin: 1.5rem 0; }
.footer__licence {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  background: hsl(0 0% 100% / 0.05);
  border: 1px solid hsl(0 0% 100% / 0.1);
  font-size: 0.875rem;
  font-family: var(--font-display);
  color: hsl(0 0% 100% / 0.8);
}
.footer h4 { color: #fff; font-weight: 600; margin-bottom: 1.5rem; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer__list a, .footer__list li {
  display: flex; align-items: center; gap: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color .15s ease;
}
.footer__list a:hover { color: #fff; }
.footer__list svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); flex-shrink: 0; }
.footer__quick { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__quick a { color: hsl(var(--muted-foreground)); text-decoration: none; transition: color .15s ease; }
.footer__quick a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: hsl(var(--muted-foreground));
  text-align: center;
}

/* break long email on small screens */
.break-all { word-break: break-all; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; }
  .navbar__phone { display: flex; }
}

@media (min-width: 768px) {
  .container { padding-inline: 1.5rem; }
  .hero { padding: 12rem 0 8rem; }       /* md:pt-48 md:pb-32 */
  .hero__title { font-size: 3.75rem; }   /* md:text-6xl */
  .hero__sub { font-size: 1.25rem; }
  .section__title { font-size: 2.25rem; }
  .split__title, .cta__title { font-size: 3rem; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .navlinks { display: flex; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; text-align: left; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 4.5rem; }    /* lg:text-7xl */
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__brand { grid-column: span 2; }
}
