/* ============================================================
   SPIRITUAL CAREER FAIR — Global Styles
   Inspired by Museum of Ice Cream: bold, immersive, playful
   ============================================================ */

/* ── Google Fonts are loaded via <link> in each HTML file ── */

/* ── CSS Variables ── */
:root {
  --color-primary:    #0D3B4E;
  --color-accent:     #F5C842;
  --color-bg:         #FFFDF7;
  --color-text:       #1A1A2E;
  --color-text-light: #5A5A7A;
  --color-white:      #FFFFFF;

  /* Department accent colors */
  --dept-welcome:     #C9B8E8;
  --dept-association: #E8A0BF;
  --dept-baptism:     #5AB4E5;
  --dept-schools:     #F5A623;
  --dept-building:    #FF6B35;
  --dept-caleb:       #3ECFB2;
  --dept-bethel:      #5C6BC0;
  --dept-preach:      #F498B8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --transition: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.btn--gold {
  background: var(--color-accent);
  color: var(--color-primary);
  text-shadow: none;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,200,66,0.45);
}
.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn--outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-primary);
  padding: 1rem 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav__logo span {
  color: var(--color-accent);
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-accent); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.75rem;
  gap: 0.25rem;
}
.nav__mobile a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--color-accent); }
.nav__mobile.is-open { display: flex; }

/* ── HOME HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D3B4E 0%, #1a5c78 40%, #2d3561 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,200,66,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(197,184,232,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 750px; }
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title span { color: var(--color-accent); }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem;
}
.hero__date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}
.hero__meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

/* ── COUNTDOWN ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  min-width: 72px;
}
.countdown__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.countdown__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}
.countdown__sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .countdown__block { min-width: 56px; padding: 0.5rem 0.7rem; }
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* floating shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}
.hero__shape--1 { width: 500px; height: 500px; background: #F5C842; top: -100px; right: -100px; }
.hero__shape--2 { width: 300px; height: 300px; background: #F498B8; bottom: -50px; left: -80px; }
.hero__shape--3 { width: 200px; height: 200px; background: #3ECFB2; top: 40%; left: 5%; }

/* ── INTRO (full-cover crossfading photo) ── */
.intro {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

/* Crossfading background images */
.intro__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  animation: photoRotate 10s infinite;
  z-index: 0;
}
.intro__bg-img:nth-child(1) { animation-delay: 0s; }
.intro__bg-img:nth-child(2) { animation-delay: 2.5s; }
.intro__bg-img:nth-child(3) { animation-delay: 5s; }
.intro__bg-img:nth-child(4) { animation-delay: 7.5s; }

@keyframes photoRotate {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay so text is readable */
.intro__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 78, 0.5);
  z-index: 1;
}

/* Text on top */
.intro__text-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 700px;
}
.intro__text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #FFFFFF;
  line-height: 1.9;
}
.intro__text strong { color: var(--color-accent); }

@media (max-width: 768px) {
  .intro { min-height: 360px; }
}

/* ── DEPARTMENT SECTIONS ── */
.dept-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .dept-pair { grid-template-columns: 1fr; gap: 2rem; }
}

.dept {
  padding: 4rem 0 5rem;
}
.dept--alt { background: #F4F0FF; }
.dept--blue { background: #0D3B4E; }
.dept--blue .dept__title { color: #FFFFFF; }
.dept--blue .dept__subtitle { color: rgba(255,255,255,0.65); }
.dept--blue .card {
  background: #FFFFFF;
  border-top-color: var(--color-accent);
}
.dept--blue .card__name { color: var(--color-primary); }
.dept--blue .card__desc { color: var(--color-text-light); }
.dept--blue .card__link { color: var(--color-accent); }
.dept--blue .card:hover { background: #FFFFFF; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }

.dept__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.dept__color-bar {
  width: 6px;
  height: 52px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dept__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary);
}
.dept__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* ── BOOTH CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 4px solid var(--card-color, #ccc);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__icon { font-size: 2rem; line-height: 1; }
.card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}
.card__desc {
  font-size: 0.83rem;
  color: var(--color-text-light);
  line-height: 1.5;
  flex: 1;
}
.card__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--card-color, #666);
  transition: gap var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.5rem;
}
.card:hover .card__link { gap: 8px; }

/* ── BOOTH PAGE HERO ── */
.booth-hero {
  min-height: 42vh;
  background: var(--dept-color, var(--color-primary));
  display: flex;
  align-items: flex-end;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.booth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.booth-hero__content { position: relative; z-index: 1; }
.booth-hero__dept {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.booth-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  max-width: 700px;
}
.booth-hero__tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 0.75rem;
  max-width: 560px;
}

/* ── BOOTH CONTENT ── */
.booth-content {
  padding: 4rem 1.5rem 5rem;
}
.booth-content .container {
  max-width: 820px;
}
.booth-section {
  margin-bottom: 3rem;
}
.booth-section h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--dept-color, var(--color-accent));
  display: inline-block;
}
.booth-section p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}
.booth-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.booth-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.6;
}
.booth-section ul li::before {
  content: '✦';
  color: var(--dept-color, var(--color-accent));
  font-size: 0.75rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ── BOOTH BACK NAV ── */
.booth-back {
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.9rem;
}
.footer strong { color: var(--color-white); }
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}
.footer__logo span { color: var(--color-accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero { padding: 8rem 1.25rem 3.5rem; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
  .card { padding: 1.25rem 1rem; }
  .booth-hero { padding: 5rem 1.25rem 2.5rem; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .dept__header { gap: 0.75rem; }
}
