/* ===== BINDI TAILS - Main Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

:root {
  --primary: #2B6CB0;
  --primary-dark: #1E4E8C;
  --accent: #C27D0A;
  --accent-dark: #9A6308;
  --warm: #FFF8F0;
  --text: #3A3A3A;
  --text-light: #555555;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
  --font-main: 'Nunito', sans-serif;
  --font-display: 'Fredoka One', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Header & Navigation --- */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
}

.nav-logo span {
  color: #C27D0A;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Dropdown menus */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 180px;
  z-index: 1000;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-dropdown .dropdown-menu li {
  padding: 0;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text);
}

.nav-dropdown .dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

.nav-links {
  order: 1;
}

.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: transform 0.2s;
  line-height: 1;
}

.theme-toggle:hover {
  transform: scale(1.2);
}

/* Dark mode styles */
body.dark-mode {
  --bg: #1a1a2e;
  --white: #1e1e3a;
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --gray-light: #252540;
  --warm: #252540;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode header {
  background: linear-gradient(135deg, #0d2b4d, #1a3a5c);
}

body.dark-mode .card,
body.dark-mode .section {
  background: #1e1e3a;
  color: #e0e0e0;
}

body.dark-mode img {
  opacity: 0.9;
}

.nav-toggle {
  order: 3;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--warm) 0%, #EBF4FF 100%);
  padding: 48px 0 40px;
  text-align: left;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-flex > * {
  min-width: 0;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.hero h1 span {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 0 16px;
}

.hero-image {
  width: 280px;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center bottom;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-hover);
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  color: var(--primary);
}

.card .tag {
  display: inline-block;
  background: var(--warm);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- About Section --- */
.about-section {
  margin-top: -24px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 380px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text .fun-facts {
  list-style: none;
  margin-top: 16px;
}

.about-text .fun-facts li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

.about-text .fun-facts li::before {
  content: "🐾 ";
}

/* --- Books Section --- */
.books-section {
  background: var(--gray-light);
}

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

.book-card .book-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* --- Two Sides Feature --- */
.two-sides {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFEFDB 100%);
}

.two-sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.side-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.side-card.bindi {
  border-left: 4px solid var(--accent);
}

.side-card.mom {
  border-left: 4px solid var(--primary);
}

.side-card .label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.side-card.bindi .label { color: var(--accent-dark); }
.side-card.mom .label { color: var(--primary); }

/* --- Subscribe Section --- */
.subscribe-section {
  background: linear-gradient(135deg, #EBF4FF 0%, var(--warm) 100%);
}

.subscribe-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 550px;
  margin: 0 auto;
}

.subscribe-form input {
  padding: 14px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 1rem;
  width: 200px;
  transition: border-color 0.2s;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.2);
}

@media (max-width: 480px) {
  .subscribe-form input {
    width: 100%;
  }
}

/* --- Events Section --- */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.gallery-caption {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  text-align: center;
}

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

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

/* --- Events Section --- */
.events-section {
  background: var(--white);
}

.event-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-light);
}

.event-date {
  min-width: 80px;
  text-align: center;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.event-date .day {
  font-size: 2rem;
  font-family: var(--font-display);
  color: var(--text);
}

/* --- Contact Section --- */
.contact-section {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.2);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

/* --- Footer --- */
footer {
  background: var(--text);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

footer .footer-tagline {
  color: #AAAAAA;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

footer .footer-links a {
  color: #CCCCCC;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: var(--accent);
}

footer .copyright {
  color: #888;
  font-size: 0.8rem;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.bottom-nav-item i {
  font-size: 1.2rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
  background: rgba(74,144,217,0.08);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  /* Add padding at bottom of page so content isn't hidden behind nav */
  body {
    padding-bottom: 70px;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--text);
  }

  .nav-links a:hover {
    color: var(--primary);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--bg);
    border-radius: 8px;
    margin-top: 6px;
    padding: 4px 0;
    display: block;
  }

  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    content: ' ▾';
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero .subtitle {
    margin: 0 auto 16px;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .about-grid,
  .two-sides-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  section {
    padding: 60px 0;
  }
}

