/* ==========================
   GLOBAL RESET & SAFETY
   ========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ==========================
   ROOT VARIABLES
   ========================== */
:root {
  --brand-green: #2f7a37;
  --brand-green-2: #22602b;
  --muted: #f6f7f5;
  --max-width: 1180px;
  --radius: 12px;
  --container-padding: 20px;
  --text-dark: #1f2933;
}

/* ==========================
   HERO SECTION
   ========================== */
.hero-section {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(
                rgba(255, 255, 255, 0.45),
                rgba(246, 247, 245, 0.45)
              ),
              url("images/background.jpg") center / cover no-repeat;
  padding: 56px var(--container-padding);
}

/* ==========================
   HERO INNER (CONTAINER)
   ========================== */
.hero-inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  gap: 32px;
  align-items: center;
  min-width: 0;
}

/* ==========================
   LEFT CONTENT
   ========================== */
.hero-left {
  min-width: 0;
  width: 100%;
  padding: 0;
}

.hero-logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

/* ==========================
   TYPOGRAPHY
   ========================== */
.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  color: var(--brand-green-2);
  margin: 0 0 10px;
  line-height: 1.05;
  font-weight: 600;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subline {
  color: #425055;
  font-size: 1rem;
  margin: 0 0 20px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==========================
   CTA BUTTONS
   ========================== */
.hero-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn,
.playstore-btn {
  max-width: 100%;
}

/* Common Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Primary */
.btn-primary {
  background: var(--brand-green);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: 0 6px 18px rgba(47, 122, 55, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(47, 122, 55, 0.14);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--brand-green-2);
  border: 2px solid var(--brand-green-2);
}

.btn-outline:hover {
  background: rgba(47, 122, 55, 0.06);
}

/* ==========================
   PLAY STORE BUTTON
   ========================== */
.playstore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  
  overflow: hidden;
  transition: transform 0.15s ease;
}

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

.playstore-icon {
  max-height: 100%;
  max-width: 120px;  /* limit width */
  width: auto;
  object-fit: contain;
}

/* ==========================
   RIGHT IMAGE
   ========================== */
.hero-right {
  width: 100%;
  max-width: 360px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================
   RESPONSIVE
   ========================== */

/* Hide hero-right under 1100px */
@media (max-width: 1100px) {
  .hero-right {
    display: none;
  }
}

/* Tablets */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }
}

/* Small mobiles */
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .playstore-btn {
    width: 100%;
    height: 48px;
  }

  .playstore-icon {
    max-width: 100px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.35rem;
  }

  .hero-subline {
    font-size: 0.95rem;
  }
}
