/* ============================================================
   London Broken Fence — Shared Stylesheet
   css/style.css
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --emerald: #10b981;
  --blue: #3b82f6;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --mid: #2a2a2a;
  --gray: #a0a0a0;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --grad: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  --grad-hover: linear-gradient(135deg, #059669 0%, #2563eb 100%);
  --glow: 0 0 20px rgba(16,185,129,0.3);
  --font: 'Poppins', sans-serif;
  --nav-height: 80px;
  --nav-shrunk: 60px;
  --transition: 0.3s ease;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--emerald); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,185,129,0.15);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}
.navbar.shrunk {
  height: var(--nav-shrunk);
  background: rgba(10,10,10,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo block */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand img {
  height: 44px;
  width: auto;
  transition: height var(--transition);
}
.navbar.shrunk .nav-brand img { height: 34px; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.nav-brand-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--emerald);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--emerald);
  background: rgba(16,185,129,0.08);
}
.nav-phone {
  padding: 9px 18px !important;
  background: rgba(16,185,129,0.12) !important;
  border: 1px solid rgba(16,185,129,0.35) !important;
  border-radius: 50px !important;
  color: var(--emerald) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
}
.nav-phone:hover {
  background: var(--emerald) !important;
  color: var(--white) !important;
  box-shadow: var(--glow) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(16,185,129,0.12); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  padding: 32px 24px;
  gap: 6px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav-mobile.open {
  display: flex;
  transform: translateX(0);
}
.nav-mobile a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition);
  min-height: 54px;
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--emerald);
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.2);
}
.nav-mobile-phone {
  margin-top: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px !important;
  background: var(--grad) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border: none !important;
  min-height: 54px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(16,185,129,0.25);
}
.btn-primary:hover {
  background: var(--grad-hover);
  box-shadow: var(--glow), 0 8px 30px rgba(59,130,246,0.25);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--emerald);
}
.btn-secondary:hover {
  background: rgba(16,185,129,0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: var(--emerald);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ============================================================
   FADE-IN SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   PAGE HEADER (shared — about, services, estimate)
   ============================================================ */
.page-header {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.12;
}
.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-header-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.page-header h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section { padding: 90px 24px; }
.section-sm { padding: 60px 24px; }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
  line-height: 1.8;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ============================================================
   CARDS — generic
   ============================================================ */
.card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(16,185,129,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), var(--glow);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 28px;
}
.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--emerald);
  margin-bottom: 12px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 20px;
}
.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--dark);
  transition: background var(--transition);
}
.stat-item:hover { background: var(--mid); }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(16,185,129,0.12);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.25);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-location {
  font-size: 0.78rem;
  color: var(--emerald);
}
.testimonial-source {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 90px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.08;
}
.cta-section-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 70px 24px 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}
.footer-brand-logo img {
  height: 42px;
  width: auto;
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand-sub {
  font-size: 0.65rem;
  color: var(--emerald);
}
.footer-col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::before {
  content: '›';
  color: var(--emerald);
  font-size: 1rem;
  transition: transform var(--transition);
}
.footer-links a:hover {
  color: var(--emerald);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact-text span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-contact-text a,
.footer-contact-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  margin: 0;
  line-height: 1.4;
}
.footer-contact-text a:hover { color: var(--emerald); }
.footer-bagi-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-bagi-note span { color: var(--emerald); font-weight: 600; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--emerald); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  width: 100%;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--mid); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
  background: rgba(42,42,42,0.8);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), transparent);
  margin: 0;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-dark { background: var(--dark); }
.bg-mid { background: var(--mid); }
.bg-black { background: var(--black); }

/* ============================================================
   RESPONSIVE — NAVBAR
   ============================================================ */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 400px) {
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 0.9rem; }
}

/* ============================================================
   RESPONSIVE — LAYOUT
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 60px 16px; }
  .section-sm { padding: 40px 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 120px 16px 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 12px; }
  .btn { padding: 12px 24px; font-size: 0.875rem; }
}
