:root {
  --primary: #1a1a1a;
  /* Softer main background */
  --secondary: #222222;
  /* Section backgrounds */
  --accent: #8b0000;
  /* Your red accent - kept strong */
  --text: #f0f0f0;
  /* Warmer, brighter text */
  --text-light: #cccccc;
  --border: #333333;
}

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  padding-top: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.97);
  /* Slightly lighter than before */
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding:
    calc(1.2rem + env(safe-area-inset-top)) calc(5% + env(safe-area-inset-right)) 1.2rem calc(5% + env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  /* Desktop / larger screens */
  width: auto;
  transition: height 0.3s ease;
  /* smooth resize if you want */
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.desktop-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.hamburger {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  align-self: center;
  /* ← keeps it vertically centered */
  margin-top: 0;
  /* ensure no unwanted margin */
  padding: 0.5rem;
  /* makes tap area bigger and more reliable */
  line-height: 1;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  transition: left 0.4s ease;
  padding: calc(80px + env(safe-area-inset-top)) calc(10% + env(safe-area-inset-right)) 0 calc(10% + env(safe-area-inset-left));
  box-sizing: border-box;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin: 1.5rem 0;
}

.mobile-menu a {
  color: white;
  font-size: 1.6rem;
  text-decoration: none;
}

/* ===================== HERO & BACKGROUND IMAGE ===================== */
.hero {
  min-height: 100svh;
  /* Best for hero on mobile – respects Safari UI */
  padding-top: calc(85px + env(safe-area-inset-top));
  /* navbar height + safe area */
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)),
    url("content/22CreedCarbonTwins1-scaled.webp") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

/* Fallback for older browsers */
.hero {
  min-height: 100vh;
}

@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.hero-content .tagline {
  color: #ccc;
  font-size: 1.35rem;
}

.hero-content h1 {
  font-size: 3.8rem;
  margin: 0.5rem 0;
}

.hero-content .subtitle {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.btn {
  padding: 15px 38px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn:hover {
  background: #a00000;
  transform: translateY(-4px);
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--secondary);
  padding: 110px 0;
}

.about-content {
  max-width: 920px;
  margin: 0 auto;
  font-size: 1.18rem;
  line-height: 1.82;
  color: #e0e0e0;
}

.about-content p {
  margin-bottom: 2.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about h2 {
  margin-bottom: 3rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: 110px 0;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ===================== SERVICES & TESTIMONIALS ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #252525;
  /* Brighter card background */
  padding: 2.8rem 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #333333;
  /* Subtle border for definition */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  /* Restored nice shadow */
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  /* Stronger hover shadow */
  border-color: var(--accent);
}

.service-card h3 {
  color: var(--accent);
  margin: 1.5rem 0 1rem;
  font-size: 1.45rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.75;
}

.testimonials {
  background: var(--secondary);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: #252525;
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid #333333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ===================== GALLERY SLIDER (NOW RESPONSIVE) ===================== */
.gallery {
  background: var(--secondary);
  padding: 100px 0;
}

.slider-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.6s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 500px;
  /* Desktop height */
  object-fit: cover;
  cursor: pointer;
}

@media (max-width: 767px) {
  .slide {
    height: 380px;
    /* Smaller & better on phones */
  }
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: none;
  width: 54px;
  height: 54px;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  user-select: none;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.prev-btn::before {
  content: "←";
}

.next-btn::before {
  content: "→";
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #8b0000;
  transform: scale(1.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 8px;
}

.lightbox.active {
  display: flex;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 3rem auto 0;
}

.next-step {
  text-align: center;
  margin-bottom: 2rem;
}

.required {
  color: #8b0000;
  font-weight: normal;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ddd;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b0000;
}

#form-status {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 500;
}

#form-status.success {
  color: #4caf50;
}

#form-status.error {
  color: #f44336;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s;
}

#back-to-top:hover {
  background: #a00000;
  transform: scale(1.1);
}

.facebook-text {
  text-align: center;
}

/* ===================== MOBILE TWEAKS ===================== */
@media (max-width: 767px) {
  body {
    padding-top: 0;
  }

  .hero {
    padding-top: calc(72px + env(safe-area-inset-top));
    min-height: 100svh;
  }

  header {
    padding:
      calc(0.8rem + env(safe-area-inset-top)) calc(5% + env(safe-area-inset-right)) 0.8rem calc(5% + env(safe-area-inset-left));
    min-height: calc(60px + env(safe-area-inset-top));
  }

  .logo img {
    height: 38px;
  }

  .hamburger {
    display: block;
    font-size: 1.9rem;
  }

  .desktop-nav {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 2.2rem 1.5rem;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
    font-size: 1.9rem;
    background: rgba(0, 0, 0, 0.55);
  }

  .slider-btn:hover {
    background: rgba(0, 0, 0, 0.85);
  }

  .prev-btn {
    left: 12px;
  }

  .next-btn {
    right: 12px;
  }
}