/* Ace & Alan - Conversion-optimized rebuild
   Principles: Single CTA, reduced complexity, trust above fold, clarity in 5s */

@font-face {
  font-family: 'Tenaciou';
  src: url('assets/fonts/Tenaciou/Web-PS/Tenaciou-Heavy.woff2') format('woff2'),
       url('assets/fonts/Tenaciou/OpenType-TT/Tenaciou-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate-950: #0f172a;
  --slate-900: #0e1a2e;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.aa-new {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--slate-950); color: white; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-950);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: inherit; text-decoration: none; font-size: 1.1rem;
}
.logo .logo-brand {
  font-family: 'Tenaciou', sans-serif;
  font-weight: 700;
}
.logo img { width: 48px; height: 48px; object-fit: contain; }
.header-texas-map { width: 40px; height: 39px; object-fit: contain; margin-left: 0.5rem; }
.header-contact {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.header-phone {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.95); text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: color var(--transition);
  padding: 0.5rem 0.25rem;
  min-height: 44px;
}
.header-phone:hover { color: white; }
.header-phone .phone-icon { width: 24px; height: 24px; flex-shrink: 0; }
.header-phone .phone-number { white-space: nowrap; }
.header-hours {
  font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 500;
}
@media (max-width: 480px) {
  .logo .logo-brand { display: none; }
  .header-texas-map { width: 32px; height: 31px; }
  .header-contact { gap: 0.25rem; flex-direction: column; align-items: flex-end; }
  .header-phone { font-size: 0.9rem; }
  .header-phone .phone-icon { width: 20px; height: 20px; }
  .header-hours { font-size: 0.85rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 100%);
  color: white;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem 4rem; }
}
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 3.5rem; }
}
.hero-badge {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.5rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
  min-height: 44px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  min-height: 44px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.hero-trust {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* RFQ */
.rfq {
  padding: 4rem 1.5rem;
  background: var(--slate-100);
}
@media (max-width: 768px) {
  .rfq { padding: 3rem 1.25rem; }
}
@media (max-width: 480px) {
  .rfq { padding: 2.5rem 1rem; }
}
.rfq-inner {
  max-width: 560px;
  margin: 0 auto;
}
.rfq h2 {
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
.rfq-desc { color: var(--slate-500); margin-bottom: 0.5rem; }
.rfq-marquee {
  margin: 2rem 0;
  overflow: hidden;
  padding: 0.75rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.rfq-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: rfq-scroll 80s linear infinite;
}
.rfq-marquee-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  white-space: nowrap;
}
.rfq-marquee-track span::after {
  content: ' · ';
  margin-left: 2rem;
  color: var(--slate-400);
  font-weight: 400;
}
@keyframes rfq-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rfq-marquee-track { animation: none; }
}
.rfq-line-items { margin-bottom: 1rem; }
.rfq-line-header { display: grid; grid-template-columns: minmax(0, 1fr) 80px 28px; gap: 0.5rem 0.75rem; font-weight: 500; font-size: 0.85rem; color: var(--slate-600); margin-bottom: 0.5rem; }
.rfq-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 28px; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.rfq-line input[type="text"],
.rfq-line input[type="number"] { min-width: 0; }
.rfq-add-line { background: none; border: 1px dashed var(--slate-300); color: var(--slate-600); padding: 0.5rem 0.75rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); font-size: 0.9rem; cursor: pointer; margin-top: 0.25rem; }
.rfq-add-line:hover { border-color: var(--slate-500); color: var(--slate-700); }
.rfq-remove-line { background: none; border: none; color: var(--slate-400); font-size: 1.25rem; cursor: pointer; padding: 0.5rem; min-width: 44px; min-height: 44px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.rfq-remove-line:hover { color: var(--accent); }
.rfq-privacy { color: var(--slate-500); font-size: 0.9rem; margin-top: 1rem; margin-bottom: 0; text-align: center; }
.rfq-thanks { text-align: center; padding: 2rem; background: rgba(34,197,94,0.1); border-radius: var(--radius); border: 1px solid rgba(34,197,94,0.3); }
.rfq-thanks-title { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.rfq-thanks p:last-child { color: var(--slate-500); margin: 0; }
.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rfq-form label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-weight: 500; color: var(--slate-700);
}
.rfq-form label em { font-style: normal; font-weight: 400; color: var(--slate-500); }
.rfq-form input,
.rfq-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
}
.rfq-form textarea { resize: vertical; min-height: 120px; }
.rfq-form input:focus,
.rfq-form textarea:focus {
  outline: none;
  border-color: var(--slate-700);
  box-shadow: 0 0 0 3px rgba(30,41,59,0.1);
}
.rfq-form input[type="file"] {
  padding: 0.6rem 0.75rem;
  background: white;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220,38,38,0.35);
  background: rgba(220,38,38,0.08);
  color: #7f1d1d;
  font-size: 0.95rem;
}
.btn-full:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.rfq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rfq-full { grid-column: 1 / -1; }
.btn-full { width: 100%; text-align: center; font-size: 1rem; padding: 0.875rem; min-height: 44px; cursor: pointer; border: none; font-family: inherit; }
@media (max-width: 480px) {
  .rfq-row { grid-template-columns: 1fr; }
  .rfq-line-header,
  .rfq-line { grid-template-columns: minmax(0, 1fr) 60px 28px; gap: 0.5rem; }
}

/* Products - Bento (hidden for now) */
.products {
  display: none;
  padding: 4rem 1.5rem;
  background: var(--white);
}
.products-inner { max-width: 1100px; margin: 0 auto; }
.products h2 {
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  text-align: center;
}
.products-lead {
  text-align: center;
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  grid-auto-rows: 200px;
}
.bento-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-700);
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}
.bento-card:hover { transform: translateY(-2px); }
.bento-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bento-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 50%, transparent 70%);
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-label {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  font-weight: 700; font-size: 1.15rem; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.bento-desc {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.95); line-height: 1.4;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}
.bento-cta {
  position: absolute; bottom: 1rem; right: 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.bento-card:hover .bento-label { bottom: 3rem; }
.bento-card:hover .bento-desc { opacity: 1; transform: translateY(0); }
.bento-card:hover .bento-cta { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .bento-large { grid-column: span 2; grid-row: span 1; }
  .bento-desc { display: none; }
  .bento-cta { opacity: 1; bottom: 0.75rem; right: 0.75rem; font-size: 0.75rem; }
}

/* Why Us (hidden for now) */
.why {
  display: none;
  padding: 4rem 1.5rem;
  background: var(--slate-100);
}
.why-inner { max-width: 1000px; margin: 0 auto; }
.why h2 {
  font-size: 1.75rem;
  color: var(--slate-900);
  margin-bottom: 2rem;
  text-align: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.why-card strong {
  display: block;
  font-size: 1rem;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  background: var(--slate-900);
  color: rgba(255,255,255,0.8);
  text-align: center;
}
.footer-logo { max-height: 140px; margin-bottom: 1rem; }
.footer nav {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem;
  margin: 1rem 0;
}
.footer nav a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer nav a:hover { color: white; }
.footer-dv-logo {
  display: block; height: 48px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.8;
}
.footer nav a:has(.footer-dv-logo):hover .footer-dv-logo { opacity: 1; }
.footer-copy { font-size: 0.85rem; opacity: 0.7; margin-top: 1rem; }

.footer-proud {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.85rem; margin-bottom: 0.5rem;
}
.footer-texas-map { width: 32px; height: 31px; object-fit: contain; }

/* Scroll fade-in */
.fade-in { opacity: 0; transform: translateY(12px); }
.fade-in.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
