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

:root {
  --primary: #d85c42;
  --secondary: #08133c;
  --text: #333333;
  --light-text: #666666;
  --bg: #ffffff;
  --light-bg: #f8f9fa;
  --border: #e9ecef;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body,
html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  scroll-behavior: smooth;
}

/* Header */
.header {
  background-color: var(--secondary);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.15rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo i {
  color: white;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
  font-weight: bold;
}

.nav a:hover {
  color: var(--primary);
  text-decoration: 2px underline;
  text-underline-offset: 7px;
  /* transform: scale(1.1); */
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 0.2rem 0.75rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
}

.contact-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

.bottom-header {
  display: none;
  justify-content: space-evenly;
  background-color: var(--primary);
  color: white;
  padding: 10px;
  box-shadow: var(--shadow);
}

.contact-icons {
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 1.4rem;
  border: var(--border);
  border-radius: 8px;
  font-weight: bold;
}

.contact-icons:first-child {
  color: var(--primary);
  background-color: white;
}

.contact-icons:last-child {
  color: #25d366;
  background-color: var(--secondary);
}

/* Hero Section */
.hero {
  /* background: linear-gradient(135deg, var(--secondary) 0%, #0a1a4a 100%); */
  color: var(--white);
  padding: 8rem 2rem 4rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* margin-top: 40px; */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/ak-heating-plumbing.webp") center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(8, 19, 60, 0.85) 0%,
    rgba(8, 19, 60, 0.7) 50%,
    rgba(216, 92, 66, 0.6) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gas-safe {
  color: #ffd700;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--secondary);
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
}

.section-light {
  background: var(--light-bg);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.gas-safe {
  width: 60px;
}

.qualifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.qualification-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.qualification-card:hover {
  transform: translateY(-5px);
}

.qualification-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.qualification-card h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

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

/* Work Gallery */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.work-item:hover .work-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Areas Section */
.areas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.area-tag {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.area-tag:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

.stars {
  color: #ffd700;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary);
}

/* Contact Section */
.contact {
  display: none;
  background: var(--secondary);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary);
  width: 20px;
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}

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

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.tenet-digital {
  background: var(--secondary);
  text-align: center;
  color: white;
  padding: 0.5rem;
}

.tenet-digital a {
  color: var(--primary);
  font-weight: bold;
}

/* CTA Section */

.section.dark {
  background: var(--secondary);
}

.section.dark h2,
.section.dark p {
  color: white;
}

.cta-buttons.bottom {
  text-align: center;
}

.cta-buttons.bottom > .btn-primary {
  background-color: #25d366;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  padding: 1.5rem;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 2001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Mobile Responsive */

@media (max-width: 1030px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    background-color: var(--primary);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    border: 1px solid white;
  }

  .nav.active a:hover {
    color: var(--secondary);
  }
  .contact-header {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .section {
    padding: 3rem 1rem;
  }

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

  .about-image {
    order: -1;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.15rem;
  }

  .logo i {
    font-size: 1.25rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 550px) {
  .bottom-header {
    display: flex;
  }

  .hero {
    margin-top: 20px;
  }
}

.back-to-top-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.back-to-top-btn {
  background-color: var(--secondary); /* dark gray (like Tailwind's gray-800) */
  color: white;
  border: none;
  border-radius: 9999px; /* fully rounded */
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top-btn:hover {
  background-color: #111827; /* darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
