/* ============================================================
   GIBBONS ELECTRICAL — styles
   Brand colours live here. Change these lines to re-skin
   the whole site:
   ============================================================ */
:root {
  --bg:       #0d1b2a;   /* main deep-navy background     */
  --bg-2:     #122438;   /* slightly lighter panels       */
  --bg-light: #f5f7fa;   /* light section background      */
  --ink:      #ffffff;   /* main text on dark             */
  --ink-dark: #0d1b2a;   /* main text on light            */
  --muted:    #9fb3c8;   /* secondary text on dark        */
  --muted-2:  #5c6b7a;   /* secondary text on light       */
  --accent:   #d92d20;   /* Gibbons brand red — buttons/CTAs */
  --accent-2: #e8473b;
  --line:     #21364d;   /* hairlines / borders on dark   */
  --line-2:   #e2e8f0;   /* hairlines on light            */
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; letter-spacing: .5px; line-height: 1.05; text-transform: uppercase; }

a { color: inherit; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #1a1505; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border: 1px solid rgba(255,255,255,.35); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 36px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13,27,42,.94); backdrop-filter: blur(8px); padding: 12px 32px; border-color: var(--line); }
.nav__brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.7rem; letter-spacing: 1px; text-decoration: none; color: var(--ink); text-transform: uppercase; }
.nav__brand span { color: var(--accent); margin-left: 5px; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; font-size: .82rem; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--accent) !important; border: 1px solid var(--accent); padding: 9px 18px; border-radius: 4px; }
.nav__cta:hover { background: var(--accent); color: #1a1505 !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  /* TODO: swap this background for a real photo (the van, a finished board, the team) */
  background: url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?w=1600&q=75') center/cover no-repeat;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,27,42,.93) 0%, rgba(13,27,42,.78) 55%, rgba(13,27,42,.6) 100%); }
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; width: 100%; }
.hero__eyebrow { color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.8rem, 8vw, 5.6rem); margin-bottom: 22px; }
.hero__sub { max-width: 560px; color: var(--ink); font-size: 1.06rem; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.hero__badges li { font-size: .78rem; font-weight: 600; letter-spacing: .5px; color: var(--ink); background: rgba(255,255,255,.07); border: 1px solid var(--line); padding: 7px 14px; border-radius: 40px; }

/* ---------- generic section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 32px; }
.section--dark { background: var(--bg-2); max-width: none; }
.section--dark .section__head, .section--dark .why { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 54px; }
.section__eyebrow { color: var(--accent); letter-spacing: 2.5px; text-transform: uppercase; font-size: .78rem; font-weight: 600; margin-bottom: 12px; }
.section__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.service { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px; transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: var(--accent); }
.service__icon { color: var(--accent); margin-bottom: 16px; line-height: 0; }
.service__icon svg { width: 32px; height: 32px; }
.service h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.service p { color: var(--muted); font-size: .94rem; }
.services__foot { text-align: center; color: var(--muted); margin-top: 32px; font-size: .95rem; }
.services__foot a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ---------- split sections (about / contact) ---------- */
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section--reverse .split__media { order: 2; }
.split__media img, .split__media iframe { width: 100%; height: 460px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.split__media--map { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.split__media--map iframe { border: 0; }
.split__text .section__title { margin: 8px 0 18px; }
.split__text p { color: var(--muted); margin-bottom: 16px; }
.ticks { list-style: none; margin-top: 22px; }
.ticks li { color: var(--ink); padding-left: 28px; position: relative; margin-bottom: 11px; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- why us ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.why__card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; border-top: 3px solid var(--accent); }
.why__card h3 { font-size: 1.35rem; color: var(--ink); margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: .92rem; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 28px 26px; }
.review__stars { color: #f4b400; letter-spacing: 3px; margin-bottom: 14px; }

/* ---------- opening hours (contact) ---------- */
.hours { width: 100%; max-width: 320px; border-collapse: collapse; margin: 4px 0 10px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.hours td:first-child { color: var(--ink); font-weight: 600; }
.hours td:last-child { text-align: right; }
.contact-note { color: var(--muted); font-size: .82rem; font-style: italic; margin-bottom: 16px; }
.review blockquote { color: var(--ink); font-size: 1rem; line-height: 1.55; margin-bottom: 16px; }
.review figcaption { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- areas ---------- */
.section--areas { text-align: center; }
.areas { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.areas li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 40px; padding: 9px 20px; font-size: .9rem; font-weight: 500; color: var(--ink); }

/* ---------- contact / lines ---------- */
.contact-line { color: var(--muted); margin-bottom: 16px; }
.contact-line strong { color: var(--ink); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; }
.contact-line a { color: var(--accent); text-decoration: none; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 56px 32px 100px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: 1px; margin-bottom: 16px; text-transform: uppercase; }
.footer__brand span { color: var(--accent); margin-left: 5px; font-weight: 600; }
.footer__line { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.footer__addr { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.footer__fine { color: #4a5a6b; font-size: .78rem; }

/* ---------- sticky mobile bar ---------- */
.mobilebar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
.mobilebar a { flex: 1; text-align: center; padding: 16px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.mobilebar__call { background: var(--bg-2); color: var(--ink); border-top: 1px solid var(--line); }
.mobilebar__book { background: var(--accent); color: #1a1505; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 24px; padding: 40px; background: var(--bg-2);
    transform: translateX(100%); transition: transform .3s ease;
    border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 51; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 72px 22px; }
  .section--split { grid-template-columns: 1fr; gap: 32px; }
  .section--reverse .split__media { order: 0; }
  .split__media img, .split__media iframe { height: 320px; }

  .mobilebar { display: flex; }
  body { padding-bottom: 54px; } /* room for the sticky bar */
}

@media (max-width: 460px) {
  .nav, .nav.scrolled { padding: 12px 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}
