/* ============================================
   CableTVFamily - Compliance Website Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0d2b4e;
  --navy-mid: #1a3f6f;
  --navy-light: #2657a0;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --light-gray: #edf1f7;
  --mid-gray: #94a3b8;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #dde4ef;
  --success: #16a34a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(13, 43, 78, 0.10);
  --shadow-lg: 0 12px 40px rgba(13, 43, 78, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold); }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { color: var(--text-light); margin-bottom: 0.4rem; }

strong { color: var(--text); font-weight: 600; }

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 16px rgba(13,43,78,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--mid-gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-phone {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.nav-phone:hover { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .nav-phone { display: none; }
}

.nav-affiliate-badge {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ---- AFFILIATE DISCLOSURE BANNER ---- */
.affiliate-banner {
  background: linear-gradient(135deg, #fff8e7 0%, #fef3c7 100%);
  border-bottom: 2px solid var(--gold);
  padding: 0.6rem 1.5rem;
  text-align: center;
}

.affiliate-banner p {
  font-size: 0.8rem;
  color: #92400e;
  margin: 0;
  font-weight: 500;
}

.affiliate-banner strong {
  color: #78350f;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  color: var(--white);
}

/* ---- MAIN CONTENT WRAPPER ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ---- CARDS / GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }

/* ---- SECTION HEADERS ---- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 520px; margin: 0 auto; }

/* ---- COMPLIANCE CALLOUT ---- */
.compliance-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.compliance-callout::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
}

.compliance-callout h3 { color: var(--white); margin-bottom: 0.75rem; }
.compliance-callout p { color: rgba(255,255,255,0.75); margin: 0; }

/* ---- LEGAL PAGE LAYOUT ---- */
.legal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
}

.legal-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.legal-header p { color: rgba(255,255,255,0.65); margin: 0; }

.legal-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legal-meta span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.legal-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--navy-mid);
}

.highlight-box {
  background: #fff8e7;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.highlight-box p { color: #92400e; margin: 0; font-size: 0.9rem; font-weight: 500; }

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.info-box p { color: #1e40af; margin: 0; font-size: 0.9rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1rem;
  line-height: 1.6;
}

/* ============================================
   COOKIE CONSENT POPUP (bottom bar)
   ============================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  box-shadow: 0 -8px 32px rgba(13,43,78,0.35);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
}

.cookie-text strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cookie-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-cookie-accept:hover { background: var(--gold-light); }

.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-cookie-decline:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================
   ENTRY DISCLAIMER MODAL
   ============================================ */
#entry-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#entry-modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 78, 0.88);
  backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-header-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.modal-header-text h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.modal-header-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  margin: 0;
}

.modal-body {
  padding: 1.75rem 2rem;
}

.modal-disclaimer-box {
  background: #fff8e7;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-disclaimer-box p {
  color: #78350f;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.modal-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.modal-body ul {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--light-gray);
}

.modal-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.modal-checkbox-row label {
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}

.modal-checkbox-row label a {
  color: var(--navy-light);
  text-decoration: underline;
}

.btn-modal-proceed {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-modal-proceed:hover:not(:disabled) {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,43,78,0.3);
}

.btn-modal-proceed:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0.25rem; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .modal-header { padding: 1.25rem 1.25rem; }
  .modal-body { padding: 1.25rem 1.25rem; }
  .modal-footer { padding: 1rem 1.25rem 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ---- COMPLIANCE PAGE SPECIFIC ---- */
.compliance-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.comp-page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comp-page-card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}

.comp-page-card .icon { font-size: 1.6rem; }
.comp-page-card h3 { font-size: 0.95rem; margin: 0; color: var(--navy); }
.comp-page-card p { font-size: 0.8rem; margin: 0; color: var(--text-light); }

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
}
