/* ============================================================
   Capri Meridian — Sunshine Breakfast design system v3
   Mobile-first · Fluid · No horizontal overflow
   ============================================================ */

:root {
  /* Sunshine breakfast palette */
  --cream: #FFF8E7;          /* eggshell / paper bag */
  --cream-dark: #FBEFD2;     /* slight depth */
  --yellow: #FFC72C;         /* sunshine yellow — primary */
  --yellow-light: #FFE08C;   /* soft sunlight */
  --gold: #F4A024;           /* egg yolk / sunrise */
  --orange: #FF6B1A;         /* warm tomato orange — rooster comb */
  --red: #E63946;            /* tomato red — Capri brand */
  --red-dark: #C1272D;       /* deeper red */
  --brown: #5C2E0E;          /* coffee brown */
  --brown-light: #8B5A2B;    /* warm tan */
  --charcoal: #2D1810;       /* deep brown text */
  --white: #FFFFFF;
  --paper: #FBEFD2;

  /* Shadow */
  --shadow-pop: 5px 5px 0 var(--charcoal);
  --shadow-pop-sm: 3px 3px 0 var(--charcoal);
  --shadow-soft: 0 4px 16px rgba(45, 24, 16, 0.1);
  --shadow-lg: 0 12px 32px rgba(45, 24, 16, 0.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent iOS zoom on input focus */
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* CRITICAL: prevent any element from causing horizontal scroll */
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.script { font-family: 'Caveat', cursive; font-weight: 700; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }

/* ============================================================
   TOP NAV
   ============================================================ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--charcoal);
  transition: box-shadow 0.2s;
}
.top-nav.scrolled { box-shadow: 0 2px 8px rgba(45, 24, 16, 0.1); }

.nav-inner {
  max-width: 1408px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .nav-inner { padding: 0.85rem 1.5rem; gap: 1rem; } }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}
.nav-brand-mark {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: 3px solid var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-brand-mark svg { width: 32px; height: 32px; }

.nav-brand-text { line-height: 1; min-width: 0; }
.nav-brand-text .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--charcoal);
  display: block;
  white-space: nowrap;
}
.nav-brand-text .loc {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--red);
  display: block;
  margin-top: 0.05rem;
}
@media (min-width: 640px) {
  .nav-brand-text .name { font-size: 1.15rem; }
}

.nav-tabs {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1100px) { .nav-tabs { display: flex; } }

.nav-tab {
  padding: 0.55rem 0.9rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--charcoal);
  border-radius: var(--r-pill);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-tab:hover { background: var(--charcoal); color: var(--cream); }
.nav-tab.active { background: var(--red); color: var(--white); }

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  color: var(--white);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  border: 2.5px solid var(--charcoal);
  transition: all 0.15s;
  flex-shrink: 0;
}
@media (min-width: 1100px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--charcoal); transform: translateY(-1px); }

.nav-toggle {
  margin-left: auto;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 1100px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 0.85rem 1rem 1.25rem;
  border-bottom: 3px solid var(--charcoal);
  gap: 0.4rem;
}
@media (min-width: 640px) { .mobile-menu { padding: 1rem 1.5rem 1.5rem; } }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 2.5px solid var(--charcoal);
  color: var(--charcoal);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a.cta { background: var(--red); color: var(--white); }
.mobile-menu a.boise-link { background: var(--yellow); }

/* ============================================================
   BUTTONS — touch-friendly, min 44px height
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  border: 3px solid var(--charcoal);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  color: var(--charcoal);
  text-decoration: none;
  min-height: 44px;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop-sm); }
.btn:active { transform: translateY(0); box-shadow: 1px 1px 0 var(--charcoal); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); color: var(--charcoal); }
.btn-yellow:hover { background: var(--gold); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-charcoal { background: var(--charcoal); color: var(--cream); }
.btn-charcoal:hover { background: var(--red); }
.btn-lg { padding: 1rem 1.85rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; min-height: 40px; }

/* ============================================================
   STICKERS / BADGES
   ============================================================ */
.burst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--charcoal);
  border: 3px solid var(--charcoal);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.3rem 1rem;
  border-radius: var(--r-pill);
  transform: rotate(-4deg);
  box-shadow: var(--shadow-pop-sm);
  white-space: nowrap;
}
.burst.red { background: var(--red); color: var(--white); }
.burst.orange { background: var(--orange); color: var(--white); }
.burst.small { font-size: 0.95rem; padding: 0.2rem 0.7rem; }

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--r-pill);
}
.tag.red { background: var(--red); color: var(--white); }
.tag.yellow { background: var(--yellow); color: var(--charcoal); }
.tag.orange { background: var(--orange); color: var(--white); }

/* ============================================================
   LAYOUT
   ============================================================ */
.section { position: relative; z-index: 5; }
.container {
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.container-narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
@media (min-width: 640px) { .container-narrow { padding: 0 1.5rem; } }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 3px solid var(--charcoal);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.card-pop:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-pop);
}

.photo-frame {
  position: relative;
  border: 3px solid var(--charcoal);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   FORMS — mobile keyboard friendly
   ============================================================ */
input, select, textarea {
  width: 100%;
  background: var(--white);
  border: 2.5px solid var(--charcoal);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 16px; /* Prevents iOS zoom on focus */
  color: var(--charcoal);
  transition: all 0.15s;
  min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18);
}
.field-label {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.field-label .req { color: var(--red); }

.tile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  border: 2.5px solid var(--charcoal);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
  min-height: 44px;
}
.tile:hover { background: var(--cream-dark); }
.tile input { width: auto; min-height: auto; margin: 0; accent-color: var(--red); }
.tile.checked { background: var(--yellow); }

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--white);
  border: 2.5px solid var(--charcoal);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
}
.checkbox-row input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--red);
}
.checkbox-row label { font-size: 0.92rem; line-height: 1.45; cursor: pointer; flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .footer-grid { padding: 0 1.5rem; grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-grid h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1408px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid rgba(255, 248, 231, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 248, 231, 0.55);
  align-items: center;
}
@media (min-width: 640px) { .footer-bottom { padding-left: 1.5rem; padding-right: 1.5rem; } }
.footer-bottom a:hover { color: var(--yellow); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}
.float { animation: float 4s ease-in-out infinite; }

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
.wiggle:hover { animation: wiggle 0.4s ease-in-out; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.25s; }
.reveal-3 { animation-delay: 0.4s; }

@keyframes spinSlow { to { transform: rotate(360deg); } }
.spin-slow { animation: spinSlow 22s linear infinite; }

@keyframes sunRays {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sun-rays { animation: sunRays 60s linear infinite; transform-origin: center; }

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.script-red { font-family: 'Caveat', cursive; color: var(--red); font-weight: 700; }
.script-pre {
  display: inline-block;
  font-family: 'Caveat', cursive;
  color: var(--red);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  transform: rotate(-2deg);
}
.underline-wavy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q 12.5 0 25 4 T 50 4 T 75 4 T 100 4' fill='none' stroke='%23E63946' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 80px 6px;
  padding-bottom: 0.4rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.no-overflow { overflow: hidden; }

/* ============================================================
   SECTION HEADER (used everywhere)
   ============================================================ */
.section-head {
  max-width: 768px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.section-head p {
  margin: 0.85rem auto 0;
  color: var(--brown);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ============================================================
   FOOTER BRAND BLOCK (reusable)
   ============================================================ */
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-brand-mark {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: 3px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.footer-brand-mark svg { width: 30px; height: 30px; }
.footer-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-brand-tag {
  font-family: 'Caveat', cursive;
  color: var(--yellow);
  font-size: 1rem;
  display: block;
}
