/* ==========================================================================
   Top Line Digital — design tokens
   ========================================================================== */

:root {
  --navy: #0C2D48;
  --navy-2: #123C5F;
  --blue: #1D6FA5;
  --ice: #5FD4E3;
  --ice-dim: #C9EEF3;
  --bg: #F5F7F9;
  --white: #FFFFFF;
  --ink: #101820;
  --muted: #5B6B79;
  --border: #E2E8ED;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(12,45,72,0.06), 0 8px 24px rgba(12,45,72,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; color: var(--muted); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ice);
  color: var(--navy);
}
.btn-primary:hover { background: #7EDEEA; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-2); }

/* ==========================================================================
   Logo mark (hockey blade → trend line)
   ========================================================================== */

.mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.mark path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: currentColor; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo .accent { color: var(--blue); }
.logo:hover { text-decoration: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-actions .btn-primary-nav-hide { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 46ch; }

.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-line {
  width: 100%;
  height: auto;
  color: var(--ice);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; text-align: left; }
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 56px;
}
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero p.lead { color: rgba(255,255,255,0.72); max-width: 60ch; font-size: 1.05rem; }
.page-hero .eyebrow { color: var(--ice); }

/* ==========================================================================
   Sections
   ========================================================================== */

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

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ice-dim);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card .badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.pricing-card .tier { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.pricing-card .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.pricing-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pricing-card .check-list { margin: 20px 0 28px; flex-grow: 1; }
.pricing-card .check-list li { font-size: 0.92rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial p.quote {
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 20px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ice-dim); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.testimonial .name { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.testimonial .loc { font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
footer .logo { color: var(--white); }
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer p { color: rgba(255,255,255,0.55); font-size: 0.92rem; }
footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
footer a:hover { color: var(--ice); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,111,165,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.85rem;
  margin-top: 10px;
}
.form-note.success { color: #1D7A4C; }
.form-note.error { color: #B3261E; }

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-info-card dt { font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 18px; }
.contact-info-card dt:first-child { margin-top: 0; }
.contact-info-card dd { margin: 4px 0 0; color: var(--ink); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
