/* Vivid Moment Pay - Vintage Retro CSS Theme */

/* =========================
   FONT IMPORTS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&family=Pacifico&display=swap');

/* =========================
   CSS VARIABLES
   ========================= */
:root {
  /* Brand Colors */
  --primary: #234F8D;
  --secondary: #0C2541;
  --accent: #F1C40F;
  --retro-orange: #F2994A;
  --retro-red: #D35400;
  --retro-green: #27AE60;
  --retro-cream: #FFF8E1;
  --retro-brown: #8D6748;
  --retro-blue: #6EC1E4;
  --retro-bg: #F7E9D2;
  --retro-border: #E0C097;
  --white: #fff;
  --black: #222;
  --shadow: 0 4px 24px 0 rgba(44, 36, 24, 0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  /* Typography */
  --font-display: 'Montserrat', 'Arial Black', 'Pacifico', cursive;
  --font-body: 'Open Sans', Arial, sans-serif;
  --font-vintage: 'Pacifico', cursive;
}

/* =========================
   RESET & BASE STYLES
   ========================= */
html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--retro-bg);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-red);
}
ul, ol {
  padding-left: 1.5em;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 18px 0;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 0 var(--retro-border);
}
h1 {
  font-size: 2.2rem;
  font-family: var(--font-vintage), var(--font-display);
  color: var(--retro-red);
  text-shadow: 2px 4px 0 var(--accent), 0 2px 0 var(--retro-border);
}
h2 {
  font-size: 1.5rem;
  color: var(--retro-orange);
  font-family: var(--font-display);
  text-shadow: 1px 2px 0 var(--accent);
}
h3 {
  font-size: 1.15rem;
  color: var(--primary);
  font-family: var(--font-display);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
}
p, li {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* =========================
   CONTAINER & LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--retro-border);
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--retro-orange);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 12px 0 rgba(44,36,24,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.05rem;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width var(--transition);
  position: absolute;
  left: 0;
  bottom: -2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--retro-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  padding: 12px 32px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(44,36,24,0.08);
  margin-left: 18px;
  background: var(--accent);
  color: var(--secondary);
  text-shadow: 1px 1px 0 var(--white);
  letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent) 80%, var(--retro-orange) 100%);
  color: var(--secondary);
  border: 2px solid var(--retro-border);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--retro-orange) 60%, var(--accent) 100%);
  color: var(--retro-red);
  box-shadow: 0 4px 16px 0 rgba(44,36,24,0.12);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 8px 0 rgba(44,36,24,0.10);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--retro-red);
}

/* =========================
   MOBILE MENU OVERLAY
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(241,196,15,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 0 100vw rgba(44,36,24,0.08);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--retro-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--secondary);
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 8px 0;
  transition: color var(--transition);
  text-shadow: 1px 1px 0 var(--accent);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  background: repeating-linear-gradient(135deg, var(--retro-cream), var(--retro-bg) 40px, var(--retro-cream) 80px);
  border-bottom: 4px solid var(--accent);
  padding: 60px 0 40px 0;
  margin-bottom: 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--retro-red);
  font-family: var(--font-vintage), var(--font-display);
  text-shadow: 2px 4px 0 var(--accent), 0 2px 0 var(--retro-border);
}
.hero p {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 18px;
}

/* =========================
   FLEXBOX LAYOUTS
   ========================= */
.features-grid, .service-cards, .gallery, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.features-grid > div, .service-cards > div, .gallery > div, .pricing-table > div {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid var(--retro-border);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover, .service-cards > div:hover, .gallery > div:hover, .pricing-table > div:hover {
  box-shadow: 0 8px 32px 0 rgba(44,36,24,0.14);
  transform: translateY(-4px) scale(1.03);
}

.pricing-table {
  gap: 32px;
  justify-content: space-between;
}
.pricing-table > div {
  background: var(--retro-bg);
  border: 3px dashed var(--retro-orange);
  box-shadow: 0 2px 12px 0 rgba(44,36,24,0.10);
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-table > div h3 {
  color: var(--retro-red);
  font-family: var(--font-vintage), var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.pricing-table > div p {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 2px solid var(--retro-border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  font-style: italic;
  color: var(--secondary);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,36,24,0.14);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: var(--secondary);
  font-size: 1.05rem;
  margin: 0 0 0 0;
}
.testimonial-card span {
  color: var(--retro-brown);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: normal;
  margin-left: 12px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--retro-brown);
  color: var(--retro-cream);
  padding: 36px 0 18px 0;
  border-top: 4px solid var(--accent);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
footer p {
  color: var(--retro-cream);
  font-size: 0.98rem;
  margin: 0;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: var(--retro-cream);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -2px 16px 0 rgba(44,36,24,0.10);
  padding: 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--secondary);
  margin: 0;
  flex: 1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  border: 2px solid var(--retro-border);
  cursor: pointer;
  margin: 0;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--retro-orange);
  color: var(--retro-red);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--white);
  font-weight: 700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--accent);
  color: var(--retro-red);
}
.cookie-banner .settings {
  background: var(--white);
  color: var(--secondary);
  font-weight: 700;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--retro-blue);
  color: var(--white);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,36,24,0.25);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: var(--radius);
  border: 3px solid var(--accent);
  box-shadow: 0 8px 32px 0 rgba(44,36,24,0.18);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-red);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--secondary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--retro-green);
  font-weight: 700;
  font-size: 0.98rem;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--retro-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--accent);
  color: var(--retro-red);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .features-grid, .service-cards, .gallery, .pricing-table {
    gap: 18px;
  }
  .footer-nav {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    min-height: 60px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .btn {
    padding: 10px 18px;
    font-size: 1rem;
    margin-left: 8px;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .features-grid, .service-cards, .gallery, .pricing-table {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .service-cards > div, .gallery > div, .pricing-table > div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 24px 6px;
  }
  .hero {
    padding: 18px 0 12px 0;
  }
  .cookie-modal {
    padding: 18px 8px 18px 8px;
    max-width: 98vw;
  }
}

/* =========================
   FLEXBOX SPACING & ALIGNMENT
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid var(--retro-border);
  padding: 24px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,36,24,0.14);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   MISC RETRO ELEMENTS
   ========================= */
.section {
  background: repeating-linear-gradient(135deg, var(--retro-cream), var(--retro-bg) 40px, var(--retro-cream) 80px);
  border: 2px solid var(--retro-border);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
}

/* Decorative retro dots */
.section:before {
  content: '';
  display: block;
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 4px, transparent 4px, transparent 8px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-red), var(--retro-red) 4px, transparent 4px, transparent 8px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

/* =========================
   MICRO-INTERACTIONS
   ========================= */
.btn, .main-nav a, .footer-nav a, .mobile-nav a, .card, .testimonial-card, .features-grid > div, .service-cards > div, .gallery > div, .pricing-table > div {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
