/* --- 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, menu, 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,
main, 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 {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #fff;
  color: #252b32;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
ul, ol {
  padding-left: 24px;
}
a {
  color: #252b32;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus {
  outline: 2px solid #ffd166;
  outline-offset: 2px;
}

/* --- VARIABLES (WITH FALLBACKS) --- */
:root {
  --clr-primary: #252b32;
  --clr-secondary: #c9d6e3;
  --clr-accent: #ffd166;
  --clr-accent-2: #62c3d7;
  --clr-creative1: #f67280;
  --clr-creative2: #355c7d;
  --clr-creative3: #4BFFDF;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
.tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-creative1);
  font-style: italic;
  margin-top: 16px;
}

/* --- CONTAINER AND BASE STRUCTURE --- */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- HEADER --- */
header {
  background: linear-gradient(90deg, var(--clr-secondary) 0 40%, #fff 80% 100%);
  box-shadow: 0 2px 14px 0 rgba(80,60,180,0.06),0 1.5px 9px 0 rgba(80,60,180,0.03);
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  min-height: 72px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header .cta-primary {
  margin-left: 24px;
}

@media (max-width: 950px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: unset;
  }
  .main-nav {
    gap: 10px;
    margin-top: 8px;
  }
  header .cta-primary {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* --- BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--clr-creative2);
  cursor: pointer;
  margin-left: auto;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 201;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--clr-accent);
  outline: 2px solid var(--clr-accent);
}

@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 24px rgba(70,20,100,0.08);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.78,0.17,0.32,0.84);
  display: flex;
  flex-direction: column;
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--clr-creative1);
  position: absolute;
  top: 24px;
  right: 20px;
  z-index: 202;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus {
  color: var(--clr-accent);
  outline: 2px solid var(--clr-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;
  margin-left: 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--clr-creative2);
  margin-bottom: 2px;
  position: relative;
  transition: color 0.22s;
  padding: 6px 4px;
  border-radius: 6px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--clr-accent);
  color: #252b32;
  outline: none;
}

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

/* --- SECTION SPACING (MANDATORY) --- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.content-wrapper:not(:last-child) {
  margin-bottom: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fffbe6;
  border-radius: 14px;
  box-shadow: 0 6px 30px -7px rgba(110,100,60,.12), 0 1.5px 6px 0 rgba(130,130,100,.05);
  border-left: 5px solid var(--clr-accent);
  color: #2d2d2d;
  min-width: 220px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 5px 28px -8px var(--clr-secondary), 0 1px 4px 0 #eee;
  padding: 28px 22px 24px 22px;
  min-width: 240px;
  max-width: 300px;
  transition: box-shadow 0.24s, transform 0.24s;
  margin-bottom: 20px;
  position: relative;
}
.feature-item:hover {
  box-shadow: 0 8.5px 40px -6px var(--clr-accent), 0 1.5px 8px 0 #c9d6e3;
  transform: translateY(-3px) scale(1.03) rotate(-1deg); 
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(105deg, #f67280 0 32%, #c9d6e3 75% 100%);
  border-radius: 0 0 44px 44px / 0 0 28px 28px;
  box-shadow: 0 18px 48px -15px rgba(54,35,70,0.1);
  margin-bottom: 40px;
  position: relative;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 3px 12px rgba(30,30,60,0.18);
  letter-spacing: -2.5px;
  font-size: 2.35rem;
}
.hero p {
  color: #252b32;
  font-size: 1.18rem;
}
.hero .cta-primary {
  margin-top: 8px;
}

@media (max-width: 630px) {
  .hero {
    border-radius: 0 0 20px 20px / 0 0 10px 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* --- FEATURES LAYOUT --- */
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}

/* --- SERVICES/ABOUT/GENERIC CONTENT --- */
.services ul,
.about ul, .why-us ul, .features ul, .privacy-policy ul,
.gdpr-compliance ul, .cookie-policy ul, .terms-of-use ul {
  list-style: disc inside;
  margin-bottom: 18px;
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--clr-creative2);
}

.contact-teaser,
.contact-info {
  background: linear-gradient(97deg, #c9d6e3 0 44%, #fff 60% 100%);
  border-radius: 22px;
  box-shadow: 0 3px 14px -4px rgba(120,90,150,0.09);
  margin-bottom: 40px;
}
.contact-info img, .contact-teaser img {
  vertical-align: middle;
  height: 1.3em;
  width: auto;
  margin-right: 7px;
}

/* --- CARDS (OPTIONAL) --- */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 22px -7px #c9d6e3, 0 1px 3px 0 #e6ecf6;
  padding: 28px 22px;
  min-width: 210px;
  max-width: 360px;
  transition: box-shadow 0.22s, transform 0.23s;
}
.card:hover {
  box-shadow: 0 8px 30px -8px var(--clr-accent), 0 1.5px 7px 0 #c9d6e3;
  transform: translateY(-3px) scale(1.025) rotate(1deg);
}

/* --- CALL TO ACTIONS --- */
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: 25px;
  padding: 12px 32px;
  margin-top: 10px;
  box-shadow: 0 3px 18px 0 rgba(180,120,45,0.09);
  border: none;
  cursor: pointer;
  gap: 10px;
  transition: background 0.22s, color 0.22s, box-shadow 0.2s, transform 0.17s;
}
.cta-primary {
  background: var(--clr-accent);
  color: #252b32;
  border: 2px solid var(--clr-accent);
}
.cta-secondary {
  background: #fff;
  color: var(--clr-creative2);
  border: 2px solid var(--clr-creative2);
}
.cta-primary:hover, .cta-primary:focus {
  background: #ffd166;
  color: #102127;
  box-shadow: 0 7px 34px rgba(254,221,102,0.25);
  transform: translateY(-1px) scale(1.04);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--clr-creative2);
  color: #fff;
  box-shadow: 0 2px 16px #c9d6e3;
  transform: translateY(-1px) scale(1.04);
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #f4f7fb;
  border-radius: 30px;
}
.testimonials .content-wrapper {
  gap: 24px;
}
.testimonial-card p {
  flex: 1 1 180px;
  font-size: 1.09rem;
  color: #242323;
}
.testimonial-card span {
  font-family: var(--font-display);
  color: #555;
  font-size: 0.99rem;
  font-style: italic;
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  margin-left: 3px;
  filter: drop-shadow(0 2px 6px #ffe5ad);
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(95deg, var(--clr-primary) 0 70%, var(--clr-creative1) 100%);
  color: #fff;
  padding: 44px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer img {
  height: 50px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.95;
  font-size: 1.01rem;
  transition: color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--clr-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 0.98rem;
  text-align: center;
  opacity: 0.94;
  margin-bottom: 8px;
}
footer span {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.8;
}

/* --- PRIVACY/TERMS --*/
.privacy-policy, .gdpr-compliance, .cookie-policy, .terms-of-use, .confirmation {
  background: #f7fafd;
  border-radius: 18px;
  box-shadow: 0 5px 32px -12px #c9d6e3;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 800px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .features .feature-grid {
    gap: 18px;
  }
  .feature-item {
    min-width: 170px;
    max-width: 100%;
    padding: 20px 10px;
  }
}
@media (max-width: 650px) {
  .hero h1 {
    font-size: 1.55rem;
    letter-spacing: -1.1px;
  }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.02rem; }
  .content-wrapper, .features .feature-grid { gap: 8px; }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    font-size: 0.99rem;
    padding: 14px;
  }
  .features .feature-grid { flex-direction: column; gap: 12px; }
}

/* --- FLEX DIRECTION COLUMN ON MOBILE FOR TEXT-IMAGE SECTIONS --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
*:not(input):focus {
  outline: 2px solid var(--clr-accent-2);
  outline-offset: 2px;
}
section {
  transition: box-shadow 0.2s;
}
section:hover {
  box-shadow: 0 7px 26px -8px var(--clr-creative3);
}

/* --- BUTTONS & LINKS --- */
button, .cta-primary, .cta-secondary, input[type=submit], input[type=button] {
  font-family: var(--font-display);
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.15s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: translateY(1px) scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: #252b32;
  color: #ffd166;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 24px 16px;
  z-index: 9000;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 -4px 24px rgba(60,40,90,0.11);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  animation: cookieBannerPop 0.7s cubic-bezier(0.55,0.16,0.24,1.02);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  padding: 7px 16px;
  font-size: 1rem;
  border-radius: 21px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(254,221,102,0.10);
  cursor: pointer;
  margin-left: 0;
  transition: background 0.21s, color 0.22s;
}
.cookie-banner .btn-accept {
  background: #ffd166;
  color: #252b32;
}
.cookie-banner .btn-accept:hover {
  background: #ffecad;
  color: #222;
}
.cookie-banner .btn-reject {
  background: #fffbe6;
  color: #355c7d;
}
.cookie-banner .btn-reject:hover {
  background: #f67280;
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #355c7d;
  color: #fff;
}
.cookie-banner .btn-settings:hover {
  background: #4BFFDF;
  color: #252b32;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.99rem;
    padding: 16px 7px;
  }
}
@keyframes cookieBannerPop {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9100;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(41,46,74,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.32s cubic-bezier(0.66,0,0.25,1.02);
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  width: 96%;
  padding: 34px 22px 22px 22px;
  box-shadow: 0 9px 48px -12px var(--clr-secondary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popInModal 0.52s cubic-bezier(0.62,0,0.29,1.01);
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
  color: var(--clr-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.01rem;
}
.cookie-modal label {
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--clr-accent-2);
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-btns button {
  font-family: var(--font-display);
  padding: 7px 18px;
  border-radius: 22px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .btn-save {
  background: var(--clr-accent);
  color: var(--clr-primary);
}
.cookie-modal .btn-cancel {
  background: var(--clr-creative1);
  color: #fff;
}
.cookie-modal .btn-save:hover, .cookie-modal .btn-save:focus {
  background: #ffc251;
}
.cookie-modal .btn-cancel:hover, .cookie-modal .btn-cancel:focus {
  background: #252b32;
  color: #ffd166;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  position: absolute;
  right: 22px; top: 18px;
  color: var(--clr-creative1);
  cursor: pointer;
}
.cookie-modal .modal-close:hover { color: var(--clr-accent); }
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popInModal {
  from { transform: scale(0.93) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- MISCELLANEOUS --- */
hr {
  border: none;
  border-bottom: 1.5px dashed #d5e3f1;
  margin: 30px 0;
  opacity: 0.65;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-display { font-family: var(--font-display); }
.bg-accent { background: var(--clr-accent); }
.w-100 { width: 100%; }
.mt-24 { margin-top: 24px; }
.mb-20 { margin-bottom: 20px; }

/* --- CREATIVE & ARTISTIC ACCENTS --- */
.feature-item, .testimonial-card, .card {
  border-bottom: 4px solid var(--clr-creative1);
  box-shadow: 0 4px 22px -8px var(--clr-creative3), 0 1px 2px #d5eaf7;
  position: relative;
}
.feature-item:before,
.testimonial-card:before {
  content: "";
  position: absolute;
  top: -18px; right: -18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--clr-creative3);
  opacity: 0.09;
  z-index: 0;
}
.feature-item:nth-child(2n):before {
  background: var(--clr-accent-2); opacity: 0.11;
  left: -18px; right: auto; top: -12px;
}
.testimonial-card:after {
  content: "";
  position: absolute;
  bottom: -16px; left: -16px;
  width: 30px; height: 30px;
  background: var(--clr-creative1);
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd166 0%, #f67280 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 4px;
}

/* --- FONT-FACE (Google Fonts Assistance) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800|Open+Sans:400,600,700&display=swap');
