/* ============================================================
   Dinnable – Landing Page Styles
   Requires: site.css
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
body {
  background: #111; /* prevent white flash above hero */
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  min-height: 100vh;
  background: #111;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(15, 15, 15, 0.62) 0%,
    rgba(30, 30, 30, 0.38) 60%,
    rgba(50, 50, 50, 0.16) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
}

.hero-content {
  padding: 100px 0;
  max-width: 33%;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ── Features (vertically stacked rows) ─────────────────────── */
.feature-rows {
  padding: 100px var(--content-pad) 60px;
  background: #fff;
}

.features-intro {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}

.features-intro h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.features-intro p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.feature-row + .feature-row {
  margin-top: -60px;
}

.feature-row--reverse .feature-row-text { order: 2; }
.feature-row--reverse .feature-row-shot { order: 1; }

.feature-row-text {
  max-width: 520px;
  justify-self: end;
}
.feature-row--reverse .feature-row-text {
  justify-self: start;
}

.feature-step {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.feature-row-text h3 {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: var(--dark);
}

.feature-row-text p {
  color: var(--gray);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s, transform 0.15s;
}

.feature-cta:hover {
  border-bottom-color: var(--primary);
  transform: translateX(2px);
}

.feature-row-shot {
  display: flex;
  justify-content: center;
}

.feature-shot-frame {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--primary-light) 0%, #fff 60%, var(--bg) 100%);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.feature-shot-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-shot-frame::after {
  content: "";
  position: absolute;
  top: 10px; left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}

.feature-shot-placeholder {
  width: 100%;
  height: 100%;
  margin-top: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(26, 96, 31, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--primary);
}

.feature-shot-icon svg {
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

.feature-shot-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.7;
}

.feature-shot-img {
  max-width: 600px;
  max-height: 560px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* ── Recipe Showcase ────────────────────────────────────────── */
.recipes-showcase {
  background: var(--bg);
  padding: 100px var(--content-pad);
}

.recipes-showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.recipes-showcase h2 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sc-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.sc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.sc-card:hover .sc-card-img img {
  transform: scale(1.07);
}

.sc-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sc-cuisine-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.sc-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.sc-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 8px;
}

.sc-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-card-rating {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: auto;
}

.showcase-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 18px rgba(26, 96, 31, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 96, 31, 0.32);
}

/* ── FAQ section ─────────────────────────────────────────────── */
.faq-section {
  padding: 80px var(--content-pad);
  background: #f8f9fa;
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #003a57;
  margin-bottom: 2rem;
  text-align: center;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #dee2e6;
}
.faq-item {
  border-bottom: 1px solid #dee2e6;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1.2rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #003a57;
  list-style: none;
  gap: 1rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #5a7a8a;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] > .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 0 1.2rem 0;
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}
.faq-answer p { margin: 0; }

/* ── Download / CTA ─────────────────────────────────────────── */
.download {
  text-align: center;
  padding: 100px var(--content-pad);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
}

.download h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.download p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.store-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border-radius: 8px;
  overflow: hidden;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-badge {
  display: block;
  height: 56px;
  width: auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-container { padding: 0 24px; }
  .hero-content { padding: 60px 0; max-width: 100%; }
  .hero h1 { font-size: 2.4rem; }

  .feature-rows { padding-top: 60px; padding-bottom: 30px; }
  .features-intro { margin-bottom: 40px; }
  .features-intro h2 { font-size: 2rem; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
    margin-top: 0 !important;
  }
  .feature-row + .feature-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .feature-row--reverse .feature-row-text { order: 0; }
  .feature-row--reverse .feature-row-shot { order: 0; }
  .feature-row-text,
  .feature-row--reverse .feature-row-text { justify-self: stretch; max-width: 100%; }
  .feature-row-text h3 { font-size: 1.6rem; }
  .feature-shot-frame { max-width: 100%; }
  .feature-shot-img { max-height: none; }

  .steps { grid-template-columns: 1fr 1fr; }

  .how,
  .download {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .recipes-showcase {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .recipes-showcase h2 { font-size: 1.9rem; margin-bottom: 32px; }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
