/*
Theme Name: Go Bag Check - Family Emergency Preparedness Theme
Theme URI: https://github.com/gobag/theme
Author: Google Deepmind Antigravity
Author URI: https://deepmind.google
Description: Official WordPress theme for Go Bag Check. A warm, modern, family-friendly theme designed to help parents, kids, and pet owners build emergency preparedness kits with confidence. Features responsive mobile navigation, compact kit cards, water calculators, and shortcode app integration.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: family-friendly, light-mode, responsive, custom-colors, full-width-template, landing-page, animated, mobile-menu
Text Domain: go-bag-check
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --color-primary: #0284c7;    /* Warm Ocean Blue */
  --color-primary-hover: #0369a1;
  --color-emerald: #059669;    /* Safety Green */
  --color-amber: #d97706;      /* Warm Gold */
  --color-rose: #e11d48;       /* Friendly Red */
  --color-purple: #7c3aed;     /* Friendly Purple */

  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-light: #e2e8f0;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px -15px rgba(2, 132, 199, 0.18), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Background Soft Pattern */
.bg-wave-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.8) 0%, rgba(236, 253, 245, 0.6) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY & BUTTONS --- */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.text-highlight-emerald {
  color: var(--color-emerald);
}

.text-highlight-blue {
  color: var(--color-primary);
}

/* Friendly Rounded Buttons */
.btn-family {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border: none;
  border-radius: 99px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -3px rgba(2, 132, 199, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-family:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px -3px rgba(2, 132, 199, 0.5);
}

.btn-family-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 16px -3px rgba(16, 185, 129, 0.35);
}

.btn-family-emerald:hover {
  box-shadow: 0 10px 22px -3px rgba(16, 185, 129, 0.5);
}

/* --- HEADER & NAVIGATION --- */
.family-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  animation: floatBounce 4s infinite ease-in-out;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-title span {
  color: var(--color-emerald);
}

.family-nav-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 99px;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Nav Links Styling */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

/* MOBILE MENU RESPONSIVE STYLES */
.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.4rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
}

.mobile-only-cta {
  display: none;
}

@media (max-width: 992px) {
  .family-nav-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta-desktop {
    display: none;
  }

  #primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    display: none;
    animation: slideDown 0.3s ease-out forwards;
  }

  #primary-nav.is-open {
    display: block;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .nav-links a {
    display: block;
    font-size: 1rem;
    padding: 0.4rem 0;
  }

  .mobile-only-cta {
    display: block;
  }
}

/* --- HERO SECTION (OPTIMIZED ZERO-WASTE SPACE) --- */
.hero-section {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding-top: 1.5rem;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 540px;
  line-height: 1.55;
}

@media (max-width: 992px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

/* COMPACT EMERGENCY PRESET KITS CARD */
.family-hud-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  position: relative;
  transition: transform 0.3s ease;
}

.family-hud-card:hover {
  transform: translateY(-2px);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.badge-ready {
  background: #d1fae5;
  color: #047857;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* GRID LAYOUT FOR EMERGENCY PRESET KITS PILLS (NO UNUSED SPACE) */
.family-kit-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.kit-pill {
  padding: 0.5rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-light);
  width: 100%;
}

.kit-pill svg, .kit-pill i {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.kit-pill.active {
  background: #e0f2fe;
  color: var(--color-primary);
  font-weight: 800;
  border-color: #93c5fd;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

.interactive-calculator-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 0;
}

.calc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.step-btn:hover {
  background: #e2e8f0;
}

.water-result-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  text-align: center;
}

.water-result-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* --- FEATURE CARDS SECTION --- */
.features-section {
  max-width: 1240px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  color: var(--color-emerald);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.family-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.family-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #bae6fd;
}

.feature-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.icon-emerald { background: #d1fae5; color: var(--color-emerald); }
.icon-blue { background: #e0f2fe; color: var(--color-primary); }
.icon-amber { background: #fef3c7; color: var(--color-amber); }
.icon-rose { background: #ffe4e6; color: var(--color-rose); }
.icon-purple { background: #f3e8ff; color: var(--color-purple); }

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- APP SUITE EMBED SECTION --- */
.app-embed-section {
  max-width: 1240px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.app-wrapper-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.app-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

/* --- FOOTER --- */
.family-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.85rem;
  max-width: 360px;
}

.footer-column-title {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* --- CUSTOM PAGE TEMPLATE STYLES --- */
.custom-page-container {
  max-width: 1040px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
  min-height: 50vh;
}

.custom-page-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.custom-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-light);
}

.custom-page-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.custom-page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.custom-page-featured-image {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.custom-page-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.custom-page-content {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.custom-page-content h2, .custom-page-content h3, .custom-page-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.custom-page-content p {
  margin-bottom: 1.25rem;
}
