/* --------------------------------------------------
   PREMIUM CUSTOM DESIGN SYSTEM & VARIABLES
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #070a0d;
  --bg-secondary: #0d1217;
  --bg-tertiary: #131a21;
  --accent-gold: #d4af37;
  --accent-gold-hover: #e6c24a;
  --accent-gold-muted: rgba(212, 175, 55, 0.08);
  
  --text-primary: #f8f9fa;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --text-on-accent: #070a0d;

  --border-light: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(212, 175, 55, 0.35);

  /* Fonts */
  --font-headings: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* --------------------------------------------------
   BASE STYLES & RESET
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* Offset for fixed header */
}

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
}

/* Text Gold Gradient */
.text-gold {
  background: linear-gradient(135deg, #d4af37 30%, #f3d06b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.italic-serif {
  font-style: italic;
  font-weight: 300;
}

/* --------------------------------------------------
   STICKY NAVIGATION HEADER
-------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(7, 10, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  padding: 20px 24px;
}

.navbar.scrolled {
  padding: 14px 24px;
  background-color: rgba(7, 10, 13, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.btn-nav {
  padding: 10px 20px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--accent-gold);
  background-color: var(--accent-gold-muted);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.btn-nav:hover {
  background-color: var(--accent-gold);
  color: var(--text-on-accent);
  box-shadow: 0 4px 15px rgba(214, 175, 55, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------
   CONTAINERS & SECTIONS
-------------------------------------------------- */
section {
  padding: 120px 24px;
  position: relative;
}

/* Ambient Radial Glows */
section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 175, 55, 0.02) 0%, rgba(214, 175, 55, 0) 70%);
  top: 10%;
  left: 5%;
  z-index: 1;
  pointer-events: none;
}

section:nth-child(even)::after {
  left: auto;
  right: 5%;
  top: 30%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(90vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('hero_excavator.png') no-repeat center center/cover;
  padding: 100px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 10, 13, 0.4) 0%,
    rgba(7, 10, 13, 0.8) 60%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pulsing effect for Primary gold CTA */
@keyframes goldPulse {
  0% { box-shadow: 0 4px 20px rgba(214, 175, 55, 0.2); }
  50% { box-shadow: 0 4px 30px rgba(214, 175, 55, 0.45); }
  100% { box-shadow: 0 4px 20px rgba(214, 175, 55, 0.2); }
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #e6c24a);
  color: var(--text-on-accent);
  border: none;
  animation: goldPulse 3s infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e6c24a, #f1be5c);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214, 175, 55, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   TRUST BAR
-------------------------------------------------- */
.trust-bar {
  padding: 0;
  background-color: var(--bg-primary);
  z-index: 3;
  margin-top: -50px;
  position: relative;
}

.trust-bar-wrapper {
  background-color: rgba(13, 18, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  color: var(--accent-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.trust-item:hover .trust-icon {
  transform: scale(1.1);
  color: var(--accent-gold-hover);
}

.trust-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------
   LOCAL AUTHORITY SECTION
-------------------------------------------------- */
.local-authority {
  background-color: var(--bg-primary);
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.local-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.local-content p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.7;
}

.local-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: rgba(13, 18, 23, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.bullet-item:hover {
  border-color: rgba(214, 175, 55, 0.3);
  background-color: rgba(13, 18, 23, 0.7);
  transform: translateX(4px);
}

.bullet-check {
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.bullet-text h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.bullet-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------
   SERVICES GRID SECTION
-------------------------------------------------- */
.services {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: rgba(7, 10, 13, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 44px 40px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(214, 175, 55, 0.35);
  background-color: rgba(7, 10, 13, 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(214, 175, 55, 0.03);
}

.service-card-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* --------------------------------------------------
   "HOW IT WORKS" SEQUENCE
-------------------------------------------------- */
.process {
  background-color: var(--bg-primary);
}

.timeline {
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
}

/* Glowing timeline indicator line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--border-light) 0%,
    var(--accent-gold) 50%,
    var(--border-light) 100%
  );
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 12px;
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--bg-primary);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 0 15px rgba(214, 175, 55, 0.15);
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-number {
  background-color: var(--accent-gold);
  color: var(--text-on-accent);
  box-shadow: 0 0 25px rgba(214, 175, 55, 0.5);
  transform: scale(1.1);
}

.timeline-content {
  background-color: rgba(13, 18, 23, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 32px;
  transition: border-color var(--transition-normal);
}

.timeline-content:hover {
  border-color: rgba(214, 175, 55, 0.25);
}

.timeline-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------
   FINAL CALL TO ACTION & LEAD CAPTURE FORM
-------------------------------------------------- */
.cta-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.cta-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 24px;
}

.cta-info p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  font-weight: 300;
}

.cta-contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-contact-icon {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.cta-contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color var(--transition-fast);
}

.cta-contact-item a:hover {
  color: var(--accent-gold);
}

/* Form Styles */
.form-container {
  background-color: rgba(7, 10, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-control {
  width: 100%;
  background-color: rgba(19, 26, 33, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(19, 26, 33, 0.85);
  box-shadow: 0 0 15px rgba(214, 175, 55, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

/* Feedback / Success state */
.form-feedback {
  display: none;
  text-align: center;
  padding: 30px;
  background-color: rgba(19, 26, 33, 0.7);
  border: 1px solid var(--accent-gold);
  border-radius: 8px;
  margin-top: 16px;
}

.form-feedback-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.form-feedback h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------
   FAQ SECTION (ACCORDION UI)
-------------------------------------------------- */
.faq {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: rgba(13, 18, 23, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(214, 175, 55, 0.25);
  background-color: rgba(13, 18, 23, 0.6);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 0.9rem;
  color: var(--accent-gold);
  transition: transform var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Open State classes */
.faq-item.active {
  border-color: rgba(214, 175, 55, 0.35);
  background-color: rgba(13, 18, 23, 0.8);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------
   RESPONSIVENESS & MOBILE LAYOUTS
-------------------------------------------------- */
@media (max-width: 1024px) {
  .local-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .navbar {
    padding: 16px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* Hidden on mobile by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(7, 10, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    gap: 20px;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  section {
    padding: 80px 16px;
  }

  .trust-bar {
    margin-top: 0;
    padding: 24px 0;
  }

  .trust-bar-wrapper {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-number {
    left: 0;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .form-container {
    padding: 30px 24px;
  }
}
