/* =========================================
   Mountain View Boutique — Custom Styles
   ========================================= */

/* === FONTS & BASE === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: #F5F0E8;
  color: #2B2B2B;
  overflow-x: hidden;
}

/* === AOS SAFETY: never stay invisible === */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: ease;
}
[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* === GRAIN OVERLAY === */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* === NAVBAR === */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(43, 43, 43, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* === HERO === */
.hero-bg {
  background: linear-gradient(160deg, #2B2B2B 0%, #3E3E3E 40%, #5A6B52 80%, #7A8C6E 100%);
  position: relative;
}

.mountain-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.mountain {
  position: absolute;
  bottom: 0;
}
.mountain-1 {
  left: 30%;
  width: 0;
  height: 0;
  border-left: 250px solid transparent;
  border-right: 250px solid transparent;
  border-bottom: 340px solid rgba(90,107,82,0.25);
}
.mountain-2 {
  left: 52%;
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 280px solid rgba(122,140,110,0.18);
}
.mountain-3 {
  right: 10%;
  width: 0;
  height: 0;
  border-left: 320px solid transparent;
  border-right: 320px solid transparent;
  border-bottom: 420px solid rgba(58,70,50,0.2);
}

.hero-circle {
  animation: float1 8s ease-in-out infinite;
}
.hero-circle2 {
  animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {
  0%,100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(245,240,232,0.8);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
}

.hero-headline {
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.95;
  font-weight: 900;
}
.hero-line2 {
  padding-left: clamp(1rem, 4vw, 4rem);
}

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(245,240,232,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 1px;
  background: #C4865A;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* === MARQUEE === */
.marquee-strip { position: relative; }
.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  gap: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #C4865A;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #A0663C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,134,90,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(245,240,232,0.75);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(245,240,232,0.2);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(196,134,90,0.5);
  color: #C4865A;
  transform: translateY(-2px);
}

/* === ABOUT === */
.about-img-wrapper {
  position: relative;
}
.about-img-bg {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  background: linear-gradient(135deg, #A8B99A, #7A8C6E);
  border-radius: 20px;
  z-index: 0;
}
.about-img-main {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}
.about-visual-placeholder {
  width: 100%;
  height: 460px;
  background: linear-gradient(160deg, #EDE7D9 0%, #D9CFBE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-placeholder svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent-tag {
  position: absolute;
  bottom: -16px;
  right: -8px;
  background: #C4865A;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  max-width: 180px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(196,134,90,0.3);
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid rgba(43,43,43,0.1);
}

/* === COLLECTIONS GRID === */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .collections-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .collections-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.collection-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 280px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}
.collection-card--large {
  grid-column: span 2;
  min-height: 340px;
}
.collection-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.card-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.collection-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.collection-icon {
  font-size: 2rem;
  margin-top: auto;
  margin-bottom: 0;
  line-height: 1;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  color: rgba(245,240,232,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: gap 0.2s ease;
  font-family: 'Manrope', sans-serif;
}
.card-cta:hover { color: white; gap: 0.75rem; }
.card-cta-dark {
  display: inline-flex;
  align-items: center;
  color: rgba(43,43,43,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
}
.card-cta-dark:hover { color: #2B2B2B; }

/* === EXPERIENCE STRIP === */
.experience-strip {
  background: linear-gradient(135deg, #2B2B2B 0%, #3E3E3E 60%, #5A6B52 100%);
}
.experience-item {
  position: relative;
}

/* === GALLERY === */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img-wrap {
  transform: scale(1.03);
}
.gallery-item--tall .gallery-img-wrap {
  min-height: 460px;
}
.gallery-item--wide .gallery-img-wrap {
  min-height: 260px;
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 3;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}
.gallery-svg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* Always-visible caption chip so each tile reads as a real example image */
.gallery-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(43,43,43,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #F5F0E8;
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(196,134,90,0.3);
  transform: translateY(-4px);
}
.testimonial-card--accent {
  background: #C4865A;
  border-color: transparent;
}
.stars {
  color: #C4865A;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card--accent .stars {
  color: #2B2B2B;
}

/* === CONTACT FORM === */
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.contact-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(196,134,90,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-form-wrap {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43,43,43,0.5);
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(43,43,43,0.1);
  border-radius: 10px;
  background: #F5F0E8;
  color: #2B2B2B;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.form-input:focus {
  border-color: #7A8C6E;
  box-shadow: 0 0 0 3px rgba(122,140,110,0.15);
}
.form-input::placeholder {
  color: rgba(43,43,43,0.35);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #2B2B2B; }
::-webkit-scrollbar-thumb { background: #C4865A; border-radius: 3px; }

/* === SELECTION === */
::selection {
  background: rgba(196,134,90,0.3);
  color: #2B2B2B;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 640px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .collection-card--large {
    grid-column: span 1;
  }
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall {
    grid-row: span 1;
  }
  .gallery-item--tall .gallery-img-wrap {
    min-height: 220px;
  }
  .about-accent-tag {
    right: 0;
  }
  .about-img-bg {
    right: -12px;
    bottom: -12px;
  }
}

/* === COUNTER font fix === */
.counter {
  font-family: 'Fraunces', Georgia, serif;
  display: inline-block;
}


