/* ===========================
   MamaMood – I máma může
   Barvy z info.txt:
     text:     #654644
     terakota: #db907d
     hnědá:    #bf6c5a
     zelená:   #969c76
     béžová:   #f9e8e0
     pozadí:   #fefbfa
     tmavší:   #faf5f0
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: #654644;
  background: #fefbfa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: 'Yeseva One', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: #654644;
  text-align: center;
  margin-bottom: 24px;
}

.section-title--sm {
  font-size: 1.8rem;
}

.section-title--script {
  font-size: 2.8rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 16px 44px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
  text-align: center;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn--primary {
  background: #bf6c5a;
  color: #fff;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  text-align: center;
  background: #f6e8dd;
}

.hero__image {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
}

.hero__image img {
  width: 100%;
  height: auto;
  max-height: 48vw;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero__logo {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__logo img {
  display: block;
  width: 10vw;
  min-width: 50px;
  max-width: 130px;
  height: auto;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 40px;
  z-index: 1;
}

.shape-divider {
  display: block;
  width: 100%;
  height: 25px;
  margin-top: -1px;
  background: #fefbfa;
}

.hero__title {
  font-family: 'Yeseva One', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(80, 40, 30, 0.35);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: #654644;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===========================
   SIGNUP
   =========================== */
.signup {
  text-align: center;
  padding: 10px 24px 60px;
  background: #fefbfa;
}

.signup__text {
  font-size: 1rem;
  color: #654644;
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.signup__form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.signup__input {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  padding: 16px 28px;
  border: 2px solid #db907d;
  border-radius: 50px;
  background: transparent;
  color: #654644;
  min-width: 300px;
  outline: none;
  transition: border-color 0.25s;
}

.signup__input::placeholder {
  color: #db907d;
}

.signup__input:focus {
  border-color: #bf6c5a;
}


/* ===========================
   WAVE WRAPPER (about + features)
   =========================== */
.wave-wrapper {
  position: relative;
  background: #fefbfa;
  overflow: hidden;
}

.wave-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 90%;
  background: #faf5f0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  z-index: 1;
}

.about__desc {
  font-size: 1.05rem;
  color: #654644;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ===========================
   FEATURES
   =========================== */
.features {
  position: relative;
  padding: 40px 24px 80px;
  z-index: 1;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  text-align: center;
  background: #f9e8e0;
  border-radius: 24px;
  padding: 48px 28px 44px;
}

.feature-card__icon {
  margin-bottom: 28px;
}

.feature-card__icon img {
  margin: 0 auto;
  height: 80px;
  width: auto;
}

.feature-card__title {
  font-family: 'Yeseva One', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #bf6c5a;
  margin-bottom: 16px;
  line-height: 1.45;
}

.feature-card__text {
  font-size: 0.95rem;
  color: #654644;
  line-height: 1.65;
}

/* ===========================
   SAMPLES
   =========================== */
.samples {
  padding: 60px 24px 80px;
  background: #fefbfa;
  text-align: center;
}

.samples__desc {
  font-size: 1rem;
  color: #654644;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.samples__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto;
}

.sample-card {
  position: relative;
  background: #f9e8e0;
  border-radius: 20px;
  aspect-ratio: 436 / 257;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(101,70,68,0.12);
}
.sample-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sample-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(101,70,68,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.sample-card__lock img {
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.sample-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(101,70,68,0.7));
  z-index: 2;
}
.sample-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-block;
  background: #bf6c5a;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 20px;
}
.sample-card__badge--article {
  background: #969c76;
}
.sample-card__title {
  font-family: 'Yeseva One', serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ===========================
   APP HINT
   =========================== */
.app-hint {
  padding: 20px 24px;
  background: #f6e8dd;
  text-align: center;
}
.app-hint p {
  margin: 0;
  font-size: 0.95rem;
  color: #654644;
}
.app-hint a {
  color: #bf6c5a;
  font-weight: 500;
  text-decoration: underline;
}

/* ===========================
   NEWSLETTER
   =========================== */
.newsletter {
  position: relative;
  padding: 100px 24px 110px;
  text-align: center;
  background: #fefbfa;
  overflow: hidden;
}

.newsletter__desc {
  font-size: 1.05rem;
  color: #654644;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.85;
}

/* --- Decorative elements --- */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor--kolinko-left {
  left: 0;
  bottom: 0;
  width: 180px;
}

.decor--kolinko-right {
  right: 0;
  bottom: 0;
  width: 100px;
}

.decor--dot-1 {
  left: 60px;
  bottom: 80px;
  width: 28px;
}

.decor--dot-2 {
  right: 60px;
  top: 80px;
  width: 38px;
}

.decor--dot-6 {
  left: 160px;
  top: 60px;
  width: 38px;
}

.decor--dot-3 {
  left: 200px;
  bottom: 60px;
  width: 20px;
}

.decor--dot-4 {
  right: 120px;
  top: 30px;
  width: 20px;
}

.decor--dot-5 {
  right: 60px;
  top: 110px;
  width: 20px;
}

.newsletter .container,
.social .container {
  position: relative;
  z-index: 1;
}

/* ===========================
   INSTAGRAM
   =========================== */
.instagram {
  padding: 60px 24px 50px;
  background: #faf5f0;
  text-align: center;
}

.instagram__hashtag {
  font-family: 'Yeseva One', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #654644;
  margin-bottom: 32px;
}

.instagram__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.instagram__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s;
}

.instagram__item:hover {
  transform: scale(1.04);
}

.instagram__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.instagram__hashtags {
  position: absolute;
  inset: 0;
  background: rgba(101,70,68,0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  word-break: break-word;
}

.instagram__item:hover .instagram__hashtags {
  opacity: 1;
}

/* ===========================
   SOCIAL
   =========================== */
.social {
  position: relative;
  padding: 60px 24px 80px;
  text-align: center;
  background: #fefbfa;
  overflow: hidden;
}

.social__icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}

.social__link {
  transition: transform 0.25s;
}

.social__link:hover {
  transform: scale(1.12);
}

/* ===========================
   SUBPAGE HEADER (mini logo bar)
   =========================== */
.subpage-header {
  background: #f6e8dd;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.subpage-header__logo {
  display: inline-block;
  height: 44px;
  width: auto;
}

.subpage-header__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #654644;
  flex-wrap: wrap;
}

.subpage-header__email {
  font-weight: 500;
}

.subpage-header__sep {
  color: #db907d;
}

.subpage-header__expires {
  color: #969c76;
}

.subpage-header__logout {
  color: #bf6c5a;
  text-decoration: none;
  font-weight: 500;
}

.subpage-header__logout:hover,
.subpage-header__unsub:hover {
  text-decoration: underline;
}

.subpage-header__unsub {
  color: #999;
  text-decoration: none;
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .subpage-header {
    flex-direction: column;
    text-align: center;
  }
  .subpage-header__user {
    justify-content: center;
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #bf6c5a;
  padding: 56px 24px;
  text-align: center;
}

.footer__logo {
  margin: 0 auto;
  opacity: 0.92;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.footer__nav a {
  color: #f9e8e0;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__copy {
  font-size: 0.8rem;
  color: #f9e8e0;
  opacity: 0.5;
  margin-top: 20px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features__grid {
    gap: 20px;
  }

  .decor--kolinko-left {
    width: 130px;
  }

  .decor--kolinko-right {
    width: 70px;
  }
}

@media (max-width: 768px) {
  .hero__image img {
    max-height: none;
  }

  .hero__logo img {
    width: 40px;
    min-width: 40px;
  }

  .hero__content {
    padding: 0 16px 20px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-title--script {
    font-size: 2rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
    margin-top: 32px;
  }

  .feature-card {
    padding: 36px 24px 36px;
  }

  .samples__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 380px;
    margin: 0 auto;
  }

  .instagram__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .signup__form {
    flex-direction: column;
    align-items: center;
  }

  .signup__input {
    min-width: 0;
    width: 100%;
    max-width: 360px;
  }

  .btn {
    width: 100%;
    max-width: 360px;
  }

  .decor--kolinko-left {
    width: 90px;
  }

  .decor--kolinko-right {
    width: 50px;
  }

  .decor--dot-1,
  .decor--dot-2,
  .decor--dot-3,
  .decor--dot-4,
  .decor--dot-5,
  .decor--dot-6 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    padding: 60px 24px 70px;
  }
}
