/* ── Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Pulled straight from the logo */
  --coral: #ee6b7b;
  --coral-deep: #d95568;
  --plum: #2d1b4e;
  --plum-light: #4a3070;
  --teal: #5cc5b5;
  --teal-deep: #48a99b;
  --gold: #efa830;
  --gold-light: #f5c25a;
  --cream: #fff5ee;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--cream);
  --text: var(--plum);
  --text-muted: #6b5a7e;
  --accent: var(--coral);
  --accent-hover: var(--coral-deep);

  --font-display: 'Fredoka', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --section-padding: 5rem 2rem;
  --nav-height: 4rem;
  --max-width: 1100px;
  --radius: 16px;
  --radius-lg: 24px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--plum);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(45, 27, 78, 0.06);
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 2.8rem;
  width: auto;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav__links a:hover { color: var(--plum); }
.nav__links a:hover::after { width: 100%; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 22px;
  height: 2.5px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 245, 238, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 2px solid rgba(45, 27, 78, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle--open span:nth-child(2) { opacity: 0; }
  .nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ── Hero ── */
.hero {
  padding: 4rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative wave at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: 240px;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 40px rgba(45, 27, 78, 0.2);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(45, 27, 78, 0.15);
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--coral);
  background: var(--white);
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(45, 27, 78, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
}

.hero__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(45, 27, 78, 0.2);
}

/* ── Section Shared ── */
.section-heading {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--plum);
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ── Gallery ── */
.gallery {
  padding: var(--section-padding);
  padding-top: 4rem;
}

.gallery__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}

.gallery__item:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 12px 35px rgba(45, 27, 78, 0.15);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery__grid { gap: 0.5rem; }
  .gallery__item { border-radius: 12px; }
}

/* ── About ── */
.about {
  padding: var(--section-padding);
  background: var(--plum);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative wave at top */
.about::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.about__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1rem;
}

.about .section-heading {
  color: var(--white);
}

.about .section-heading::after {
  background: var(--gold);
}

.about__text {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.about__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.about__link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  color: var(--plum);
  background: var(--gold);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.about__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: var(--gold-light);
}

.about__link--secondary {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.about__link--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--plum);
  border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer__links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--teal); }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Page load animations ── */
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__logo {
  animation: pop-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__tagline {
  animation: fade-up 0.6s ease-out 0.15s both;
}

.hero__cta {
  animation: fade-up 0.6s ease-out 0.3s both;
}

/* ── Active nav link ── */
.nav__links--active {
  color: var(--plum) !important;
}

.nav__links--active::after {
  width: 100% !important;
}

/* ── Story / About Page ── */
.story {
  padding-bottom: 4rem;
}

.story__header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  position: relative;
  overflow: hidden;
}

.story__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.story__title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.story__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.story__content {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.story__section {
  margin-bottom: 2.5rem;
}

.story__section p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.story__section p:last-child {
  margin-bottom: 0;
}

.story__heading {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--plum);
  position: relative;
}

.story__heading::after {
  content: '';
  display: block;
  width: 35px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Photo grid for Kohana pictures */
.story__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.story__photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.08);
}

.story__photos-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.story__cta-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

/* About link variant for light backgrounds */
.about__link--on-light {
  color: var(--plum);
  background: transparent;
  border: 2px solid var(--plum);
  box-shadow: none;
}

.about__link--on-light:hover {
  background: var(--plum);
  color: var(--white);
  box-shadow: none;
}

@media (max-width: 480px) {
  .story__photos {
    grid-template-columns: 1fr;
  }
}
