/* ============================================================
   GLOBAL — Mamun Rent A Car
   Common · Helpers · Header · Footer · WhatsApp float · WordPress
   ============================================================ */

:root {
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Brand: red + black */
    --color-red: #e21c24;          /* primary red (logo) */
    --color-red-dark: #b5141b;     /* hover / deep red */
    --color-ink: #16181d;          /* near-black headings + dark sections */
    --color-dark: #0f1013;         /* darkest (topbar, footer) */

    /* Text */
    --color-body: #5b6068;         /* paragraphs on light */
    --color-muted: #9aa0ab;        /* text on dark */
    --color-light: #ffffff;

    /* Surfaces */
    --color-surface: #f6f7f9;      /* light section bg */
    --color-border: #e7e9ee;

    /* Utility */
    --color-wa: #25d366;           /* WhatsApp green */
    --color-star: #ffb400;
}

/* ---------- reset + base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-light);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: 60px; letter-spacing: -1px; }
h2 { font-size: 42px; letter-spacing: -.5px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* ---------- HELPERS ---------- */
.container { max-width: 1600px; margin: auto; padding: 0 30px; }

.wrap { display: flex; justify-content: space-between; align-items: center; }
.wrap-top    { align-items: flex-start; }
.wrap-column { flex-direction: column; }
.wrap-wrap   { flex-wrap: wrap; }
.wrap-center { justify-content: center; }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--color-red); font-family: var(--font-display); font-weight: 600;
    font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.section-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--color-red); }

.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { margin: 14px 0 0; }
.section-head p { color: var(--color-body); margin: 14px 0 0; max-width: 640px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    border-radius: 6px; padding: 13px 24px; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--color-red); color: var(--color-light); }
.btn-primary:hover { background: var(--color-red-dark); }
.btn-dark { background: var(--color-ink); color: var(--color-light); }
.btn-dark:hover { background: #000; }
.btn-wa { background: var(--color-wa); color: var(--color-light); }
.btn-wa:hover { background: #1da851; }
.btn-outline { background: transparent; color: var(--color-ink); border: 1px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-red); color: var(--color-red); }
.btn-outline-light { background: transparent; color: var(--color-light); border: 1px solid rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: var(--color-red); color: var(--color-red); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--color-red); outline-offset: 3px; }

.stars { color: var(--color-star); letter-spacing: 1px; display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   HEADER
   ============================================================ */
.header-topbar { background: var(--color-dark); color: var(--color-muted); font-size: 13.5px; }
.header-topbar .wrap { min-height: 44px; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left a { display: inline-flex; align-items: center; gap: 8px; color: var(--color-muted); }
.topbar-left a:hover { color: var(--color-light); }
.topbar-left svg { width: 15px; height: 15px; fill: var(--color-red); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right .tb-note { color: var(--color-red); font-weight: 600; letter-spacing: .5px; margin-right: 10px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a {
    width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: var(--color-light);
}
.topbar-social a:hover { background: var(--color-red); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

.header-main {
    position: sticky; top: 0; z-index: 60; background: var(--color-light);
    border-bottom: 1px solid var(--color-border); transition: box-shadow .25s ease;
}
.header-main.is-scrolled { box-shadow: 0 8px 30px rgba(16,24,45,.10); }
.header-main .wrap { min-height: 84px; gap: 24px; }
.header-logo img { height: 115px; width: auto; }

.header-nav { flex: 1; }
.header-nav .menu { display: flex; align-items: center; justify-content: center; gap: 38px; }
.header-nav .menu > li > a {
    font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--color-ink);
    display: inline-flex; align-items: center;
}
.header-nav .menu > li > a:hover,
.header-nav .menu > li.current > a { color: var(--color-red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call { display: flex; align-items: center; gap: 11px; }
.header-call .ico { width: 42px; height: 42px; border-radius: 50%; background: rgba(226,28,36,.10); color: var(--color-red); display: inline-flex; align-items: center; justify-content: center; }
.header-call .ico svg { width: 19px; height: 19px; fill: currentColor; }
.header-call .txt span { display: block; font-size: 12px; color: var(--color-body); }
.header-call .txt a { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--color-ink); }
.header-call .txt a:hover { color: var(--color-red); }

/* dropdown (WP-ready) */
.header-nav .menu-item { position: relative; }
.header-nav .menu-item-has-children > a::after {
    content: ""; width: 0; height: 0; margin-left: 7px;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
    transition: transform .2s ease;
}
.header-nav .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--color-light);
    border-top: 3px solid var(--color-red); border-radius: 0 0 10px 10px;
    box-shadow: 0 30px 60px -28px rgba(16,24,45,.4); padding: 8px 0;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease; z-index: 70;
}
.header-nav .menu-item:hover > .sub-menu,
.header-nav .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.header-nav .sub-menu a { display: block; padding: 10px 22px; font-size: 15px; color: var(--color-body); white-space: nowrap; }
.header-nav .sub-menu a:hover { color: var(--color-red); background: var(--color-surface); }

/* mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: none; cursor: pointer; }
.nav-toggle span { height: 2px; width: 100%; background: var(--color-ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .nav-toggle { display: flex; }
    .header-nav {
        position: absolute; top: 100%; left: 0; right: 0; flex: none; background: var(--color-light);
        border-top: 1px solid var(--color-border); box-shadow: 0 20px 40px -20px rgba(16,24,45,.25);
        max-height: 0; overflow: hidden; transition: max-height .35s ease;
    }
    .header-nav.is-open { max-height: 80vh; overflow-y: auto; }
    .header-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
    .header-nav .menu > li { border-bottom: 1px solid var(--color-border); }
    .header-nav .menu > li > a { padding: 14px 30px; justify-content: space-between; }
    .header-nav .sub-menu {
        position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
        max-height: 0; overflow: hidden; background: var(--color-surface); border: none; border-radius: 0;
        box-shadow: none; padding: 0; transition: max-height .3s ease;
    }
    .header-nav .submenu-open > .sub-menu { max-height: 600px; }
}
@media (max-width: 700px) {
    .header-call .txt { display: none; }
    .topbar-left .tb-email { display: none; }
}

/* ============================================================
   SHARED — INNER PAGE BANNER + BREADCRUMB
   ============================================================ */
.page-banner { background: var(--color-ink); color: var(--color-light); padding: 84px 0; position: relative; overflow: hidden; text-align: center; }
.page-banner::before { content: ""; position: absolute; top: -40%; right: -6%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(226,28,36,.28), rgba(226,28,36,0) 68%); }
.page-banner-inner { position: relative; }
.page-banner h1 { color: var(--color-light); font-size: 50px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--color-muted); }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li:not(:first-child)::before { content: "\203A"; color: var(--color-red); }
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb li[aria-current] { color: var(--color-red); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%; background: var(--color-wa); color: var(--color-light);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(37,211,102,.45); animation: wa-pulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-dark); color: var(--color-muted); padding-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 46px; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 22px; background: var(--color-light); border-radius: 10px; padding: 8px; }
.footer-brand p { font-size: 14.5px; line-height: 1.75; max-width: 330px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--color-light); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-red); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-col h4 { color: var(--color-light); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14.5px; line-height: 2.1; color: var(--color-muted); }
.footer-col a:hover { color: var(--color-red); padding-left: 4px; }
.footer-contact .fc-row { display: flex; gap: 12px; margin-bottom: 15px; font-size: 14.5px; line-height: 1.5; }
.footer-contact .fc-row svg { width: 17px; height: 17px; fill: var(--color-red); flex: 0 0 auto; margin-top: 3px; }
.footer-contact .fc-row a:hover { color: var(--color-red); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; }
.footer-bottom .wrap { gap: 16px; flex-wrap: wrap; }
.footer-bottom, .footer-bottom a { font-size: 13px; color: var(--color-muted); }
.footer-bottom a:hover { color: var(--color-red); }

@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom .wrap { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   WORDPRESS EDITOR + A11Y
   ============================================================ */
.entry-content { font-size: 17px; line-height: 1.8; color: var(--color-body); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--color-ink); margin: 1.4em 0 .5em; }
.entry-content a { color: var(--color-red); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em 1.4em; }
.entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content blockquote { margin: 1.4em 0; padding: 16px 24px; border-left: 4px solid var(--color-red); background: var(--color-surface); font-style: italic; }
.entry-content img { border-radius: 8px; margin: 12px 0; }
.alignleft { float: left; margin: 5px 25px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 25px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sticky, .bypostauthor { display: block; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   (only when motion is OK; hidden state only when JS is active)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    html.js .reveal {
        opacity: 0; transform: translateY(30px);
        transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
        will-change: opacity, transform;
    }
    html.js .reveal.is-visible { opacity: 1; transform: none; }

    html.js .reveal-left  { opacity: 0; transform: translateX(-36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
    html.js .reveal-right { opacity: 0; transform: translateX(36px);  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
    html.js .reveal-left.is-visible,
    html.js .reveal-right.is-visible { opacity: 1; transform: none; }

    /* staggered children (grids) */
    html.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
    html.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
    html.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
    html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
    html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
    html.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
    html.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
    html.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
    html.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .47s; }
    html.js .reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .54s; }
}
