html {
  scroll-behavior: smooth;
}

:root {
  --accent: #FF3503;
  --nav-text: #000000;
  --main-text: #000000;
  --section-title: #222222;
  --contact-title: #FFFFFF;
  --dark: #222222;
  --light-gray: #f4f4f4;
  --medium-gray: #8E8E8E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7DF9FF;
    --nav-text: #FFFFFF;
    --main-text: #FFFFFF;
    --section-title: #FFFFFF;
    --contact-title: #FFFFFF;
    --dark: #111111;
    --light-gray: #222222;
    --medium-gray: #333333;
  }
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--main-text);
  background-color: #fff;
  margin: 0;
}

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

.site-header {
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0) 0%,
      rgba(142,142,142,0.3) 35%,
      rgba(142,142,142,0.7) 60%,
      rgba(142,142,142,1) 100%
    ),
    url("images/Header.png");

  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  color: var(--nav-text);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 105px;
  gap: 25px;
}

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

.logo img {
  height: 78px;
  width: auto;
}

.logo-dark {
  display: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  position: relative;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

nav a:hover::after {
  transform: scaleX(1);
}

.header-phone {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.header-phone:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 0;
  color: white;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: heroFade 12s infinite;
}

.hero-slider img:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider img:nth-child(2) {
  animation-delay: 4s;
}

.hero-slider img:nth-child(3) {
  animation-delay: 8s;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.15) 0%,
    rgba(51,51,51,0.7) 52%,
    rgba(51,51,51,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 90px;
  color: white;
}

.hero-tagline {
  color: var(--accent);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 58px;
  line-height: 1.08;
  margin-bottom: 25px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 35px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@keyframes heroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

.button,
button {
  background-color: var(--accent);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
}

.button:hover,
button:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

.section {
  padding: 95px 0;
  color: var(--main-text);
}

.section h2 {
  font-size: 38px;
  margin: 0 0 35px;
  text-align: center;
  position: relative;
  display: block;
  color: var(--section-title);
}

.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 90px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section h2 span,
#about h2 span {
  color: var(--accent);
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 20px;
  line-height: 1.8;
}

.cards {
  display: flex;
  gap: 24px;
}

.card {
  background-color: white;
  color: #000;
  padding: 35px;
  border: 1px solid #ddd;
  border-radius: 12px;
  flex: 1;
  min-height: 240px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
  margin: 0 0 15px;
  font-size: 24px;
}

.card p {
  font-size: 17px;
  line-height: 1.7;
}

.service-highlight {
  margin-top: 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-highlight div {
  background: var(--dark);
  color: white;
  padding: 35px;
  border-left: 5px solid var(--accent);
}

.service-highlight h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 24px;
}

.service-highlight p {
  font-size: 17px;
  line-height: 1.7;
}

.light {
  background-color: var(--medium-gray);
}

.about-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-content p {
  font-size: 21px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.about-points {
  display: grid;
  gap: 18px;
}

.about-points div {
  background: #222;
  color: white;
  padding: 25px;
  border-left: 5px solid var(--accent);
}

.about-points strong {
  display: block;
  color: var(--accent);
  font-size: 32px;
  margin-bottom: 5px;
}

.about-points span {
  font-size: 16px;
  font-weight: bold;
}

.specialty {
  background-color: var(--light-gray);
}

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

.service-box {
  background: white;
  color: #000;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 12px;
  min-height: 235px;
  transition: all 0.3s ease;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-box h3 {
  margin: 0 0 15px;
  color: #222;
  font-size: 22px;
}

.service-box p {
  font-size: 16px;
  line-height: 1.7;
}

.feature-row {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-row div {
  background: #222;
  color: white;
  padding: 40px;
  border-radius: 12px;
}

.feature-row h3 {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 26px;
}

.feature-row p {
  font-size: 18px;
  line-height: 1.8;
}

.process {
  background: white;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.step {
  background: #f4f4f4;
  color: #000;
  padding: 35px;
  border-radius: 12px;
  border-top: 5px solid var(--accent);
}

.step span {
  display: block;
  color: var(--accent);
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 24px;
  margin: 0 0 15px;
}

.step p {
  font-size: 17px;
  line-height: 1.7;
}

.contact {
  background-color: #222;
  color: white;
  text-align: center;
}

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

.contact p {
  font-size: 20px;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-details {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-details p {
  margin: 0;
  font-size: 20px;
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.contact-details a:hover {
  text-decoration: underline;
}

form {
  max-width: 650px;
  margin: 35px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea {
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  color: #000;
}

textarea {
  min-height: 140px;
}

footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 22px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #222;
  }

  .logo-light {
    display: none;
  }

  .logo-dark {
    display: block;
  }

  .card,
  .service-box,
  .step {
    background-color: #333;
    color: white;
    border-color: #555;
  }

  .card h3,
  .service-box h3,
  .step h3 {
    color: white;
  }

  .process {
    background: #222;
  }
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    width: 60%;
    padding: 70px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .nav {
    gap: 18px;
  }

  nav {
    gap: 14px;
  }

  .header-phone {
    padding: 9px 12px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    padding: 15px 0;
  }

  nav {
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav a {
    margin: 8px;
  }

  .header-phone {
    margin-top: 10px;
  }

  .hero {
    justify-content: center;
    text-align: center;
    min-height: 620px;
  }

  .hero::after {
    background: rgba(51,51,51,0.78);
  }

  .hero-content {
    width: 90%;
    padding: 60px 25px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section {
    padding: 75px 0;
  }

  .section h2 {
    font-size: 32px;
  }

  .section-intro {
    font-size: 18px;
  }

  .cards,
  .service-highlight,
  .about-layout,
  .feature-row,
  .process-steps {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-box {
    min-height: auto;
  }

  .contact-details {
    flex-direction: column;
    gap: 10px;
  }
}

/* Smaller mobile header */
@media (max-width: 600px) {
  .site-header {
    background-position: center;
  }

  .nav {
    min-height: auto;
    padding: 8px 0;
    gap: 6px;
  }

  .logo img {
    height: 42px;
  }

  nav {
    gap: 6px 10px;
    line-height: 1.1;
  }

  nav a {
    font-size: 13px;
    margin: 2px 4px;
  }

  nav a::after {
    bottom: -3px;
  }

  .header-phone {
    margin-top: 2px;
    padding: 6px 10px;
    font-size: 13px;
    border-width: 1px;
  }
}

@media (max-width: 400px) {
  .logo img {
    height: 36px;
  }

  nav a {
    font-size: 12px;
    margin: 1px 3px;
  }

  .header-phone {
    font-size: 12px;
    padding: 5px 8px;
  }
}
