:root {
  --bg: #f3ece4;
  --card: #fff8f0;
  --wood: #9e6b4b;
  --accent: #d9a07c;
  --accent2: #f2c8a0;
  --text: #3f2c20;
  --muted: #7a5a44;
  font-family: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, rgba(247,243,239,0.1), rgba(255,255,255,0.1)), 
              url('grass-background.png') no-repeat center center;
  background-size: cover;           /* stretches while maintaining ratio */
  color: var(--text);
  display: flex;
  flex-direction: column;           /* stack container + footer */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1;                        /* takes up remaining space, centers vertically */
  display: flex;
  align-items: center;            /* vertical center */
  justify-content: center;        /* horizontal center */
  width: 100%;
}

.container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--card);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(100, 70, 50, 0.1);
  padding: 40px;
  max-width: 1200px;
  width: 90%;
  gap: 40px;
  text-align: center;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 20px 0;
}


.left {
  flex: 1 1 480px;
  text-align: center;
}

h1 {
  font-size: 2.8rem;
  color: var(--wood);
  margin-bottom: 10px;
}
h2 {
  font-size: 2.0rem;
  color: var(--wood);
}

p.lead {
  color: var(--muted);
  font-size: 1.25rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.app-image {
  width: 160px;
  display: block;
  margin: 0 auto 16px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.chip {
  background: var(--accent2);
  color: var(--wood);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(120, 90, 70, 0.1);
}

.right {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.download-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 28px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(180, 150, 120, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.download-btn:hover {
  transform: scale(1.05);
}

.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.store-badge {
  background: white;
  color: var(--wood);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(100, 70, 50, 0.15);
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-badge.apple img {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.store-badge.google img {
  height: 64px;
  width: auto;
  object-fit: contain;
}


.store-badge:hover { transform: scale(1.05); }

/* Carousel Thumbnails */
.carousel-container {
  width: 100%;
  max-width: 600px;
  height: 60vw; /* dynamic with page width */
  max-height: 300px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 12px;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.carousel-track img {
  height: 100%;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: cover;
  cursor: pointer;
}


/* Animation */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* move half the total track (because we duplicated images) */
}

/* Modal for enlarged image with arrows */
.modal {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.3s;
  z-index:1000;
}

.modal.open {
  opacity:1;
  pointer-events:auto;
}

.modal-img-container {
  position: relative;
  max-width: 90%;
  max-height: 80%; /* reduce height to avoid huge images */
  padding: 20px;   /* adds space around image */
}

.modal img {
  width: auto;
  max-width: 600px; /* cap the width */
  max-height: 80vh; /* cap height relative to viewport */
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}


.modal .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--accent2);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;       /* centers the arrow vertically */
  justify-content: center;   /* centers the arrow horizontally */
  font-size: 2rem;           /* smaller so it fits nicely */
  color: var(--wood);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
  z-index: 1001;
  line-height: 1;            /* ensures vertical centering of the text */
}

.modal .arrow:hover {
  background: var(--accent);
}

.modal .arrow-left { left: -60px; }
.modal .arrow-right { right: -60px; }



footer {
  text-align: center;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media(max-width:900px){
  .container { flex-direction: column; text-align:center; padding:30px; }
  .left, .right { text-align:center; }
  .app-image { margin: 0 auto 20px; }
  .carousel-container { height: 200px; }
  .carousel-track img { width: 100px; height: 100%; }
  .modal .arrow-left { left:10px; }
  .modal .arrow-right { right:10px; }
}

.site-header {
    position: sticky; /* sticks to top */
    top: 0;           /* important! */
    width: 100%;      /* full width */
    z-index: 1000;
}

  .header-container {
    max-width: 1100px;
    padding: 10px;
    margin: auto;
    display: flex;
    justify-content: center; /* center horizontally */
  }

  .site-nav a {
    margin: 0 1rem; /* spacing between links */
    text-decoration: none;
    color: #7b5e3c; /* cozy brown */
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.2s;
  }

  .site-nav a:hover {
    color: #4a7c59; /* soft green on hover */
  }

  @media (max-width: 600px) {
    .site-nav {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .site-nav a {
      margin: 0.3rem 0;
    }
  }