/* ══════════════════════════════════════════
   global.css — Texas Skill Masters
   Shared styles: reset, variables, nav, footer
   ══════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #CC1B1B;
  --red2:   #E82020;
  --black:  #0A0A0A;
  --dark:   #111111;
  --mid:    #1A1A1A;
  --steel:  #1E1E1E;
  --white:  #F5F5F5;
  --grey:   #999999;
  --light:  #CCCCCC;
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }


/* ══ NAVIGATION ══════════════════════════════ */

nav#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw;
  height: var(--nav-h);
  background: rgba(10,10,10,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(204,27,27,0.2);
  transition: border-color 0.3s;
}

nav#navbar.scrolled {
  border-bottom-color: rgba(204,27,27,0.45);
}

/* Logo */
.nav-logo a {
  display: flex; align-items: center;
}
.nav-logo img {
  height: 48px;
  width: auto;
  transition: filter 0.3s;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 10px rgba(204,27,27,0.6));
}

/* Links */
.nav-links {
  display: flex; gap: 2.2rem;
  list-style: none;
  font-family: var(--font-cond);
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a {
  color: var(--light);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Phone number */
.nav-phone {
  font-family: var(--font-cond);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--light);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--red); }

/* CTA button */
.nav-cta {
  background: var(--red); color: #fff;
  padding: 0.5rem 1.35rem;
  font-family: var(--font-cond);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid var(--red);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: transparent; color: var(--red); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══ MOBILE MENU ══════════════════════════════ */

.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  z-index: 190;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.8rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.4rem; letter-spacing: 0.08em;
  color: var(--white); text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .mobile-cta {
  margin-top: 0.5rem;
  background: var(--red);
  padding: 0.7rem 2rem;
  font-size: 1.5rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  color: #fff;
}
.mobile-menu .mobile-cta:hover { background: var(--red2); color: #fff; }
.mobile-menu .mobile-phone {
  font-family: var(--font-cond);
  font-size: 1.2rem; letter-spacing: 0.1em;
  color: var(--grey);
}
.mobile-menu .mobile-phone:hover { color: var(--red); }


/* ══ SHARED UTILITY CLASSES ════════════════ */

.section-label {
  font-family: var(--font-cond);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--red);
  flex-shrink: 0;
}
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.section-title .accent { color: var(--red); }

.btn-primary {
  display: inline-block;
  background: var(--red); color: #fff;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-cond);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  border: 2px solid var(--red);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--red); }

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-cond);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.2);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: border-color 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }


/* ══ MARQUEE STRIP ══════════════════════════ */

.marquee-strip {
  background: var(--red);
  padding: 0.65rem 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-cond);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0 2rem; color: #fff;
}
.marquee-item::before { content: '★  '; }


/* ══ FOOTER ══════════════════════════════════ */

footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 4.5rem 4vw 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px; margin: 0 auto 3rem;
}

.footer-brand img {
  height: 52px; width: auto;
  margin-bottom: 1.1rem;
  transition: filter 0.3s;
}
.footer-brand img:hover {
  filter: drop-shadow(0 0 10px rgba(204,27,27,0.5));
}
.footer-brand p {
  font-size: 0.88rem; color: var(--grey);
  line-height: 1.7; max-width: 270px;
  margin-bottom: 1.2rem;
}
.footer-social {
  display: flex; gap: 0.75rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }

.footer-col h4 {
  font-family: var(--font-cond);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(204,27,27,0.3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: var(--grey);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem; color: var(--grey);
  font-family: var(--font-cond); letter-spacing: 0.05em;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.78rem; color: var(--grey);
  font-family: var(--font-cond); letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--red); }


/* ══ PAGE HERO OFFSET (for non-home pages) ══ */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  padding-left: 4vw; padding-right: 4vw;
  background: var(--dark);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(204,27,27,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,27,27,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95; text-transform: uppercase;
  color: var(--white);
  margin: 0.5rem 0 1rem;
}
.page-hero p {
  font-size: 1.1rem; color: var(--grey);
  line-height: 1.7; max-width: 560px;
}


/* ══ RESPONSIVE ══════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}
