/* ================================================
   TODAY'S SOUND, LLC — STYLESHEET
   Broadcast Engineering | Lincoln, Nebraska
   ================================================ */

/* 1. CUSTOM PROPERTIES
   ==================== */
:root {
  --navy:        #0b1f3a;
  --navy-mid:    #1a3a5c;
  --blue:        #2460a7;
  --orange:      #e07820;
  --orange-dark: #c4661a;
  --orange-glow: rgba(224,120,32,0.35);

  --gray-50:  #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e0e5ec;
  --gray-400: #94a3b8;
  --gray-600: #5a6a7d;
  --gray-800: #334155;
  --dark:     #0e1a27;
  --white:    #ffffff;

  --ff-head: 'Barlow', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --sh-sm: 0 1px 4px rgba(0,0,0,.08);
  --sh-md: 0 4px 20px rgba(0,0,0,.10);
  --sh-lg: 0 10px 40px rgba(0,0,0,.15);
  --sh-xl: 0 20px 60px rgba(0,0,0,.22);

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --ease: 0.25s ease;

  --header-h:  70px;
  --ctr-max:   1160px;
  --ctr-pad:   clamp(20px, 5vw, 48px);
}

/* 2. RESET & BASE
   =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
svg  { display: block; flex-shrink: 0; }

/* 3. LAYOUT
   ========= */
.container {
  max-width: var(--ctr-max);
  margin-inline: auto;
  padding-inline: var(--ctr-pad);
}
section { padding-block: clamp(64px, 9vw, 104px); }

/* 4. TYPOGRAPHY UTILITIES
   ======================== */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.18;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 620px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-header .section-desc { margin-inline: auto; }

/* 5. BUTTONS
   ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: border-color var(--ease), background var(--ease);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: background var(--ease);
}
.btn-sm:hover { background: var(--orange-dark); }

.btn-full { width: 100%; justify-content: center; }

/* 6. HEADER
   ========= */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}
#site-header.scrolled {
  background: rgba(11,31,58,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--ctr-max);
  margin-inline: auto;
  padding-inline: var(--ctr-pad);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { width: 38px; height: 38px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
}
.logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}
.primary-nav a:not(.btn-nav) {
  font-family: var(--ff-head);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color var(--ease);
}
.primary-nav a:not(.btn-nav):hover { color: var(--white); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: background var(--ease), box-shadow var(--ease);
}
.btn-nav:hover {
  background: var(--orange-dark);
  box-shadow: 0 4px 14px var(--orange-glow);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
}
.nav-toggle span:nth-child(3) { width: 70%; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* 7. HERO
   ======= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(130deg, #0a1928 0%, #0f2744 40%, #182f50 70%, #0d2040 100%);
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Dot grid overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Bottom wave divider */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* Tower illustration */
.hero-illustration {
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 28vw, 380px);
  opacity: 0.55;
  pointer-events: none;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(224,120,32,0.18);
  border: 1px solid rgba(224,120,32,0.38);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0a050;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--orange); }

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.78;
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.hero-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}
.contact-pill svg { width: 15px; height: 15px; }
.contact-pill:hover { color: rgba(255,255,255,0.92); }

/* 8. STATS BAR
   ============ */
.stats-bar {
  padding-block: 0;
  background: var(--orange);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.28);
}
.stat:last-child { border-right: none; }
.stat strong {
  font-family: var(--ff-head);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}
.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 9. SERVICES
   =========== */
#services { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--sh-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: rgba(224,120,32,0.22);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(224,120,32,0.14), rgba(224,120,32,0.06));
  border-radius: var(--r);
  color: var(--orange);
  margin-bottom: 22px;
  transition: background var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(224,120,32,0.22), rgba(224,120,32,0.1));
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.67;
}

/* 10. ABOUT
   ========= */
#about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-text .section-title { margin-bottom: 24px; }
.about-text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.78;
  margin-bottom: 18px;
}
.about-text .btn-primary { margin-top: 10px; }

.about-cards { display: flex; flex-direction: column; gap: 18px; }

.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
}
.info-card h4 {
  font-family: var(--ff-head);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  color: var(--gray-800);
  line-height: 1.5;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { width: 16px; height: 16px; margin-top: 2px; color: var(--orange); }
.contact-list a {
  color: var(--blue);
  transition: color var(--ease);
}
.contact-list a:hover { color: var(--orange); }

.info-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.info-card--dark {
  background: var(--navy);
  border-color: var(--navy);
}
.info-card--dark h4 { color: rgba(255,255,255,0.5); }
.info-card--dark p  { color: rgba(255,255,255,0.62); margin-bottom: 18px; }

/* 11. CONTACT
   =========== */
#contact { background: var(--navy); }
#contact .section-tag  { color: rgba(255,255,255,0.5); }
#contact .section-title { color: var(--white); }
#contact .section-desc  { color: rgba(255,255,255,0.58); }

.contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 4px;
}
.contact-item a,
.contact-item span {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  display: block;
  transition: color var(--ease);
}
.contact-item a:hover { color: var(--orange); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--gray-50);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36,96,167,0.13);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: 12px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.form-success.visible { display: block; }
.form-success .check-icon {
  width: 56px;
  height: 56px;
  background: rgba(34,197,94,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #16a34a;
}
.form-success h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.9375rem; color: var(--gray-600); }

/* 12. FOOTER
   ========== */
#footer {
  background: var(--dark);
  padding-top: clamp(48px, 7vw, 80px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.42);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.52);
  transition: color var(--ease);
  line-height: 1.4;
}
.footer-col a:hover { color: var(--orange); }

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
}
.footer-col address a {
  display: block;
  margin-top: 2px;
}

.footer-bottom {
  padding-block: 22px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

/* 13. SCROLL ANIMATIONS
   ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 14. RESPONSIVE
   ============== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hero-illustration { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,25,45,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px var(--ctr-pad) 40px;
    transform: translateX(100%);
    transition: transform var(--ease);
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }

  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .primary-nav li:last-child { border-bottom: none; padding-top: 16px; }
  .primary-nav a:not(.btn-nav) {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
  }
  .btn-nav { display: block; text-align: center; padding: 14px; font-size: 1rem; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.28); }
  .stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.28); }
  .stat:nth-child(3),
  .stat:nth-child(4)    { border-bottom: none; }

  .services-grid { grid-template-columns: 1fr; }
  .about-cards   { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-brand  { grid-column: auto; }

  .hero-contact-bar { flex-direction: column; gap: 14px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-badge { font-size: 0.7rem; }
}
