:root{
  --red:#c40000;
  --black:#111;
  --white:#fff;
  --gray:#f5f5f5;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}
/* GLOBAL SECTION SPACING */
section {
  padding: 70px 40px;
}
/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 80px 40px 60px;
  overflow: hidden;
}

/* VIDEO GRID */
.video-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  z-index: -2;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* HERO CONTENT */
.hero-content {
  max-width: 600px;
  color: white;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* BUTTON */
.btn {
  display: inline-block;
  background: #ff6600;
  color: rgb(146, 43, 43);
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* CALL BOX */
.call-box {
  margin-top: 25px;
  background: white;
  color: #333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.call-box h3 {
  margin-bottom: 15px;
}

.call-box input,
.call-box textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


.call-box button {
  width: 100%;
  padding: 12px;
  background: #0f0f0f;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* SERVICES SECTION */
.services {
  background: #f7f7f7;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

body{
  background:#fff;
  color:#222;
  line-height:1.6;
}

/* NAV */
header{
  background:var(--black);
  color:#fff;
  padding:15px 40px;
  position:sticky;
  top:0;
  z-index:100;
}

nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

nav h1{
  color:var(--red);
  font-size:22px;
}

nav ul{
  list-style:none;
  display:flex;
  gap:25px;
}

nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
}

nav a:hover{
  color:var(--red);
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-group img {
  height: 45px; /* adjust if needed */
  width: auto;
}

nav h1 {
  color: var(--red);
  font-size: 22px;
  white-space: nowrap;
}
.logo-group img {
  transition: transform 0.2s ease;
}

.logo-group img:hover {
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .logo-group img {
    height: 36px;
  }

  nav h1 {
    font-size: 18px;
  }
}

/* HERO */
.hero{
  position: relative;
  min-height: 85vh; /* FULL SCREEN */
  overflow: hidden;  /* PREVENT OVERLAP */
  padding: 90px 40px;
  color: #fff;
 

}

.hero h2{
  font-size:42px;
  margin-bottom:15px;
}

.hero p{
  max-width:700px;
  margin-bottom:25px;
}

.btn{
  background:var(--red);
  color:#fff;
  padding:14px 26px;
  border:none;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

/* CALL FORM */
.call-box{
  background:#fff;
  padding:25px;
  border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  margin-top:40px;
}

.call-box h3{
  color:var(--red);
  margin-bottom:15px;
}

.call-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:15px;
}

.call-grid input{
  padding:12px;
  border:1px solid #ccc;
  border-radius:5px;
}

.call-grid button{
  grid-column:span 2;
}

/* SECTIONS */
section{
  padding:70px 40px;
}

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

/* SERVICES */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:25px;
}

.card{
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
}

.card h3{
  background:var(--black);
  color:#fff;
  padding:12px;
}

.card ul{
  padding:15px;
}

.card li{
  margin-bottom:8px;
}

/* SLOGAN */
.slogan{
  background:var(--black);
  color:#fff;
  text-align:center;
  padding:50px 30px;
}

.slogan h2{
  color:var(--red);
}

/* FOOTER */
footer{
  background:#000;
  color:#aaa;
  padding:30px;
  text-align:center;
}

@media(max-width:600px){
  .hero h2{font-size:32px;}
  .call-grid button{grid-column:span 1;}
}

/* SLIDESHOW */
.slideshow {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}
 

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-video.active {
  opacity: 1;
}

/* Overlay stays on top */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  .video-wrapper {
    display: none;
  }

  .hero {
    background:
      linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
      url("Images/efgcar.jpg") center/cover no-repeat;
  }
}
/* ===== MOBILE NAV FIX ===== */
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-group {
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding: 0;
  }

  nav li {
    font-size: 14px;
  }
}
.mobile-title { display: none; }

@media (max-width: 768px) {
  .desktop-title { display: none; }
  .mobile-title { display: block; }
}
