/* ============================================================================
   Headfirst Communications LLC - Site Stylesheet
   File: hfc.css
   Purpose: Shared styles for public website pages, policies, plan pages, and
            printable customer-facing documents.
   ============================================================================ */


/* ============================================================================
   1. Design Tokens
   ============================================================================ */

:root {
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5c667a;
  --line: #dfe4ec;
  --brand: #143d66;
  --brand-2: #0f6b8f;
  --accent: #e8f4f8;
  --warning-bg: #fff8e6;
  --warning-line: #e3bc56;
  --success-bg: #edf8f1;
  --success-line: #4ca66a;
  --danger-bg: #fff1f1;
  --danger-line: #d45b5b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}


/* ============================================================================
   2. Base / Global Elements
   ============================================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 34px 0 60px;
}

section {
  scroll-margin-top: 30px;
  padding-top: 8px;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
}

section:first-child {
  border-top: none;
  padding-top: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  color: var(--brand);
  line-height: 1.2;
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  color: #253149;
}

p {
  margin: 0 0 14px;
}

ul {
  margin-top: 8px;
  padding-left: 22px;
}

li {
  margin: 6px 0;
}


/* ============================================================================
   3. Layout Helpers
   ============================================================================ */

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}


/* ============================================================================
   4. Header / Page Intro
   ============================================================================ */

.site-header {
  background: linear-gradient(135deg, var(--brand), #0c253f);
  color: #fff;
  padding: 48px 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 10px;
}

.subtitle {
  max-width: 760px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.effective-date {
  margin-top: 20px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.header-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ============================================================================
   5. Buttons / Actions
   ============================================================================ */

.action-button {
  display: inline-block;
  background: #ffffff;
  color: var(--brand);
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: none;
}


/* ============================================================================
   6. Notice Cards
   ============================================================================ */

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.notice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.notice-card strong {
  display: block;
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}


/* ============================================================================
   7. Policy Layout
   ============================================================================ */

.policy-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--brand);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.toc li {
  margin: 8px 0;
}

.policy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}


/* ============================================================================
   8. Callouts / Information Boxes
   ============================================================================ */

.callout {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
  border-left: 6px solid var(--brand-2);
  background: var(--accent);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 1.03rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.success {
  background: var(--success-bg);
  border-left-color: var(--success-line);
}

.callout.warning {
  background: var(--warning-bg);
  border-left-color: var(--warning-line);
}

.callout.danger {
  background: var(--danger-bg);
  border-left-color: var(--danger-line);
}

.plain-language-box {
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
}

.plain-language-box h3 {
  margin-top: 0;
  color: var(--brand);
}

.contact-box {
  background: #0c253f;
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}

.contact-box h2,
.contact-box a {
  color: #fff;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.9);
}


/* ============================================================================
   9. Plan Page Components
   ============================================================================ */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.plan-name {
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 12px 0;
}

.plan-speed {
  color: var(--muted);
  margin-bottom: 20px;
}

.broadband-label {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.broadband-label summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}

.label-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
  font-size: 0.95rem;
}


/* ============================================================================
   10. Footer / Document Notes
   ============================================================================ */

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 24px;
}


/* ============================================================================
   11. Responsive Styles
   ============================================================================ */

@media (max-width: 900px) {

  .notice-grid,
  .policy-shell,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action-button {
    text-align: center;
  }
}


/* ============================================================================
   12. Print Styles
   ============================================================================ */

@media print {

  @page {
    margin: 0.75in;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .site-header {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 2px solid #000;
    padding: 20px 0;
  }

  .subtitle,
  .effective-date {
    color: #000000 !important;
  }

  .header-actions,
  .action-button {
    display: none !important;
  }

  .notice-grid {
    display: none;
  }

  .toc {
    display: none;
  }

  .policy-shell {
    display: block;
  }

  .policy {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .notice-card,
  .policy,
  .toc {
    box-shadow: none !important;
  }

  .callout,
  .plain-language-box,
  .contact-box {
    border: 1px solid #cccccc;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .contact-box h2,
  .contact-box a,
  .contact-box p {
    color: #000000 !important;
  }

  section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
    break-after: avoid;
  }

  ul,
  ol {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  .footer-note {
    color: #555555;
  }
}
