/* ===================================================================
   Freeway Enterprises Ltd — Custom Styles
   Font: Saira (Google) · Framework: Bootstrap 5
   =================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --navy-deep: #081527;
  --accent: #f5a623;      /* amber — matches machinery / hi-vis */
  --accent-2: #ffbe4d;
  --ink: #1b2431;
  --muted: #5b6672;
  --line: #e6e9ef;
  --bg-light: #f5f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 6px 20px rgba(11, 31, 58, .08);
  --shadow: 0 18px 45px rgba(11, 31, 58, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Saira', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .logo-text {
  font-family: 'Saira Condensed', 'Saira', sans-serif;
  font-weight: 700;
  letter-spacing: .2px;
}

section { scroll-margin-top: 80px; }
a { text-decoration: none; transition: color .25s var(--ease); }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 8px; padding: .4rem .9rem; font-size: .875rem; transition: all .3s var(--ease); }
.btn-lg { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-deep); border: none; box-shadow: 0 10px 24px rgba(245, 166, 35, .35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(245, 166, 35, .5); color: var(--navy-deep); }
.btn-outline-light:hover { transform: translateY(-3px); }
.btn-whatsapp { background: #25d366; color: #fff; width: 100%; margin-top: 1rem; }
.btn-whatsapp:hover { background: #1eb757; color: #fff; transform: translateY(-3px); }

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--navy-deep); color: #c9d3e2; font-size: .86rem; padding: .5rem 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1031; height: 40px;
  transition: transform .4s var(--ease);
}
.top-bar.hide { transform: translateY(-100%); }
.top-bar a { color: #c9d3e2; }
.top-bar a:hover { color: var(--accent); }
.top-bar .divider { margin: 0 .8rem; opacity: .3; }
.top-bar-right a { margin-left: .8rem; font-size: 1rem; }
.top-bar i { color: var(--accent); margin-right: .3rem; }

/* ---------- Navbar ---------- */
#mainNav {
  background: var(--navy); padding: 1rem 0; transition: all .4s var(--ease);
  top: 40px;
}
@media (min-width: 992px) {
  #mainNav { background: transparent; }
}
#mainNav.scrolled { background: var(--navy); box-shadow: var(--shadow-sm); padding: .55rem 0; top: 0; }
.navbar-brand { display: flex; align-items: center; gap: .55rem; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-deep); font-family: 'Saira Condensed'; font-weight: 800; font-size: 1.5rem;
  border-radius: 12px; box-shadow: 0 6px 16px rgba(245, 166, 35, .4);
}
.logo-text { color: #fff; font-size: 1.35rem; line-height: 1; }
.logo-accent { color: var(--accent); }
.navbar-dark .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; margin: 0 .35rem; position: relative; }
.navbar-dark .nav-link::after {
  content: ''; position: absolute; left: .5rem; right: .5rem; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar-dark .nav-link:hover::after, .navbar-dark .nav-link.active::after { transform: scaleX(1); }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: #fff; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 21, 39, .92) 0%, rgba(11, 31, 58, .78) 55%, rgba(11, 31, 58, .45) 100%),
    url('../img/heavy-haul.jpg') center/cover no-repeat fixed;
  color: #fff; padding: 8rem 0 6rem; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(245, 166, 35, .18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.05' d='M0 30h60M30 0v60'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; background: rgba(245, 166, 35, .16);
  border: 1px solid rgba(245, 166, 35, .4); color: var(--accent-2); padding: .35rem 1rem;
  border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1.3rem;
}
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.02; margin-bottom: 1.2rem; text-transform: uppercase; }
.text-accent { color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 620px; color: #d5deeb; margin-bottom: 2rem; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Saira Condensed'; font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .82rem; color: #b8c4d6; text-transform: uppercase; letter-spacing: 1px; margin-top: .3rem; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.hero-wave svg { width: 100%; height: 90px; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-light { background: var(--bg-light); }
.section-head { max-width: 720px; margin: 0 auto 3.5rem; }
.section-eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .82rem; margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.9rem); color: var(--navy); text-transform: uppercase; margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-weight: 300; font-size: 1.05rem; }

/* ---------- Value strip ---------- */
.value-strip { margin-top: -3rem; position: relative; z-index: 3; padding-bottom: 1rem; }
.value-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; height: 100%;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.value-card i { font-size: 2rem; color: var(--accent); }
.value-card h3 { font-size: 1.25rem; color: var(--navy); margin: .7rem 0 .4rem; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; font-weight: 300; }

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 1.5rem 2.5rem 0; }
.about-img-main { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-img-float {
  position: absolute; right: 0; bottom: 0; width: 45%; border-radius: var(--radius);
  border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover;
}
.about-badge {
  position: absolute; top: 1.2rem; left: -1rem; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-deep); border-radius: 14px; padding: .8rem 1.2rem; text-align: center; box-shadow: var(--shadow);
}
.about-badge span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; }
.about-badge strong { font-family: 'Saira Condensed'; font-size: 1.8rem; line-height: 1; }
.about-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.about-list li { font-weight: 500; }
.about-list i { color: var(--accent); margin-right: .4rem; }

/* ---------- Services ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; height: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); font-size: 1.7rem; margin-bottom: 1.1rem; transition: all .35s var(--ease);
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--navy-deep); transform: rotate(-6deg); }
.service-card h3 { color: var(--navy); font-size: 1.35rem; margin-bottom: .5rem; }
.service-card > p { color: var(--muted); font-size: .94rem; font-weight: 300; }
.service-card ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.service-card ul li { position: relative; padding-left: 1.3rem; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.service-card ul li::before { content: '\F270'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--accent); font-size: .8rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; padding: 4.5rem 0; color: #fff; text-align: left;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-2));
}
.cta-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath fill='none' stroke='%23f5a623' stroke-opacity='0.08' stroke-width='2' d='M0 40h80M40 0v80'/%3E%3C/svg%3E");
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; margin-bottom: .4rem; }
.cta-banner p { color: #c7d2e2; margin: 0; font-weight: 300; }

/* ---------- Fleet ---------- */
.fleet-card {
  position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3; background: var(--navy);
}
.fleet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fleet-card:hover img { transform: scale(1.08); }
.fleet-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.3rem 1.2rem; color: #fff;
  background: linear-gradient(transparent, rgba(8, 21, 39, .92));
}
.fleet-card figcaption h3 { font-size: 1.25rem; margin: 0; }
.fleet-card figcaption p { margin: .2rem 0 0; font-size: .86rem; color: var(--accent-2); font-weight: 300; }
.fleet-card--cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; text-align: center; }
.fleet-cta-inner { padding: 1.5rem; color: #fff; }
.fleet-cta-inner i { font-size: 2.4rem; color: var(--accent); }
.fleet-cta-inner h3 { margin: .7rem 0 .4rem; font-size: 1.3rem; }
.fleet-cta-inner p { color: #c7d2e2; font-size: .9rem; font-weight: 300; margin-bottom: 1rem; }

/* ---------- Appliances ---------- */
.appliance-card {
  background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; height: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.appliance-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.appliance-icon {
  width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 166, 35, .14); color: var(--accent); font-size: 2rem;
}
.appliance-card h3 { color: var(--navy); font-size: 1.3rem; }
.appliance-card p { color: var(--muted); font-weight: 300; margin: 0; }
.brands { text-align: center; margin-top: 3rem; }
.brands-label { display: block; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-size: .8rem; margin-bottom: 1rem; }
.brands-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; }
.brands-list span {
  font-family: 'Saira Condensed'; font-weight: 700; font-size: 1.5rem; color: var(--navy); opacity: .55;
  transition: opacity .3s var(--ease);
}
.brands-list span:hover { opacity: 1; color: var(--accent); }

/* ---------- Car Rentals ---------- */
.rental-feature {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; height: 100%; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rental-feature:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.rental-feature i {
  width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 166, 35, .14); color: var(--accent); font-size: 1.7rem;
}
.rental-feature h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: .35rem; }
.rental-feature p { color: var(--muted); font-size: .9rem; font-weight: 300; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: #fff; color: var(--ink); position: relative;
  background-image: radial-gradient(rgba(11, 31, 58, .10) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.testimonials::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 50% 0%, #fff 0%, rgba(255, 255, 255, .6) 60%, transparent 100%);
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials .section-title { color: var(--navy); }
#reviewCarousel { max-width: 820px; margin: 0 auto; }
.review-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 3rem 2.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.review-card .bi-quote { font-size: 3rem; color: var(--accent); }
.review-card > p { font-size: 1.2rem; font-weight: 300; font-style: italic; margin: 1rem 0 1.4rem; color: var(--ink); }
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; }
.review-author strong { display: block; font-size: 1.15rem; color: var(--navy); }
.review-author span { color: var(--muted); font-size: .9rem; }
.review-indicators { position: static; margin-top: 2rem; }
.review-indicators button { width: 12px; height: 12px; border-radius: 50%; background: rgba(11, 31, 58, .2); border: none; }
.review-indicators button.active { background: var(--accent); }

/* ---------- Contact ---------- */
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; height: 100%; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--navy-deep); font-size: 1.2rem;
}
.contact-item h4 { font-size: 1.1rem; margin: 0 0 .2rem; }
.contact-item p { color: #c7d2e2; font-size: .92rem; margin: 0; font-weight: 300; }
.contact-item a { color: #c7d2e2; }
.contact-item a:hover { color: var(--accent); }
.contact-form { background: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow); border: 1px solid var(--line); height: 100%; }
.contact-form .form-label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.contact-form .form-control, .contact-form .form-select { border-radius: 12px; padding: .7rem 1rem; border: 1.5px solid var(--line); font-size: .95rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(245, 166, 35, .18); }
#submitBtn { position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #a9b6c9; padding: 4rem 0 1.5rem; }
.footer-brand .logo-text { font-size: 1.3rem; }
.footer p { font-weight: 300; font-size: .92rem; }
.footer h5 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer ul a { color: #a9b6c9; font-size: .92rem; }
.footer ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.footer-contact i { color: var(--accent); }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.1rem; transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--accent); color: var(--navy-deep); transform: translateY(-3px); }
.footer hr { border-color: rgba(255, 255, 255, .1); margin: 2.5rem 0 1.2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--navy-deep); display: grid; place-items: center;
  font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .35s var(--ease); z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--navy-deep); transform: translateY(-4px); }

/* ---------- Toasts ---------- */
.toast-container { z-index: 1200; }
.app-toast { border: none; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 320px; }
.app-toast .toast-body { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; font-weight: 500; }
.app-toast .toast-body i { font-size: 1.5rem; }
.app-toast.toast-success { background: #0f5132; color: #fff; }
.app-toast.toast-error { background: #842029; color: #fff; }
.app-toast .btn-close { filter: invert(1); margin-right: .3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #mainNav { background: var(--navy); top: 0; }
  .navbar-collapse { background: var(--navy); border-radius: 14px; padding: 1rem; margin-top: .8rem; }
  .navbar-dark .nav-link { margin: .2rem 0; }
  .hero { background-attachment: scroll; min-height: auto; padding: 7rem 0 5rem; }
  .about-media { padding: 0 0 2rem; }
}
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem 2rem; }
  .stat-num { font-size: 2rem; }
  .about-list { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; }
  .cta-banner .text-lg-end { margin-top: 1.5rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 575.98px) {
  .hero-cta .btn { width: 100%; }
  .review-card { padding: 2rem 1.3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero { background-attachment: scroll; }
}
