/*
Theme Name: Texas TV Truck
Theme URI: https://texastvtruck.com
Author: Bounce Multimedia LLC
Author URI: https://texastvtruck.com
Description: Custom block theme for Bounce Multimedia / texastvtruck.com. Spec-sheet aesthetic for a mobile television production company: fleet pages, quote intake form, no page builders.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: texastvtruck
*/

/* ---------------------------------------------------------------
   Tokens (mirrors theme.json presets for convenience)
--------------------------------------------------------------- */
:root {
  --ttt-ink: #191C1F;
  --ttt-aluminum: #ECECE8;
  --ttt-paper: #F7F7F4;
  --ttt-charcoal: #22262B;
  --ttt-charcoal-2: #2A2F35;
  --ttt-line: #C9CBC4;
  --ttt-line-dark: #3A3F45;
  --ttt-muted: #5B5F58;
  --ttt-muted-dark: #A9AEA6;
  --ttt-tally: #BE2A1E;
  --ttt-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ttt-sans: "Barlow", system-ui, sans-serif;
  --ttt-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ttt-pad: clamp(20px, 5.5vw, 80px);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, .ttt-cond {
  font-family: var(--ttt-cond);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.ttt-main > * { margin-block-start: 0 !important; }

/* Full-bleed sections share horizontal padding */
.ttt-section { padding-left: var(--ttt-pad); padding-right: var(--ttt-pad); }

/* ---------------------------------------------------------------
   Utility bar + header
--------------------------------------------------------------- */
.ttt-utility {
  background: var(--ttt-charcoal);
  color: #C9CDC6;
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.ttt-utility p { margin: 0; }
.ttt-utility a { color: #fff; font-weight: 600; text-decoration: none; }

.ttt-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ttt-aluminum);
  border-bottom: 1px solid var(--ttt-line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 20px; padding-bottom: 20px;
  transition: padding .25s ease, box-shadow .25s ease;
}
body.is-scrolled .ttt-header {
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 0 var(--ttt-line);
}
.ttt-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.ttt-tally-dot { width: 14px; height: 14px; background: var(--ttt-tally); flex: none; }
.ttt-brand .wp-block-site-title { margin: 0; }
.ttt-brand .wp-block-site-title a {
  font-family: var(--ttt-cond); font-weight: 700; font-size: 26px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ttt-ink); text-decoration: none; line-height: 1;
}
.ttt-brand-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ttt-muted); }
.ttt-header .wp-block-navigation a { font-size: 16px; font-weight: 500; }
.ttt-header-cta { flex: none; }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */
.wp-block-button .wp-block-button__link,
.ttt-form button[type="submit"] {
  background: var(--ttt-tally); color: #fff;
  font-family: var(--ttt-sans); font-weight: 600; font-size: 17px;
  border-radius: 3px; padding: 15px 30px; border: none; text-decoration: none;
}
.wp-block-button.ttt-btn-outline .wp-block-button__link {
  background: transparent; color: var(--ttt-ink);
  border: 2px solid var(--ttt-ink); padding: 13px 28px;
}
.wp-block-button .wp-block-button__link:hover,
.ttt-form button[type="submit"]:hover { background: #A32318; color: #fff; }
.wp-block-button.ttt-btn-outline .wp-block-button__link:hover { color: var(--ttt-tally); border-color: var(--ttt-tally); background: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ttt-tally); outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.ttt-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 76px); }
.ttt-hero h1 { font-size: clamp(46px, 7.6vw, 108px); max-width: 1100px; margin: 0 0 24px; }
.ttt-hero .ttt-lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: #33372F; max-width: 720px; margin: 0 0 28px; }
.ttt-hero .wp-block-buttons { margin-bottom: 20px; }
.ttt-hero-small { font-size: 15px; color: var(--ttt-muted); margin: 0; }

/* ---------------------------------------------------------------
   Elevation drawing band
--------------------------------------------------------------- */
.ttt-elevation {
  background: var(--ttt-paper);
  border-top: 1px solid var(--ttt-line); border-bottom: 1px solid var(--ttt-line);
  padding-top: 44px; padding-bottom: 32px;
}
.ttt-elevation-svg { display: block; width: min(1280px, 100%); height: auto; margin: 0 auto; }
.ttt-elevation-caption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }
.ttt-elevation-caption p { margin: 0; }
.ttt-fig { font-family: var(--ttt-mono); font-size: 13px; color: var(--ttt-muted); }
.ttt-caption { font-size: 15px; font-weight: 500; color: #33372F; }

/* Draw-on-view animation (JS adds .will-draw / .is-drawn; reduced motion opts out) */
.ttt-elevation-svg.will-draw .draw { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.ttt-elevation-svg.will-draw .dim { opacity: 0; }
.ttt-elevation-svg.is-drawn .draw { animation: ttt-draw 1.8s ease-out forwards; }
.ttt-elevation-svg.is-drawn .dim { animation: ttt-fade .6s ease 1.5s forwards; }
@keyframes ttt-draw { to { stroke-dashoffset: 0; } }
@keyframes ttt-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ttt-elevation-svg .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .ttt-elevation-svg .dim { opacity: 1 !important; animation: none !important; }
}

/* ---------------------------------------------------------------
   Fleet (dark)
--------------------------------------------------------------- */
.ttt-dark { background: var(--ttt-charcoal); color: #E8EAE6; }
.ttt-dark h2, .ttt-dark h3 { color: #fff; }
.ttt-dark a { color: #fff; }
.ttt-dark a:hover { color: #F0A9A2; }
.ttt-fleet { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ttt-fleet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.ttt-fleet-head h2 { font-size: clamp(40px, 4.5vw, 64px); margin: 0; }
.ttt-fleet-head p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ttt-muted-dark); max-width: 560px; }

.ttt-unit-row {
  border-top: 1px solid var(--ttt-line-dark);
  padding-top: 40px; margin-top: 40px;
  display: grid; grid-template-columns: 3fr 5fr 3fr; gap: 32px;
}
.ttt-unit-row:first-of-type { margin-top: 0; }
.ttt-unit-name { font-family: var(--ttt-cond); font-weight: 700; font-size: 40px; line-height: 1; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.ttt-unit-role { font-size: 16px; color: var(--ttt-muted-dark); line-height: 1.5; margin: 0 0 12px; }
.ttt-unit-link { font-size: 16px; font-weight: 600; }

.ttt-spec { display: grid; grid-template-columns: 170px 1fr; gap: 8px 24px; font-size: 15.5px; line-height: 1.7; margin: 0; }
.ttt-spec dt { color: var(--ttt-muted-dark); font-weight: 400; }
.ttt-spec dd { margin: 0; color: #fff; font-weight: 500; }

/* Photo placeholders + fleet photos */
.ttt-ph {
  border: 1px solid var(--ttt-line-dark); background: var(--ttt-charcoal-2);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
  font-family: var(--ttt-mono); font-size: 13px; color: var(--ttt-muted-dark);
}
.ttt-unit-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }

/* ---------------------------------------------------------------
   Services
--------------------------------------------------------------- */
.ttt-services { background: var(--ttt-paper); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.ttt-services h2 { font-size: clamp(36px, 4vw, 56px); margin: 0 0 12px; }
.ttt-services-intro { font-size: 18px; color: var(--ttt-muted); max-width: 640px; margin: 0 0 44px; }
.ttt-services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.ttt-service { border-top: 2px solid var(--ttt-ink); padding-top: 20px; }
.ttt-service h4 { font-size: 20px; font-weight: 600; margin: 0 0 8px; font-family: var(--ttt-sans); text-transform: none; }
.ttt-service p { font-size: 15.5px; line-height: 1.55; color: var(--ttt-muted); margin: 0; }

/* ---------------------------------------------------------------
   Integration / rentals
--------------------------------------------------------------- */
.ttt-av { border-top: 1px solid var(--ttt-line); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); }
.ttt-av h3 { font-size: clamp(30px, 3vw, 40px); margin: 0 0 14px; }
.ttt-av-intro { font-size: 16px; line-height: 1.55; color: var(--ttt-muted); max-width: 480px; margin: 0 0 12px; }
.ttt-linklist { display: flex; flex-direction: column; }
.ttt-linklist a { font-size: 17px; font-weight: 500; padding: 14px 0; border-top: 1px solid var(--ttt-line); text-decoration: none; }
.ttt-linklist a:last-child { border-bottom: 1px solid var(--ttt-line); }
.ttt-linklist a:hover { color: var(--ttt-tally); }

/* ---------------------------------------------------------------
   About band
--------------------------------------------------------------- */
.ttt-about { padding-top: clamp(56px, 6.5vw, 88px); padding-bottom: clamp(56px, 6.5vw, 88px); }
.ttt-quote-line { font-family: var(--ttt-cond); font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; color: #fff; max-width: 980px; margin: 0 0 14px; text-transform: none; }
.ttt-attrib { font-size: 16px; color: var(--ttt-muted-dark); margin: 0 0 24px; }
.ttt-about-stats { font-size: 18px; line-height: 1.6; color: #C9CDC6; max-width: 760px; margin: 0 0 28px; }
.ttt-logos { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ttt-logos .ttt-ph { width: 150px; min-height: 56px; }
.ttt-logos img { max-height: 48px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .85; }

/* ---------------------------------------------------------------
   Contact / CTA
--------------------------------------------------------------- */
.ttt-contact { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); }
.ttt-contact h2 { font-size: clamp(44px, 5vw, 72px); margin: 0 0 20px; }
.ttt-contact-lede { font-size: 18px; line-height: 1.55; color: #33372F; max-width: 520px; margin: 0 0 24px; }
.ttt-phone { font-family: var(--ttt-cond); font-weight: 700; font-size: clamp(30px, 3vw, 40px); text-decoration: none; color: var(--ttt-ink); }
.ttt-cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ttt-addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-content: start; }
.ttt-addr { border-top: 2px solid var(--ttt-ink); padding-top: 18px; }
.ttt-addr h4 { font-size: 18px; font-weight: 600; margin: 0 0 6px; font-family: var(--ttt-sans); text-transform: none; }
.ttt-addr p { font-size: 16px; line-height: 1.55; color: var(--ttt-muted); margin: 0; }
.ttt-addr-note { grid-column: 1 / -1; border-top: 1px solid var(--ttt-line); padding-top: 18px; font-size: 15px; color: var(--ttt-muted); margin: 0; }

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.ttt-footer { background: var(--ttt-charcoal); color: var(--ttt-muted-dark); padding-top: 52px; padding-bottom: 44px; }
.ttt-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.ttt-footer .wp-block-site-title a { font-family: var(--ttt-cond); font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none; }
.ttt-footer .wp-block-navigation a { color: #C9CDC6; font-size: 15px; }
.ttt-footer-legal { border-top: 1px solid var(--ttt-line-dark); padding-top: 22px; font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------
   Unit spec pages
--------------------------------------------------------------- */
.ttt-unit-hero { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.ttt-crumb { font-size: 15px; color: var(--ttt-muted); text-decoration: none; display: inline-block; margin-bottom: 16px; }
.ttt-unit-hero h1 { font-size: clamp(44px, 7vw, 96px); margin: 0 0 18px; }
.ttt-unit-lede { font-size: 20px; line-height: 1.55; color: #33372F; max-width: 720px; margin: 0; }
.ttt-facts { display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; border-top: 2px solid var(--ttt-ink); padding-top: 20px; margin-top: 32px; }
.ttt-fact span { display: block; font-size: 14px; color: var(--ttt-muted); margin-bottom: 4px; }
.ttt-fact strong { font-size: 19px; font-weight: 500; }
.ttt-photos { padding-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ttt-photos .ttt-ph { min-height: 260px; border-color: var(--ttt-line); background: #E0E1DC; color: var(--ttt-muted); }
.ttt-photos img { width: 100%; height: 260px; object-fit: cover; display: block; }
.ttt-equip { padding-top: clamp(44px, 5.5vw, 72px); padding-bottom: clamp(44px, 5.5vw, 72px); }
.ttt-equip h2 { font-size: clamp(36px, 4vw, 56px); margin: 0 0 24px; }
.ttt-equip-table { margin: 0; }
.ttt-equip-table > div { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--ttt-line); }
.ttt-equip-table > div:first-child { border-top: 2px solid var(--ttt-ink); }
.ttt-equip-table > div:last-child { border-bottom: 2px solid var(--ttt-ink); }
.ttt-equip-table dt { font-size: 17px; font-weight: 600; }
.ttt-equip-table dd { margin: 0; font-size: 17px; font-weight: 500; }
.ttt-equip-note { font-size: 14.5px; color: var(--ttt-muted); margin-top: 20px; }
.ttt-floorplan { padding-bottom: clamp(44px, 5.5vw, 72px); }
.ttt-floorplan h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 16px; }
.ttt-floorplan .ttt-ph { min-height: 280px; border-color: var(--ttt-line); background: var(--ttt-paper); color: var(--ttt-muted); }
.ttt-unit-cta { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.ttt-unit-cta h2 { font-size: clamp(34px, 4vw, 56px); margin: 0 0 10px; }
.ttt-unit-cta p { margin: 0; font-size: 18px; color: var(--ttt-muted-dark); }
.ttt-unit-cta .ttt-phone { color: #fff; }

/* ---------------------------------------------------------------
   Quote page + form
--------------------------------------------------------------- */
.ttt-quote { padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px); }
.ttt-quote h1 { font-size: clamp(44px, 5.5vw, 76px); margin: 0 0 20px; }
.ttt-quote-lede { font-size: 19px; line-height: 1.55; color: #33372F; max-width: 520px; margin: 0 0 28px; }
.ttt-steps { max-width: 520px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.ttt-steps li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--ttt-line); align-items: baseline; font-size: 16.5px; line-height: 1.5; counter-increment: step; }
.ttt-steps li:last-child { border-bottom: 1px solid var(--ttt-line); }
.ttt-steps li::before { content: counter(step); font-family: var(--ttt-cond); font-weight: 700; font-size: 26px; color: var(--ttt-tally); min-width: 28px; }
.ttt-quote-alt { font-size: 15px; color: var(--ttt-muted); margin: 0 0 6px; }

.ttt-form { background: var(--ttt-paper); border: 1px solid var(--ttt-line); padding: clamp(20px, 3vw, 36px); }
.ttt-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ttt-form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.ttt-form-row .ttt-form-field { margin-bottom: 0; }
.ttt-form label { font-size: 14px; font-weight: 600; }
.ttt-form input, .ttt-form select, .ttt-form textarea {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--ttt-line); border-radius: 3px; background: #fff;
  font-family: var(--ttt-sans); font-size: 15.5px; color: var(--ttt-ink);
}
.ttt-form textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.ttt-form button[type="submit"] { width: 100%; height: 54px; padding: 0; cursor: pointer; }
.ttt-form-note { font-size: 13.5px; color: var(--ttt-muted); margin: 12px 0 0; }
.ttt-form-note.is-sent { color: #1E6B34; font-weight: 600; font-size: 15px; }
.ttt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------
   Generic pages
--------------------------------------------------------------- */
.ttt-page-plain { padding-top: 56px; padding-bottom: 72px; max-width: 860px; }
.ttt-page-plain h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ttt-unit-row { grid-template-columns: 1fr 1fr; }
  .ttt-unit-row > .ttt-unit-media { grid-column: 1 / -1; }
  .ttt-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ttt-unit-row, .ttt-av, .ttt-contact, .ttt-quote, .ttt-addr-grid { grid-template-columns: 1fr; }
  .ttt-photos { grid-template-columns: 1fr; }
  .ttt-form-row { grid-template-columns: 1fr; }
  .ttt-spec { grid-template-columns: 120px 1fr; }
  .ttt-utility { font-size: 12px; }
  .ttt-utility .ttt-utility-hours { display: none; }
}
@media (max-width: 600px) {
  .ttt-services-grid { grid-template-columns: 1fr; }
  .ttt-equip-table > div { grid-template-columns: 1fr; gap: 4px; }
  .ttt-brand-sub { display: none; }
}
