/* ==========================================================
   BeaverLine - Base styles
   White background, red menu/accents (Canadian identity)
   ========================================================== */

:root {
  --red: #D6001C;
  --red-dark: #A3001A;
  --red-light: #FDE9EB;
  --ink: #1B1B1F;
  --ink-light: #57565C;
  --border: #E6E3E2;
  --bg: #FFFFFF;
  --bg-alt: #FAF7F6;
  --success: #1E7A34;
  --success-bg: #E8F6EB;
  --error: #B3261E;
  --error-bg: #FDEDEC;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,0.06);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--ink-light); }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo strong { color: var(--red); }
.logo:hover { text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--red);
  text-decoration: none;
  border-bottom-color: var(--red);
}
.main-nav a.btn-nav {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  border-bottom: none !important;
}
.main-nav a.btn-nav:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff !important; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--red) !important; border-color: var(--red); }
.btn-outline:hover { background: var(--red-light); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Alerts / flash ---------- */
.alert {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-info { background: var(--red-light); color: var(--red-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red-light);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--red); }
.hero-checks { list-style: none; padding: 0; margin: 24px 0 32px; }
.hero-checks li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--ink);
}
.hero-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--red);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: var(--ink);
  border-radius: 24px;
  padding: 40px 30px;
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-visual .phone-mock {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 22px;
}
.hero-visual .phone-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
}
.hero-visual .phone-label { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 0; }
.hero-visual ul { margin: 20px 0 0; padding-left: 20px; color: #ddd; font-size: 0.92rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .hero-eyebrow { display: inline-block; }

/* ---------- Icon boxes (target customers) ---------- */
.box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.icon-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.icon-box:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-box .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-box .icon svg { width: 24px; height: 24px; }
.icon-box h3 { margin-bottom: 6px; font-size: 1.05rem; }
.icon-box p { margin: 0; font-size: 0.92rem; }

/* ---------- How it works / feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}
.feature-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  background: var(--red-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  text-align: center;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 22px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--red);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- Pricing ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 44px;
}
.toggle-wrap span { font-weight: 700; color: var(--ink-light); }
.toggle-wrap span.active { color: var(--ink); }
.switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: var(--red);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
}
.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.switch.is-annual::before { transform: translateX(26px); }
.save-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  background: #fff;
  position: relative;
}
.price-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
}
.price-card .ribbon {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card h3 { margin-bottom: 4px; }
.price-card .calls-desc { color: var(--ink-light); font-size: 0.92rem; margin-bottom: 20px; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--ink-light); }
.price-sub { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 22px; min-height: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.pricing-note {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-light);
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-card-wide { max-width: 760px; }
label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 18px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-size: 0.82rem; color: var(--ink-light); margin-top: -12px; margin-bottom: 18px; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 18px; }
legend { font-weight: 700; padding: 0 6px; font-size: 0.88rem; }
.radio-option { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.radio-option input { width: auto; margin: 4px 0 0; }
.radio-option label { font-weight: 600; margin: 0; }
.radio-option p { margin: 2px 0 0; font-size: 0.85rem; }

.order-summary {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.order-summary h4 { margin-bottom: 10px; }
.order-summary .line { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 6px; }
.order-summary .line.total { font-weight: 800; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; font-size: 1.05rem; }

/* ---------- Account portal ---------- */
.account-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.card h3 { margin-bottom: 4px; }
.number-display {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
}
.status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red-light);
  color: var(--red-dark);
}
.status-pill.active { background: var(--success-bg); color: var(--success); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--ink-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfcfd2;
  padding: 56px 0 0;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #cfcfd2; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.logo-footer { color: #fff; margin-bottom: 12px; }
.footer-note { font-size: 0.82rem; color: #9d9da2; }
.footer-bottom {
  border-top: 1px solid #35353a;
  padding: 18px 24px;
  font-size: 0.82rem;
  color: #9d9da2;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--border) !important; }
  .main-nav a.btn-nav { border-radius: 0; text-align: center; }
  h1 { font-size: 2rem; }
  .box-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
}
