/* =============================================================================
   SECTIONS — Section layout styles (homepage + sub-pages with intro-grid, recipe)
   ============================================================================= */

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--bg-hero);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 20px;
  padding-top: 60px;
  padding-bottom: 180px;
}

.hero-tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.95rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 12px;
}

.hero-accent .hero-tagline {
  color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero h1 .highlight-script {
  display: block;
  font-size: clamp(4.2rem, 9vw, 7.5rem);
  margin-top: -5px;
  text-transform: none;
  letter-spacing: 0;
}

.hero h1 .hero-script-small {
  font-size: clamp(3rem, 6vw, 4.8rem);
  color: var(--primary);
  margin-bottom: -15px;
  margin-top: 0;
}

.hero-accent .hero h1 .hero-script-small {
  color: white;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-light);
  max-width: 600px;
  margin: 10px auto 45px;
}

.hero-accent .hero .subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Cards */
.hero-tribes-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
}

.tribe-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
  contain: layout style paint;
}

.tribe-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tribe-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.85);
}

.tribe-card:hover::before {
  opacity: 1;
}

.tribe-icon {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.tribe-card:hover .tribe-icon {
  transform: scale(1.05);
}

.tribe-icon img {
  max-height: 100%;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

.tribe-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.tribe-card:hover .tribe-name {
  color: var(--accent-main);
}

.tribe-address {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 25px;
  font-weight: 500;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent-main);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.tribe-card:hover .link-arrow {
  transform: translateX(5px);
  border-bottom-color: var(--accent-main);
}

/* Scroll Down Arrow */
.scroll-down-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 30px auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--accent-main);
  animation: scroll-float 2s infinite ease-in-out;
  z-index: 10;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-accent .scroll-down-arrow {
  color: white;
}

.scroll-down-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(5px);
  color: var(--primary);
}

.scroll-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.5px;
  color: inherit;
}

@keyframes scroll-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  padding: 100px 0 140px;
  background: var(--bg-body);
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

.intro-description {
  margin-bottom: 30px;
}

.features-list {
  margin-top: 30px;
}

.features-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
  font-size: 1.05rem;
}

.check-wrapper {
  color: var(--accent-main);
  background: rgba(188, 166, 185, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon {
  width: 18px;
  height: 18px;
}

.intro-image-wrapper {
  position: relative;
  padding: 20px;
}

.image-blob {
  border-radius: var(--radius-blob);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease);
}

.intro-image-wrapper:hover .image-blob {
  transform: rotate(0deg) scale(1.02);
}

.deco-shape {
  position: absolute;
  bottom: -20px;
  left: -20px;
  z-index: -1;
  opacity: 0.6;
}

/* ===== GALLERY SECTION (Mosaic) ===== */
.gallery-section {
  padding: 100px 0 120px;
  background: var(--accent-main);
  position: relative;
}

.gallery-section .sub-heading {
  color: rgba(255, 255, 255, 0.85);
}

.gallery-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.organic-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.col-2 {
  margin-top: 60px;
}

.gallery-card.tall {
  height: 400px;
}

.gallery-card.small {
  height: 260px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(188, 166, 185, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-card:hover .overlay {
  opacity: 1;
}

.overlay span {
  font-family: var(--font-script);
  color: white;
  font-size: 2rem;
  transform: rotate(-5deg);
  display: block;
}

.overlay-content {
  text-align: center;
}

.overlay-content p {
  color: white;
  font-size: 0.9rem;
  margin-top: 5px;
}

.gallery-text-card {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

/* ===== PARALLAX BANNER ===== */
.baby-banner-parallax {
  height: 800px;
  background-image: url("../images/gallery/baby-playing.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baby-banner-parallax::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Waves must sit above the dark overlay so their fill colors
   match the adjacent sections without darkening */
.baby-banner-parallax .wave-separator {
  z-index: 3;
}

.glass-banner-content {
  position: relative;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 50px 20px;
  text-align: center;
  color: white;
  box-shadow: none;
  max-width: 800px;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.glass-banner-content svg {
  width: 48px;
  height: 48px;
}

.glass-banner-content:hover {
  transform: translateY(-5px);
}

.glass-banner-content h3 {
  font-size: 3.5rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin: 15px 0;
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 10px;
}

.banner-icon-top,
.banner-icon-bottom {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.banner-icon-top {
  margin-bottom: 10px;
  animation: float-slow 4s ease-in-out infinite;
}

.banner-icon-bottom {
  margin-top: 20px;
  animation: float-slow 4s ease-in-out infinite reverse;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ===== RECIPE SECTION ===== */
.recipe-section {
  padding: 120px 0 160px;
  background: var(--bg-pink);
  position: relative;
}

.recipe-paper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 1050px;
  margin: 0 auto;
  padding: 55px 70px;
  border-radius: 40px;
  box-shadow:
    0 20px 60px rgba(160, 140, 160, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.recipe-header {
  margin-bottom: 40px;
  border-bottom: 1px dashed rgba(188, 166, 185, 0.4);
  padding-bottom: 25px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 15px;
}

.recipe-col {
  width: 100%;
  position: relative;
  padding: 0 15px;
}

.recipe-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -20px;
  width: 1px;
  height: 80%;
  background-image: linear-gradient(to bottom, transparent, rgba(188, 166, 185, 0.4) 15%, rgba(188, 166, 185, 0.4) 85%, transparent);
}

.col-title {
  display: table;
  margin: 0 auto 20px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  /* Explicitly set the desired font size */
  color: var(--accent-main);
  text-align: center;
  position: relative;
  z-index: 1;
}

.col-title::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 12px;
  background: var(--highlight-soft);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.7;
}

.col-description {
  margin-bottom: 15px;
  font-weight: 500;
  text-align: left;
  /* Aligned with lists */
  color: var(--text-dark);
  font-size: 1rem;
  /* Default font size */
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding-left: 10px;
}

.ingredients-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
}

.ingredients-list svg {
  color: var(--highlight);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2.5px;
}

/* Preparation Steps */
.prep-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  background: var(--highlight-soft);
  color: var(--highlight);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(244, 155, 148, 0.2);
}

.step-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  padding-top: 4px;
  color: var(--text-dark);
  font-weight: 500;
}

.step-item strong {
  color: var(--primary);
  font-weight: 600;
}

.recipe-result {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
}

.result-logo {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--primary);
  margin-top: 10px;
}

.result-tribes {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ===== CONTACT SECTION (Homepage) ===== */
.contact-section {
  padding: 100px 0 160px;
  background: var(--accent-main);
  position: relative;
}

.contact-section > .container > .section-header .sub-heading {
  color: rgba(255, 255, 255, 0.85);
}

.contact-section .contact-deco path {
  stroke: rgba(255, 255, 255, 0.5);
}

.contact-redesign-wrapper {
  max-width: 1050px;
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
}

.contact-redesign-grid {
  display: grid;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(160, 140, 160, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.landscape-form {
  grid-template-columns: 1fr;
}

.landscape-map {
  grid-template-columns: 1fr 1fr;
}

/* Info Side */
.contact-info-new {
  background: transparent;
  color: var(--text-dark);
  padding: 65px 50px;
  display: flex;
  flex-direction: column;
}

.info-new-title {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--accent-main);
  margin-bottom: 5px;
  line-height: 1.1;
}

.info-new-desc {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 45px;
  font-size: 1.05rem;
  font-weight: 500;
}

.info-cards-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 35px;
}

/* Integrated Schedule */
.contact-info-bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: auto;
}

.schedule-integrated {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.15);
  padding: 22px 25px;
  border-radius: 20px;
  margin-top: auto;
  margin-bottom: 0;
  border: none;
  backdrop-filter: blur(10px);
}

.schedule-icon-small {
  width: 55px;
  height: 55px;
  background: white;
  color: var(--accent-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-text {
  display: flex;
  flex-direction: column;
}

.s-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.s-days {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.s-hours {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-person-new {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 22px 25px;
  border-radius: 20px;
}

.person-avatar {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
}

.person-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3px;
}

.person-name {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 3px;
}

.person-email {
  color: white;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.person-email:hover {
  color: var(--primary);
}

/* Form Side */
.contact-form-new {
  padding: 65px 60px;
  background: transparent;
}

.form-new-header {
  margin-bottom: 45px;
}

.form-new-header h3 {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1.1;
}

.form-new-header p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

.sweet-form .form-row-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Map Style */
.map-new-style {
  width: 100%;
  height: 400px;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(160, 140, 160, 0.15);
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

.map-integrated {
  margin-top: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  min-height: 400px;
  border-left: none;
}

.form-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.form-schedule {
  margin-bottom: 0;
  background: rgba(188, 166, 185, 0.1);
  box-shadow: none;
}

.form-schedule .s-days,
.form-schedule .s-hours {
  color: var(--primary);
}

.form-schedule .s-title {
  color: var(--text-light);
}

#maplibre-map {
  width: 100%;
  height: 100%;
}

/* Contact interior wavy underline */
.info-new-title+.wavy-underline-inline,
.form-new-header .wavy-underline-inline {
  display: block;
  width: 50px;
  margin: 5px 0 20px;
}

/* Contact deco shape */
.contact-deco {
  position: absolute;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.contact-deco-1 {
  bottom: 40px;
  right: -30px;
  transform: rotate(15deg);
}

.contact-deco-2 {
  top: 120px;
  left: -20px;
  transform: rotate(-10deg);
}