/* Import Modern Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Color Palette */
:root {
  --color-primary: #0a98bd;
  --color-secondary: #08577a;
  --color-accent: #ff6331;
  --color-background: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-strong: rgba(0, 0, 0, 0.1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; height: auto; }

/* Hero Section */
.lpHeader {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem;
}
.lpHeader .logo { width: 120px; margin: 0 auto 1.5rem; }
.lpHeader h1 { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 600; line-height: 1.2; }

/* Main Container */
.lpContainer { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; position: relative; z-index: 1; }

/* Downloads & Social */
.downloads-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
#downloadsDiv { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.downloadSpan { flex: 0 0 auto; text-align: center; }
.downloadImage { width: 100%; max-width: 180px; transition: transform 0.3s; }
.downloadImage:hover { transform: translateY(-5px); }
.social-links { display: flex; gap: 1rem; }
.social-icon {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  transition: filter 0.3s, transform 0.3s;
}
.social-icon:hover { filter: none; transform: scale(1.1); }

/* Section Cards */
.content-section {
  background-color: var(--color-surface);
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 16px var(--shadow-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}
.content-section:nth-child(even) { background-color: var(--color-background); box-shadow: none; }
.content-section h2 {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.content-section h3 { font-family: var(--font-heading); color: var(--color-primary); margin-bottom: 0.75rem; }
.content-section p,
.content-section li { color: var(--color-text-light); margin-bottom: 1rem; }
.content-section ul { list-style: disc inside; }

/* Images Layout */
.highlighted-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}
.cookbook-fan,
.highlighted-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* App Screenshot & Video Styling */
.highlighted-app-screenshot {
  text-align: center;
  width: 100%;
  margin: 0 auto;
}
.highlighted-app-screenshot img,
.highlighted-app-screenshot iframe {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* Desktop Video Grid */
.content-section:last-of-type .text-content {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 400px);
  grid-template-areas:
    "header video"
    "text   video";
  gap: 1rem;
}
.content-section:last-of-type .text-content h2 { grid-area: header; }
.content-section:last-of-type .text-content p { grid-area: text; }
.content-section:last-of-type .text-content .highlighted-app-screenshot {
  grid-area: video;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  margin: 0;
}
/* Override inner wrapper */
.content-section:last-of-type .text-content .highlighted-app-screenshot > div {
  position: relative !important;
  padding-bottom: 177.78% !important;
  height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  background: transparent !important;
}
.content-section:last-of-type .text-content .highlighted-app-screenshot > div iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Call-to-Action Buttons */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.giftcard-cta,
.fundraiser-cta {
  display: inline-block;
  text-align: center;
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--shadow-light);
  transition: transform 0.3s, background-color 0.3s;
}
.fundraiser-cta { background-color: var(--color-primary); }
.giftcard-cta:hover,
.fundraiser-cta:hover { transform: translateY(-3px); background-color: var(--color-secondary); }

/* Footer */
footer {
  background-color: var(--color-surface);
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: 0 -4px 16px var(--shadow-light);
  margin-top: 3rem;
}
footer p { color: var(--color-text-light); font-size: 0.9rem; }
footer a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Mobile Video Stack */
@media (max-width: 768px) {
  .lpHeader h1 { font-size: 1.75rem; }
  .downloads-social { gap: 1rem; margin: 2rem 0; }
  .content-section { padding: 1.5rem; gap: 1.5rem; }
  .highlighted-photos { gap: 1rem; }
  .content-section:last-of-type .text-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "text"
      "video";
    gap: 1rem;
  }
  .content-section:last-of-type .text-content h2 { grid-area: header; }
  .content-section:last-of-type .text-content p { grid-area: text; }
  .content-section:last-of-type .text-content .highlighted-app-screenshot {
    grid-area: video;
    justify-self: center;
    align-self: stretch;
    margin: 2rem auto;
  }
}

.welcome-with-fan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem; /* space before next section */
}

.intro-fan {
  width: 180px;                   /* adjust for ideal look on desktop */
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* Extra Small (480px) */
@media (max-width: 480px) {
  .lpHeader { padding: 4rem 1rem; }
  .lpHeader .logo { width: 100px; }
  .cta-container { flex-direction: column; gap: 0.75rem; }
  .highlighted-photos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(80px, 1fr)) !important;
    gap: 0.5rem;
  }
  .highlighted-photos img {
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
}

@media (max-width: 768px) {
  .welcome-with-fan {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .intro-fan {
    width: 120px;                 /* smaller on mobile */
    margin: 0 auto 1rem;
  }
}

