/* ==========================================================================
   Coastal Bend Video & Reporting site styles
   ========================================================================== */

:root {
  --navy: #0a2240;
  --navy-2: #10305c;
  --blue: #1e6fd9;
  --blue-dark: #175bb5;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #e3e9f1;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 34, 64, 0.10);
  --header-h: 72px;
  --font-head: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--blue); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e8eef7; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Header / nav ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 34, 64, 0.96);
  backdrop-filter: blur(8px);
  height: var(--header-h);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 44px; width: auto; }
.nav-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--blue); }
.nav-links .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 34, 64, 0.92) 20%, rgba(16, 48, 92, 0.72) 60%, rgba(30, 111, 217, 0.45) 100%);
}

.hero-content { position: relative; z-index: 1; padding: 90px 0; max-width: 780px; }
.hero-content .hero-logo { max-width: 340px; margin-bottom: 28px; }
.hero-content h1 { color: #fff; margin-bottom: 16px; }
.hero-content .lede {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page banner (interior pages) ------------------------------------------- */

.page-banner {
  background: linear-gradient(115deg, var(--navy) 30%, var(--navy-2) 70%, #17509e 100%);
  color: #fff;
  padding: 72px 0;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 640px; margin: 0; }

/* Cards ------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.card .card-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }

a.card { text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10, 34, 64, 0.16); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon img { max-width: 30px; max-height: 30px; }

.card-figure {
  margin-top: 18px;
  max-height: 130px;
  width: auto;
  align-self: center;
  object-fit: contain;
}

/* Split (text + image) sections ------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > .split-media { order: -1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-body p { color: var(--muted); }
.split-body .tagline { font-style: italic; color: var(--navy); }

/* Checklists ------------------------------------------------------------- */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 9px 0 9px 34px;
  position: relative;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000, #000);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask-composite: exclude;
  background: var(--blue);
  border-radius: 4px;
}

/* CTA band --------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(115deg, var(--navy) 20%, #17509e 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 28px; }
.cta-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Video embed ------------------------------------------------------------ */

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Services page ---------------------------------------------------------- */

.service-section { scroll-margin-top: calc(var(--header-h) + 16px); }

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.service-jump a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.service-jump a:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* Team ------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
}
.team-photo, .team-initials {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 18px;
  object-fit: cover;
}
.team-initials {
  background: var(--navy-2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.team-card a { font-size: 0.92rem; word-break: break-all; }

/* Contact page ----------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.info-block { margin-bottom: 26px; }
.info-block h3 { margin-bottom: 4px; font-size: 1.05rem; }
.info-block p { color: var(--muted); margin: 0; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  background: var(--bg-soft);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: #fff;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Quote / blockquote ----------------------------------------------------- */

blockquote.motto {
  border-left: 4px solid var(--blue);
  margin: 0;
  padding: 8px 0 8px 24px;
  font-size: 1.3rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
}
blockquote.motto cite { display: block; font-size: 0.9rem; color: var(--muted); font-style: normal; margin-top: 8px; }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid img { max-width: 200px; margin-bottom: 16px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .split, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    padding: 8px 24px 20px;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-links a.active { border-bottom-color: rgba(255, 255, 255, 0.1); color: var(--blue); }
  .nav-links .btn { margin-top: 14px; text-align: center; }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-content .hero-logo { max-width: 250px; }
}
