/* ==========================================================================
   GLOBAL STYLES — Texas Prime Auto Detail
   Shared across every page: reset, typography, header, footer, buttons.
   Page-specific rules belong in css/pages/*.css — do not add page rules here.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  --color-bg:#0a0a0a;
  --color-bg-alt:#161616;
  --color-bg-alt2:#141414;
  --color-red:#D10113;
  --color-red-hover:#ff1a2f;
  --color-white:#fff;
  --color-text-muted:#b8b8b8;
  --color-text-faint:#9a9a9a;
  --font-head:'Barlow Condensed', sans-serif;
  --font-body:'Work Sans', sans-serif;
}

/* Reset */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--color-bg);
  color:var(--color-white);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
}
img, video{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
a{ color:var(--color-red); text-decoration:none; }
a:hover{ color:var(--color-red-hover); }
::selection{ background:var(--color-red); color:#fff; }

.tpa-container{ max-width:1240px; margin:0 auto; padding:0 clamp(16px,4vw,48px); }

/* Buttons */
.tpa-btn{
  display:inline-block;
  padding:15px 30px;
  font-size:14px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  border:none;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.tpa-btn-primary{ background:var(--color-red); color:#fff; }
.tpa-btn-primary:hover{ background:var(--color-red-hover); color:#fff; transform:translateY(-3px); box-shadow:0 12px 26px rgba(209,1,19,.4); }
.tpa-btn-outline{ background:transparent; border:1px solid rgba(255,255,255,.4); color:#fff; }
.tpa-btn-outline:hover{ background:var(--color-red); border-color:var(--color-red); color:#fff; transform:translateY(-3px); box-shadow:0 12px 26px rgba(209,1,19,.3); }
.tpa-btn-inverse{ background:#fff; color:var(--color-red); }
.tpa-btn-inverse:hover{ background:#f2f2f2; }

/* Section heading helpers */
.tpa-eyebrow{ display:flex; align-items:center; gap:10px; color:var(--color-red); font-size:13px; font-weight:600; letter-spacing:.25em; text-transform:uppercase; margin-bottom:16px; }
.tpa-eyebrow-line{ width:34px; height:2px; background:var(--color-red); display:inline-block; }
.tpa-section-title{ font-family:var(--font-head); font-weight:800; text-transform:uppercase; color:#fff; margin:0 0 16px; }

/* Reveal-on-scroll base state (progressive enhancement — see js/global.js).
   IMPORTANT: default state is visible; JS only adds motion, never hides content. */
.reveal{ opacity:1; transform:none; }
.js-reveal-ready .reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.js-reveal-ready .reveal.is-visible{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .js-reveal-ready .reveal{ transition:none !important; opacity:1 !important; transform:none !important; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.tpa-header{ position:sticky; top:0; z-index:200; width:100%; font-family:var(--font-body); }
.tpa-topbar{
  background:#000; border-bottom:1px solid rgba(255,255,255,.08);
  padding:7px clamp(16px,4vw,48px);
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:var(--color-text-faint); gap:16px; flex-wrap:wrap;
}
.tpa-topbar-right{ display:flex; gap:20px; align-items:center; }
.tpa-topbar a{ color:#fff; transition:color .25s ease; }
.tpa-topbar a:hover{ color:var(--color-red); }
.tpa-topbar-email{ color:var(--color-text-faint) !important; }

.tpa-nav{
  background:var(--color-bg); border-bottom:1px solid rgba(255,255,255,.08);
  padding:14px clamp(16px,4vw,48px);
  display:flex; align-items:center; justify-content:space-between; position:relative;
}
.tpa-logo{ display:flex; align-items:center; flex-shrink:0; }
.tpa-logo img{ height:74px; width:auto; object-fit:contain; }

.tpa-nav-links{ display:flex; gap:clamp(14px,2vw,32px); list-style:none; margin:0; padding:0; }
.tpa-nav-links a{
  color:#fff; font-size:13px; font-weight:500; text-transform:uppercase; letter-spacing:.04em;
  text-decoration:none; padding-bottom:4px; border-bottom:2px solid transparent;
}
.tpa-nav-links a.is-active{ color:var(--color-red); border-bottom-color:var(--color-red); }

.tpa-nav-right{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.tpa-cta-desktop{ background:var(--color-red); color:#fff; padding:11px 22px; font-size:13px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; }

.tpa-hamburger{
  display:none; background:none; border:1px solid rgba(255,255,255,.25); width:42px; height:42px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.tpa-hamburger span{ width:20px; height:2px; background:#fff; display:block; }

.tpa-mobile-menu{
  position:absolute; top:100%; left:0; right:0; background:var(--color-bg);
  border-bottom:1px solid rgba(255,255,255,.1); flex-direction:column;
  padding:8px clamp(16px,4vw,48px) 20px; display:none;
}
.tpa-mobile-menu.is-open{ display:flex; }
.tpa-mobile-menu a{
  display:block; padding:12px 0; color:#fff; font-size:16px; font-weight:600; text-transform:uppercase;
  border-bottom:1px solid rgba(255,255,255,.08); text-decoration:none;
}
.tpa-mobile-menu a.is-active{ color:var(--color-red); }
.tpa-mobile-menu .tpa-btn{ margin-top:12px; text-align:center; }

.tpa-floating-call{
  position:fixed; bottom:20px; right:20px; width:56px; height:56px; border-radius:50%;
  background:var(--color-red); display:none; align-items:center; justify-content:center;
  z-index:300; box-shadow:0 8px 20px rgba(0,0,0,.5);
}

/* ==========================================================================
   PAGE HERO (inner pages: About, Locations, Services, Portfolio, Video, Contact)
   ========================================================================== */
.tpa-page-hero{
  position:relative; height:clamp(300px,34vw,400px);
  display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden;
}
.tpa-page-hero-bg{ position:absolute; inset:0; background-position:center; background-size:cover; }
.tpa-page-hero-overlay{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 100%); }
.tpa-page-hero-inner{ position:relative; padding:0 clamp(16px,4vw,48px); max-width:760px; }
.tpa-hero-eyebrow{ justify-content:center; }
.tpa-hero-title{ font-family:var(--font-head); font-weight:800; font-size:clamp(30px,4.4vw,48px); color:#fff; text-transform:uppercase; margin:0 0 22px; }
.tpa-hero-line{ width:64px; height:1px; background:rgba(255,255,255,.35); margin:0 auto 16px; }
.tpa-hero-crumb{ color:var(--color-text-faint); font-size:12.5px; letter-spacing:.03em; }
.tpa-hero-crumb a{ color:var(--color-text-faint); }
.tpa-hero-crumb .is-current{ color:var(--color-red); font-weight:600; }

.js-reveal-ready .tpa-hero-eyebrow,
.js-reveal-ready .tpa-hero-title,
.js-reveal-ready .tpa-hero-line,
.js-reveal-ready .tpa-hero-crumb{ animation:tpaHeroIn .8s cubic-bezier(.2,.6,.2,1) both; }
.tpa-hero-eyebrow{ animation-delay:.05s; }
.tpa-hero-title{ animation-delay:.15s; }
.tpa-hero-line{ animation-delay:.3s; }
.tpa-hero-crumb{ animation-delay:.4s; }
@keyframes tpaHeroIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .tpa-hero-eyebrow, .tpa-hero-title, .tpa-hero-line, .tpa-hero-crumb{ animation:none !important; opacity:1 !important; transform:none !important; }
}

/* ==========================================================================
   RED CTA BAND (shared across pages)
   ========================================================================== */
.tpa-cta-band{ background:var(--color-red); padding:clamp(36px,5vw,54px) clamp(16px,4vw,48px); }
.tpa-cta-band-inner{ max-width:1240px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.tpa-cta-band h3{ color:#fff; font-family:var(--font-head); font-weight:700; font-size:clamp(22px,3vw,30px); text-transform:uppercase; margin:0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tpa-footer{ background:var(--color-bg-alt2); border-top:1px solid rgba(255,255,255,.08); font-family:var(--font-body); position:relative; }
.tpa-footer-grid{ max-width:1240px; margin:0 auto; padding:clamp(48px,6vw,80px) clamp(16px,4vw,48px) 40px; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:44px; }
.tpa-footer-logo{ display:flex; align-items:center; margin-bottom:16px; }
.tpa-footer-logo img{ height:66px; width:auto; object-fit:contain; }
.tpa-footer p{ color:var(--color-text-faint); font-size:14px; line-height:1.7; max-width:280px; }
.tpa-footer-title{ color:#fff; font-weight:600; font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:18px; display:flex; align-items:center; gap:9px; }
.tpa-footer-links{ display:flex; flex-direction:column; gap:12px; }
.tpa-footer-links a{ display:flex; align-items:center; gap:9px; color:#b8b8b8; font-size:14px; transition:color .25s ease; }
.tpa-footer-links a:hover{ color:var(--color-red); }
.tpa-footer-contact{ display:flex; flex-direction:column; gap:14px; font-size:14px; }
.tpa-footer-contact-row{ display:flex; gap:12px; align-items:flex-start; }
.tpa-footer-contact-row svg{ color:#fff; flex-shrink:0; margin-top:2px; }
.tpa-footer-contact-row a{ color:#fff; transition:color .25s ease; }
.tpa-footer-contact-row a:hover{ color:var(--color-red); }
.tpa-footer-contact-row span{ color:var(--color-text-faint); }
.tpa-footer-bottom{ max-width:1240px; margin:0 auto; padding:20px clamp(16px,4vw,48px); border-top:1px solid rgba(255,255,255,.08); text-align:center; }
.tpa-footer-bottom span{ color:#7a7a7a; font-size:12.5px; }
