/* =====================================================================
   Ape For Tha Bag Roadside Assistance — faithful rebuild of apeforthabag.com
   Display: Bebas Neue · body: Alata · taglines: Montserrat italic
   Black theme · brand green #0F3D0F · bright green accent #6cdc3c
   ===================================================================== */

:root {
  --green: #0F3D0F;
  --green-2: #16551a;
  --green-br: #6cdc3c;
  --black: #0c0c0c;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --line: #2a2a2a;
  --white: #f3f3f3;
  --muted: #b9b9b9;
  --maxw: 1180px;
  --font-display: "Bebas Neue", "Alumni Sans", system-ui, sans-serif;
  --font-ui: "Alata", system-ui, sans-serif;
  --font-italic: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-ui); color: var(--white); background: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 .3em; color: #fff; }
p { margin: 0 0 1em; }
a { color: var(--green-br); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 74px 0; position: relative; }
.section--panel { background: var(--panel); }
.section--green { background: linear-gradient(160deg, #0f3d0f, #0a2a0a); }
.center { text-align: center; }

.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: .2em; }
.section-sub { font-family: var(--font-ui); font-size: 1.05rem; color: var(--muted); text-transform: none; letter-spacing: 0; margin: 0; }
.tagline { font-family: var(--font-italic); font-style: italic; font-weight: 500; color: var(--green-br); font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .6px; padding: 13px 30px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.5); }
.btn svg { width: 22px; height: 22px; }
.btn--green { background: var(--green); color: #fff; border-color: #1c6a1c; }
.btn--green:hover { background: var(--green-2); }
.btn--white { background: #fff; color: #111; }
.btn--white:hover { background: #e9e9e9; }
.btn--lg { padding: 16px 38px; font-size: 1.35rem; }
.btn-call { gap: 12px; }
.btn-call .tu-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.02; }
.btn-call .tu-stack strong { font-family: var(--font-display); font-size: 1.15rem; }
.btn-call .tu-stack small { font-size: .82rem; font-family: var(--font-ui); }

/* ---------- Top utility bar ---------- */
.topbar { background: linear-gradient(180deg, #0f3d0f, #0b2e0b); color: #fff; font-size: .85rem; border-bottom: 1px solid rgba(0,0,0,.3); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #d6ffc4; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; fill: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #0f3d0f; box-shadow: 0 4px 18px rgba(0,0,0,.45); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 104px; }
.brand { display: inline-flex; background: transparent; border-radius: 10px; padding: 4px 0; line-height: 0; }
.brand img { height: 88px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .5px; color: #fff; }
.nav a:hover { color: var(--green-br); text-decoration: none; }
.nav .btn { padding: 8px 18px; }
/* Header Call Us button — force dark green text so it's visible on the white pill
   (.nav a sets white, which would otherwise make the button text invisible) */
.nav a.btn-call, .nav a.btn-call:hover,
.nav a.btn-call .tu-stack strong,
.nav a.btn-call .tu-stack small { color: var(--green); }
.nav a.btn-call:hover { text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 78vh; display: flex; align-items: center; text-align: center; padding: 96px 0; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.4) 38%, rgba(7,22,7,.86) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-logo { width: min(800px, 90vw); margin: 0 auto 26px; filter: drop-shadow(0 8px 26px rgba(0,0,0,.55)); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.hero .hero-sub { font-family: var(--font-italic); font-style: italic; font-weight: 500; font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: #e6e6e6; max-width: 740px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .badge { display: inline-block; margin-top: 24px; padding: 8px 20px; border-radius: 50px; background: rgba(108,220,60,.12); border: 1px solid rgba(108,220,60,.4); color: var(--green-br); font-family: var(--font-display); letter-spacing: 1px; font-size: 1.05rem; }

/* ---------- Service list (prices) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 40px; }
.price-card { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 104px; background: linear-gradient(160deg, #0f3d0f, #0b2d0b); border: 1px solid #1c6a1c; border-radius: 14px; padding: 14px 18px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.price-card .svc { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.05; letter-spacing: .5px; color: #fff; }
.price-card .price { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--green-br); margin-top: 4px; }
.price-card .price small { font-family: var(--font-ui); font-size: .82rem; color: #cfe9bf; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.step { text-align: center; }
.step-ico { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 50%; background: var(--green); border: 4px solid var(--green-br); display: grid; place-items: center; }
.step-ico svg { width: 48px; height: 48px; fill: #fff; }
/* Home "How It Works" — real artwork badges (green ring is part of the image) */
.section--black { background: #000; }
.step-img { width: 230px; height: 154px; margin: 0 auto 12px; transform-origin: center center; transition: transform .2s ease; animation: rattle 2.6s ease-in-out infinite; }
.steps .step:nth-child(2) .step-img { animation-delay: .55s; }
.steps .step:nth-child(3) .step-img { animation-delay: 1.1s; }
.step-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.step:hover .step-img { animation: none; transform: translateY(-5px) scale(1.03); }
.step h3 { font-size: 1.8rem; color: #fff; margin-bottom: .2em; }
.step p { font-family: var(--font-ui); color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Service areas ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 6px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; list-style: none; padding: 0; margin: 26px 0 0; }
.area-list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .5px; color: #fff; transition: transform .18s ease; }
.area-list li:hover { transform: translateX(4px); }
.area-list svg { width: 22px; height: 22px; fill: var(--green-br); flex: 0 0 22px; }
.map-wrap { border: 3px solid var(--green); border-radius: 10px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.section--video { overflow: hidden; }
.area-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.area-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,16,8,.82), rgba(6,14,6,.9)); }
.section--video > .container { position: relative; z-index: 2; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal .meta { color: var(--muted); margin-bottom: 1.6em; text-transform: none; font-family: var(--font-ui); }
.legal h2 { font-size: 1.5rem; margin: 1.5em 0 .35em; text-transform: uppercase; letter-spacing: .5px; }
.legal p, .legal li { color: #d2d2d2; font-family: var(--font-ui); }
.legal ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #c2c2c2; padding: 56px 0 26px; border-top: 2px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 32px; }
.site-footer img.flogo { width: 230px; max-width: 80%; margin-bottom: 14px; }
.site-footer h4 { color: var(--green-br); font-size: 1.3rem; letter-spacing: .5px; margin-bottom: 14px; }
.site-footer a { color: #c2c2c2; }
.site-footer a:hover { color: #fff; }
.foot-contact p { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; margin: 0 0 9px; font-family: var(--font-ui); }
.foot-contact svg { width: 15px; height: 15px; fill: var(--green-br); flex: 0 0 15px; margin-top: 5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; }
.footer-socials a:hover { background: var(--green); border-color: var(--green); }
.footer-socials svg { width: 18px; height: 18px; fill: #fff; }
.hours-big { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-br); letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid #1f1f1f; margin-top: 42px; padding-top: 20px; text-align: center; font-size: .85rem; color: #8a8a8a; font-family: var(--font-ui); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rattle { 0%,16%,100% { transform: rotate(0); } 2% { transform: rotate(-7deg); } 4% { transform: rotate(6deg); } 6% { transform: rotate(-5deg); } 8% { transform: rotate(4deg); } 10% { transform: rotate(-3deg); } 12% { transform: rotate(2deg); } 14% { transform: rotate(-1deg); } }
.hero-content { animation: heroIn .8s ease both; }
.hero-logo { animation: floaty 6s ease-in-out 1.1s infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(108,220,60,0); } 50% { box-shadow: 0 0 0 6px rgba(108,220,60,.22); } }
.btn-call { animation: pulseGlow 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-content, .hero-logo, .btn-call, .step-img { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 104px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #000; padding: 6px 0 14px; border-bottom: 2px solid var(--green); box-shadow: 0 18px 30px rgba(0,0,0,.55); max-height: calc(100vh - 104px); overflow-y: auto; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 26px; font-size: 1.55rem; border-bottom: 1px solid #1a1a1a; }
  .nav a.btn-call { margin: 12px 24px 2px; justify-content: center; border-bottom: 0; }
  .areas-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .foot-contact p { justify-content: center; }
  .footer-socials { justify-content: center; }
  .topbar .container { justify-content: center; gap: 10px 18px; }
  .hero { min-height: 70vh; padding: 80px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn--lg { padding: 14px 26px; font-size: 1.2rem; }
}
