/* ============================================
   CLANCY DOGGYMANN — Components
   ============================================ */

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

.nav-bar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0;
  width: auto;
  max-width: calc(100% - 2rem);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 0.6rem 1.5rem;
  background: rgba(255, 248, 225, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  border: 1px solid rgba(62, 39, 35, 0.08);
  box-shadow: 0 8px 32px -8px rgba(62, 39, 35, 0.1);
  transition: all var(--duration-slow) var(--ease-spring);
}

.nav-bar.scrolled .nav-inner {
  background: rgba(255, 248, 225, 0.95);
  box-shadow: 0 4px 20px -4px rgba(62, 39, 35, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--earth);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--clancy-blue-20);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--earth);
  letter-spacing: var(--tracking-tight);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--earth);
  text-decoration: none;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-spring);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bandana);
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-spring);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--bandana);
}

.nav-cta {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
  background: var(--bandana);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-spring);
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.25);
}

.nav-cta:hover {
  background: var(--clancy-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15), 0 8px 20px rgba(74, 111, 165, 0.3);
}

/* ── Mobile Nav ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--earth);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-spring);
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--cloud);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16);
    box-shadow: -20px 0 60px rgba(62, 39, 35, 0.15);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-spring);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: var(--text-lg);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--earth-50);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-spring);
    z-index: 998;
  }

  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ══════════════════════════════════════════════
   DOUBLE-BEZEL CARDS
   ══════════════════════════════════════════════ */

.card-bezel {
  background: var(--sun-05);
  box-shadow: 0 0 0 1px var(--earth-05);
  padding: 6px;
  border-radius: var(--radius-xl);
  transition: transform var(--duration-slow) var(--ease-spring),
              box-shadow var(--duration-slow) var(--ease-spring);
}

.card-bezel:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--earth-05), var(--shadow-xl);
}

.card-inner {
  background: var(--cloud);
  box-shadow: var(--shadow-inset);
  border-radius: var(--radius-inner);
  overflow: hidden;
}

.card-inner-padded {
  background: var(--cloud);
  box-shadow: var(--shadow-inset);
  border-radius: var(--radius-inner);
  padding: var(--space-8);
  overflow: hidden;
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-spring);
}

.btn:hover::before {
  opacity: 1;
}

/* Primary — Bandana Blue */
.btn-primary {
  background: var(--bandana);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 12px rgba(74, 111, 165, 0.3);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(74, 111, 165, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Ghost — Earth Brown outline */
.btn-ghost {
  background: transparent;
  color: var(--earth);
  box-shadow: inset 0 0 0 2px var(--wood);
}

.btn-ghost:hover {
  color: var(--bandana);
  box-shadow: inset 0 0 0 2px var(--bandana);
  transform: translateY(-3px);
}

/* Amazon — Barn Red */
.btn-amazon {
  background: var(--barn);
  color: white;
  box-shadow: var(--shadow-md), 0 4px 12px rgba(198, 40, 40, 0.3);
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
}

.btn-amazon:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(198, 40, 40, 0.35);
}

/* Secondary — Subtle */
.btn-secondary {
  background: var(--cream);
  color: var(--earth);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--sun-10);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Button Sizes ── */
.btn-lg {
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  color: white;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
  line-height: var(--leading-relaxed);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: white;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.footer-nav-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-spring);
  text-decoration: none;
}

.footer-nav-link:hover {
  color: var(--sun);
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--duration-normal) var(--ease-spring);
}

.footer-social-icon:hover {
  background: var(--bandana);
  color: white;
  transform: translateY(-3px);
}

.footer-social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  text-align: center;
}

.footer-adventures {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--sun);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-memorial {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ══════════════════════════════════════════════
   HORIZONTAL SCROLL STRIP
   ══════════════════════════════════════════════ */

.scroll-strip {
  position: relative;
}

.scroll-strip-track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-4) var(--section-padding-x);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-strip-track::-webkit-scrollbar {
  display: none;
}

.scroll-strip-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(350px, 80vw);
}

.scroll-strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--cloud-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--earth-05);
  color: var(--earth);
  transition: all var(--duration-normal) var(--ease-spring);
  z-index: 10;
}

.scroll-strip-arrow:hover {
  background: var(--cloud);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.1);
}

.scroll-strip-arrow.left {
  left: var(--space-4);
}

.scroll-strip-arrow.right {
  right: var(--space-4);
}

.scroll-strip-arrow svg {
  width: 24px;
  height: 24px;
}

/* ══════════════════════════════════════════════
   VIDEO CONTAINER
   ══════════════════════════════════════════════ */

.video-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.video-container video,
.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--cloud-80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bandana);
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-spring);
  cursor: pointer;
  border: none;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

/* ══════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════ */

.input-field {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--earth);
  background: var(--cloud);
  border: 2px solid var(--earth-10);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-spring);
}

.input-field:focus {
  border-color: var(--bandana);
  box-shadow: 0 0 0 4px var(--bandana-10);
}

.input-field::placeholder {
  color: var(--wood);
}

.input-group {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.input-group .input-field {
  flex: 1;
}

@media (max-width: 768px) {
  .input-group {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════
   STAR RATING
   ══════════════════════════════════════════════ */

.star-rating {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.star-rating svg {
  width: 24px;
  height: 24px;
  fill: var(--sun);
}

.star-rating-text {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--earth);
  margin-left: var(--space-2);
}

/* ══════════════════════════════════════════════
   BADGE
   ══════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-blue {
  background: var(--clancy-blue-10);
  color: var(--clancy-blue);
}

.badge-red {
  background: var(--barn-10);
  color: var(--barn);
}

.badge-gold {
  background: var(--sun-10);
  color: var(--earth);
}

/* ══════════════════════════════════════════════
   PAPER TEXTURE OVERLAY
   ══════════════════════════════════════════════ */

.paper-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   PHOSPHOR ICON SIZING
   ══════════════════════════════════════════════ */

.ph-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ph-icon svg {
  width: 1em;
  height: 1em;
}

.ph-icon-lg svg {
  width: 1.5em;
  height: 1.5em;
}

.ph-icon-xl svg {
  width: 2em;
  height: 2em;
}

.ph-icon-2xl svg {
  width: 2.5em;
  height: 2.5em;
}

.ph-icon-3xl svg {
  width: 3em;
  height: 3em;
}

/* ══════════════════════════════════════════════
   STAT CARD (Bento Style)
   ══════════════════════════════════════════════ */

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.stat-icon-blue {
  background: var(--clancy-blue-10);
  color: var(--bandana);
}

.stat-icon-green {
  background: rgba(76, 175, 80, 0.1);
  color: var(--grass);
}

.stat-icon-red {
  background: var(--barn-10);
  color: var(--barn);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-4xl);
  color: var(--earth);
  line-height: var(--leading-none);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--earth);
  line-height: var(--leading-snug);
}

.stat-desc {
  font-size: var(--text-sm);
  color: var(--wood);
  margin-top: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════════════
   HEADING TEXT SHADOWS — Depth
   ══════════════════════════════════════════════ */
h1, h2 {
  text-shadow: 0 2px 8px rgba(62, 39, 35, 0.06);
}

/* ══════════════════════════════════════════════
   CTA HOVER GLOW
   ══════════════════════════════════════════════ */
.btn-primary:hover,
.nav-cta:hover {
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.15),
              0 12px 24px -8px rgba(74, 111, 165, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-amazon:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

/* ══════════════════════════════════════════════
   MINI AMAZON STRIP
   ══════════════════════════════════════════════ */
.amazon-mini-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--cream);
  border-top: 1px solid rgba(62, 39, 35, 0.06);
  border-bottom: 1px solid rgba(62, 39, 35, 0.06);
  position: relative;
  z-index: 30;
  transition: all var(--duration-normal) var(--ease-spring);
}

.amazon-mini-strip.sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 248, 225, 0.9);
  box-shadow: 0 2px 12px rgba(62, 39, 35, 0.08);
}

.amazon-mini-strip img {
  width: 44px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.amazon-mini-strip .mini-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--earth);
}

.amazon-mini-strip .btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

@media (max-width: 768px) {
  .amazon-mini-strip { gap: 0.75rem; padding: 0.6rem 1rem; }
  .amazon-mini-strip .mini-title { display: none; }
}

/* ══════════════════════════════════════════════
   EMAIL CAPTURE — CINEMATIC REDESIGN
   ══════════════════════════════════════════════ */
.email-section-v2 {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-16) var(--section-padding-x);
}

.email-section-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/clancy-barn-hero.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.35) saturate(1.2);
  transform: scale(1.05);
  z-index: 0;
}

.email-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 90%;
  background: rgba(255, 248, 225, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 30px 60px -15px rgba(62, 39, 35, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.email-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--clancy-blue-20);
  margin: 0 auto var(--space-4);
}

.email-card h2 {
  font-family: var(--font-display);
  color: var(--earth);
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.email-card .email-spanish {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--wood);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.email-card .email-desc {
  color: var(--wood);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.email-card .input-field {
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-align: center;
}

.email-card .btn {
  width: 100%;
  border-radius: var(--radius-full);
}

.email-card .email-legal {
  font-size: var(--text-xs);
  color: var(--wood);
  margin-top: var(--space-4);
  opacity: 0.6;
}

/* ══════════════════════════════════════════════
   BOOK CARD PAGE TURN CORNER
   ══════════════════════════════════════════════ */
.scroll-strip-item .card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(62, 39, 35, 0.06) 50%);
  border-radius: 0 calc(var(--radius-inner) - 2px) 0 0;
  z-index: 3;
}
