/* =========================================================
   VILLA TEAG — HOMEPAGE STYLES ONLY
   Depends on css/mutuku.css for global tokens and navigation.
========================================================= */

:root {
  --accent-orange: #f4c542; /* legacy alias: warm yellow */
  --btn-red: #102a56; /* legacy alias: navy */
  --btn-blue: #102a56;
  --btn-green: #d9a91d; /* legacy alias: darker yellow */
  --gradient-purple: #193d70;
  --gradient-violet: #102a56;
}

/* Welcome/location banner */
.page-header-banner {
  margin-top: 0;
  padding: 22px 20px 18px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(120deg, #0a1b36, #102a56);
  border-bottom: 4px solid #f4c542;
  box-shadow: 0 4px 15px rgba(10, 27, 54, 0.12);
}
.page-header-content {
  max-width: 1200px;
  margin: 0 auto;
}
.page-header-banner h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.2px;
}
.location-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #fff1b8;
  font-size: 1rem;
  font-weight: 600;
}
.location-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.location-info i {
  font-size: 1.15rem;
}
.location-info .sep {
  color: rgba(255, 255, 255, 0.65);
}

/* Hero slider: supports the five .slide elements in index.html. */
.hero-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 460px;
  height: 62vh;
  max-height: 760px;
  overflow: hidden;
  isolation: isolate;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: villaTeagSlide 20s ease-in-out infinite;
}
.hero-slider .slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slider .slide:nth-child(2) {
  animation-delay: 4s;
}
.hero-slider .slide:nth-child(3) {
  animation-delay: 8s;
}
.hero-slider .slide:nth-child(4) {
  animation-delay: 12s;
}
.hero-slider .slide:nth-child(5) {
  animation-delay: 16s;
}
@keyframes villaTeagSlide {
  0%,
  100% {
    opacity: 0;
    transform: scale(1.025);
  }
  3%,
  18% {
    opacity: 1;
    transform: scale(1);
  }
  22% {
    opacity: 0;
    transform: scale(1);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(4, 14, 31, 0.78),
    rgba(10, 27, 54, 0.52),
    rgba(10, 27, 54, 0.38)
  );
}
.hero-text-box {
  position: relative;
  z-index: 1;
  width: min(900px, 88%);
  margin: 0 auto;
  padding: 35px 0;
  text-align: center;
  color: #ffffff;
}
.hero-text-box h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
}
.hero-text-box h2 {
  margin: 0 0 12px;
  color: #ffe28a;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}
.hero-text-box p {
  max-width: 780px;
  margin: 0 auto;
  color: #f3f6fc;
  font-size: 1.06rem;
}
.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}
.hero-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 165px;
  padding: 12px 24px;
  border: 2px solid #f4c542;
  border-radius: 30px;
  color: #0a1b36;
  background: #f4c542;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  font-weight: 800;
  text-decoration: none;
}
.hero-btn:nth-child(2) {
  color: #ffffff;
  background: transparent;
}
.hero-btn:hover {
  transform: translateY(-2px);
  color: #0a1b36;
  background: #ffd968;
}
.hero-btn:nth-child(2):hover {
  color: #0a1b36;
  background: #f4c542;
}

/* About teaser */
.story-container {
  padding: 56px 0 48px;
  background: #ffffff;
}
.story-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.story-image,
.story-content {
  flex: 1 1 0;
  min-width: 0;
}
.story-image img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  padding: 12px;
  border-radius: 15px;
  background: #f6f8fc;
  box-shadow: 14px 14px 0 #e2e8f0;
}
.subtitle {
  display: block;
  margin-bottom: 10px;
  color: #9a7412;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.story-quote {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 4px solid #f4c542;
  color: #334155;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
}
.story-quote p {
  margin: 0 0 14px;
}
.story-footer {
  margin-top: 18px;
}
.read-more-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  color: #ffffff;
  background: #102a56;
  font-weight: 700;
  text-decoration: none;
}
.read-more-btn:hover {
  color: #0a1b36;
  background: #f4c542;
}

/* Shared section headings */
.section-title {
  position: relative;
  margin: 0 0 28px;
  color: #102a56;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 850;
  text-align: center;
}
.section-title::after {
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: #f4c542;
  content: "";
}
.section-heading {
  color: #102a56;
}

/* Core pillars */
.why-fountain-section {
  margin: 24px 0;
  padding: 46px 20px;
  background: #ffffff;
}
.why-fountain-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.why-fountain-content p {
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.85;
}

/* Daily life gallery */
.daily-life-section {
  margin: 24px 0;
  padding: 56px 20px;
  background: linear-gradient(135deg, #fffcf3, #f6f8fc);
}
.gallery-intro {
  max-width: 700px;
  margin: 0 auto 36px;
  color: #617086;
  font-size: 1.03rem;
  text-align: center;
}
.daily-life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.life-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 42, 86, 0.07);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.life-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 42, 86, 0.12);
}
.life-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.life-card h3 {
  margin: 0;
  padding: 18px 16px 8px;
  color: #102a56;
  font-size: 1.15rem;
}
.life-card p {
  padding: 0 17px 20px;
  color: #617086;
  font-size: 0.94rem;
}
.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.explore-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid #102a56;
  border-radius: 40px;
  color: #ffffff;
  background: #102a56;
  font-weight: 750;
  text-decoration: none;
}
.explore-btn:hover {
  color: #0a1b36;
  background: #f4c542;
  border-color: #f4c542;
}

/* Impact statistics */
.impact-section {
  margin: 36px 0;
  padding: 56px 20px;
  background: #eef3fa;
}
.impact-intro {
  max-width: 760px;
  margin: 0 auto 38px;
  color: #617086;
  font-size: 1.03rem;
  text-align: center;
}
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.stat-card {
  padding: 28px 20px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #f4c542;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(16, 42, 86, 0.06);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 42, 86, 0.12);
}
.stat-number {
  margin-bottom: 9px;
  color: #102a56;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.stat-label {
  margin-bottom: 12px;
  color: #193d70;
  font-size: 1.03rem;
}
.stat-description {
  color: #617086;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Mission hub */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 28px auto 50px;
}
.hub-card {
  display: block;
  padding: 24px 20px;
  border: 1px solid #e2e8f0;
  border-bottom: 4px solid #f4c542;
  border-radius: 14px;
  color: #17263d !important;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 42, 86, 0.06);
  text-align: center;
  text-decoration: none !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 42, 86, 0.12);
}
.hub-card h3 {
  margin: 10px 0;
  color: #102a56;
  font-size: 1.1rem;
}
.hub-card p {
  color: #617086;
  font-size: 0.94rem;
}
.card-icon {
  margin-bottom: 12px;
  font-size: 2.3rem;
}
.hover-lift {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(16, 42, 86, 0.12);
}

/* Filter bar and story cards */
.filter-bar {
  margin-bottom: 2.5rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.filter-flex {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 0;
}
.filter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #617086;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.filter-item i {
  color: #102a56;
  font-size: 1.45rem;
}
.filter-item.active,
.filter-item:hover {
  color: #102a56;
  background: #fff7d6;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 4rem;
}
.story-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 42, 86, 0.06);
}
.story-card.is-hidden {
  display: none !important;
}
.card-image {
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.card-body h3 {
  margin-bottom: 10px;
  color: #102a56;
  font-size: 1.05rem;
  font-weight: 800;
}
.card-body p {
  flex: 1;
  color: #617086;
  font-size: 0.91rem;
  line-height: 1.65;
}
.card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #102a56;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}
.card-link:hover {
  color: #9a7412;
}

/* Contact banner and logo carousel */
.contact-summary {
  display: flex;
  justify-content: center;
  padding: 52px 20px;
  background: #eef3fa;
}
.summary-content {
  width: 100%;
  max-width: 850px;
  padding: 40px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.07);
  text-align: center;
}
.summary-content h2 {
  margin: 0 0 14px;
  color: #102a56;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.summary-content p {
  margin-bottom: 24px;
  color: #475569;
}
.summary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}
.summary-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 30px;
  color: #102a56;
  background: #f6f8fc;
  font-size: 0.92rem;
  text-decoration: none;
}
.summary-actions a:hover {
  color: #0a1b36;
  background: #fff7d6;
}
.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background: #ffffff;
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: villaTeagLogoScroll 24s linear infinite;
}
.logo-track img {
  width: auto;
  height: 58px;
  max-width: 170px;
  margin: 0 34px;
  object-fit: contain;
}
.logo-slider:hover .logo-track {
  animation-play-state: paused;
}
@keyframes villaTeagLogoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive homepage layouts */
@media (max-width: 1100px) {
  .impact-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .hero-hub {
    min-height: 410px;
    height: auto;
  }
  .hero-text-box {
    width: 90%;
    padding: 48px 0;
  }
  .story-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
    text-align: center;
  }
  .story-image {
    width: min(100%, 460px);
  }
  .story-quote {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 4px solid #f4c542;
    font-size: 1.03rem;
  }
  .daily-life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .filter-flex {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
  }
  .filter-item {
    flex: 0 0 auto;
  }
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logo-track img {
    height: 48px;
    margin: 0 22px;
  }
}
@media (max-width: 560px) {
  .page-header-banner {
    padding: 18px 12px;
  }
  .location-info {
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
  }
  .location-info .sep {
    display: none;
  }
  .hero-hub {
    min-height: 430px;
  }
  .hero-text-box {
    width: 92%;
    padding: 38px 0;
  }
  .hero-text-box h1 {
    font-size: 1.8rem;
  }
  .hero-text-box h2 {
    font-size: 1rem;
  }
  .hero-text-box p {
    font-size: 0.94rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .hero-btn {
    width: 100%;
    max-width: 240px;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .daily-life-section,
  .impact-section {
    padding: 34px 12px;
  }
  .daily-life-grid,
  .impact-stats,
  .hub-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .life-card img {
    height: 220px;
  }
  .summary-content {
    padding: 28px 18px;
  }
  .summary-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .summary-actions a {
    justify-content: center;
  }
  .stat-card {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide,
  .logo-track {
    animation: none;
  }
  .hero-slider .slide:first-child {
    opacity: 1;
    transform: none;
  }
}
