/* Yankeebase — main stylesheet */

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

:root {
  --color-primary: #2563EB;
  --color-secondary: #1D4ED8;
  --color-accent: #F59E0B;
  --color-dark: #1E1B4B;
  --color-soft: #EFF6FF;
  --color-blush: #DBEAFE;
  --color-border: #BFDBFE;
  --bs-primary: #2563EB;
  --bs-secondary: #1D4ED8;
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-font-weight: 300;
  --bs-border-radius: 20px;
  --bs-border-radius-sm: 16px;
  --bs-border-radius-lg: 24px;
  --bs-border-radius-pill: 50rem;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #1E1B4B;
  background-color: #EFF6FF;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1E1B4B;
}

.fw-bold { font-weight: 700 !important; }

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* nav */
.navbar-brand { font-weight: 700 !important; font-size: 1.3rem; }
.nav-link:hover, .nav-link:focus { color: var(--color-primary) !important; }

/* buttons */
.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
  font-weight: 500;
  transition: background-color 0.25s, transform 0.25s;
}
.btn-accent:hover {
  background-color: #D97706;
  border-color: #D97706;
  color: #000;
  transform: scale(1.04);
}
.btn-primary-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-primary-custom:hover {
  background-color: #1E40AF;
  border-color: #1E40AF;
  color: #fff;
}

/* layout helpers */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.narrow-col { max-width: 68%; margin-left: auto; margin-right: auto; }
@media (max-width: 992px) { .narrow-col { max-width: 100%; } }

.border-thin { border: 1px solid var(--color-border) !important; }
.bg-blush { background-color: var(--color-blush) !important; }
.bg-soft { background-color: var(--color-soft) !important; }

/* cards */
.offer-block {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: transform 0.25s;
}
.offer-block:hover { transform: scale(1.025); }

.program-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: transform 0.25s;
}
.program-card:hover { transform: scale(1.025); }

.service-card {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: transform 0.25s;
}
.service-card:hover { transform: scale(1.025); }

.card-border-thin {
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.scale-subtle-hover { transition: transform 0.3s ease-in-out; }
.scale-subtle-hover:hover { transform: scale(1.02); }

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-blush);
  flex-shrink: 0;
}

/* touch targets */
a, button { min-height: 44px; }

/* forms */
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}
#form-success {
  display: none;
  padding: 1rem 1.5rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  color: #155724;
}

/* breadcrumbs */
.breadcrumb { font-size: 0.85rem; }

/* lang toggle */
#lang-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-dark);
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
#lang-toggle:hover { background: var(--color-blush); }

/* ============================================================
   COOKIE CONSENT BANNER — styles go here, not injected by JS
   ============================================================ */

#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 1.25rem 1.5rem;
  display: none;
}
#cc-banner.cc-visible { display: block; }
.cc-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cc-text { flex: 1 1 300px; font-size: 0.9rem; line-height: 1.5; }
.cc-text a { color: var(--color-primary); }
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.cc-btn {
  padding: 0.45rem 1rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'DM Sans', sans-serif;
}
.cc-btn-accept { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.cc-btn-accept:hover { background: #008eb7; border-color: #D97706; }
.cc-btn-reject { background: transparent; color: var(--color-dark); border-color: var(--color-border); }
.cc-btn-reject:hover { border-color: #999; }
.cc-btn-prefs { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.cc-btn-prefs:hover { background: var(--color-blush); }

/* preferences modal */
#cc-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
#cc-prefs-modal.cc-open { display: flex; }
.cc-prefs-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.cc-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.cc-pref-row:last-of-type { border-bottom: none; }
.cc-pref-label { font-weight: 600; font-size: 0.9rem; }
.cc-pref-desc { font-size: 0.8rem; color: #666; margin-top: 3px; }

/* toggle switch */
.cc-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0;
  background: #ccc; border-radius: 24px;
  transition: background 0.2s;
  cursor: pointer;
}
.cc-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
input:checked + .cc-slider { background: var(--color-accent); }
input:checked + .cc-slider::before { transform: translateX(20px); }
input:disabled + .cc-slider { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 768px) {
  .section-pad { padding-top: 3rem; padding-bottom: 3rem; }
  .cc-inner { flex-direction: column; }
}

/* print */
@media print {
  header, footer, #cc-banner, #cc-prefs-modal, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; }
}
