/* --- Root Variables & Typography --- */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap");

:root {
  --navy-deep: #0a2647;
  --navy-light: #144272;
  --gold: #c5a059;
  --gold-hover: #e2c287;
  --silver: #f1f4f9;
  --text-main: #334155;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  /* Prevents horizontal scroll from hidden menus */
  overflow-x: hidden;
}

/* --- Global Utilities --- */
.section-p1 {
  padding: 100px 8%;
}
.accent {
  color: var(--gold);
}
.line {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 20px 0;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--navy-deep);
}

/* --- Header & Navigation (Desktop Fixes) --- */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 90px;
}

#header .logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

#navbar {
  display: flex;
  list-style: none;
  align-items: center;
}
#navbar li {
  padding: 0 15px;
  position: relative;
}

#navbar li a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-deep);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#navbar li a:hover,
#navbar li a.active {
  color: var(--gold);
}

/* Active Indicator Line */
#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background: var(--gold);
  position: absolute;
  bottom: -5px;
  left: 15px;
}

#mobile {
  display: none;
  align-items: center;
}
#close {
  display: none;
}

/* --- Mobile Navigation Fixes --- */
@media (max-width: 991px) {
  #header {
    padding: 15px 5%;
    height: 80px;
  }

  #mobile {
    display: flex;
    font-size: 24px;
    cursor: pointer;
    color: var(--navy-deep);
  }

  #navbar {
    display: none; /* Hidden completely to prevent scrolling to the right */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background-color: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 100px 0 0 40px;
    z-index: 1001;
  }

  #navbar.active {
    display: flex; /* Only appears when bar is clicked */
    animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #close {
    display: block;
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--navy-deep);
    font-size: 24px;
  }
}

/* --- Hero Section --- */
#hero {
  height: 91vh;
  width: 100%;
  background: linear-gradient(rgba(10, 38, 71, 0.8), rgba(10, 38, 71, 0.6)),
    url("images/hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.company-badge {
  border: 1px solid var(--gold);
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

#hero h1 {
  font-size: clamp(32px, 5vw, 65px);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 900px;
  line-height: 1.1;
}
#hero p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 35px;
  opacity: 0.9;
}

.btn-gold {
  padding: 16px 40px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* --- About & Stats --- */
.container-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
}
.stat-box {
  background: var(--silver);
  padding: 20px 10px;
  border-radius: 8px;
  text-align: center;
}
.stat-box strong {
  font-size: 24px;
  color: var(--navy-deep);
  display: block;
}
.stat-box span {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}
.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 15px 15px 0px var(--gold);
}

/* --- Contact Section (Mobile Optimized) --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background: var(--navy-deep);
  color: var(--white);
  padding: 50px;
}
.contact-info h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 28px;
}
.info-link {
  display: flex;
  margin-top: 30px;
  gap: 15px;
  align-items: center;
}
.info-link i {
  width: 45px;
  height: 45px;
  background: rgba(197, 160, 89, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}
.info-link strong {
  font-size: 14px;
  word-break: break-all;
}

.contact-form {
  padding: 50px;
  background: #fcfcfc;
}
.form-row {
  display: flex;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 14px;
}

@media (max-width: 768px) {
  .section-p1 {
    padding: 60px 5%;
  }
  .container-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img {
    order: -1;
  } /* Image on top for mobile */

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 40px 30px;
  }
  .contact-form {
    padding: 40px 30px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }

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

/* --- Logistics & Products --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.p-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}
.p-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.p-details {
  padding: 25px;
}

.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.log-card {
  background: var(--silver);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: #05162a;
  color: var(--white);
  padding: 80px 8% 30px 8%;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.f-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* --- Product Section Enhancements --- */
#products .section-header p {
  margin: 0 auto 50px;
  color: #64748b;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.p-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.p-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(10, 38, 71, 0.1);
}

.p-img-wrapper {
  overflow: hidden;
  height: 220px;
}

.p-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p-card:hover .p-img-wrapper img {
  transform: scale(1.1);
}

.p-tag {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  background: var(--navy-deep);
  color: var(--gold);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.p-details {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.p-details h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--navy-deep);
}

.p-details p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
  height: 45px; /* Keeps card heights consistent */
  overflow: hidden;
}

.p-specs {
  list-style: none;
  background: var(--silver);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.p-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--navy-deep);
}

.p-specs li:last-child {
  margin-bottom: 0;
}

.p-specs li span {
  color: #94a3b8;
  font-weight: 400;
}

.p-specs li strong {
  color: var(--navy-light);
  font-weight: 700;
}

/* Product Button */
.p-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--navy-deep);
  color: var(--navy-deep);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.p-btn:hover {
  background: var(--navy-deep);
  color: var(--gold);
}

/* --- Logistics Modern Enhancements --- */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.log-card {
  background: #fff;
  padding: 60px 40px 40px;
  border-radius: 20px;
  position: relative;
  border: 1px solid #f1f5f9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.log-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(10, 38, 71, 0.08);
}

/* Number Indicator */
.log-number {
  position: absolute;
  top: 25px;
  left: 40px;
  font-size: 40px;
  font-weight: 900;
  color: var(--silver);
  opacity: 0.5;
  font-family: "Outfit", sans-serif;
}

.log-icon {
  font-size: 35px;
  color: var(--gold);
  margin-bottom: 20px;
}

.log-card h4 {
  color: var(--navy-deep);
  margin-bottom: 15px;
  font-size: 22px;
}

.log-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 25px;
}

.log-list {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.log-list li {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.log-list li i {
  color: var(--gold);
  margin-right: 10px;
}

/* --- Delivery Banner Modern --- */
.delivery-banner-modern {
  margin-top: 80px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1494412574743-019488944a3d?q=80&w=1920");
  background-size: cover;
  background-position: center;
  padding: 60px;
  color: #fff;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--navy-deep) 0%,
    rgba(10, 38, 71, 0.7) 100%
  );
}

.delivery-content-modern {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.banner-text {
  flex: 2;
  max-width: 600px;
}
.banner-text i {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}
.banner-text h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
  font-family: "Outfit";
}
.banner-text p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.banner-stats {
  flex: 1;
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.b-stat {
  text-align: center;
  flex: 1;
}
.b-stat strong {
  font-size: 32px;
  display: block;
  color: var(--gold);
}
.b-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .delivery-banner-modern {
    padding: 40px 30px;
  }
  .delivery-content-modern {
    text-align: center;
  }
  .banner-text {
    margin: 0 auto;
  }
}

/* --- High-End Corporate Footer --- */
.footer {
  background: #05162a; /* Deeper than the main navy */
  color: #fff;
  padding: 100px 8% 0 8%;
  font-family: "Outfit", sans-serif;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 70px;
}

.f-logo {
  height: 55px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1); /* Keeps logo white */
}

.f-col-brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Social Icons Styling */
.f-socials {
  display: flex;
  gap: 15px;
}

.f-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.f-socials a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-5px);
}

/* Column Headings */
.f-col h4 {
  color: var(--white);
  font-size: 18px;
  font-family: "Playfair Display", serif;
  margin-bottom: 30px;
  position: relative;
}

.f-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

/* Links with Hover Effect */
.f-links a {
  display: flex;
  align-items: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.f-links a i {
  font-size: 10px;
  margin-right: 10px;
  color: var(--gold);
  opacity: 0;
  transition: var(--transition);
}

.f-links a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.f-links a:hover i {
  opacity: 1;
}

/* Newsletter Section */
.f-sub-text {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 20px;
}

.f-subscribe {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.f-subscribe input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.f-subscribe button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.f-subscribe button:hover {
  background: var(--gold-hover);
}

.f-compliance-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 15px;
}

.f-compliance-note i {
  color: #22c55e; /* Green check for trust */
  margin-right: 5px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
}

.f-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.f-legal a {
  color: #64748b;
  text-decoration: none;
  transition: 0.3s;
}

.f-legal a:hover {
  color: var(--gold);
}

.f-sep {
  margin: 0 10px;
  opacity: 0.3;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding-top: 60px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .f-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
