/* ========================================= */
/* 1. LOCAL FONTS SETUP (Self-Hosted)        */
/* ========================================= */

/* --- AUDIOWIDE (For Headings) --- */
@font-face {
  font-family: 'Audiowide';
  /* The path "../" means: go UP one folder (out of Indexcss), then into assets */
  src: url('../fonts/Audiowide-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- RAJDHANI (For Body Text) --- */

/* Light (300) */
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/Rajdhani-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/Rajdhani-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/Rajdhani-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/Rajdhani-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- TEKO (For Story & Numbers) --- */

/* Light (300) */
@font-face {
  font-family: 'Teko';
  src: url('../fonts/Teko-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Teko';
  src: url('../fonts/Teko-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Teko';
  src: url('../fonts/Teko-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ========================================= */
/* 2. OLADAY LANDING THEME                   */
/* ========================================= */
:root {
  --gold: #d4af37;
  --dark: #050505;
  --card-dark: #121212;
  --text-grey: #a0a0a0;
  --font-head: 'Audiowide', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  /* Add Teko if you plan to use it later */
  --font-accent: 'Teko', sans-serif; 
}
/* ... The rest of your CSS continues here ... */


* {
  margin: 0; padding: 0; box-sizing: border-box;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* strictly forbids side-scrolling */
  margin: 0; 
  padding: 0;
}

body {
  background-color: var(--dark);
  color: #fff;
  font-family: var(--font-body);
  position: relative;
}

/* --- LOADER --- */
.loader-screen {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-logo {
  font-family: var(--font-head);
  font-size: 40px; color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 5px;
}
.loader-bar {
  width: 200px; height: 2px;
  background: #333;
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: ''; position: absolute; left: 0; top: 0;
  height: 100%; width: 0%; background: var(--gold);
  animation: load 1.5s ease forwards;
}
@keyframes load { to { width: 100%; } }

/* --- HEADER --- */
/* UPDATE THIS SECTION */
.landing-header {
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; /* matches left:0 to stretch full width without using 100% */
  width: auto; /* Allow auto width */
  padding: 30px 50px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 10;
}
.logo-text {
  font-family: var(--font-head);
  color: #fff; font-size: 24px;
}
.landing-nav a {
  color: #fff; text-decoration: none;
  margin-left: 30px; font-weight: 500;
  font-size: 16px; transition: 0.3s;
}
.contact-btn {
  border: 1px solid var(--gold);
  padding: 8px 20px; border-radius: 20px;
  color: var(--gold) !important;
}
.contact-btn:hover { background: var(--gold); color: #000 !important; }

/* --- HERO GATEWAY --- */

/* ========================================= */
/* HERO LOGO GROUP STYLES                    */
/* ========================================= */

.hero-logo-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* Space between logos */
  margin-bottom: 30px; /* Space above title */
  
  /* Initial State for Animation */
  opacity: 0;
  transform: translateY(-100px); /* Start above screen */
  animation: logoDropIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s forwards;
}

/* Individual Logos */
.float-logo {
  height: 320px; /* Adjust size as needed */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  
  /* Continuous Floating Movement */
  animation: logoFloat 4s ease-in-out infinite;
}


/* Add slight delay to second logo for natural feel */
.float-logo:nth-child(3) {
  animation-delay: 0.5s; 
}

/* The Vertical Line Divider */
.logo-divider {
  width: 3px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.8;
  position: relative; 
  left: -20px;
}

/* --- ANIMATIONS --- */

/* 1. Drop In Entrance */
@keyframes logoDropIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Gentle Floating Loop */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* Moves up slightly */
  }
}

/* --- RESPONSIVE ADJUSTMENT --- */
@media (max-width: 768px) {
  .float-logo {
    height: 155px; /* Smaller on mobile */
  }
  .logo-divider {
    height: 70px; /* Adjust divider height for mobile */
    left: -10px;  /* Adjust the nudge for mobile */
  }
  .hero-logo-group {
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow: visible; /* Allow the negative shift below to work */
    padding: 0;
    margin-left: -10%;

  }
}

.gateway-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 100px 20px 50px;
}

.hero-text-content {
  text-align: center; margin-bottom: 60px;
  opacity: 0; animation: fadeUp 1s ease 1.8s forwards;
}
.main-title {
  font-family: var(--font-head);
  font-size: 3rem; letter-spacing: 2px;
  margin-bottom: 10px;
}
.gold-text { color: var(--gold); }
.sub-title { color: var(--text-grey); font-size: 1.2rem; letter-spacing: 1px; }

/* --- THE CARDS CONTAINER --- */
.cards-container {
  display: flex;
  gap: 30px;
  width: 100%; max-width: 1200px;
  height: 500px; /* Fixed height for elegance */
}

/* --- INDIVIDUAL CARD STYLING --- */
.gateway-card {
  position: relative;
  flex: 1; /* All cards take equal space */
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid #333;
  cursor: pointer;
  
  /* Initial Entry Animation */
  opacity: 0; transform: translateY(50px);
  animation: cardEnter 0.8s ease forwards;
}

.card-auto { animation-delay: 2.0s; }
.card-logistics { animation-delay: 2.2s; }
.card-mech { animation-delay: 2.4s; }

/* Background Images */
.card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s ease;
}

/* UPDATE THESE IMAGES with your own paths */

/* The "../" tells the code to go UP one folder level to find the images */

.card-auto .card-bg { 
  background-image: url('../auto/images/BMWXM2.png');
  background-image: image-set(
    url('../auto/images/BMWXM2.webp') type('image/webp'),
    url('../auto/images/BMWXM2.jpeg') type('image/png')
  );
}

.card-logistics .card-bg { 
  background-image: url('../logistics/images/parcelB.png');
  background-image: image-set(
    url('../logistics/images/parcelB.webp') type('image/webp'),
    url('../logistics/images/parcelB.png') type('image/png')
  );
}

.card-mech .card-bg { 
  background-image: url('../mechanical/images/CAT_0232.JPG');
  background-image: image-set(
    url('../mechanical/images/CAT_0232.webp') type('image/webp'),
    url('../mechanical/images/CAT_0232.JPG') type('image/jpeg')
  );
}

/* Dark Overlay */
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  transition: 0.5s;
}

/* Content */
.card-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
}

.icon-circle {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold);
  margin-bottom: 20px;
  background: rgba(0,0,0,0.5);
  transition: 0.3s;
}

.gateway-card h2 {
  font-family: var(--font-head);
  font-size: 1.8rem; margin-bottom: 5px;
}
.gateway-card p {
  color: var(--text-grey); font-size: 0.9rem; margin-bottom: 20px;
  transform: translateY(0); transition: 0.3s;
}

.explore-btn {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  color: var(--gold);
  opacity: 0; transform: translateY(20px);
  transition: 0.3s;
}

/* --- HOVER EFFECTS --- */
.gateway-card:hover {
  flex: 1.5; /* Grow slightly wider */
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}
.gateway-card:hover .card-bg {
  transform: scale(1.1); /* Zoom image */
}
.gateway-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2));
}
.gateway-card:hover .icon-circle {
  background: var(--gold); color: #000;
}
.gateway-card:hover .explore-btn {
  opacity: 1; transform: translateY(0);
}


/*--------=====SLider-------*/
/* ========================================= */
/* LUXURY SEPARATOR & AD SLIDER              */
/* ========================================= */

/* 1. THE GOLD LINE (Thick Center, Thin Edges) */
.luxury-separator-line {
  width: 85%; /* Not full width */
  max-width: 1000px;
  height: 3px; /* The "Thick" part height */
  margin: 60px auto 60px; /* Space Top/Bottom */
  border-radius: 100%; /* Makes the tips rounded/sharp */
  
  /* The Gradient creates the "Thin at edge" effect by fading opacity */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--gold) 20%, 
    var(--gold) 80%, 
    transparent 100%
  );
  
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); /* Glow */
  opacity: 0.8;
}

/* 2. THE AD FRAME CONTAINER */
.ad-frame-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 100px; /* Space before Brand Story */
}

.ad-frame-container {
  width: 100%;
  max-width: 900px; /* The "Frame" Size */
  height: 450px;    /* Fixed Height */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  
  /* The Frame Styling */
  border: 1px solid #333;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* 3. THE SLIDES */
.ad-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; /* Hidden by default */
}

/* Media Styling (Image & Video) */
.ad-slide img, 
.ad-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures no black bars */
}

/* Caption Overlay */
.ad-caption {
  position: absolute;
  bottom: 30px; left: 30px;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.ad-caption h3 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 5px;
}
.ad-caption p {
  font-family: var(--font-body);
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}

/* 4. THE ANIMATION (Infinite Loop) */
/* Total Duration: 15s (3 slides x 5s each) 
   Each slide is visible for 5s (33% of timeline)
*/
.fade-cycle {
  animation: singleSlider 15s infinite;
}

@keyframes singleSlider {
  0% { opacity: 0; z-index: 1; }
  5% { opacity: 1; z-index: 2; }   /* Fade In */
  33% { opacity: 1; z-index: 2; }  /* Stay Visible */
  38% { opacity: 0; z-index: 1; }  /* Fade Out */
  100% { opacity: 0; z-index: 1; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .luxury-separator-line { margin: 40px auto; width: 90%; }
  
  .ad-frame-container { height: 250px; } /* Smaller frame on mobile */
  
  .ad-caption h3 { font-size: 18px; }
  .ad-caption p { font-size: 12px; }
}

/*----===---END---=====*/

/* --- BRAND STORY SECTION --- */
.brand-story {
  padding: 100px 50px;
  max-width: 1200px; margin: 0 auto;
}

.story-block {
  display: flex; align-items: center; gap: 50px;
  margin-bottom: 100px;
  opacity: 0; transform: translateY(30px);
  transition: 1s ease;
}
.story-block.visible { opacity: 1; transform: translateY(0); }

.story-block.reverse { flex-direction: row-reverse; }

.story-visual {
  flex: 1; height: 400px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid #333;
}
.story-visual img { width: 100%; height: 100%; object-fit: cover; }

.story-text { flex: 1; }
.chapter { color: var(--gold); font-family: var(--font-head); letter-spacing: 2px; display: block; margin-bottom: 10px; }
.story-text h3 { font-size: 2.5rem; font-family: 'Teko', sans-serif; margin-bottom: 20px; line-height: 1; }
.story-text p { color: var(--text-grey); font-size: 1.1rem; line-height: 1.6; }

/* --- FOOTER --- */
.landing-footer {
  text-align: center; padding: 50px 20px;
  border-top: 1px solid #222;
}
.landing-footer h2 { font-family: var(--font-head); margin-bottom: 20px; }
.footer-links a { color: #666; text-decoration: none; margin: 0 15px; transition: 0.3s; }
.footer-links a:hover { color: var(--gold); }
.copyright { color: #444; margin-top: 30px; font-size: 0.8rem; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .cards-container {
    flex-direction: column;
    height: auto;
  }
  .gateway-card {
    height: 300px;
    flex: none; /* Disable flex growth on mobile */
  }
  .story-block, .story-block.reverse {
    flex-direction: column;
  }
  .hero-text-content {
    margin-top: 50px;
  }
}

/* Animations */
@keyframes fadeUp {
  to { opacity: 1; }
}
@keyframes cardEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* FLOATING WHATSAPP BUTTON                  */
/* ========================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366; /* Official WhatsApp Green */
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* RESPONSIVE ADJUSTMENT */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}

/* ========================================= */
/* DIRECT CONTACT STRIP                      */
/* ========================================= */
.contact-strip {
  text-align: center;
  padding: 40px 20px;
  background: #0a0a0a; /* Slightly lighter than body dark */
  border-top: 1px solid #222;
}

.contact-strip p {
  color: #ccc;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.gold-num {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-head);
  margin-left: 5px;
}

/* ========================================= */
/* FOOTER REDESIGN (HQ Left)                 */
/* ========================================= */
.landing-footer {
  background: #000;
  padding: 60px 20px;
  border-top: 1px solid var(--gold); /* Gold line separates strip from footer */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Pushes HQ left, Group Name right */
  align-items: flex-start; /* Align to top */
  flex-wrap: wrap; /* responsive wrapping */
  gap: 40px;
}

/* LEFT COLUMN (HQ) */
.left-col {
  text-align: left;
}

.hq-title {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.address-line {
  color: #888;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.phone-line {
  color: #fff;
  font-size: 14px;
  margin-top: 15px;
  font-weight: 700;
}
.phone-line i { color: var(--gold); margin-right: 5px; }

/* RIGHT COLUMN (Links & Brand) */
.right-col {
  text-align: right;
}

.right-col h2 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin-left: 20px; /* Spacing on left since it's right-aligned */
  font-size: 14px;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  color: #444;
  margin-top: 20px;
  font-size: 12px;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .left-col, .right-col {
    text-align: center;
    width: 100%;
  }
  
  .footer-links a {
    display: block; /* Stack links on mobile */
    margin: 10px 0;
  }
  
  .contact-strip p {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}

/* ========================================= */
/* LUXURY SEPARATOR & CONTACT                */
/* ========================================= */

.separator-contact-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 60px; /* Spacing for the whole group */
  text-align: center;
  padding: 0 20px;
}

/* The Text Sitting on the Line */
.contact-on-line {
  font-family: var(--font-body);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 15px; /* Distance between text and line */
  text-transform: uppercase;
  font-weight: 500;
  
  /* Optional: Add a subtle glow to text */
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.contact-on-line .gold-num {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-left: 8px;
  font-weight: 700;
}

/* The Gold Line (Updated margins) */
.luxury-separator-line {
  width: 100%; /* Fills the wrapper */
  height: 3px; /* Thick Center */
  border-radius: 100%;
  
  /* The Gradient (Thick Center, Thin Edges) */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--gold) 20%, 
    var(--gold) 80%, 
    transparent 100%
  );
  
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  opacity: 0.8;
}


.separator-contact-wrapper > div:first-child {
  font-family: var(--font-head);   /* Audiowide (your heading font) */
  color: var(--gold);              /* matches your gold theme */
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;       /* optional */
  text-shadow: 0 0 10px rgba(0,0,0,0.8); /* same glow language */
}
/* RESPONSIVE ADJUSTMENT */
@media (max-width: 768px) {
  .separator-contact-wrapper { margin: 50px auto; }
  .contact-on-line { font-size: 0.9rem; }
  .contact-on-line .gold-num { font-size: 1.1rem; display: block; margin-top: 5px; }
}

/* ========================================= */
/* MOBILE OPTIMIZATION PATCH           */
/* (Add this to the bottom of index.css)     */
/* ========================================= */

@media (max-width: 768px) {

  /* 1. FIX HEADER CROWDING */
  .landing-header {
    padding: 20px; /* Reduce padding */
  }
  .landing-nav a {
    margin-left: 15px; /* Bring links closer */
    font-size: 14px;
  }
  /* Optional: Hide 'Our Story' text on very small screens to save space */
  /* .landing-nav a[href="#about-section"] { display: none; } */

  /* 2. FIX TYPOGRAPHY SIZES */
  .main-title {
    font-size: 2.2rem; /* Reduce from 3rem to fit screen */
    line-height: 1.1;
  }
  .sub-title {
    font-size: 1rem;
    padding: 0 10px; /* Prevent text touching screen edges */
  }

  /* 3. FIX HERO LOGO GROUP (Fixing your Typo here) */
  .logo-divider {
    height: 80px; 
    left: -10px;
  }
  .float-logo {
    height: 140px; /* Slightly smaller for better fit */
  }

  /* 4. COMPACT HERO CARDS (Crucial Fix) */
  /* We make cards shorter so users see more options at once */
  .gateway-card {
    height: 180px; /* Reduced from 300px */
    margin-bottom: 0; /* Let gap handle spacing */
  }
  
  .cards-container {
    gap: 15px; /* Reduce gap from 30px */
  }

  /* Adjust card content to fit smaller height */
  .card-content {
    padding: 20px;
    justify-content: center; /* Center content vertically */
  }
  .icon-circle {
    width: 40px; height: 40px; font-size: 20px; /* Smaller icons */
    margin-bottom: 10px;
  }
  .gateway-card h2 {
    font-size: 1.4rem; /* Smaller title */
  }
  .gateway-card p {
    font-size: 0.8rem;
    margin-bottom: 5px;
    line-height: 1.2;
  }
  /* Hide the "Explore" button text on mobile to save space, 
     or keep it small. Here we make it very subtle. */
  .explore-btn {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 1; /* Always show on mobile, don't wait for hover */
    transform: translateY(0);
  }

  /* 5. TIGHTEN VERTICAL SPACING */
  .gateway-hero {
    padding-top: 100px; /* Reduce top padding */
    padding-bottom: 40px;
  }
  .luxury-separator-line {
    margin: 40px auto; /* Reduce from 60px */
  }
  .ad-frame-section {
    margin-bottom: 60px; /* Reduce from 100px */
  }
  .brand-story {
    padding: 50px 20px; /* Reduce padding */
  }
  .story-block {
    margin-bottom: 60px; /* Reduce gap between story blocks */
    gap: 30px;
  }
  
  /* 6. FIX STORY VISUAL HEIGHT */
  .story-visual {
    height: 250px; /* Reduce from 400px so it doesn't dominate screen */
  }
}

/* ========================================= */
/* MOBILE HEADER ADJUSTMENT                  */
/* ========================================= */

@media (max-width: 768px) {
  
  /* 1. Hide "Our Story" specifically */
  .landing-nav a[href="#about-section"] {
    display: none; 
  }

  /* 2. Adjust alignment so Contact button sits nicely */
  .landing-nav {
    display: flex;
    align-items: center;
  }

  /* 3. Ensure the Contact button stays visible and looks good */
  .contact-btn {
    margin-left: 0; /* Remove left margin since Story is gone */
    font-size: 14px; /* Slightly smaller text */
    padding: 6px 16px; /* slightly compact padding */
  }

  /* 4. Tweak the header padding to maximize space */
  .landing-header {
    padding: 20px 25px; 
  }
}



.quarry-gallery {
  display: flex;
  justify-content: center;
  gap: 15px; /* Space between images */
  margin: 20px auto;
  padding: 0 20px;
  max-width: 1000px;
}

.quarry-item {
  position: relative; /* Crucial for the text overlay */
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px; /* Set your preferred rounding here */
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.quarry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the square without stretching */
  transition: transform 0.3s ease;
}

.quarry-item img:hover {
  transform: scale(1.1); /* Subtle zoom effect on hover */
}

/* Mobile Responsive: 2x2 grid on small screens */
@media (max-width: 600px) {
  .quarry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Position the container to allow absolute placement of text */
.quarry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* Matches your image rounding */
}

/* Overlay styling */
.quarry-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  text-align: left;
  pointer-events: none; /* Allows clicks to pass through to the image if needed */
}

/* Header styling to match "PREMIUM FLEET" */
.quarry-caption h3 {
  color: #D4AF37; /* The gold color from your theme */
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ensures readability on light images */
}




/* ========================================= */
/* LOGO IMAGE SAFETY PATCH                   */
/* ========================================= */

.float-logo {
  max-width: 45vw;
  height: 320px;
  width: auto;
  object-fit: contain;
}

/* OMEW artwork fills its canvas edge-to-edge (no built-in whitespace
   like the other two marks) — render it smaller so all three READ the
   same size. */
.float-logo--omew {
  height: 255px;
}

@media (max-width: 768px) {
  .float-logo {
    height: 140px;
    max-width: 42vw;
  }
  .float-logo--omew {
    height: 112px;
  }
}



/* ========================================= */
/* INDEX MOBILE 20–25% ZOOM-OUT PATCH        */
/* Paste at the VERY BOTTOM of index.css     */
/* ========================================= */

@media (max-width: 768px) {

  html {
    font-size: 82%;
  }

  .landing-header {
    padding: 14px 16px;
  }

  .gateway-hero {
    min-height: auto;
    padding: 75px 14px 35px;
  }

  .hero-logo-group {
    gap: 10px;
    margin-left: 0;
    margin-bottom: 8px;
    transform: scale(0.82);
    transform-origin: center;
  }

  .float-logo {
    height: 125px;
    max-width: 35vw;
  }

  .logo-divider {
    height: 48px;
    width: 2px;
    left: 0;
  }

  .hero-text-content {
    margin-top: 5px;
    margin-bottom: 28px;
  }

  .main-title {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .sub-title {
    font-size: 0.85rem;
  }

  .cards-container {
    gap: 10px;
    width: 94%;
    max-width: 94%;
    margin: 0 auto;
  }

  .gateway-card {
    height: 145px;
    border-radius: 15px;
  }

  .card-content {
    padding: 15px;
  }

  .icon-circle {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .gateway-card h2 {
    font-size: 1.05rem;
  }

  .gateway-card p {
    font-size: 0.72rem;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .explore-btn {
    font-size: 0.62rem;
  }

  .ad-frame-container {
    height: 210px;
    max-width: 94vw;
    border-radius: 16px;
  }

  .quarry-gallery {
    gap: 10px;
    padding: 0 14px;
  }

  .separator-contact-wrapper {
    margin: 35px auto;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .brand-story {
    padding: 38px 16px;
  }

  .story-visual {
    height: 210px;
  }

  .story-text h3 {
    font-size: 2rem;
  }

  .story-text p {
    font-size: 0.95rem;
  }
}

/* ========================================= */
/* QUARRY SECTION - REDUCE BY ABOUT 20%      */
/* ========================================= */

@media (max-width: 768px) {
  .separator-contact-wrapper {
    max-width: 80%;
    margin: 28px auto 36px;
    padding: 0 10px;
  }

  .separator-contact-wrapper > div:first-child {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .contact-on-line {
    font-size: 0.78rem;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .contact-on-line .gold-num {
    font-size: 1rem;
    margin-top: 4px;
  }

  .quarry-gallery {
    gap: 10px;
    padding: 0 10px;
    margin: 14px auto;
  }

  .quarry-item {
    border-radius: 10px;
  }

  .quarry-caption {
    bottom: 10px;
    left: 10px;
  }

  .quarry-caption h3 {
    font-size: 1.2rem;
  }

  .luxury-separator-line {
    margin-top: 24px;
  }
}


/* ========================================= */
/* STORY IMAGE EXACT SIZE PATCH - MOBILE     */
/* ========================================= */

@media (max-width: 768px) {

  /* DevLog1.png — reduce by 20% */
  .story-visual:has(img[src="./public/assets/logistics/images/DevLog1.png"]) {
    height: 200px;
  }

  /* Engine_0250.JPG — reduce by 30% */
  .story-visual:has(img[src="./public/assets/mechanical/images/Engine_0250.JPG"]) {
    height: 155px;
  }

}