/* ==========================================================================
   Monster Homes — Custom Styles
   Palette derived from brand logo:
   Cyan monster fur #45C9E0 / #8FE3F0 / #2E9DB3
   Orange "MONSTER" gradient #FFAE00 -> #EA5F00
   Green "HOMES" gradient #87D300 -> #3C8A00
   Yellow sparkles #FFD966
   Ink outline #26170B
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Header ---------- */
#site-header {
  background: rgba(255, 248, 234, 0.0);
}

#site-header.scrolled {
  background: rgba(255, 248, 234, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(38, 23, 11, 0.12);
}

/*
  The source logo file (images/monster-homes-logo.png) is 1024x683px but the
  actual artwork (monster + wordmark) only occupies roughly the vertical
  band from y=248 to y=541 (about 43% of the total height), with large
  transparent padding above and below. To display the logo at a good size
  without shrinking it down to fit that empty space, we render the full
  image at a large scale inside a fixed-height "logo-crop" wrapper with
  overflow:hidden, and shift the image up so only the artwork band shows.
  This is a pure CSS crop of the original high-resolution file — no pixels
  are re-rendered, so there is zero quality loss.
*/
.logo-crop {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
  line-height: 0;
}

.logo-crop img {
  display: block;
  width: auto;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

#brand-logo-img.logo-crop {
  height: 74px;
}
#brand-logo-img.logo-crop img {
  height: 172px;
  margin-top: -63px;
}

.footer-logo.logo-crop {
  height: 60px;
}
.footer-logo.logo-crop img {
  height: 140px;
  margin-top: -51px;
}

@media (max-width: 767px) {
  #brand-logo-img.logo-crop {
    height: 56px;
  }
  #brand-logo-img.logo-crop img {
    height: 130px;
    margin-top: -47px;
  }
  .footer-logo.logo-crop {
    height: 48px;
  }
  .footer-logo.logo-crop img {
    height: 112px;
    margin-top: -41px;
  }
}

.nav-link {
  position: relative;
  color: #26170B;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: #FFAE00;
  border-radius: 3px;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #EA5F00;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: #EA5F00;
}
.nav-link.active::after {
  width: 100%;
}
.mobile-nav-link.active {
  color: #EA5F00;
}

.cta-pill {
  background: linear-gradient(135deg, #FFAE00, #EA5F00);
  color: #26170B;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid #26170B;
  box-shadow: 3px 3px 0 #26170B;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #26170B;
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(38,23,11,0.08);
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(160deg, #8FE3F0 0%, #45C9E0 45%, #2E9DB3 100%);
  padding-top: 180px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

.page-header .breadcrumb a {
  color: #26170B;
  font-weight: 600;
}
.page-header .breadcrumb a:hover {
  color: #EA5F00;
}

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(160deg, #8FE3F0 0%, #45C9E0 45%, #2E9DB3 100%);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,217,102,0.45), transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(255,255,255,0.35), transparent 50%);
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: #FFD966;
  filter: drop-shadow(0 0 6px rgba(255,217,102,0.8));
  animation: sparkle-float 4s ease-in-out infinite;
  z-index: 1;
}
.sparkle-1 { top: 14%; left: 6%; font-size: 1.6rem; animation-delay: 0s; }
.sparkle-2 { top: 68%; left: 46%; font-size: 1.1rem; animation-delay: 1.2s; }
.sparkle-3 { top: 30%; right: 8%; font-size: 2rem; animation-delay: 2.1s; }

@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-14px) scale(1.15); opacity: 1; }
}

.text-outline-orange {
  color: #FFAE00;
  -webkit-text-stroke: 2px #26170B;
  paint-order: stroke fill;
}
.text-outline-green {
  color: #87D300;
  -webkit-text-stroke: 2px #26170B;
  paint-order: stroke fill;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FFAE00, #EA5F00);
  color: #26170B;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid #26170B;
  box-shadow: 4px 4px 0 #26170B;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #26170B;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #FFF8EA;
  color: #26170B;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid #26170B;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover {
  background: #fff;
  transform: translate(-2px, -2px);
}

.hero-card {
  background: #FFF8EA;
  border: 3px solid #26170B;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 8px 8px 0 #26170B;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #26170B;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  border: 2px solid #26170B;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #26170B;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #EA5F00;
  box-shadow: 0 0 0 3px rgba(255,174,0,0.25);
}
.form-input::placeholder {
  color: #26170B99;
}

/* ---------- Form validation states ---------- */
.form-input.field-invalid {
  border-color: #D93025;
  box-shadow: 0 0 0 3px rgba(217,48,37,0.15);
}

.field-error {
  display: none;
  color: #D93025;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}
.field-error.visible {
  display: block;
}

.form-status-success {
  color: #3C8A00;
  font-weight: 700;
}
.form-status-error {
  color: #D93025;
  font-weight: 700;
}
.form-status-sending {
  color: #26170B;
  font-weight: 600;
}

/* ---------- Button loading spinner ---------- */
.btn-primary[disabled],
.btn-secondary[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2.5px solid rgba(38,23,11,0.35);
  border-top-color: #26170B;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn-spinner.visible {
  display: inline-block;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Section tags ---------- */
.section-tag {
  display: inline-block;
  background: #FFF3D6;
  color: #EA5F00;
  border: 2px solid #26170B;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-tag-light {
  background: rgba(255,255,255,0.15);
  color: #FFF8EA;
  border-color: #FFF8EA;
}

.text-shadow-ink {
  text-shadow: 3px 3px 0 #26170B;
}

/* ---------- About ---------- */
.section-light {
  background: #FFF8EA;
}

.stat-card {
  background: #FFF3D6;
  border: 2px solid #26170B;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 4px 4px 0 #26170B;
}

.about-photo-frame {
  border: 4px solid #26170B;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3.2;
  box-shadow: 8px 8px 0 #45C9E0;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #26170B;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 4px 4px 0 #87D300;
}

/* ---------- Services ---------- */
.section-cyan {
  background: linear-gradient(150deg, #2E9DB3, #1E7A8C);
  position: relative;
}

.service-card {
  background: #FFF8EA;
  border: 3px solid #26170B;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 5px 5px 0 #26170B;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 #26170B;
}

.teaser-card {
  display: block;
  background: #FFF8EA;
  border: 3px solid #26170B;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 5px 5px 0 #26170B;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 #26170B;
}
.teaser-link {
  color: #EA5F00;
  font-weight: 700;
  font-size: 0.9rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFAE00, #EA5F00);
  color: #26170B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  border: 2px solid #26170B;
}

/* ---------- Process ---------- */
.process-step {
  background: #FFF3D6;
  border: 2px dashed #26170B;
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
}

.process-number {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: #45C9E0;
  -webkit-text-stroke: 2px #26170B;
  paint-order: stroke fill;
  margin-bottom: 8px;
}

/* ---------- Audience ---------- */
.audience-section {
  background: linear-gradient(150deg, #3C8A00, #2A6300);
}

.audience-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(2px);
}

/* ---------- Trust strip ---------- */
.trust-item i {
  filter: drop-shadow(0 2px 0 rgba(38,23,11,0.15));
}

/* ---------- Contact ---------- */
.contact-section {
  background: linear-gradient(150deg, #EA5F00, #C24800);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF8EA;
}

.contact-form-card {
  background: #FFF8EA;
  border: 3px solid #26170B;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 8px 8px 0 #26170B;
}

/* ---------- Footer ---------- */
footer img {
  filter: brightness(1.05);
}

/* ---------- Back to top ---------- */
#back-to-top.visible {
  display: flex;
}

/* ---------- Scroll animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
  .floating-badge {
    left: 12px;
    bottom: -16px;
    padding: 10px 14px;
  }
  .hero-card {
    box-shadow: 5px 5px 0 #26170B;
  }
}
