/* ========================================
   Cub's Den Learning Center 2 — Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-left {
    transform: translateX(-24px);
  }
  .reveal-right {
    transform: translateX(24px);
  }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* --- Navigation --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #c9562e;
  transition: width 0.3s ease;
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9562e;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: #a84120;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 65, 32, 0.3);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c9562e;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 100px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
  background: #a84120;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(168, 65, 32, 0.35);
}

.btn-arrow-submit {
  transition: transform 0.2s ease;
}

.btn-submit:hover .btn-arrow-submit {
  transform: translateX(3px);
}

/* --- Section Layout --- */
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* --- Section Labels --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: #c9562e;
  flex-shrink: 0;
}

.section-title {
  /* text color set per section */
}

.section-subtitle {
  /* text color set per section */
}

.section-label-light {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label-line-light {
  display: block;
  width: 32px;
  height: 1.5px;
  background: #e4a047;
  flex-shrink: 0;
}

.section-title-light {
  /* text color set per section */
}

.section-label-dark {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.section-label-line-dark {
  display: block;
  width: 32px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.section-title-dark {
  /* text color set per section */
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: #341208;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(52, 18, 8, 0.92) 0%,
    rgba(139, 51, 25, 0.80) 40%,
    rgba(168, 65, 32, 0.65) 70%,
    rgba(199, 86, 46, 0.50) 100%
  );
}

.hero-deco {
  position: absolute;
  pointer-events: none;
}

.hero-deco-top-right {
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-deco-bottom-left {
  bottom: -120px;
  left: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-diamond {
  position: absolute;
  top: 28%;
  left: 48%;
  width: 12px;
  height: 12px;
  background: #f5dbaa;
  transform: rotate(45deg);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-label-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: #f5dbaa;
  flex-shrink: 0;
}

.hero-headline {
  /* text color: white, set on element */
}

.hero-image-panel {
  /* positioned below image */
}

.hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 600/750;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 18, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 100px;
  color: #f5dbaa;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* --- Service Cards --- */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 86, 46, 0.2);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf0eb;
  border-radius: 14px;
  color: #c9562e;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: #c9562e;
  color: #fff;
}

.service-card-title {
  /* color: warmgray-900 */
}

.service-card-text {
  /* color: warmgray-600 */
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c9562e;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}

.service-card-link:hover {
  gap: 10px;
}

.service-card-link svg {
  transition: transform 0.2s ease;
}

.service-card-link:hover svg {
  transform: translateX(2px);
}

/* --- About Section --- */
.about-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(201, 86, 46, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(228, 160, 71, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.about-image-grid {
  position: relative;
}

.about-image-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.about-image {
  width: 100%;
  height: auto;
  aspect-ratio: 560/640;
  object-fit: cover;
}

.about-image-secondary {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 55%;
}

.about-image-sm {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid #1e1b18;
}

.about-image-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  background: #c9562e;
  border-radius: 12px;
  opacity: 0.6;
  z-index: -1;
}

.about-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(to right, #c9562e, transparent);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-feature-dot {
  width: 8px;
  height: 8px;
  background: #c9562e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 90%, rgba(255,255,255,0.04) 0%, transparent 40%),
                    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.why-card {
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.why-card:hover {
  border-left-color: #f5dbaa;
}

/* --- Gallery --- */
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 600/400;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img-wrapper:hover img {
  transform: scale(1.05);
}

.gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 27, 24, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-img-wrapper:hover .gallery-img-overlay {
  opacity: 1;
}

/* --- Testimonial --- */
.testimonial-quote-icon {
  display: inline-flex;
}

.testimonial-divider {
  width: 48px;
  height: 2px;
  background: #c9562e;
  margin: 0 auto;
}

/* --- Contact Section --- */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
}

@media (max-width: 767px) {
  .contact-form-wrapper {
    padding: 28px;
  }
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 86, 46, 0.15);
  border-radius: 12px;
  color: #e27347;
  flex-shrink: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #faf9f7;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #8e8174;
}

.form-input:focus {
  border-color: #c9562e;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 86, 46, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8174' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: #1e1b18;
  color: #faf9f7;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-success {
  text-align: center;
  padding: 40px 20px;
}

.contact-success-icon {
  display: inline-flex;
  color: #4ade80;
}

/* --- Map Pin --- */
.map-pin-dot {
  width: 10px;
  height: 10px;
  background: #c9562e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201, 86, 46, 0.2);
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 27, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #1e1b18;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #faf9f7;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* --- Focus visible --- */
*:focus-visible {
  outline: 2px solid #c9562e;
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(201, 86, 46, 0.2);
  color: #341208;
}
