:root {
  --am-primary: #E56779;
  --am-primary-hover: #d45867;
  --am-cream: #FFF6F3;
  --am-text-main: #3A2E2A;
  --am-footer: #FFD9C9;
}

/* GLOBAL -------------------------------------------------- */

body {
  margin: 0;
  color: var(--am-text-main);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;

  /* Page-wide gradient */
  background: linear-gradient(
    135deg,
    #fdeff4 0%,     /* lighter pink on the left */
    #fde2c7 40%,
    #e8f2ff 100%
  );
}

/* HERO ---------------------------------------------------- */

.hero {
  position: relative;
  min-height: 52vh;
  padding: 18px 0 10px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* TOP NAV ------------------------------------------------- */

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo img {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: contain;
}

/* Stylized wordmark */
.stylized-wordmark {
  height: 180px;
  width: auto;
  display: inline-block;
  margin-top: 2px;
}

/* Right nav */

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-label {
  color: var(--am-text-main);
  opacity: 0.75;
  font-size: 0.9rem;
}

.lang-select {
  background: #ffffff;
  color: var(--am-text-main);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 0.9rem;
}

.btn-login {
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--am-text-main);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.25);
}

.btn-login:hover {
  background: rgba(0,0,0,0.05);
}

/* HERO CENTER -------------------------------------------- */

.hero-center {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.3rem;
  opacity: 0.9;
}

.hero-cta-btn {
  border-radius: 999px;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

.hero-cta-btn:hover {
  background-color: var(--am-primary-hover);
  border-color: var(--am-primary-hover);
}

/* FEATURES SECTION --------------------------------------- */

.features-section {
  padding: 26px 0 34px;
  background: transparent;
}

/* Feature cards */

.feature-card {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: box-shadow .2s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* Highlight primary feature (Video Chat) */

.highlight-feature {
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.08)
  );
}

/* FEATURE GRID (5 cards on desktop) ---------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE --------------------------------------------- */

@media (max-width: 768px) {
  .stylized-wordmark {
    height: 48px;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-center {
    margin-top: 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }
}

/* ===============================
   HERO COLLAGE
================================ */


/* ===============================
   HERO NAV POSITION ADJUSTMENT
================================ */

/* Lift logo + language + login upward */
.hero .top-nav {
  position: relative;
  top: -80px;
}

/* Mobile: reduce the lift so it doesn't collide */
@media (max-width: 768px) {
  .hero .top-nav {
    top: -20px;
  }
}

/* =========================================
   HERO (Safari + Mobile Stable)
========================================= */

.hero {
  position: relative;
  height: 520px;        /* locks collage height */
  overflow: hidden;
  text-align: center;
  padding: 18px 0 10px;
}

/* Collage grid stays locked */
.collage-grid {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);

  width: 100%;
  height: 100%;

  overflow: hidden;
}

/* Images crop properly */
.collage-grid img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  display: block;

  /* Safari grid fix */
  min-width: 0;
  min-height: 0;

  /* Fade-in animation */
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.collage-grid img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* One overlay only */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
  pointer-events: none;
}

/* Content stays above collage */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* Text contrast */
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-center p,
.hero .hero-center span {
  color: #ffffff !important;
}

/* Navbar contrast */
.hero .lang-label {
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Inputs/buttons pop */
.hero .lang-select,
.hero .btn-login {
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
