/* Main stylesheet for BBCCG (Mobile-First, Relative Units Only) */
:root {
  --primary-dark: #1e293b; /* Deep Slate Blue */
  --primary-accent: #f59e0b; /* Gold / Safety Yellow */
  --text-light: #f8fafc;
  --text-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

html {
  font-size: 100%; /* 1rem = 16px default */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background-color: var(--text-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
  font-weight: 800;
  margin-bottom: 0.5rem;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 1.25rem; /* 20px */
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.highlight { color: var(--primary-accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  border-radius: 0; /* SHARP EDGES */
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0.125rem solid transparent; /* 2px */
}
.btn-primary {
  background-color: var(--primary-accent);
  color: var(--text-dark);
}
.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-0.125rem); /* -2px */
  box-shadow: 0 0.625rem 1.25rem rgba(245, 158, 11, 0.4);
}
.btn-outline {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
  transform: translateY(-0.125rem); /* -2px */
  box-shadow: 0 0.625rem 1.25rem rgba(255, 255, 255, 0.2);
}

/* Navigation & Hamburger Menu */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(0.625rem); /* 10px */
  z-index: 1000;
  color: white;
  border-bottom: 0.0625rem solid var(--glass-border); /* 1px */
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem; /* 80px */
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
}
.logo img {
  height: 2.5rem; /* 40px */
  border-radius: 0;
}
.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-accent);
}

/* Checkbox Hack for Mobile Menu */
.menu-btn {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}
#menu-toggle {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 1.875rem; /* 30px */
}
.main-nav a {
  font-weight: 600;
  transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary-accent);
}

/* Hero Section */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Fallback */
  height: 100dvh; /* Dynamic Viewport Height for mobile */
  min-height: 37.5rem; /* 600px */
  overflow: hidden;
}
.hero.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  padding-top: 5rem; /* 80px */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}
.hero.slide.active-slide {
  opacity: 1;
  z-index: 2;
}
.hero.slide.active-slide h1,
.hero.slide.active-slide .motto,
.hero.slide.active-slide .subtitle,
.hero.slide.active-slide .hero-actions {
  animation: slideUp 1s ease forwards;
}
.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  opacity: 0;
}
.motto {
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--primary-accent);
  opacity: 0;
}
.subtitle {
  font-size: 1.2rem;
  max-width: 37.5rem; /* 600px */
  margin: 0 auto 2rem;
  opacity: 0;
}
.hero-actions {
  display: flex;
  gap: 1.25rem; /* 20px */
  justify-content: center;
  opacity: 0;
}
/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.9375rem 1.25rem; /* 15px 20px */
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover { background: var(--primary-accent); }
.slider-btn.prev { left: 1.25rem; /* 20px */ }
.slider-btn.next { right: 1.25rem; /* 20px */ }

/* Services Section */
.featured-services, .all-services {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); /* 300px */
  gap: 1.875rem; /* 30px */
}
.glass {
  background: var(--text-light);
  border: 0.0625rem solid #e2e8f0; /* 1px */
  border-radius: 0; /* SHARP EDGES */
  padding: 1.25rem; /* 20px */
  box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.05); /* 10px 30px */
  transition: all 0.3s ease;
}
.glass:hover {
  transform: translateY(-0.625rem); /* -10px */
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.1); /* 20px 40px */
  border-color: var(--primary-accent);
}
.service-img {
  width: 100%;
  height: 12.5rem; /* 200px */
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0.9375rem; /* 15px */
}
.service-card h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
}

/* Page Headers */
.page-header {
  padding-top: 9.375rem;
  padding-bottom: 5rem;
  background: var(--primary-dark);
  color: white;
  text-align: center;
}
.page-header h1 {
  font-size: 3rem;
  color: var(--primary-accent);
}

/* Contact / About generic sections */
.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem; /* 40px */
  align-items: center;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem; /* 12px */
  border: 0.0625rem solid #94a3b8; /* Darker border */
  border-radius: 0;
  font-family: inherit;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 0.125rem rgba(245, 158, 11, 0.5);
  background-color: #ffffff;
}
.form-group textarea {
  height: 9.375rem; /* 150px */
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding-top: 3.75rem;
  padding-bottom: 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px */
  gap: 2.5rem; /* 40px */
  margin-bottom: 2.5rem; /* 40px */
}
.footer h3, .footer h4 {
  color: var(--primary-accent);
}
.footer-links ul li {
  margin-bottom: 0.625rem; /* 10px */
}
.footer-links a:hover {
  color: var(--primary-accent);
}
.footer-bottom {
  text-align: center;
  padding-top: 1.25rem; /* 20px */
  border-top: 0.0625rem solid rgba(255,255,255,0.1); /* 1px */
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(1.25rem); } /* 20px */
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 48rem) { /* 768px */
  .menu-btn {
    display: block;
  }
  .nav-container {
    height: auto;
    padding: 1.25rem 1.25rem; /* Preserve left/right padding */
    flex-wrap: wrap; /* Allow the menu to drop below */
  }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1.25rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 1rem;
    border-top: 0.0625rem solid var(--glass-border);
    text-align: center;
  }
  #menu-toggle:checked ~ .main-nav {
    display: block;
  }
  
  /* Change Hamburger to X */
  #menu-toggle:checked ~ .menu-btn i::before {
    content: "\f00d"; /* FontAwesome fa-xmark */
  }
  
  /* Get a Quote Button Behavior */
  .header .btn { 
    display: none; 
  }
  #menu-toggle:checked ~ .btn {
    display: block;
    width: 100%;
    margin-top: 0;
    text-align: center;
  }
  .hero h1 { font-size: 2.5rem; }
  .motto { font-size: 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; padding: 0 1.25rem; }
  .hero-actions .btn { width: 100%; }
}
