/* Fancy Temple Scientific Symposia — Luxury Premium Style
   Complete CSS for all pages (mobile-first, flexbox-only)
   Brand: primary #0B3D91, secondary #2B8C7A, accent #F5F7FA
   Fonts: Georgia (display), Verdana (body)
*/

/* ------------------------
   Reset / Normalize
------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }

/* ------------------------
   Design Tokens
------------------------- */
:root {
  --primary: #0B3D91; /* Brand primary */
  --secondary: #2B8C7A; /* Brand secondary */
  --accent: #F5F7FA; /* Brand accent */
  --gold: #D4AF37; /* Luxury gold */
  --ink: #1A1F2B; /* Primary text */
  --ink-soft: #374151; /* Secondary text */
  --paper: #FFFFFF; /* White */
  --bg: #F5F7FA; /* Site background */
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 8px 24px rgba(10, 14, 23, 0.08);
  --shadow-hover: 0 12px 28px rgba(10, 14, 23, 0.14);
  --navy-deep: #0B1220; /* Hero/Footer backdrop */
}

/* ------------------------
   Base Typography & Body
------------------------- */
body {
  font-family: Verdana, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 8px; }
h3 { font-size: 18px; line-height: 1.35; margin-top: 8px; }

p, li { color: var(--ink-soft); }

strong { color: var(--ink); }

/* Luxury detail: subtle heading underline accent */
.section-title, h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::after, h2::after {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold);
  display: inline-flex;
}

/* ------------------------
   Layout Primitives (Flex-only)
------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Also style generic section since markup uses <section> */
section {
  margin-bottom: 60px;
}

/* ------------------------
   Header & Navigation
------------------------- */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0; z-index: 1000;
}

header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; filter: saturate(1.05); }

.brand-copy { display: none; }
.brand-copy p {
  font-size: 12px;
  color: var(--ink-soft);
}

.main-nav {
  display: none; /* Mobile-first: hidden */
  align-items: center;
  gap: 14px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.main-nav a:hover { color: var(--primary); background: rgba(11,61,145,0.06); }

.main-nav .cta {
  background: var(--gold);
  color: #1B1B1B;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.main-nav .cta:hover { box-shadow: var(--shadow-hover); filter: brightness(1.03); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  display: flex;
  flex-direction: row; /* overlay + panel */
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(11, 18, 32, 0.55);
  transform: translateX(100%);
  transition: transform 260ms ease;
}

.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 86%; max-width: 360px;
  background: var(--paper);
  padding: 20px;
  box-shadow: var(--shadow);
  transform: translateX(30px);
  transition: transform 260ms ease;
}

.mobile-menu a {
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--ink);
  border: 1px solid transparent;
}
.mobile-menu a:hover { background: var(--accent); border-color: var(--line); }

.mobile-menu-close {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.mobile-menu-close:hover { box-shadow: var(--shadow); }
.mobile-menu-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* States for opening (support multiple class names) */
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }
.mobile-menu.open .mobile-nav, .mobile-menu.active .mobile-nav, .mobile-menu.is-open .mobile-nav { transform: translateX(0); }

/* ------------------------
   Hero
------------------------- */
.hero {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero .content-wrapper { gap: 18px; }
.hero h1 { color: var(--paper); }
.hero .subheadline { color: #8a8d93; font-size: 16px; }
.hero .text-section p, .hero .text-section a { color: #8a8d93; }
.hero a { color: #E8EAF0; }

/* Actions (buttons) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions a, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #1B1B1B;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background-color 160ms ease, color 160ms ease;
  box-shadow: var(--shadow);
}
.actions a:hover, .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); filter: brightness(1.02); }
.actions a:focus-visible, .btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* Secondary ghost button style */
.btn-ghost, .actions a:nth-child(2) {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover, .actions a:nth-child(2):hover { background: rgba(255,255,255,0.06); }

/* ------------------------
   Content Sections & Cards
------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.text-section a { color: var(--primary); border-bottom: 1px solid rgba(11,61,145,0.25); }
.text-section a:hover { color: var(--ink); border-color: var(--gold); }

/* Generic card style */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* Testimonial cards: dark text on light background (accessibility requirement) */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.testimonial-card p { color: var(--ink-soft); }
.testimonial-card p strong { color: var(--ink); }

/* Footer block in page (not site footer) */
.footer-block { background: var(--accent); border-radius: 12px; padding: 16px; }

/* Lists spacing */
ul li + li, ol li + li { margin-top: 8px; }

/* ------------------------
   Footer (site)
------------------------- */
footer {
  background: var(--navy-deep);
  color: #E8EDF6;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer section { margin-bottom: 0; padding: 32px 0; }
footer .content-wrapper { flex-direction: column; gap: 16px; }

footer .brand { display: flex; align-items: center; gap: 12px; }
footer .brand img { height: 36px; width: auto; filter: brightness(1.05); }
footer .brand p { color: #C9D3EA; margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a {
  color: #E8EDF6;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 160ms ease, color 160ms ease;
}
.footer-nav a:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }

/* ------------------------
   Links & Focus States
------------------------- */
a { transition: color 140ms ease, border-color 140ms ease; }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------
   Mobile-first Responsive
------------------------- */
@media (min-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding: 72px 0 56px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .brand-copy { display: flex; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { gap: 24px; }
  .brand-copy p { font-size: 13px; }
  h1 { font-size: 48px; }
}

/* ------------------------
   Utility & Layout Helpers (Flex-only)
------------------------- */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ------------------------
   Buttons (generic)
------------------------- */
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { filter: brightness(1.05); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(11,61,145,0.06); }

/* ------------------------
   Header/Section Micro-accents
------------------------- */
header { box-shadow: 0 1px 0 rgba(10, 14, 23, 0.04); }
section .container .content-wrapper > h2 + .text-section { margin-top: 4px; }

/* ------------------------
   Forms (if any appear later)
------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------
   Mobile Nav & Cookie Banner Animations
------------------------- */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ------------------------
   Cookie Consent Banner
------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  display: none; /* toggled with .show */
  padding: 16px 20px;
  background: var(--navy-deep);
  color: #E8EDF6;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: slideUp 260ms ease both;
}
.cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: row; align-items: center; gap: 16px; }
.cookie-banner .content-wrapper { flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; }
.cookie-accept { background: var(--gold); color: #1B1B1B; }
.cookie-reject { background: transparent; color: #E8EDF6; border: 1px solid rgba(255,255,255,0.35); }
.cookie-settings { background: #ffffff; color: #0B1220; border: 1px solid transparent; }
.cookie-reject:hover { background: rgba(255,255,255,0.08); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; /* toggled with .open */
  align-items: center; justify-content: center;
  background: rgba(11,18,32,0.55);
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-dialog {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cookie-category:last-child { border-bottom: none; }

/* Toggles (simple) */
.toggle {
  display: inline-flex; align-items: center;
  width: 44px; height: 26px; border-radius: 100px;
  background: #E5E7EB; border: 1px solid #D1D5DB; position: relative;
}
.toggle::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-left: 2px; transition: transform 180ms ease; }
.toggle.on { background: var(--secondary); border-color: var(--secondary); }
.toggle.on::after { transform: translateX(18px); }

/* ------------------------
   Accessibility: Color Contrast in Review/Testimonials
------------------------- */
/* Already enforced by .testimonial-card on light background with dark text */

/* ------------------------
   Navigation fine-tuning (desktop luxury spacing)
------------------------- */
@media (min-width: 1100px) {
  .main-nav a { padding: 10px 12px; }
  .main-nav { gap: 18px; }
}

/* ------------------------
   Decorative hairline accents
------------------------- */
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* ------------------------
   Page-specific small tweaks
------------------------- */
/* Hero actions on register/thank-you pages */
.hero .actions a { border: 1px solid rgba(0,0,0,0.05); }

/* Footer small text blocks */
footer .text-section { background: transparent; border: 1px solid rgba(255,255,255,0.12); border-left-color: rgba(255,255,255,0.18); color: #8a8d93; }
footer .text-section p { color: #8a8d93; }

/* ------------------------
   Flex-only layout for any grids in content
------------------------- */
/* Catalog-like or directory lists can use these helpers if added later */
.list-tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.list-tiles .tile { flex: 1 1 260px; min-width: 240px; }

/* Ensure no element overlap; maintain breathing room */
section .content-wrapper > * + * { margin-top: 4px; }

/* ------------------------
   Premium micro-typography refinements
------------------------- */
.main-nav a { text-transform: none; letter-spacing: 0.02em; }
.hero h1 { letter-spacing: 0.01em; }

/* ------------------------
   Images & Icons inside text-section lines
------------------------- */
.text-section img { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 8px; }

/* ------------------------
   Print styles (basic)
------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  header { position: static; }
  a { text-decoration: underline; }
}
