/* ==========================================================================
   STEVE'S STUDY HOUSE — EMOTIONAL PARENT EXPERIENCE
   Visual-first, emotionally arresting, warm British study house design
   ========================================================================== */

:root {
  --sh-navy: #0A192F;
  --sh-green: #11382B;
  --sh-green-dark: #092018;
  --sh-green-bright: #1E5C47;
  --sh-gold: #D4AF37;
  --sh-gold-glow: #F3E5AB;
  --sh-gold-deep: #9E7D23;
  --sh-amber: #FFB020;
  --sh-crimson: #9E2A2B;
  --sh-cream: #FAF8F5;
  --sh-cream-alt: #F3EFEA;
  --sh-card-white: #FFFFFF;
  --sh-text-title: #0C1A1A;
  --sh-text-body: #33423D;
  --sh-shadow-photo: 0 20px 50px -10px rgba(10, 25, 47, 0.28), 0 8px 20px rgba(10, 25, 47, 0.12);
  --sh-shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   BRAND LOGO & 100% VISIBLE NAME STYLING
   ========================================================================== */

.site-header {
  background: #0E261E !important; /* Rich British Racing Green */
  border-bottom: 2px solid #D4AF37 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
  position: sticky;
  top: 0;
  z-index: 99;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
}

/* User's Official Heraldic Tudor Rose Logo */
.brand-logo-frame {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #DFBA6F;
  box-shadow: 0 0 14px rgba(223, 186, 111, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7E1D22;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-logo-frame {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 22px rgba(223, 186, 111, 0.85);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text-block {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.brand-crown-tag {
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #E5C378 !important; /* Bright, crystal-clear gold */
  line-height: 1.1 !important;
  margin-bottom: 3px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.brand-main-title {
  font-family: "Newsreader", Georgia, serif !important;
  font-size: 1.34rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #FFFFFF !important; /* 100% crisp pure white - guaranteed visibility */
  line-height: 1.1 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.brand-main-title b {
  color: #F4D068 !important; /* Warm gleaming gold */
  font-style: italic !important;
  font-weight: 600 !important;
}

/* Nav links contrast */
.nav-links a {
  color: #E2ECE6 !important;
  font-weight: 500 !important;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FFDF85 !important;
}

.nav-toggle {
  color: #FFFFFF !important;
  border-color: rgba(223, 186, 111, 0.4) !important;
}

/* Hero Badge with Logo */
.hero-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 38, 30, 0.92);
  border: 1.5px solid var(--sh-gold);
  border-radius: 40px;
  padding: 6px 18px 6px 8px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.hero-official-badge img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--sh-gold);
  object-fit: cover;
}

.hero-official-badge-text {
  display: flex;
  flex-direction: column;
}

.hero-official-badge-text b {
  font-family: "Newsreader", serif;
  font-size: 0.9rem;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.hero-official-badge-text span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: #E5C378;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   HERO PHOTO & CELEBRATION ENTRANCE ANIMATIONS
   ========================================================================== */

@keyframes photoHeroEntrance {
  0% { transform: scale(0.94) translateY(30px); opacity: 0; filter: blur(4px); }
  60% { transform: scale(1.01) translateY(-4px); opacity: 1; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes popInBubble {
  0% { transform: scale(0.5); opacity: 0; }
  75% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGoldHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }
}

.hero-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  animation: photoHeroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-photo-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--sh-gold);
  box-shadow: var(--sh-shadow-photo);
  display: block;
}

/* Floating emotional testimonial bubbles */
.floating-bubble {
  position: absolute;
  background: #FFFFFF;
  border: 1.5px solid var(--sh-gold);
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: popInBubble 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatBubble 4s ease-in-out infinite 1s;
  z-index: 10;
  white-space: nowrap;
}

.floating-bubble.top-left {
  top: -20px;
  left: -20px;
  animation-delay: 0.4s, 1.4s;
}

.floating-bubble.bottom-right {
  bottom: -20px;
  right: -20px;
  animation-delay: 0.7s, 1.7s;
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sh-green);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.bubble-text b {
  display: block;
  font-size: 0.82rem;
  color: var(--sh-text-title);
  line-height: 1.2;
}

.bubble-text span {
  font-size: 0.72rem;
  color: var(--sh-gold-deep);
  font-weight: 600;
}

/* ==========================================================================
   URGENCY / EMOTION STRIP
   ========================================================================== */

.urgency-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(158, 42, 43, 0.08);
  border: 1.5px solid rgba(158, 42, 43, 0.3);
  color: var(--sh-crimson);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.urgency-ribbon .pulse-dot {
  width: 9px;
  height: 9px;
  background: var(--sh-crimson);
  border-radius: 50%;
  display: inline-block;
  animation: pulseGoldHeart 1.5s infinite;
}

/* ==========================================================================
   PHOTO GALLERIES & EMOTIONAL MOMENTS
   ========================================================================== */

.photo-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.photo-story-card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 14px 38px -8px rgba(10, 25, 47, 0.12);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.photo-story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -10px rgba(10, 25, 47, 0.22);
  border-color: var(--sh-gold);
}

.story-img-frame {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.story-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-story-card:hover .story-img-frame img {
  transform: scale(1.05);
}

.story-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid var(--sh-gold);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-badge-overlay svg {
  color: var(--sh-gold);
}

.story-card-body {
  padding: 24px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.story-card-body h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  color: var(--sh-navy);
  margin-bottom: 10px;
  line-height: 1.25;
}

.story-card-body p {
  font-size: 0.95rem;
  color: var(--sh-text-body);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.story-quote-tag {
  background: var(--sh-cream);
  border-left: 3px solid var(--sh-gold);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--sh-green);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   VISCERAL CONTRAST: THE TWO FUTURES
   ========================================================================== */

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

.future-card {
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
}

.future-sad {
  background: #F4F1ED;
  border: 1.5px solid #D6CEBE;
  color: #4A453C;
}

.future-sad h3 {
  color: #73231E;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.future-happy {
  background: linear-gradient(145deg, #11382B 0%, #081C15 100%);
  border: 2px solid var(--sh-gold);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(17, 56, 43, 0.35);
}

.future-happy h3 {
  color: var(--sh-gold);
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.future-points-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.future-points-list li {
  font-size: 0.96rem;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

.future-sad li svg {
  color: #9E2A2B;
  flex-shrink: 0;
  margin-top: 3px;
}

.future-happy li svg {
  color: var(--sh-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   DREAM GRADUATION VISUALIZER (INTERACTIVE MOMENT)
   ========================================================================== */

.visualizer-box {
  background: #FFFFFF;
  border: 2px solid var(--sh-gold);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--sh-shadow-photo);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.visualizer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 24px 0 32px;
}

.vis-input {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1.5px solid #D8CEBB;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s;
}

.vis-input:focus {
  border-color: var(--sh-green);
  box-shadow: 0 0 0 3px rgba(17, 56, 43, 0.15);
}

.vis-select {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1.5px solid #D8CEBB;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  background: #FFFFFF;
  outline: none;
}

.vis-result-card {
  display: none;
  background: linear-gradient(135deg, #11382B 0%, #0A192F 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 34px;
  border: 2px solid var(--sh-gold);
  box-shadow: var(--sh-shadow-gold);
  animation: popInBubble 0.5s ease;
  margin-top: 20px;
}

.vis-diploma-crest {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--sh-gold);
}

.vis-result-headline {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.85rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.vis-result-headline span {
  color: var(--sh-gold);
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE EMOTIONAL UI
   ========================================================================== */

@media (max-width: 960px) {
  .two-futures-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo-img {
    height: 380px;
  }
  .visualizer-box {
    padding: 26px 18px;
  }
}

@media (max-width: 640px) {
  .floating-bubble {
    position: static;
    margin-top: 10px;
    width: 100%;
  }
  .hero-photo-img {
    height: 280px;
  }
}
