/*
Theme Name: Florida Mobile Diesel
Theme URI: https://floridamobilediesel.com
Author: ALG Solutions
Description: A cinematic, block-first theme for Florida Mobile Diesel. Every page section remains editable in the WordPress Site Editor.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: florida-mobile-diesel
*/

:root {
  --fmd-red: #e21d2b;
  --fmd-red-dark: #a90f1a;
  --fmd-black: #080808;
  --fmd-panel: #141414;
  --fmd-white: #f6f4ef;
  --fmd-muted: #b9b7b1;
  --fmd-line: rgba(255,255,255,.15);
  --fmd-ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--fmd-black);
  color: var(--fmd-white);
  overflow-x: hidden;
}
::selection { background: var(--fmd-red); color: #fff; }
*:focus-visible { outline: 3px solid var(--fmd-red); outline-offset: 4px; }

.wp-site-blocks { overflow: clip; }
.fmd-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.fmd-section { padding-block: clamp(72px, 10vw, 150px); }

.fmd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,8,.92);
  border-bottom: 1px solid var(--fmd-line);
  backdrop-filter: blur(18px);
}
.fmd-header .wp-block-site-logo img { height: 64px; width: auto; }
.fmd-header .wp-block-navigation-item__content {
  color: var(--fmd-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.fmd-header .wp-block-navigation-item__content:hover { color: var(--fmd-red); }

.fmd-hero {
  position: relative;
  min-height: min(880px, 92vh);
  display: grid;
  align-items: end;
  background: #050505;
  isolation: isolate;
  overflow: hidden;
}
.fmd-hero::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -2;
  background: url("assets/images/roadside-hero.png") center bottom / auto 130% no-repeat;
  transform: scale(1.03);
  animation: fmd-hero-drift 14s ease-in-out infinite alternate;
}
.fmd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.9) 0 38%, rgba(0,0,0,.18) 72%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.86));
}
.fmd-hero__content { position: relative; padding-block: clamp(100px, 15vh, 180px) clamp(64px, 9vh, 110px); }
.fmd-hero__content::before {
  content: "";
  position: absolute;
  inset: 6% auto 8% -24px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--fmd-red), transparent);
  box-shadow: 0 0 24px rgba(226,29,43,.55);
  animation: fmd-scan 3.8s var(--fmd-ease) infinite;
}
.fmd-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 9.5vw, 9rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.fmd-hero p { max-width: 680px; color: var(--fmd-white); font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.fmd-hero__route { color: var(--fmd-white); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fmd-rule { width: 96px; height: 7px; margin-block: 28px; background: var(--fmd-red); }

.wp-block-button__link {
  border: 1px solid var(--fmd-red);
  border-radius: 0;
  background: var(--fmd-red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .3s var(--fmd-ease), background .3s ease, color .3s ease;
}
.wp-block-button__link:hover { transform: translateY(-3px); background: #fff; color: var(--fmd-black); }
.is-style-outline .wp-block-button__link { color: #fff; background: transparent; border-color: #fff; }

.fmd-story { background: var(--fmd-white); color: var(--fmd-black); }
.fmd-story h2, .fmd-section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.fmd-lede { max-width: 68ch; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.6; }

.fmd-media-strip { margin-block: 0; background: var(--fmd-panel); }
.fmd-media-strip img { width: 100%; display: block; }

.fmd-services { background: #101010; }
.fmd-services-grid { border-top: 1px solid var(--fmd-line); }
.fmd-service {
  position: relative;
  min-height: 310px;
  padding: 34px 28px 44px;
  border-bottom: 1px solid var(--fmd-line);
  background: radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(226,29,43,.16), transparent 46%);
  transition: background-color .35s ease, transform .35s var(--fmd-ease);
}
.fmd-service:hover { background-color: var(--fmd-red); transform: translateY(-8px); }
.fmd-service h3 { margin-top: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.8rem, 2.35vw, 2.7rem); line-height: .95; text-transform: uppercase; overflow-wrap: normal; word-break: normal; hyphens: none; }
.fmd-service p { max-width: 38ch; color: var(--fmd-muted); }
.fmd-service:hover p { color: #fff; }
.fmd-service-mark { width: 42px; height: 42px; color: var(--fmd-red); }
.fmd-service:hover .fmd-service-mark { color: #fff; }

.fmd-issues { background: var(--fmd-white); color: var(--fmd-black); }
.fmd-issues .wp-block-column { padding-top: 26px; border-top: 5px solid var(--fmd-red); }
.fmd-issues .wp-block-column { transition: transform .35s var(--fmd-ease), border-color .25s ease; }
.fmd-issues .wp-block-column:hover { transform: translateY(-8px); border-color: var(--fmd-black); }
.fmd-issues h3 { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; text-transform: uppercase; }

.fmd-brands { background: #fff; color: #111; }
.fmd-brands .wp-block-image {
  height: clamp(170px, 13vw, 210px);
  overflow: hidden;
  margin: 0;
}
.fmd-brands img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.08);
  transform-origin: center bottom;
}
.fmd-brand-note { margin-top: 20px; color: #4b4b4b; text-align: center; }

.fmd-area { background: #252525; }
.fmd-area .wp-block-columns { gap: clamp(40px, 7vw, 100px); align-items: center !important; }
.fmd-map-shell { position: relative; min-height: 520px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.fmd-map-shell iframe { width: 100%; height: 520px; display: block; border: 0; filter: saturate(.78) contrast(1.05); transition: filter .45s ease, transform .6s var(--fmd-ease); }
.fmd-map-shell:hover iframe { filter: saturate(1) contrast(1.02); transform: scale(1.012); }
.fmd-map-link { position: absolute; left: 18px; bottom: 18px; padding: 10px 14px; background: #090909; color: #fff; font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.fmd-map-link:hover { background: var(--fmd-red); }
.fmd-area h2 { font-family: "Barlow Condensed", sans-serif; font-size: clamp(3rem, 6vw, 6rem); line-height: .92; text-transform: uppercase; }

.fmd-close { position: relative; background: var(--fmd-red); color: #fff; overflow: hidden; }
.fmd-close::before {
  content: "24/7";
  position: absolute;
  right: -2vw;
  bottom: -12vw;
  color: rgba(0,0,0,.1);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(13rem, 28vw, 34rem);
  font-weight: 800;
  line-height: 1;
}
.fmd-close > * { position: relative; }
.fmd-close h2 { max-width: 900px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(3.7rem, 8vw, 8rem); line-height: .88; text-transform: uppercase; }
.fmd-close .wp-block-button__link { background: #000; border-color: #000; }

.fmd-footer { background: #050505; border-top: 1px solid var(--fmd-line); }
.fmd-footer a { color: #fff; }

.fmd-reveal { opacity: 1; transform: none; }
.fmd-motion-ready .fmd-reveal { opacity: 0; transform: translateY(55px); clip-path: inset(0 0 18% 0); }
.fmd-motion-ready .fmd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0);
  transition: opacity .9s var(--fmd-ease), transform .9s var(--fmd-ease), clip-path 1.1s var(--fmd-ease);
}
.fmd-marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--fmd-line); }
.fmd-marquee p { display: inline-block; padding-left: 100%; animation: fmd-marquee 24s linear infinite; }
@keyframes fmd-marquee { to { transform: translateX(-100%); } }
@keyframes fmd-hero-drift { to { transform: scale(1.1) translate3d(1.5%, -1%, 0); } }
@keyframes fmd-scan { 0%, 100% { opacity: .28; transform: scaleY(.45) translateY(-28%); } 50% { opacity: 1; transform: scaleY(1) translateY(18%); } }
.fmd-hero.is-paused::before, .fmd-hero.is-paused .fmd-hero__content::before { animation-play-state: paused; }
.fmd-scroll-progress { position: fixed; top: 0; left: 0; z-index: 1000; width: 100%; height: 3px; pointer-events: none; }
.fmd-scroll-progress span { display: block; width: 100%; height: 100%; background: var(--fmd-red); transform: scaleX(0); transform-origin: left center; will-change: transform; }

@media (max-width: 781px) {
  .fmd-shell { width: min(100% - 28px, 720px); }
  .fmd-header { position: relative; }
  .fmd-header .wp-block-navigation__responsive-container { background: var(--fmd-black); color: #fff; }
  .fmd-hero { min-height: 760px; }
  .fmd-hero::before { background-position: 58% bottom; background-size: auto 145%; }
  .fmd-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.94) 68%); }
  .fmd-hero h1 { font-size: clamp(3.5rem, 17vw, 6rem); }
  .fmd-service { min-height: 0; }
  .fmd-map-shell, .fmd-map-shell iframe { min-height: 420px; height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fmd-motion-ready .fmd-reveal { opacity: 1; transform: none; clip-path: none; }
  .fmd-hero::before, .fmd-hero__content::before { animation: none; }
  .fmd-service:hover, .fmd-issues .wp-block-column:hover, .fmd-map-shell:hover iframe { transform: none; }
}
