/* ===================================================
   GREENFIELD UNIVERSITY — Global Styles
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@400;700&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --navy:        #0d1b3e;
  --navy-dark:   #07112a;
  --navy-mid:    #162450;
  --teal:        #00b4a0;
  --teal-light:  #00d4bd;
  --teal-dark:   #008f7d;
  --gold:        #f5c842;
  --gold-dark:   #d4a90e;
  --white:       #ffffff;
  --off-white:   #f4f6fb;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --text:        #1a1a2e;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(13,27,62,0.08);
  --shadow-md:   0 4px 20px rgba(13,27,62,0.14);
  --shadow-lg:   0 10px 40px rgba(13,27,62,0.18);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Merriweather', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--gray-600); }

/* ── Utility ────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { color: var(--navy); margin-bottom: .6rem; }
.section-title p  { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-teal  { background: rgba(0,180,160,.12); color: var(--teal-dark); }
.badge-gold  { background: rgba(245,200,66,.18); color: var(--gold-dark); }
.badge-navy  { background: var(--navy); color: var(--white); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,180,160,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,180,160,.45); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,62,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.brand-sub {
  font-size: .65rem;
  color: var(--teal-light);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-links a.active { color: var(--teal-light); }

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

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-name { color: var(--white); font-size: 1.2rem; }
.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  margin-top: .75rem;
  line-height: 1.7;
}
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover { background: var(--teal); }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: var(--teal-light); }

/* ═══════════════════════════════════════════════════════
   SETTINGS PANEL (All pages)
   ═══════════════════════════════════════════════════════ */
.settings-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border: 2px solid var(--teal);
  color: var(--teal);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.settings-btn:hover { transform: rotate(30deg) scale(1.08); background: var(--teal); color: var(--white); }

.settings-panel {
  position: fixed;
  bottom: 84px;
  left: 24px;
  z-index: 8999;
  width: 340px;
  max-height: 74vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1.5rem;
}
.settings-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.settings-panel h3 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.settings-section { margin-bottom: 1.5rem; }
.settings-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: .75rem;
}

/* Cookie type toggles */
.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.cookie-toggle:last-child { border-bottom: none; }
.cookie-toggle input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px; height: 16px;
  cursor: pointer;
}
.cookie-toggle label { font-size: .85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.cookie-toggle .ct-desc { font-size: .75rem; color: var(--gray-400); margin-top: 2px; }

/* Consented email cards */
.consent-email-card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .6rem;
  border: 1px solid var(--gray-200);
}
.consent-email-card .email-addr {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}
.consent-email-card .email-status {
  font-size: .75rem;
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: 2px;
}
.consent-email-card .email-meta {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: .3rem;
}
.revoke-btn {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid #e53e3e;
  color: #e53e3e;
  cursor: pointer;
  transition: var(--transition);
  margin-top: .5rem;
}
.revoke-btn:hover { background: #e53e3e; color: var(--white); }

/* Consent History list */
.consent-history-list { font-size: .78rem; color: var(--gray-600); }
.history-entry {
  padding: .4rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.history-entry:last-child { border-bottom: none; }
.history-entry .he-type { font-weight: 600; color: var(--teal-dark); }
.history-entry .he-time { font-size: .7rem; color: var(--gray-400); white-space: nowrap; }
.history-entry .he-email { color: var(--navy); font-size: .73rem; }

.export-csv-btn {
  width: 100%;
  padding: .55rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: .75rem;
  transition: var(--transition);
}
.export-csv-btn:hover { background: var(--teal-dark); }
.empty-state { font-size: .83rem; color: var(--gray-400); font-style: italic; }

/* ── Page header (inner pages) ─────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,180,160,.18) 0%, transparent 65%);
}
.page-header h1 { color: var(--white); position: relative; }
.page-header p  { color: rgba(255,255,255,.65); margin-top: .75rem; position: relative; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  position: relative;
}
.breadcrumb a { color: var(--teal-light); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem 2rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .settings-panel { width: calc(100vw - 48px); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
