/* Four Winds Day Camp — Adventure Island theme */

:root {
  --ocean-deep: #3d2817;
  --ocean: #1f5c38;
  --turquoise: #f0a500;
  --sand: #fdf6e3;
  --sand-light: #f7ecd0;
  --surface: #fffaf0;
  --sun: #ef7d32;
  --coral: #d9542f;
  --sky: #2f8fd0;
  --white: #fffaf0;
  --ink: #2b1e14;
  --shadow: 0 10px 24px rgba(61, 40, 23, 0.15);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--sand-light);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.leaf-decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.leaf-decor.leaf-top-left {
  top: -30px;
  left: -30px;
  width: 160px;
  transform: rotate(-12deg);
}

.leaf-decor.leaf-bottom-right {
  bottom: -20px;
  right: -20px;
  width: 130px;
  transform: scaleX(-1) rotate(-18deg);
}

.leaf-decor.leaf-hero-corner {
  top: -10px;
  left: -10px;
  width: 100px;
  opacity: 0.35;
}

@media (max-width: 800px) {
  .leaf-decor.leaf-top-left,
  .leaf-decor.leaf-bottom-right {
    width: 90px;
  }
}

h1, h2, h3 {
  font-family: "Fredoka", "Baloo 2", sans-serif;
  line-height: 1.15;
  margin-top: 0;
}

a {
  color: var(--ocean);
}

img {
  max-width: 100%;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--ocean-deep);
  color: var(--white);
  border-bottom: 4px solid var(--turquoise);
}

.site-nav .brand {
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav .brand span {
  color: var(--turquoise);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.site-nav a.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.6rem;
  opacity: 0.85;
  border-bottom: 3px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-nav a.nav-link:hover {
  opacity: 1;
  color: var(--turquoise);
}

.site-nav a.nav-link.active {
  opacity: 1;
  color: var(--turquoise);
  border-bottom-color: var(--turquoise);
}

.site-nav .nav-cta {
  margin-left: 0.5rem;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.btn-locked {
  background: #b8ab97;
  color: var(--white);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn.btn-locked:hover {
  transform: none;
}

.btn-primary {
  background: var(--sun);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--ocean-deep);
  border-color: var(--ocean-deep);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Hero (split layout, home page) ---------- */

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: var(--sand-light);
}

.hero-split .hero-content,
.hero-split .hero-art {
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
  }
}

.hero-split .badge-pill {
  display: inline-block;
  background: var(--ocean);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-split h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-split h1 .line-a { color: var(--ocean); display: block; }
.hero-split h1 .line-b { color: var(--sun); display: block; }
.hero-split h1 .line-c { color: var(--ocean-deep); display: block; }

.hero-split p.lede {
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 0 1.5rem;
  opacity: 0.85;
}

.hero-art {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-art svg,
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero (simple banner, sub-pages) ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, rgba(31, 92, 56, 0.78) 0%, rgba(61, 40, 23, 0.78) 100%), url('images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  text-transform: uppercase;
}

.hero p.tagline {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

.hero .wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero .wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ---------- Tagline banner + feature strip (home page) ---------- */

.tagline-banner {
  text-align: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  font-size: 1.1rem;
  padding: 0.5rem 1.5rem 1.5rem;
}

.countdown-strip {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 2rem;
  background: var(--ocean);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.countdown-strip h2 {
  position: relative;
  z-index: 2;
  color: var(--sand-light);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.countdown-boxes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: var(--sand-light);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  min-width: 80px;
}

.countdown-box .num {
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ocean-deep);
  line-height: 1;
}

.countdown-box .unit {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ocean);
  margin-top: 0.3rem;
}

#countdown-label {
  position: relative;
  z-index: 2;
  color: var(--sand-light);
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 600;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

@media (max-width: 800px) {
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  text-align: center;
}

.feature-card .icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1rem;
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card .icon-circle-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--ocean-deep);
}

.feature-card p {
  font-size: 1rem;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Layout ---------- */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

main p {
  font-size: 1.2rem;
}

section + section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  color: var(--ocean-deep);
}

.section-sub {
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(61, 40, 23, 0.08);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.card .icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  display: block;
}

.volunteers-page .card .icon {
  font-size: 2.75rem;
}

.volunteers-page .card .icon-img {
  width: 68px;
  height: 68px;
}

.parents-page .card .icon {
  font-size: 3.5rem;
}

.parents-page .card .icon-img {
  width: 96px;
  height: 96px;
}

.cat-info-page .card .icon-img {
  width: 96px;
  height: 96px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--ocean-deep);
}

.card p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ---------- Meet the Interns ---------- */

.intern-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(61, 40, 23, 0.08);
}

.intern-row + .intern-row {
  margin-top: 1.5rem;
}

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

.intern-photos {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.intern-photos img {
  flex: 1;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 480px) {
  .intern-photos img {
    aspect-ratio: 3 / 4;
  }
}

.intern-text h3 {
  color: var(--ocean-deep);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.intern-text p {
  margin: 0;
  font-size: 1.2rem;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.info-strip .stat {
  text-align: center;
  min-width: 120px;
}

.info-strip .stat .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.65;
}

.info-strip .stat .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ocean);
}

.callout {
  background: var(--surface);
  border-left: 6px solid var(--turquoise);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}


table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.info-table th,
table.info-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(61, 40, 23, 0.08);
}

table.info-table th {
  background: var(--ocean);
  color: var(--white);
}

table.info-table tr:last-child td {
  border-bottom: none;
}

.placeholder-note {
  font-size: 0.85rem;
  opacity: 0.6;
  font-style: italic;
}

/* ---------- Footer ---------- */

footer {
  background: var(--ocean-deep);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--turquoise);
}

footer a {
  color: var(--turquoise);
}

/* ---------- FAQ Chat Widget ---------- */

.chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 84, 47, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.chat-toggle:hover {
  transform: scale(1.06);
}

.chat-toggle img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(340px, calc(100vw - 2rem));
  max-height: min(480px, calc(100vh - 8rem));
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(61, 40, 23, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--ocean);
  color: var(--white);
  padding: 0.9rem 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .chat-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.85;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--sand-light);
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

.chat-msg.bot {
  background: var(--surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(61, 40, 23, 0.1);
}

.chat-msg.user {
  background: var(--turquoise);
  color: var(--ocean-deep);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  background: var(--sand-light);
}

.chat-suggestions button {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--ocean);
  background: var(--white);
  color: var(--ocean);
  cursor: pointer;
}

.chat-suggestions button:hover {
  background: var(--ocean);
  color: var(--white);
}

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(61, 40, 23, 0.1);
}

.chat-input-row input {
  flex: 1;
  border: none;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}

.chat-input-row button {
  border: none;
  background: var(--coral);
  color: var(--white);
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 700;
}

/* ---------- Calendar page ---------- */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.calendar-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(61, 40, 23, 0.08);
  text-align: center;
}

.calendar-card .cal-month {
  background: var(--ocean);
  color: var(--sand-light);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.5rem;
}

.calendar-card .cal-day {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--coral);
  padding: 0.6rem 0.5rem 0.2rem;
  line-height: 1;
}

.calendar-card .cal-desc {
  padding: 0 1.1rem 1.25rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calendar-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.calendar-grid .reveal:nth-child(3n+3) { transition-delay: 0.16s; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--white);
  font-family: "Fredoka", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  animation: scroll-hint-bounce 1.8s ease-in-out infinite;
}

.scroll-hint svg {
  width: 22px;
  height: 22px;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
