/* =========================================================
   Roofers of Surrey - Premium Modern Dark Stylesheet
   ========================================================= */
:root {
  --bg-main: #0e0f12;
  --bg-card: #15171c;
  --bg-card-hover: #1c1f26;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --accent: #1971e6;
  --accent-glow: rgba(25, 113, 230, 0.35);
  --accent-hover: #125bc4;
  --text-main: #ffffff;
  --text-muted: #9ea5b3;
  --text-dim: #646b79;
  --radius-sm: 6px;
  --radius: 12px;
  --max-w: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

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

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ================= Stylistic Loading Animations ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ================= Translucent Floating Top Bar ================= */
.top-bar {
  background-color: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  color: var(--text-muted);
  position: relative;
  z-index: 1001;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.top-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.top-bar a:hover {
  color: var(--accent);
}

/* ================= Frosted Glass Header ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 1;
}
.logo img {
  height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo span {
  white-space: nowrap;
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--text-main);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.hamburger-btn {
  display: none !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111216;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  padding: 1.5rem 0;
}
.mobile-nav.open {
  display: block !important;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-main);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

/* ================= Full-Bleed Hero With Drone Video ================= */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  background-color: var(--bg-main);
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 15, 18, 0.4) 0%, var(--bg-main) 90%);
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(25, 113, 230, 0.12);
  border: 1px solid rgba(25, 113, 230, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: #70adff;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 2.5rem;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= Quick Trust Metrics Bar ================= */
.stats-strip {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  background-color: #111216;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ================= Common Section Layouts ================= */
.section-pad {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.card h3 {
  font-size: 1.3rem;
  margin: 1rem 0 0.5rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

/* ================= Projects Showcase & Lightbox Grid ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.gallery-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #17181f;
  position: relative;
}
.gallery-img-box img {
  transition: transform 0.4s ease;
}
.gallery-card:hover .gallery-img-box img {
  transform: scale(1.05);
}
.gallery-zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-card:hover .gallery-zoom-hint {
  opacity: 1;
}
.gallery-info {
  padding: 1.1rem 1.4rem;
}
.gallery-info span {
  font-size: 0.75rem;
  color: #70adff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}
.gallery-info h4 {
  font-size: 1.15rem;
}
.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ================= Lightbox Modal Styles ================= */
.lightbox-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(14px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-modal.open {
  display: flex !important;
}
.lightbox-content {
  position: relative;
  max-width: 920px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}
.lightbox-image-box {
  width: 100%;
  height: 60vh;
  max-height: 560px;
  background: #08090b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}
.lightbox-image-box img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.lightbox-details {
  padding: 1.25rem 1.75rem;
  background: #14151a;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lightbox-meta span {
  font-size: 0.75rem;
  color: #70adff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.2rem;
}
.lightbox-meta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.lightbox-meta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 650px;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
  z-index: 5;
}
.lightbox-nav-btn:hover {
  background: var(--accent);
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ================= About Split ================= */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split-content h2 {
  font-size: 2.3rem;
  margin-bottom: 1.25rem;
}
.split-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}
.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ================= Reviews Bar & Testimonials ================= */
.reviews-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.reviews-score {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stars {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 2px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #20232a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1px solid var(--border);
}
.author-name {
  font-weight: 600;
  font-size: 0.98rem;
}

/* ================= Instagram Feed ================= */
.instagram-strip {
  background-color: #0b0c0e;
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}
.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.ig-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #17181f;
  display: block;
  position: relative;
}
.ig-card img {
  transition: transform 0.3s ease;
}
.ig-card:hover img {
  transform: scale(1.05);
}
.ig-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  opacity: 0;
  transition: var(--transition);
}
.ig-card:hover .ig-card-overlay {
  opacity: 1;
}
.ig-card-overlay span {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
}

/* ================= Footer ================= */
footer {
  background-color: #08090b;
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.15rem;
}
.footer-col p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background-color: #131418;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-control {
  min-height: 95px;
  resize: vertical;
}
.copyright {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ================= Responsive Rules ================= */
@media (max-width: 992px) {
  .grid-3, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .logo {
    font-size: 1.05rem;
  }
  .logo img {
    height: 32px;
  }
  .header-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  /* 2-Column App Grid for Gallery & Instagram */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .gallery-img-box {
    aspect-ratio: 4 / 3;
  }
  .gallery-info {
    padding: 0.65rem 0.5rem;
  }
  .gallery-info span {
    font-size: 0.65rem;
  }
  .gallery-info h4 {
    font-size: 0.88rem;
  }

  .lightbox-details {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .lightbox-image-box {
    height: 48vh;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .instagram-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .instagram-header .btn {
    width: 100%;
  }

  .section-pad {
    padding: 3.5rem 0;
  }
  .grid-3, .split-section, .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .reviews-bar {
    flex-direction: column;
    text-align: center;
  }
  .top-bar-links span {
    display: none;
  }
}

@media (max-width: 420px) {
  .logo span {
    font-size: 0.95rem;
  }
}