/*
File: /assets/style.css
Purpose: Shared site styles for the GiftRemindly template system.
Author: AI + Will Haimerl
Date created: 2026-04-14
Last modified: 2026-04-14
Dependencies:
  - Used by /templates/header.php
Related files:
  - /index.php
  - /templates/header.php
  - /templates/footer.php
Database tables used:
  - None
Security notes:
  - None
Future upgrade notes:
  - Split into smaller CSS files later if the site grows
  - Add page-specific styles only when truly needed
*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #111;
  background: #fffaf6;
  overflow-x: hidden;
}

body {
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.bg-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #ff7eb6;
  top: -100px;
  left: -80px;
  animation-name: floatOne;
  animation-duration: 14s;
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: #ffd166;
  top: 100px;
  right: -140px;
  animation-name: floatTwo;
  animation-duration: 18s;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: #7bdff2;
  top: 420px;
  left: 18%;
  animation-name: floatThree;
  animation-duration: 16s;
}

.blob-4 {
  width: 380px;
  height: 380px;
  background: #b8f2a1;
  bottom: -120px;
  right: 8%;
  animation-name: floatFour;
  animation-duration: 20s;
}

.blob-5 {
  width: 260px;
  height: 260px;
  background: #cdb4ff;
  top: 260px;
  left: 65%;
  animation-name: floatFive;
  animation-duration: 15s;
}

@keyframes floatOne {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(90px, 40px) scale(1.12);
  }
}

@keyframes floatTwo {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-70px, 60px) scale(1.08);
  }
}

@keyframes floatThree {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-60px, -40px) scale(1.14);
  }
}

@keyframes floatFour {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, -50px) scale(1.1);
  }
}

@keyframes floatFive {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, 30px) scale(1.09);
  }
}

.page {
  position: relative;
  z-index: 1;
}

.main-content {
  min-height: 1px;
}

.header {
  padding: 24px 20px;
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.logo {
  text-decoration: none;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 31;
}

.logo span {
  color: #ff4f87;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 31;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: bold;
  font-size: 15px;
}

.nav .btn {
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 520px;
}

.hero-copy p {
  margin: 0 0 26px;
  font-size: 21px;
  line-height: 1.7;
  color: #444;
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.signup-card {
  max-width: 560px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
}

.signup-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-card input,
.signup-card button {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 16px;
}

.signup-card input {
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}

.signup-card button {
  border: none;
  background: linear-gradient(90deg, #ff4f87 0%, #ff7a59 50%, #ffb703 100%);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 99, 132, 0.25);
}

.signup-note {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.hero-visual {
  position: relative;
}

.gift-card-main {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.gift-card-main h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.gift-card-main p {
  margin: 0 0 18px;
  color: #555;
  line-height: 1.6;
  font-size: 16px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.event-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.event-item span {
  color: #666;
  font-size: 14px;
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.section-sub {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
  color: #555;
  font-size: 19px;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.how-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.how-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.how-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.how-card p {
  margin: 0;
  color: #555;
  line-height: 1.7;
  font-size: 16px;
}

.occasion-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.occasion {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.final-cta-wrap {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

.final-cta {
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: 42px 28px;
  text-align: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

.final-cta h2 {
  margin: 0 0 14px;
  font-size: 44px;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  margin: 0 0 22px;
  color: #555;
  font-size: 19px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta a {
  display: inline-block;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: bold;
  background: #111;
  color: #fff;
  font-size: 17px;
}

.site-footer {
  padding: 0 20px 40px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  color: #555;
}

.site-footer-brand {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #111;
}

.site-footer-brand span {
  color: #ff4f87;
}

.site-footer-copy {
  font-size: 15px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .hero-copy h1,
  .hero-copy p,
  .signup-card {
    max-width: 100%;
  }

  .gift-card-main {
    max-width: 100%;
    margin-left: 0;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .occasion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
  }

  .nav .btn {
    padding: 14px 16px;
  }

  .hero {
    gap: 24px;
    padding: 8px 20px 60px;
  }

  .hero-copy h1 {
    font-size: 46px;
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 18px;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .section {
    padding-bottom: 60px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-sub {
    font-size: 17px;
  }

  .final-cta {
    padding: 34px 22px;
  }

  .final-cta h2 {
    font-size: 34px;
  }

  .final-cta p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .occasion {
    white-space: normal;
  }
}

/* 
Reusable content card layout (legal pages, simple pages, etc.)
Matches final CTA size/feel but designed for text content
*/

.content-wrap {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

.content-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: 42px 32px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.10);
}

/* Typography inside content card */

.content-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 26px;
}

.content-card h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 20px;
}

.content-card p {
  margin: 0 0 16px;
  color: #555;
  line-height: 1.7;
  font-size: 16px;
}

.content-card ul {
  margin: 0 0 16px 20px;
  color: #555;
}

.content-card li {
  margin-bottom: 8px;
}

/* Title block inside card */

.content-title {
  text-align: center;
  margin-bottom: 28px;
}

.content-title h1 {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: -0.03em;
}

.content-title p {
  margin: 0;
  color: #666;
  font-size: 17px;
}

/* Mobile tweaks */

@media (max-width: 768px) {
  .content-card {
    padding: 28px 20px;
  }

  .content-title h1 {
    font-size: 32px;
  }
}