/* =========================================================
   AS Transport LLC – site styles
   Bootstrap 5 handles the grid; this file holds the brand.
   ========================================================= */

:root {
    --brand: #82b440;          /* logo green, used for accents */
    --brand-strong: #4f7a1c;   /* buttons/links: readable with white text */
    --brand-soft: #eef5e4;
    --ink: #142014;            /* headings, dark sections */
    --text: #3d4a3d;
    --muted: #667366;
    --surface: #f5f8f2;
    --line: #e2e8dc;
    --white: #ffffff;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(20, 32, 20, .06);
    --shadow: 0 12px 32px rgba(20, 32, 20, .10);

    --font-head: "Urbanist", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --section-y: clamp(56px, 8vw, 104px);
    --header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .font-head {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--brand-strong); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.section { padding: var(--section-y) 0; overflow-x: clip; } /* clip keeps sticky children working */
/* Bootstrap's g-5 gutter is wider than the container padding on phones and
   makes rows stick out sideways; use the standard gutter there. */
@media (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .82); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: .85rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-strong);
    margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--brand); }
.lead-text { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head.text-center .lead-text { margin-left: auto; margin-right: auto; }

/* Placeholder text that the owner must replace – easy to spot */
.ph { background: #fff4c2; color: #6b5300; padding: 0 .3em; border-radius: 4px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 700; border-radius: 999px; padding: .75rem 1.5rem; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-brand { background: var(--brand-strong); color: var(--white); border: 2px solid var(--brand-strong); }
.btn-brand:hover, .btn-brand:focus { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.btn-outline-brand { border: 2px solid var(--brand-strong); color: var(--brand-strong); background: transparent; }
.btn-outline-brand:hover { background: var(--brand-strong); color: var(--white); }
.btn-light-brand { background: var(--white); color: var(--ink); border: 2px solid var(--white); }
.btn-light-brand:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.btn-ghost-light { border: 2px solid rgba(255, 255, 255, .7); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---------- Top bar + navbar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .8); font-size: .875rem; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: var(--brand); }
.topbar .bi { color: var(--brand); margin-right: .35rem; }

.site-nav {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
    min-height: var(--header-h);
}
.site-nav.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-nav .navbar-brand img { height: 52px; width: auto; }
.site-nav .nav-link {
    font-family: var(--font-head); font-weight: 700; color: var(--ink);
    padding: .5rem .9rem !important; position: relative;
}
.site-nav .nav-link::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--brand-strong); }
.site-nav .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: .1em; margin-left: .3rem; position: static; transform: none; height: auto; background: none; }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; }
.site-nav .dropdown-item { border-radius: 10px; font-weight: 600; padding: .55rem .9rem; }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item.active { background: var(--brand-soft); color: var(--brand-strong); }
.site-nav .badge-new { font-size: .65rem; background: var(--brand); color: var(--ink); border-radius: 999px; padding: .15rem .5rem; margin-left: .4rem; font-weight: 800; }
.navbar-toggler { border: 0; padding: .5rem; border-radius: 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--brand-soft); }

@media (min-width: 992px) {
    .site-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: .75rem 0 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .site-nav .nav-link::after { display: none; }
    .site-nav .dropdown-menu { box-shadow: none; border: 0; background: var(--surface); }
    .site-nav .nav-cta { flex-direction: column; align-items: stretch !important; }
}
@media (max-width: 575.98px) {
    .site-nav .navbar-brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; color: var(--white);
    min-height: min(88vh, 760px);
    display: flex; align-items: center;
    background: var(--ink) url("../images/hero.jpg") center / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(10, 20, 10, .88) 0%, rgba(10, 20, 10, .65) 45%, rgba(10, 20, 10, .15) 100%);
}
.hero h1 { color: var(--white); max-width: 12em; }
.hero p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.hero-points .bi { color: var(--brand); font-size: 1.2rem; }

/* Inner page header */
.page-header {
    position: relative; color: var(--white); isolation: isolate;
    padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 88px);
    background: var(--ink) url("../images/page-header.jpg") center / cover no-repeat;
}
.page-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 20, 10, .78), rgba(10, 20, 10, .62)); }
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.25rem); margin-bottom: .5rem; }
.page-header p { color: rgba(255, 255, 255, .85); max-width: 40em; margin: 0; font-size: 1.1rem; }
.breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--brand); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Cards & blocks ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list .bi { color: var(--brand-strong); font-size: 1.2rem; line-height: 1.4; flex: none; }
@media (min-width: 576px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; } }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; transition: transform .6s; }
.media-frame:hover img { transform: scale(1.04); }
.media-badge {
    position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
    background: rgba(255, 255, 255, .95); border-radius: var(--radius);
    padding: .9rem 1.1rem; display: flex; gap: .75rem; align-items: center;
    font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.media-badge .bi { font-size: 1.6rem; color: var(--brand-strong); }

.step-card, .feature-card {
    height: 100%; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 2rem 1.6rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step-card:hover, .feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-badge {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 1.6rem; margin-bottom: 1.25rem;
    transition: background-color .25s, color .25s;
}
.step-card:hover .icon-badge, .feature-card:hover .icon-badge { background: var(--brand-strong); color: var(--white); }
.step-num { font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: .9rem; letter-spacing: .1em; }
.step-card h3, .feature-card h3 { font-size: 1.2rem; margin: .35rem 0 .6rem; }
.step-card p, .feature-card p { margin: 0; color: var(--muted); }

/* Vehicle cards */
.vehicle-card {
    height: 100%; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vehicle-card .vc-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.vehicle-card .vc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vehicle-card:hover .vc-img img { transform: scale(1.06); }
.vc-tag { position: absolute; top: .9rem; left: .9rem; background: var(--white); color: var(--ink); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: .3rem .75rem; box-shadow: var(--shadow-sm); }
.vehicle-card .vc-body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.vehicle-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.vehicle-card h3 a { color: var(--ink); }
.vehicle-card h3 a:hover { color: var(--brand-strong); }
.vc-meta { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .9rem; }
.vc-meta .bi { color: var(--brand-strong); margin-right: .3rem; }
.vc-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.vc-price { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.vc-price small { font-weight: 600; color: var(--muted); }

.list-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.list-toolbar .form-select { width: auto; min-width: 200px; border-radius: 999px; border-color: var(--line); font-weight: 600; }

/* Stats */
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--brand); line-height: 1; }
.stat-label { margin-top: .5rem; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* Testimonials */
.quote-card { height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote-card .stars { color: #f2b01e; margin-bottom: .9rem; letter-spacing: .1em; }
.quote-card blockquote { margin: 0 0 1.5rem; color: var(--text); }
.quote-author { margin-top: auto; display: flex; gap: .85rem; align-items: center; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-family: var(--font-head); font-weight: 800; }
img.avatar { object-fit: cover; object-position: 50% 35%; }
.quote-author strong { display: block; color: var(--ink); font-family: var(--font-head); }
.quote-author span { font-size: .9rem; color: var(--muted); }

/* Team */
.team-card { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 1rem; height: 100%; transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .avatar { width: 84px; height: 84px; font-size: 1.6rem; margin: 0 auto 1rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-strong), #2f4d12); border-radius: var(--radius-lg); color: var(--white); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }

/* Contact */
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; height: 100%; transition: box-shadow .25s, transform .25s; }
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.info-card .icon-badge { margin: 0; width: 48px; height: 48px; font-size: 1.25rem; flex: none; }
.info-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.info-card p, .info-card a { margin: 0; overflow-wrap: anywhere; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .7rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(130, 180, 64, .25); }
.map-frame { border: 0; width: 100%; min-height: 360px; border-radius: var(--radius-lg); display: block; }

/* Vehicle detail */
.detail-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.detail-photo img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 45%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 600; }
.book-box { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 20px); }
.book-box h2 { font-size: 1.4rem; }
.book-box ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.book-box .bi { color: var(--brand-strong); margin-right: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 72px 0 0; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer .bi { color: var(--brand); margin-right: .5rem; }
.footer-logo { background: var(--white); border-radius: var(--radius); padding: .6rem .9rem; display: inline-block; margin-bottom: 1.1rem; }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 56px; padding: 1.4rem 0; font-size: .9rem; }

/* Mobile action bar (Call / Get a Quote) */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: none; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px rgba(20, 32, 20, .12); }
.mobile-cta .btn { flex: 1; padding: .7rem .5rem; }
.mobile-cta .mobile-cta-call { flex: 1.4; white-space: nowrap; }
@media (max-width: 359.98px) { .mobile-cta .btn { font-size: .875rem; padding-inline: .35rem; } }
@media (max-width: 767.98px) {
    .mobile-cta { display: flex; }
    body { padding-bottom: 76px; }
}

.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand-strong); color: var(--white); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ink); }
@media (max-width: 767.98px) { .back-to-top { bottom: 90px; } }

/* ---------- Scroll animations ---------- */
.js [data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
.js [data-animate="fade-left"] { transform: translateX(-28px); }
.js [data-animate="fade-right"] { transform: translateX(28px); }
.js [data-animate].is-visible { opacity: 1; transform: none; }
/* Side slides start outside the column; on narrow screens that would cause sideways scrolling. */
@media (max-width: 991.98px) {
    .js [data-animate="fade-left"], .js [data-animate="fade-right"] { transform: translateY(24px); }
}
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-animate] { opacity: 1; transform: none; transition: none; }
    .btn:hover, .vehicle-card:hover, .step-card:hover, .feature-card:hover, .quote-card:hover, .team-card:hover { transform: none; }
}

/* Contact detail cards: icon on top so long email addresses get the full width */
.info-card-stack { flex-direction: column; gap: .85rem; }
.info-card-stack a, .info-card-stack p { overflow-wrap: break-word; }



/* Footer credit link: green by default, white on hover */
.site-footer .footer-bottom a { color: var(--brand); text-decoration: none; transition: color .2s; }
.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus { color: #fff; }

