/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-sage-dark);
  color: var(--color-off-white);
  box-shadow: 0 4px 14px rgba(60, 90, 67, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-sage-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 90, 67, 0.35);
}

.btn-outline {
  border-color: var(--color-sage-dark);
  color: var(--color-sage-dark);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-sage-dark);
  color: var(--color-off-white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.15rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-off-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-sage-dark);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(60, 90, 67, 0.08);
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero {
  padding: 80px 0 100px 0;
  background: linear-gradient(135deg, #FAF7F2 0%, #EBF2EC 100%);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-sage-dark);
  margin: 16px 0;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-description { font-size: 1.1rem; }
}

/* ==========================================================================
   Cards & Feature Blocks
   ========================================================================== */
.card {
  background: var(--color-off-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-sage-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Instagram Gallery Cards
   ========================================================================== */
.gallery-card {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f0f0f0;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.05);
}

.video-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.gallery-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-sage-dark);
}

.gallery-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.instagram-link {
  font-family: var(--font-heading);
  color: var(--color-sky-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.instagram-link:hover {
  gap: 10px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal {
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 500px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal::backdrop {
  background: rgba(45, 55, 72, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 36px;
  background: var(--color-off-white);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ==========================================================================
   Iframe Embedded Reel Styling 
   ========================================================================== */
.gallery-card.iframe-card {
  padding: 0;
  overflow: hidden;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-card.iframe-card iframe {
  border: none;
  border-radius: var(--radius-md);
  width: 100%;
  display: block;
}

/* ==========================================================================
   Yellow Legal Pad Tour Modal
   ========================================================================== */
dialog.modal-notepad {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 660px;
  width: 92vw;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  overflow: visible;

  /* Perfect Viewport Centering Fix */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog.modal-notepad::backdrop {
  background: rgba(20, 30, 25, 0.65);
  backdrop-filter: blur(5px);
}

.notepad-wrapper {
  background: #3B1E1E; /* Top dark pad binding */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.notepad-binding {
  height: 42px;
  background: linear-gradient(180deg, #4A2323 0%, #2D1414 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
}

.notepad-close {
  background: #E53E3E;
  color: #FFFFFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.notepad-close:hover {
  background: #C53030;
  transform: scale(1.1);
}

/* Yellow Legal Pad Background & Blue Lined Grid */
.notepad-paper {
  background-color: #FEF8CD;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 31px,
    rgba(74, 144, 226, 0.22) 31px,
    rgba(74, 144, 226, 0.22) 32px
  );
  padding: 32px 36px 36px 64px; /* Extra left padding for red margin line */
  position: relative;
  min-height: 520px;
  box-sizing: border-box;
}

/* Red Left Vertical Margin Line */
.notepad-margin-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48px;
  width: 2px;
  background-color: #FF8A80;
}

/* Floating Doodle Stickers */
.doodle {
  position: absolute;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.15));
  opacity: 0.9;
}

.doodle-pencil { top: 16px; right: 28px; transform: rotate(18deg); font-size: 2.2rem; }
.doodle-star   { bottom: 20px; left: 14px; transform: rotate(-12deg); font-size: 1.6rem; }
.doodle-apple  { top: 110px; right: 18px; transform: rotate(-10deg); font-size: 1.8rem; }
.doodle-art    { bottom: 85px; right: 22px; transform: rotate(8deg); font-size: 1.8rem; }
.doodle-bear   { bottom: 18px; right: 120px; transform: rotate(-5deg); font-size: 1.7rem; }

/* Header Formatting */
.notepad-header {
  margin-bottom: 24px;
}

.notepad-header h2 {
  font-family: var(--font-heading);
  color: #2C4A3E;
  font-size: 2rem;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.notepad-subtitle {
  margin: 0;
  font-weight: 600;
  color: #5A6A60;
  font-size: 0.92rem;
}

/* Form Controls */
.notepad-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #2D3748;
}

.form-group input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: #1A202C;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #2C4A3E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(44, 74, 62, 0.15);
}

.form-actions {
  margin-top: 8px;
}

.btn-submit-notepad {
  width: 100%;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  background: #2C4A3E;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(44, 74, 62, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-submit-notepad:hover {
  background: #1E342B;
  transform: translateY(-2px);
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
  .notepad-paper {
    padding: 24px 20px 24px 44px;
  }
  .notepad-margin-line {
    left: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .doodle-bear, .doodle-art {
    display: none;
  }
}

/* ==========================================================================
   Persistent Fixed Bottom Anchor Bar
   ========================================================================== */
.bottom-anchor-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2C4A3E; /* Deep forest green */
  color: #FFFFFF;
  padding: 8px 16px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
}

.bottom-anchor-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bottom-anchor-link {
  color: #FEF8CD; /* Warm yellow/cream accent */
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.bottom-anchor-link:hover {
  color: #FFFFFF;
}

.bottom-anchor-sep {
  opacity: 0.5;
  font-weight: 300;
}

.bottom-anchor-tag {
  color: #FFFFFF;
}

.bottom-anchor-sub {
  font-size: 0.78rem;
  opacity: 0.88;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

/* Ensure bottom-of-page content isn't obscured by the fixed bar */
body {
  padding-bottom: 54px;
}

/* Accessibility: Visually Hidden Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #2C4A3E;
  color: #FFFFFF !important;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 10000;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Top Announcement Bar & Mobile Stack Fix */
.top-bar {
  background: #2C4A3E;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
  position: relative;
  z-index: 1001;
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* Prevent sticky header from overlapping wrapped top bar text on mobile */
  .site-header {
    position: relative;
  }
}

/* Sticky Header Group Container */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.top-bar {
  background: #2C4A3E;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
  width: 100%;
}

.site-header {
  position: relative; /* Sits naturally right below top-bar inside the wrapper */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   LOCKED STICKY HEADER (Zero Gap, Full Legibility Across All Devices)
   ========================================================================== */

.sticky-header-wrapper {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Green Top Banner */
.top-bar {
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  background: #2C4A3E !important;
  color: #FFFFFF !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  line-height: 1.35 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.top-bar span {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* White Navigation Header */
.site-header {
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  background: #FFFFFF !important; /* Solid background prevents scroll-through gaps */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .top-bar {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
  }

  .site-header {
    padding: 8px 0 !important;
  }
}