/* Aerostar Media Group — shared styles
   Palette pulled from the logo: red + slate navy. */
:root {
  --red: #da343a;
  --red-dark: #b82329;
  --navy: #2b4f69;
  --navy-dark: #1b3347;
  --navy-deep: #12222f;
  --gray: #f3f5f7;
  --line: #dde3e8;
  --text: #1f2d38;
  --muted: #5a6b78;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 34, 47, 0.12);
  --max: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.4rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

/* Language toggle: one span per language */
body[data-lang="en"] .es { display: none !important; }
body[data-lang="es"] .en { display: none !important; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--gray); }
.section.dark { background: var(--navy-dark); color: #dbe6ee; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-family: var(--head); font-size: 1.1rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.dark .lead { color: #b9cad7; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.source { font-size: .82rem; color: var(--muted); margin: -.4rem 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(218, 52, 58, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 100px; }
.brand { flex-shrink: 0; }
.brand img { height: 84px; width: auto; aspect-ratio: 640 / 431; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang-toggle {
  background: var(--navy-deep); border: 2px solid var(--navy-deep); color: #fff; font-weight: 700;
  border-radius: 999px; padding: .2rem .65rem; cursor: pointer; font-size: .75rem; letter-spacing: .02em; white-space: nowrap;
}
.lang-toggle:hover { background: var(--red); border-color: var(--red); color: #fff; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1100px) {
  .nav { min-height: 84px; }
  .brand img { height: 68px; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { min-height: 76px; }
  .brand img { height: 60px; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 1rem 1.5rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 70%);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem);
}
.hero::after { /* red "flight streak" echoing the logo */
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 70%; height: 140%;
  background: linear-gradient(115deg, transparent 55%, rgba(218,52,58,.9) 55.2%, rgba(218,52,58,.9) 58%, transparent 58.2%);
  opacity: .55; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
/* Home hero: copy on the left, logo on a white card on the right (hidden on small screens; the header carries it there) */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.hero-logo { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); width: clamp(240px, 26vw, 340px); }
.hero-logo img { width: 100%; height: auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { display: none; } }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: .1em; }
.hero .lead { color: #cfdce6; font-size: 1.25rem; }
.hero-sub { margin-top: 1.2rem; font-size: .9rem; color: #9fb6c7; letter-spacing: .05em; }
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); max-width: 22ch; }

/* Reach strip */
.reach { margin-top: -3.2rem; position: relative; z-index: 2; }
.reach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.8rem 1.2rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--red); }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .reach-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Cards / grids */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(218,52,58,.1); color: var(--red);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.card p { color: var(--muted); margin-bottom: 0; }
.section-head { margin-bottom: 2.4rem; }

/* Dark service cards (Home + Services) */
.card-dark { position: relative; overflow: hidden; background: var(--navy-dark); border-color: var(--navy-dark); }
.card-dark::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red);
  opacity: 0; transition: opacity .2s ease;
}
.card-dark:hover { box-shadow: 0 14px 34px rgba(18, 34, 47, .35); }
.card-dark:hover::before { opacity: 1; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #b9cad7; }
.card-dark .icon { background: rgba(218, 52, 58, .14); }
.card-dark .icon svg { width: 28px; height: 28px; display: block; }

/* Station cards */
.station {
  border-radius: var(--radius); padding: 2.2rem; color: #fff; position: relative; overflow: hidden;
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-start;
  align-items: center; text-align: center;
}
.station > p { margin-bottom: 1rem; }
.station-phone { color: #fff; font-weight: 600; text-decoration: none; margin-bottom: 1rem; }
@media (max-width: 900px) { .station { padding: 1.6rem; } }
.station-phone:hover { text-decoration: underline; }
.station.mi { background: linear-gradient(150deg, #1b4d7a 0%, #0c2340 100%); border: 3px solid #e31c3d; }
.station.mi .tag { background: #e31c3d; color: #fff; }
.station.mi .btn { background: #e31c3d; color: #fff; }
.station.ley { background: radial-gradient(circle at 50% 0%, #4a2a05 0%, #141414 65%); border: 3px solid #f7a21b; }
.station.ley .tag { background: linear-gradient(90deg, #f7a21b, #f9d71c); color: #141414; font-weight: 700; }
.station.ley .btn { background: linear-gradient(90deg, #f7a21b, #f9d71c); color: #141414; }
.station .freq { font-family: var(--head); font-size: 3rem; line-height: 1; }
.station h3 { color: #fff; font-size: 1.3rem; margin: .4rem 0; }
.station p { color: rgba(255,255,255,.85); }

.station .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .4rem 0 1.2rem; }
.tag { font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.station .btn { align-self: center; margin-top: auto; background: #fff; color: var(--navy-dark); }

/* Split section */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.placeholder {
  background: repeating-linear-gradient(45deg, #e8edf1, #e8edf1 12px, #f3f5f7 12px, #f3f5f7 24px);
  border: 2px dashed #b8c4cd; border-radius: var(--radius); min-height: 280px; display: grid;
  place-items: center; text-align: center; color: var(--muted); padding: 1.5rem; font-size: .9rem;
}
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* Testimonial */
.quote { font-size: 1.1rem; font-style: italic; color: var(--text); }
.quote small { display: block; font-style: normal; color: var(--muted); margin-top: .8rem; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe2e3; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-red { background: #fff; color: var(--red); box-shadow: none; }
.cta-band .btn-outline { border-color: #fff; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; font-size: .9rem; color: var(--navy); display: grid; gap: .35rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem 1rem; border: 1px solid #c3ced6; border-radius: 10px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(43,79,105,.25); border-color: var(--navy); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-list b { display: block; color: var(--navy); }
.contact-list a { text-decoration: none; color: var(--red); font-weight: 600; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.step::before {
  counter-increment: s; content: counter(s); width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--head);
}
.step p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #a9bccb; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { font-family: var(--head); color: #fff; font-size: 1.2rem; }
.footer-brand span { color: var(--red); }
/* Navy wordmark needs a light background on the dark footer */
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: .7rem .9rem; }
.footer-logo img { width: 150px; height: auto; aspect-ratio: 640 / 431; display: block; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; }

/* Station logo badge */
.logo-badge {
  background: none; padding: .5rem .8rem; margin: 0 auto .8rem; align-self: center;
  display: flex; align-items: center; justify-content: center;
  width: 300px; max-width: 100%; aspect-ratio: 2 / 1; /* 300x150, scales down on narrow phones */
}
.logo-badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Footer phone lines */
.site-footer li.phone { font-size: .88rem; }
.site-footer li.phone a { color: #fff; white-space: nowrap; }

.split-single { grid-template-columns: 1fr; }
.contact-note { color: var(--muted); margin-top: 1.2rem; }

/* Hero (home): centered */
.hero-copy { text-align: center; }
.hero-copy h1, .hero-copy .lead { margin-inline: auto; }
.hero-copy h1 { max-width: 22ch; }
.hero-copy .btn-row { justify-content: center; }

/* Spanish runs longer: more room, flexible containers */
.nav { flex-wrap: wrap; row-gap: .4rem; }
.nav-links { flex-wrap: wrap; justify-content: center; }
.btn { text-align: center; white-space: normal; }
.card, .station, .stat, .step > div { overflow-wrap: break-word; min-width: 0; }
.grid > *, .split > *, .reach-grid > * { min-width: 0; }
body[data-lang="es"] { line-height: 1.7; }
body[data-lang="es"] .nav-links { gap: .9rem 1.1rem; }
body[data-lang="es"] .nav-links a { font-size: .92rem; letter-spacing: .03em; }
body[data-lang="es"] h1, body[data-lang="es"] h2 { line-height: 1.28; }
body[data-lang="es"] .card { padding: 2rem; }
body[data-lang="es"] .grid { gap: 2rem; }
body[data-lang="es"] .btn { padding: .9rem 1.6rem; line-height: 1.35; }
body[data-lang="es"] .btn-row { gap: 1rem; }
body[data-lang="es"] .stat { padding: 1.8rem 1rem; }
body[data-lang="es"] .footer-grid { gap: 2.4rem; }
body[data-lang="es"] .station { min-height: 300px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1a7f3c; }
.form-status.err { color: var(--red-dark); }
