/* ═══════════════════════════════════════════
   SOUTHWOOD WINDOWS KENT — Global Stylesheet
   Brand colours from logo:
     --red:       #c03030  (roof, SOUTHWOOD text, Kent text)
     --navy:      #2c3e6b  (WINDOWS text, oval, base)
     --navy-dark: #1e2d52  (deep sections)
     --steel:     #7fa8c4  (oval body blue)
═══════════════════════════════════════════ */
:root {
  --red:       #c03030;
  --red-dark:  #9e2626;
  --red-light: #d94040;
  --navy:      #2c3e6b;
  --navy-dark: #1e2d52;
  --navy-deep: #111a2e;
  --steel:     #7fa8c4;
  --sky-pale:  #e8f2f8;
  --off-white: #f4f7fb;
  --slate:     #64748b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: #fff; padding-top: 76px; }

/* ── Logo — big, centred, fills the nav bar ── */
.logo-nav {
  height: 96px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: -16px;
  margin-left: -12px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
  transition: height 0.2s;
}
@media (max-width: 1024px) { .logo-nav { height: 88px; } }
@media (max-width: 640px)  { .logo-nav { height: 80px; } }

/* ── Buttons ── */
.btn-red {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-weight: 700; border-radius: 6px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 4px 16px rgba(192,48,48,.38);
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border: none; font-family: 'DM Sans', sans-serif;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,48,48,.5); filter: brightness(1.07); }

.btn-navy {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  border-radius: 6px; border: 2px solid var(--navy);
  transition: background .2s, transform .2s; text-decoration: none; font-family: 'DM Sans', sans-serif;
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

.btn-outline {
  display: inline-block; background: transparent; color: #fff; font-weight: 700;
  border-radius: 6px; border: 2px solid rgba(255,255,255,.7);
  transition: background .2s, color .2s; text-decoration: none; font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ── Nav ── */
.nav-link {
  color: rgba(255,255,255,.8); font-weight: 500; font-size: .9rem;
  text-decoration: none; transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left center; transition: transform .2s; border-radius: 2px;
}
.nav-link:hover, .nav-link.nav-active { color: #fff; }
.nav-link:hover::after, .nav-link.nav-active::after { transform: scaleX(1); }

/* ── Hero image backgrounds ── */
.hero-img-bg {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-img-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(17,26,46,.88) 0%,
    rgba(30,45,82,.78) 50%,
    rgba(17,26,46,.70) 100%);
  z-index: 1;
}
.hero-img-bg > * { position: relative; z-index: 2; }

/* Slightly lighter overlay for inner page heroes */
.hero-img-bg.hero-inner::before {
  background: linear-gradient(135deg,
    rgba(17,26,46,.82) 0%,
    rgba(30,45,82,.72) 100%);
}

/* ── Diagonal clip ── */
.diagonal-clip { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); padding-bottom: 5rem; }

/* ── Section label ── */
.section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); display: block; margin-bottom: .4rem;
}
.accent-line {
  width: 48px; height: 4px; background: var(--red);
  border-radius: 2px; margin: .8rem auto 0;
}

/* ── Service cards ── */
.service-card {
  background: #fff; border-radius: 16px; border-bottom: 4px solid transparent;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
  box-shadow: 0 2px 12px rgba(44,62,107,.07);
}
.service-card:hover {
  transform: translateY(-8px); box-shadow: 0 20px 40px rgba(44,62,107,.14);
  border-bottom-color: var(--red);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(192,48,48,.08); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; margin-bottom: 1.25rem;
}

/* ── Stat cards ── */
.stat-card { border-left: 4px solid var(--red); }

/* ── Area badges ── */
.area-badge {
  background: #fff; border: 2px solid #d4dce8; border-radius: 9999px;
  padding: .55rem 1.1rem; font-weight: 600; color: var(--navy);
  font-size: .875rem; transition: all .2s; cursor: default;
}
.area-badge:hover { border-color: var(--red); background: var(--red); color: #fff; transform: scale(1.05); }

/* ── Gallery images ── */
.gallery-item { border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(17,26,46,.85));
  color: #fff; padding: 1rem .9rem .7rem;
  font-size: .82rem; font-weight: 600; opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Gallery placeholder (fallback) ── */
.gallery-ph {
  aspect-ratio: 4/3; background: linear-gradient(135deg, var(--sky-pale), #d0e4f0);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem; color: var(--slate);
  font-size: .85rem; font-weight: 500; border: 2px dashed #b0cfe0;
}

/* ── Service page photo ── */
.service-photo { width:100%; border-radius:16px; object-fit:cover; aspect-ratio:4/3; display:block; box-shadow:0 12px 40px rgba(30,45,82,.15); }

/* ── Review card ── */
.review-card { background: var(--off-white); border-radius: 16px; border: 1px solid #e2eaf2; }
.stars { color: var(--red); font-size: 1rem; letter-spacing: 2px; }

/* ── Form ── */
.form-input {
  width: 100%; border: 1.5px solid #cdd5e0; border-radius: 8px;
  padding: .75rem 1rem; font-family: 'DM Sans', sans-serif; font-size: .95rem;
  color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,48,48,.15); }
.form-label { display: block; font-weight: 500; font-size: .875rem; color: var(--navy); margin-bottom: .4rem; }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 5.5rem 1rem 4rem; text-align: center; color: #fff;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.page-hero .hero-inner-content { position: relative; z-index: 2; }

/* ── Floating call button ── */
.float-call {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; border-radius: 9999px; padding: .85rem 1.4rem;
  font-weight: 700; font-size: .88rem;
  box-shadow: 0 8px 28px rgba(192,48,48,.5);
  display: flex; align-items: center; gap: .4rem;
  text-decoration: none; transition: transform .2s;
}
.float-call:hover { transform: scale(1.06); }

/* ── Fade-up ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-dark); color: #fff; padding: .9rem 2rem;
  border-radius: 8px; font-weight: 600; opacity: 0;
  transition: opacity .4s, transform .4s; pointer-events: none; z-index: 9999; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Filter buttons (gallery) ── */
.filter-btn {
  padding: .5rem 1.25rem; border-radius: 9999px; font-size: .875rem; font-weight: 600;
  border: 2px solid #d4dce8; color: var(--navy); background: #fff;
  cursor: pointer; transition: all .2s; font-family: 'DM Sans', sans-serif;
}
.filter-btn.active, .filter-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ═══════════════════════════════════════════
   MOBILE OPTIMISATIONS
═══════════════════════════════════════════ */

/* Prevent text from being too small on mobile */
@media (max-width: 640px) {
  body { font-size: 16px; } /* prevents iOS zoom on inputs */

  /* Larger tap targets for all links/buttons */
  .btn-red, .btn-navy, .btn-outline {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  /* Full-width CTAs on mobile */
  .hero-ctas a { width: 100%; text-align: center; }

  /* Service cards full width */
  .service-card { border-radius: 12px; }

  /* Area badges slightly larger touch area */
  .area-badge { padding: .7rem 1.2rem; font-size: .9rem; }

  /* Form inputs — large enough to prevent iOS zoom (min 16px) */
  .form-input { font-size: 16px !important; min-height: 48px; }
  textarea.form-input { min-height: 100px; }

  /* Gallery items full width on small screens */
  #gallery-grid { grid-template-columns: 1fr; }

  /* Page heroes — less padding */
  .page-hero { padding: 4rem 1rem 3rem; min-height: 260px !important; }

  /* Stat cards text size */
  .stat-card .text-4xl { font-size: 2rem; }

  /* Section headings */
  h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.8rem !important; }
}

/* Smooth mobile menu slide animation */
#mobile-menu {
  animation: slideDown 0.2s ease;
  transform-origin: top;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Float call button — bigger on mobile */
@media (max-width: 640px) {
  .float-call {
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(192,48,48,.6);
  }
}

/* Ensure navbar overflow:visible so logo can extend above/below */
#navbar { overflow: visible !important; }
#navbar > div:first-child { overflow: visible !important; }

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;   /* sits above the call button */
  right: 1.5rem;
  z-index: 998;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  padding: .85rem 1.4rem;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(37,211,102,.6); }
@media (max-width: 640px) {
  .whatsapp-float { bottom: 5rem; right: 1rem; padding: .9rem 1.3rem; font-size: .9rem; }
}

/* ── WhatsApp inline button ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.5); filter: brightness(1.07); }

/* ═══════════════════════════════════════════
   GLOBAL FIXES
═══════════════════════════════════════════ */

/* Kill ALL list bullets/circles everywhere — the white dots people see */
ul, ol { list-style: none; padding-left: 0; }

/* Area badges hover — smooth lift animation */
.area-badge {
  transition: all 0.22s cubic-bezier(.34,1.56,.64,1) !important;
  display: inline-block;
  cursor: pointer;
}
.area-badge:hover {
  transform: translateY(-4px) scale(1.07) !important;
  box-shadow: 0 8px 20px rgba(192,48,48,0.25);
}

/* Service card link hover lift */
.service-card a { transition: all 0.2s; }

/* Area badges as links — no underline */
a.area-badge { text-decoration: none; color: var(--navy); }
a.area-badge:hover { color: #fff; }
