/* ---------- Global resets ---------- */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #f9fafb;
  color: #111;
}

/* ---------- Layout basics ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.brand-main {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
}

.brand-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d9488;
  /* teal accent */
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.6rem;
  }

  .brand-tagline {
    font-size: 1rem;
  }
}

/* nav links as buttons */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  background: #111827;
  /* near-black button */
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.2;
  min-width: 60px;
  text-align: center;
}

.nav-link:hover {
  background: #0d9488;
  /* teal on hover */
  color: #fff;
}

@media (min-width: 480px) {
  .nav-link {
    font-size: 0.95rem;
  }
}

/* ---------- Hero section ---------- */
.hero {
  padding: 32px 0 24px;
  text-align: center;
  background: #fff;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto 24px auto;
  padding: 0 16px;
}

.hero-headline {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 40ch;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }
}

.app-promo {
  background: #111827;
  /* dark panel */
  color: #fff;
  text-align: center;
  border-radius: 16px;
  padding: 32px 16px;
  margin: 32px auto 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.app-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.app-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #e5e7eb;
  max-width: 400px;
  margin: 0 auto 24px;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-chip {
  display: flex;
  flex-direction: column;
  background: #0d9488;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 140px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.4);
  transition: background .15s, box-shadow .15s;
}

.store-chip:hover {
  background: #0b766c;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.55);
}

.store-main {
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0.9;
}

.store-name {
  font-size: 1rem;
  line-height: 1.2;
}

/* ---------- Gallery (responsive) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
}

/* Images smaller and consistent */
.gallery img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform .2s, box-shadow .2s;
  touch-action: manipulation;
  /* helps reduce double-tap zoom on some browsers */
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.gallery figcaption {
  font-size: 0.9rem;
  color: #444;
  margin-top: 8px;
}

/* ---------- Responsive layout ---------- */
/* On large screens (desktops): 3 per row */
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* On medium screens (tablets): 2 per row */
@media (min-width: 600px) and (max-width: 899px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* On small screens (phones): 1 per row */
@media (max-width: 599px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- About section ---------- */
.about {
  margin: 60px auto;
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

/* ---------- App section ---------- */
.app {
  text-align: center;
  margin: 60px auto;
}

.app-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.store-button img {
  width: 150px;
  height: auto;
  transition: transform 0.2s ease;
}

.store-button img:hover {
  transform: scale(1.05);
}

/* ---------- Blog section ---------- */
.blogs {
  margin: 60px auto;
  text-align: center;
}

.blogs-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blogs-intro {
  font-size: 1rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.blog-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .blog-cards {
    grid-template-columns: 1fr 1fr;
    /* side-by-side on tablet/desktop */
  }
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
  display: flex;
}

.blog-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

.blog-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.blog-button {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  background: #0d9488;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.blog-button:hover {
  background: #0b766c;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  background: #fff;
  margin-top: 60px;
}

/* ---------- Top banner ---------- */

.blog-link {
  text-transform: uppercase;
}

.email-link {
  font-family: monospace;
}