@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #7FA65C;
  --primary-dark: #5C8542;
  --accent: #E8935A;
  --accent-dark: #D97B47;
  --bg: #FDF6E8;
  --bg-alt: #F3EEDA;
  --bg-soft: #EFF2E2;
  --white: #FFFFFF;
  --text: #4A4030;
  --text-light: #7A6F5C;
  --border: #E8DEC8;
  --font-heading: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 34px rgba(90, 70, 40, 0.10);
  --shadow-soft: 0 6px 18px rgba(90, 70, 40, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; pointer-events: none; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(232, 147, 90, 0.14);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 26px rgba(232, 147, 90, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(232, 147, 90, 0.48);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

#preloader img { width: 64px; height: 64px; }

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 22px 0;
}

header.scrolled {
  background: rgba(253, 246, 232, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: 12px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img { height: 34px; width: auto; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--accent-dark); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.header-cta .btn { padding: 12px 26px; font-size: 15px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 32px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.burger-btn span {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--primary-dark);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 4px; }
.burger-btn span:nth-child(2) { top: 14px; }
.burger-btn span:nth-child(3) { top: 24px; }

.burger-btn.act span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

#mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 78%;
  max-width: 340px;
  background: var(--bg);
  box-shadow: -10px 0 30px rgba(90, 70, 40, 0.18);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.fixed { overflow: hidden; }

/* Hero */
.hero {
  padding: 168px 0 100px;
  background:
    radial-gradient(circle at 15% 20%, rgba(127, 166, 92, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(232, 147, 90, 0.16), transparent 45%),
    url('../img/hero-section-bg.webp') center / cover no-repeat,
    var(--bg);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 22px;
}

.hero p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.65;
}

.hero-actions { margin-top: 32px; }

.hero-media { position: relative; }

.hero-media .card-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

.hero-media img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.hero-media .card-frame:hover img { transform: scale(1.06); }

.hero-actions .btn-primary {
  animation: float 3s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
  animation-play-state: paused;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Content sections */
.content-section { padding: 96px 0; }
.content-section.bg-alt { background: var(--bg-alt); }
.content-section.bg-soft { background: var(--bg-soft); }

.content-section .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
}

.content-section.reverse .container { direction: rtl; }
.content-section.reverse .container > * { direction: ltr; }

.content-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.content-media img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
}

.gallery .container{
  display: block;
}

.gallery-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2%;
  margin-top: 64px;
}

.gallery-row img {
  width: 31%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--white);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-row img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.content-section p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 10px rgba(127, 166, 92, 0.35);
}

/* Final CTA */
.final-cta {
  padding: 110px 0;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(239, 242, 226, 0.75), rgba(243, 238, 218, 0.75)),
    url('../img/relax-share-bg.webp') center / cover no-repeat;
  position: relative;
}

.final-cta h2 {
  font-size: 40px;
  margin-bottom: 22px;
}

.final-cta p {
  max-width: 640px;
  margin: 0 auto 14px;
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
}

.final-cta .ad-note {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.8;
  margin-top: 22px;
  margin-bottom: 0;
}

.final-cta .btn { margin-top: 20px; }

/* Footer */
footer {
  padding: 64px 0 28px;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  max-width: 320px;
  margin-top: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav a {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--accent); }

.footer-contact a {
  font-weight: 700;
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Legal pages */
.legal-page { padding: 168px 0 100px; }

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.legal-content h1 {
  font-size: 34px;
  margin-bottom: 24px;
}

.legal-content h2, .legal-content h3 {
  color: var(--primary-dark);
  margin: 28px 0 12px;
  font-size: 22px;
}

.legal-content p, .legal-content li {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul { padding-left: 22px; }
.legal-content ul li { list-style: disc; }
.legal-content a { color: var(--accent-dark); font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .content-section h2 { font-size: 30px; }
  .hero .container,
  .content-section .container { gap: 40px; }

  nav.main-nav { display: none; }
  .burger-btn { display: block; }
  .header-cta .cta-desktop { display: none; }
}

@media (max-width: 768px) {
  #mobile-menu .nav-link { font-size: 19px; }

  .hero { padding: 110px 0 64px; }
  .hero .container,
  .content-section .container {
    grid-template-columns: 1fr;
  }
  .content-section.reverse .container { direction: ltr; }
  .hero-media { order: -1; }
  .content-section .content-media { order: -1; }
  .content-section.reverse .content-media { order: -1; }

  .footer-top { flex-direction: column; gap: 28px; }
  .legal-content { padding: 30px 22px; }

  .gallery-row { margin-top: 48px; }
}

@media (max-width: 640px) {
  .hero { padding: 96px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero p, .content-section p { font-size: 16px; }
  .content-section { padding: 68px 0; }
  .final-cta { padding: 76px 0; }
  .final-cta h2 { font-size: 30px; }
  .btn { padding: 14px 26px; font-size: 16px; }
  .gallery-row { margin-top: 48px; flex-direction: column; align-items: center; }
  .gallery-row img {width: 80%; margin-bottom: 16px;}
}
