/* ================== CSS RESET & NORMALIZE ================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  /* base font size */
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ================== BRAND & DESIGN VARIABLES ================== */
:root {
  --color-primary: #174260;
  --color-secondary: #86A873;
  --color-accent: #F0EDEE;
  --color-cta: #FF9040;
  --color-fun-blue: #23A6F0;
  --color-fun-yellow: #FFE066;
  --color-fun-green: #49D088;
  --color-fun-pink: #F563A4;
  --color-light: #fff;
  --color-dark: #151E29;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

/* ================== BASE & TYPOGRAPHY ================== */
body {
  min-height: 100vh;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  /* Good breathing room for mobile too. */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 3px 5px 0 var(--color-fun-yellow), 0 2px 12px var(--color-fun-pink,transparent);
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
  color: var(--color-fun-blue);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-fun-green);
}
p, ul, ol {
  font-size: 1.06rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

@media (min-width: 600px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
}

/* Fun, playful font for visual punch */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cta);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  border: none;
  border-radius: 30px;
  padding: 0.85em 2.1em;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 3px 16px 0 rgba(255, 147, 60, 0.15);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  z-index: 0;
  animation: playfulBounce 1s cubic-bezier(.4,1.2,.7,1) 1;
}
.cta-btn:after {
  content:'';
  position: absolute;
  left: 8px; top: 8px;
  width: 16px; height: 16px;
  background: var(--color-fun-yellow);
  border-radius: 60% 50% 40% 60%/60% 60% 40% 50%;
  opacity: 0.25;
  z-index: -1;
  filter: blur(2px);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-fun-pink);
  color: var(--color-light);
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 2px 24px 0 rgba(245, 99, 164, 0.15);
}
@keyframes playfulBounce {
  0% { transform: scale(0.94) translateY(5px); }
  55% { transform: scale(1.08) translateY(-10px); }
  70% { transform: scale(0.98) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

/* ================== HEADER & NAVIGATION ================== */
header {
  background: var(--color-light);
  border-bottom: 3px solid var(--color-fun-yellow);
  box-shadow: 0 4px 24px 0 rgba(23,66,96,0.06);
  padding: 0;
  margin-bottom: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 16px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.main-nav a {
  border-radius: 12px;
  padding: 8px 14px;
  transition: background 0.16s, color 0.16s;
  color: var(--color-primary);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-fun-yellow);
  color: var(--color-fun-pink);
}

/* Only show burger on mobile */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 90;
  background: var(--color-fun-blue);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(35, 166, 240, 0.11);
  transition: background 0.2s, transform 0.18s;
  animation: playfulBounce 1s cubic-bezier(.5,1.3,.5,1) 1;
}
.mobile-menu-toggle:hover {
  background: var(--color-fun-green);
  color: var(--color-dark);
  transform: scale(1.09) rotate(3deg);
}

@media (min-width: 900px) {
  .mobile-menu-toggle { display: none !important; }
}

/* ================== MOBILE MENU ================== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--color-fun-blue);
  color: var(--color-light);
  z-index: 99;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,1.4,.6,1);
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 12px;
  font-size: 2.4rem;
  background: var(--color-fun-pink);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px 0 rgba(245,99,164,0.10);
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-close:hover {
  background: var(--color-fun-yellow);
  color: var(--color-fun-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--color-light);
  padding: 14px 38px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  min-width: 220px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 6px 0 rgba(23,66,96,0.14);
  margin: 2px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-fun-yellow);
  color: var(--color-fun-pink);
}
@media (min-width:900px) {
  .mobile-menu { display:none !important; }
}

/* Hide main nav & cta on mobile */
@media (max-width: 900px) {
  .main-nav,
  header .cta-btn {
    display: none !important;
  }
  header .container {
    padding-right: 56px;
  }
}

/* ================== LAYOUT & SECTION SPACING ================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 30px;
  box-shadow: 0 6px 40px 0 rgba(23,66,96,0.03);
  position: relative;
  z-index: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width:700px) {
  .content-wrapper {
    gap: 38px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-fun-yellow);
  border-radius: 26px;
  box-shadow: 0 7px 20px 0 rgba(23,66,96,0.07);
  padding: 28px 24px;
  min-width: 210px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.18s;
  z-index: 1;
  font-family: var(--font-body);
}
.card:hover, .card:focus {
  box-shadow: 0 11px 40px 0 rgba(245,99,164,0.09);
  transform: scale(1.04) rotate(-1deg);
}

.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;
  }
  .content-grid, .card-container, .features-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================== FEATURES ================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
  justify-content: space-between;
}
.feature {
  background: var(--color-fun-green);
  color: var(--color-dark);
  border-radius: 20px;
  padding: 26px 18px 18px 18px;
  box-shadow: 0 3px 16px 0 rgba(73,208,136,0.10);
  flex: 1 1 210px;
  min-width: 200px;
  max-width: 275px;
  position: relative;
  transition: transform 0.16s, box-shadow 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  overflow: hidden;
}
.feature img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px #fff6) drop-shadow(0 0px 4px #23A6F044);
  transform: rotate(-7deg) scale(1.16);
  transition: transform 0.16s;
}
.feature:hover img { transform: rotate(4deg) scale(1.21); }
.feature:hover {
  box-shadow: 0 7px 28px 0 rgba(35,166,240,0.08);
  transform: scale(1.04) rotate(-2deg);
}

/* ================== FOOTER ================== */
footer {
  background: var(--color-primary);
  padding: 0;
  color: var(--color-light);
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  padding: 40px 16px 24px 16px;
}
.footer-logo img {
  width: 54px; height: 54px;
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-nav a {
  color: var(--color-fun-yellow);
  border-radius: 12px;
  padding: 7px 13px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-fun-pink);
  color: var(--color-light);
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  font-size: 1rem;
}
.footer-contact p, .footer-copy p {
  color: var(--color-accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-copy {
  margin-top: 12px;
  color: var(--color-fun-yellow);
  font-size: 0.965rem;
  text-align: center;
}
@media (min-width:700px) {
  footer .container {
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-logo, .footer-nav, .footer-contact, .footer-copy {
    align-items: flex-start;
    text-align: left;
  }
}

/* ================== TESTIMONIALS ================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-fun-yellow);
  border-radius: 30px;
  box-shadow: 0 3px 18px 0 rgba(245, 99, 164, 0.06);
  margin-bottom: 20px;
  color: var(--color-dark);
  font-family: var(--font-body);
  transition: box-shadow 0.19s, transform 0.16s;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-dark);
  font-size: 1.08rem;
  line-height: 1.6;
  font-family: var(--font-display);
  margin-right: 12px;
}
.testimonial-card span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-fun-pink);
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px 0 rgba(245,99,164,0.12);
  transform: scale(1.04) rotate(-1deg);
}

/* Ensure dark readable text */
.testimonial-card, .testimonial-card blockquote, .testimonial-card span {
  color: #141820;
}

/* ================== CARDS & FEATURE ITEMS ================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-fun-blue);
  border-radius: 18px;
  padding: 18px 14px;
  color: var(--color-light);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/*****************************
    LISTS, TEXT SECTIONS
*****************************/
.text-section {
  margin-bottom: 22px;
  background: var(--color-accent);
  border-radius: 14px;
  padding: 18px 15px;
  box-shadow: 0 2px 8px 0 rgba(23,66,96,0.07);
  color: var(--color-primary);
}
ul, ol {
  margin-bottom: 18px;
  margin-left: 14px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 1.6em;
  font-size: 1.08rem;
}
ul li:before {
  content: '•';
  color: var(--color-fun-pink);
  font-size: 1.2em;
  display: inline-block;
  width: 1.1em;
  margin-left: -1.1em;
  font-weight: bold;
}
ol li:before {
  display: none;
}

/*****************************
     COOKIES CONSENT BANNER
*****************************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--color-fun-blue);
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px 20px 16px;
  box-shadow: 0 -7px 34px 0 rgba(23,66,96,0.13);
  border-radius: 24px 24px 0 0;
  font-family: var(--font-display);
  animation: slideInCookie 0.8s cubic-bezier(.45,1.49, .5,1) 1;
}
@keyframes slideInCookie {
  from { transform: translateY(80%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-light);
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.5;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.cookie-btns button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  padding: 9px 23px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(23,66,96,0.12);
  transition: background 0.16s, color 0.16s, transform 0.13s;
}
.cookie-btn-accept {
  background: var(--color-fun-green);
  color: var(--color-dark);
}
.cookie-btn-accept:hover {
  background: var(--color-fun-yellow);
  color: var(--color-primary);
  transform: scale(1.06);
}
.cookie-btn-reject {
  background: var(--color-fun-pink);
  color: var(--color-light);
}
.cookie-btn-reject:hover {
  background: var(--color-fun-blue);
  color: var(--color-light);
  transform: scale(1.06);
}
.cookie-btn-settings {
  background: var(--color-fun-yellow);
  color: var(--color-primary);
}
.cookie-btn-settings:hover {
  background: var(--color-fun-green);
  color: var(--color-dark);
  transform: scale(1.06);
}

/****************************
    COOKIE SETTINGS MODAL
****************************/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,66,96,0.35);
  z-index: 2020;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.35s cubic-bezier(.55,1.2,.5,1) 1;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-light);
  border-radius: 26px;
  min-width: 320px;
  max-width: 95vw;
  padding: 38px 22px 22px 22px;
  box-shadow: 0 14px 48px 0 rgba(23,66,96,0.19);
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  animation: scaleInModal 0.29s cubic-bezier(.74,1.7,.6,1) 1;
}
@keyframes scaleInModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 7px; right: 14px;
  background: var(--color-fun-blue);
  color: var(--color-light);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { background: var(--color-fun-pink); color: #fff; }
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--color-fun-pink);
  margin-top: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-fun-green);
  width: 20px;
  height: 20px;
  margin: 0 2px 0 0;
}
.cookie-category label {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-category[data-essential] label {
  color: var(--color-secondary);
  font-style: italic;
  opacity: 0.89;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-fun-blue);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 9px 16px;
  min-width: 110px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(23,66,96,0.14);
  transition: background 0.14s, color 0.14s, transform 0.13s;
}
.cookie-modal-actions button:hover {
  background: var(--color-fun-green);
  color: var(--color-dark);
  transform: scale(1.05);
}

/****************************
    FORM ELEMENTS (for contact)
****************************/
input[type="text"], input[type="email"], textarea {
  border: 2px solid var(--color-fun-blue);
  border-radius: 12px;
  padding: 12px 15px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-body);
  transition: border 0.14s, box-shadow 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2.5px solid var(--color-fun-green);
  box-shadow: 0 0 0 3px var(--color-fun-green, rgba(73,208,136,0.11));
}

/****************************
    ANIMATED VISUALS
****************************/
.feature,
.card,
.cta-btn,
.testimonial-card,
.feature-item {
  will-change: transform, box-shadow;
  transition: transform 0.16s cubic-bezier(.66,1.6,.7,1), box-shadow 0.18s cubic-bezier(.44,1.3,.68,1.15);
}
.feature:hover,
.card:hover,
.testimonial-card:hover,
.feature-item:hover {
  z-index: 10;
}

/****************************
    GENERAL UTILITIES
****************************/
@media (max-width: 500px) {
  .section {
    padding: 24px 5px;
    margin-bottom: 30px;
  }
  .cookie-banner {
    padding: 16px 2px 12px 2px;
  }
  .cookie-modal {
    padding: 25px 6px 15px 8px;
    min-width: 70vw;
    font-size: 0.98rem;
  }
  .features-grid {
    gap: 17px;
  }
}

/* ================== END OF STYLE.CSS FOR ALLTAGSGENIE ================== */