/* ==========================================================================
   1. BASE RESET & COLOR VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');  

:root {
  --bg-color: #000000;
  --accent-color: #c9a86a;
  --text-color: #ffffff;
  --card-bg: #121212;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Tahoma', 'Arial', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. DESKTOP NAVBAR (Floating Top-Middle Pill Design)
   ========================================================================== */
.Navbar {
  position: absolute;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: rgba(26, 26, 26, 0.9);
  padding: 12px 30px;
  border-radius: 30px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 20px rgba(201, 168, 106, 0.2);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.Navbar a {
  color: var(--text-color);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 8px;
}

.Navbar a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   3. HERO & HEADER LAYOUT
   ========================================================================== */
.Main_Grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.Hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), 
              url('./img/Herobg.jpg') center/cover no-repeat; 
  display: flex;
  flex-direction: column;
}

.Top {
  display: flex;
  align-items: center;
  padding: 25px 5%;
  width: 100%;
}

.Logo img {
  max-height: 60px;
}

#Top_Contact {
  display: flex;
  gap: 12px;
  margin-left: auto; 
  margin-right: 15px;
}

#Top_Contact a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-speed);
}

#Top_Contact a:hover {
  background-color: var(--accent-color);
  color: #000000;
}

.Language select {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.Middle.Content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

.Slogan [data-key="Slogan"] {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  color: var(--accent-color);
}

.Slogan_Divider {
  border: none;
  height: 2px;
  background-color: var(--accent-color);
  width: 120px;
  margin: 10px auto;
}

.Slogan [data-key="Sub_Slogan"] {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #dddddd;
}

.Hero_Phone_Bubble {
  margin-top: 25px;
  display: inline-flex;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--accent-color);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(201, 168, 106, 0.2);
}

.Hero_Phone_Bubble a {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
}

.Hero_Phone_Bubble a:hover {
  color: #ffffff;
}

/* ==========================================================================
   4. SERVICES & SECTION HEADERS
   ========================================================================== */
.Services_Wrapper {
  padding: 50px 5%;
  background-color: var(--bg-color);
  border-top: 1px solid var(--accent-color);
}

.Header_Services {
  text-align: center;
  color: var(--accent-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.Car_Purchase_Header, .Consumables_Header {
  margin-bottom: 40px;
  text-align: center;
}

.Car_Purchase_Header h2, .Consumables_Header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text-color, #ffffff);
  margin-bottom: 15px;
  font-weight: bold;
}

.Car_Purchase_Header p, .Consumables_Header p {
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1rem;
}

/* ==========================================================================
   5. ROUTE TIMELINE (DIAMONDS)
   ========================================================================== */
.Route_Timeline {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 10px;
}

.Diamond {
  width: 44px;
  height: 44px;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  transform: rotate(45deg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.2);
}

.Diamond span {
  transform: rotate(-45deg);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.Route_Content h3 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 6px;
  transition: color var(--transition-speed);
}

.Route_Content h3:hover {
  color: var(--accent-color);
}

.Route_Content p {
  color: #cccccc;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}

html[lang="en"] .Route_Content p {
  direction: ltr;
  text-align: center;
}


/* Vertical view for Mobile/Tablet (< 769px) */
@media screen and (max-width: 768px) {
  .Route_Timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: calc(10px + 25px);
    width: 2px;
    background-color: var(--accent-color);
    z-index: 1;
  }

  .Route_Item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    z-index: 2;
  }

  .Route_Node {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
  }

  .Route_Content p {
    text-align: right; /* Restored proper RTL alignment */
  }
}

/* Horizontal view for PC (>= 769px) */
@media screen and (min-width: 769px) {
  .Route_Timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .Route_Timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 1;
  }

  .Route_Item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    z-index: 2;
  }

  .Route_Node {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
  }
}

/* ==========================================================================
   6. CONSUMABLES & SPARE PARTS GRID SECTION
   ========================================================================== */
.Consumables_Section {
  padding: 40px 0;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Base Mobile Grid Layout (2 Columns) */
.Consumables_Grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  justify-items: center;
}

.Consumables_Item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.Icon_Circle {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  background-color: transparent;
  transition: all var(--transition-speed) ease;
}

.Icon_Circle i {
  font-size: 2.2rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

/* Fixed label size on mobile so text fits inside screen */
.Consumables_Item span {
  color: #cccccc;
  font-size: 1rem; 
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.Consumables_Item:hover .Icon_Circle {
  background-color: rgba(201, 168, 106, 0.1);
  box-shadow: 0 0 15px rgba(201, 168, 106, 0.3);
}

.Consumables_Item:hover .Icon_Circle i {
  transform: scale(1.1);
}

/* Tablet View: 3 Columns */
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .Consumables_Grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
  }
  
  .Icon_Circle {
    width: 100px;
    height: 100px;
  }
  
  .Consumables_Item span {
    font-size: 1.05rem;
  }
}

/* PC View: 6 Columns Horizontal */
@media screen and (min-width: 1024px) {
  .Consumables_Grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  
  .Icon_Circle {
    width: 110px;
    height: 110px;
  }
  
  .Icon_Circle i {
    font-size: 2.5rem;
  }
  
  .Consumables_Item span {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   7. FOOTER & MAP SECTION
   ========================================================================== */
.Footer {
  padding: 60px 5% 40px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--accent-color);
  background-color: var(--bg-color);
  width: 100%;
}

.Menu_bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.Menu_bottom ul {
  display: flex;
  list-style: none;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.Bottom_Contact {
  width: 100%;
  max-width: 900px;
  height: 400px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--accent-color);
  margin: 0 auto;
}

.Bottom_Contact iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  filter: grayscale(80%) invert(90%);
}

.Bottom_Contact .Social_Buttons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--accent-color);
  display: flex;
  gap: 12px;
}

.Map_Phone_Overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--accent-color);
  backdrop-filter: blur(5px);
}

.Map_Phone_Overlay a {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 0.95rem;
}

.Disclaimer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #888888;
  border-top: 1px solid #1a1a1a;
  background-color: #000000;
}

/* ==========================================================================
   8. MOBILE NAVIGATION & OVERLAYS (< 991px)
   ========================================================================== */
@media screen and (max-width: 991px) {
  body {
    padding-bottom: 90px !important; 
  }

  .Top {
    flex-wrap: wrap !important;
    padding: 15px !important;
  }
  
  .Logo { order: 1 !important; }
  .Language { order: 2 !important; margin-left: auto !important; }

  #Top_Contact { 
    order: 3 !important;
    width: 100% !important; 
    justify-content: center !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 20px !important; 
  }

  .Navbar {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 10px env(safe-area-inset-bottom, 0px) 10px !important;
    background-color: #000000 !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 2px solid var(--accent-color) !important;
    box-shadow: 0 -4px 20px rgba(201, 168, 106, 0.3) !important;
    transform: none !important;
    z-index: 2147483647 !important;
  }

  .Navbar a {
    color: var(--text-color) !important;
    white-space: nowrap !important;
    font-size: 0.80rem !important;
    padding: 6px 10px !important;
    border-radius: 0 !important;
  }
  
  .Navbar a:hover {
    color: var(--accent-color) !important;
  }
}

@media screen and (max-width: 768px) {
  .Bottom_Contact {
    height: 400px !important;
  }

  .Bottom_Contact .Social_Buttons {
    top: 20px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    padding: 8px 15px !important;
  }

  .Map_Phone_Overlay {
    bottom: 15px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: 90% !important;
    text-align: center !important;
  }
}