/* ==== 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;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #FFF;
  color: #31293C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #EE3168;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #C8204F;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ==== ROOT THEME VARIABLES ==== */
:root {
  --color-primary: #1D2233;
  --color-secondary: #EE3168;
  --color-secondary-dark: #C8204F;
  --color-accent: #F3F6FA;
  --color-bg: #FFF;
  --color-shadow: rgba(30, 34, 51, 0.10);
  --color-card-bg: #FFF5F9;
  --color-border: #F1EDF2;
  --color-success: #39ca7f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 18px var(--color-shadow);
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --header-height: 70px;
  --z-modal: 1100;
  --z-cookie: 2000;
  --z-mobile-menu: 2100;
}

/* ==== BASE STYLES ==== */
body {
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 600px) {
  .container { padding: 0 12px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;    margin-bottom: 18px; }
h3 { font-size: 1.3rem;  margin-bottom: 10px; font-weight: 600; }
h4 { font-size: 1.12rem; }
p, ul, ol, blockquote { margin-bottom: 1.1em; font-size: 1rem; }
strong { font-weight: bold; }

/* ===== HEADER & NAVIGATION ===== */
header {
  min-height: var(--header-height);
  background: var(--color-accent);
  box-shadow: 0 4px 14px rgba(30,33,51,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 30px;
}
header img {
  max-height: 44px;
}
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
nav a {
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  color: var(--color-primary);
  font-weight: 500;
}
nav a.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  margin-left: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: var(--color-secondary-dark);
  box-shadow: 0 2px 16px rgba(238,49,104,0.10);
  transform: translateY(-2px) scale(1.03);
}
nav a:hover, nav a:focus {
  background: #FFF2F7;
  color: var(--color-secondary-dark);
}
@media (max-width: 1000px) {
  nav { gap: 6px; }
  header .container { gap: 8px; }
  nav a { padding: 6px 10px; font-size: 0.97rem; }
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: 10px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-mobile-menu);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary-dark);
}
@media (max-width: 900px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 0 24px 90px rgba(0,0,0,.12);
  z-index: var(--z-mobile-menu);
  display: flex;
  flex-direction: column;
  transform: translateX(-104vw);
  transition: transform .35s cubic-bezier(.85,0,.15,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  box-shadow: var(--shadow-sm);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-family: var(--font-display);
  padding: 16px 32px;
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===== SECTIONS & SPACING ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-section {
  align-items: flex-start;
  max-width: 760px;
  width: 100%;
}
@media (max-width: 900px) {
  section { padding: 32px 0; }
}
@media (max-width: 700px) {
  section { padding: 26px 0; margin-bottom: 40px; }
  .text-section { max-width: 100%; }
}

/* ===== HERO BANNER ===== */
section:first-child {
  background: var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
}
section:first-child .cta-btn {
  margin-top: 24px;
}

/* ===== FEATURES GRID, CARDS, & FLEX LAYOUTS ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px 22px;
  min-width: 242px;
  max-width: 340px;
  flex: 1 1 240px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.feature img {
  width: 42px; height: 42px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 10px 32px rgba(238,49,104,0.14);
  transform: translateY(-2px) scale(1.025);
}
@media (max-width: 900px) {
  .features-grid { gap: 16px; }
  .feature { min-width: 180px; max-width: 100%; }
}
@media (max-width: 700px) {
  .features-grid { flex-direction: column; gap: 14px; }
  .feature { width: 100%; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow);
  transform: 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,
  .content-grid,
  .features-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* STUDY CARDS / BLOG LIST SPECIALS */
.case-study-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.case-study-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px 18px 22px;
  flex: 1 1 250px;
  min-width: 240px; max-width: 360px;
  margin-bottom: 20px;
}
.blog-list article {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px 17px 18px;
  flex: 1 1 250px; min-width: 220px; max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 900px) {
  .case-study-list, .blog-list { gap: 12px; }
  .case-study-card, .blog-list article { min-width: 160px; }
}
@media (max-width: 700px) {
  .case-study-list, .blog-list { flex-direction: column; }
  .case-study-card, .blog-list article { width: 100%; }
}
.blog-list article a {
  color: var(--color-secondary-dark);
  font-weight: 600;
  margin-top: 4px;
  text-decoration: underline dotted;
}
.blog-list article a:hover, .blog-list article a:focus { color: var(--color-secondary); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 20px 28px;
  min-width: 240px;
  flex-wrap: wrap;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.11rem;
  margin: 0 0 4px 0;
}
.testimonial-info {
  color: #897B8F;
  font-size: 0.97rem;
  font-family: var(--font-display);
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
  }
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow);
}

/* ===== BUTTONS ===== */
.cta-btn, .btn, button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 13px 32px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}
.cta-btn:hover,
.cta-btn:focus,
.btn:hover,
.btn:focus {
  background: var(--color-secondary-dark);
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 4px 18px rgba(238,49,104,0.16);
  color: #fff;
}
button:active { transform: scale(0.98); }

/* ===== LINKS ===== */
a, .link {
  cursor: pointer;
  transition: color var(--transition);
}
a.link:hover, .link:hover { color: var(--color-secondary); }

/* ===== LISTS ===== */
ul, ol {
  padding-left: 22px;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 9px;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-accent);
  border-radius: var(--radius) var(--radius) 0 0;
  padding-top: 30px;
  padding-bottom: 28px;
  margin-top: 60px;
  font-size: 0.98rem;
  color: #31293C;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 160px;
}
.footer-left img { height: 38px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary-dark);
  text-decoration: underline wavy;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}
.footer-contact div, .footer-contact a {
  display: flex;
  align-items: center;
  color: #31293C;
  font-size: 0.98rem;
  gap: 9px;
  font-family: var(--font-body);
}
.footer-contact img { width: 20px; height: 20px; filter: grayscale(0.22) brightness(1.08); }
footer a {
  color: var(--color-secondary);
  transition: color var(--transition);
}
footer a:hover, footer a:focus {
  color: var(--color-secondary-dark);
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 23px; align-items: stretch; }
  .footer-nav { flex-direction: row; gap: 20px; margin: 14px 0 0 0; }
}
@media (max-width: 600px) {
  footer .container { padding-left: 8px; padding-right: 8px; }
  .footer-left img { height: 30px; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-cookie);
  background: #fff6fb;
  box-shadow: 0 -2px 32px rgba(30,34,51,0.11), 0 1px 1.5px #d3b4c2;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 18px 22px 18px;
  font-size: 1rem;
  transition: transform .28s cubic-bezier(.86,0,.13,1), opacity .28s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-text {
  color: #443644;
  max-width: 440px;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  gap: 15px;
}
.cookie-btns .btn {
  border-radius: var(--radius-sm);
  min-width: 120px;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-btns .btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 1.6px solid var(--color-secondary);
  box-shadow: none;
}
.cookie-btns .btn.settings:hover {
  background: #fedbea;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 16px; padding: 16px 6px; font-size: 0.98rem; }
  .cookie-btns { width: 100%; justify-content: flex-end; gap: 9px; }
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,34,51,0.47);
  z-index: calc(var(--z-cookie) + 40);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(238,49,104,0.19);
  max-width: 410px; width: 95vw;
  padding: 35px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
  animation: popin-cookie .32s cubic-bezier(.72,0,0,1);
}
@keyframes popin-cookie {
  from { opacity: .4; transform: scale(.87); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-title { font-size: 1.25rem; font-family: var(--font-display); font-weight: 700; margin-bottom: 4px; }
.cookie-modal-categories { display: flex; flex-direction: column; gap: 14px; }
.cookie-category {
  display: flex;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 13px;
  background: #FFEBFA;
  box-shadow: 0 2px 9px #fbddea99;
}
.cookie-category label { flex: 1; font-weight: 500; font-size: 1rem; }
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-category .always-on {
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.06rem;
  margin-left: 6px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 6px;
}
.cookie-modal-footer .btn {
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: #fff;
  color: var(--color-secondary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #ffecfc; color: var(--color-secondary-dark); }
@media (max-width: 600px) {
  .cookie-modal { padding: 22px 6px 18px 8px; }
}

/* ====== MISC UTILITY ====== */
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px; }
.hide { display: none !important; }

/* ====== FORM FIELDS (UNIVERSAL) ====== */
input, textarea, select {
  border: 1.4px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border var(--transition);
  margin-bottom: 8px;
  color: var(--color-primary);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid var(--color-secondary);
  outline: none;
}
label { font-family: var(--font-display); font-weight: 500; margin-bottom: 5px; color: var(--color-primary); }

/* ====== RESPONSIVE TYPOGRAPHY SCALE ====== */
@media (max-width: 900px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.12rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1.02rem; }
}

/* ===== CUSTOM SCROLLBARS FOR MODALS/MOBILE ===== */
body, .mobile-menu.open, .cookie-modal { scrollbar-width: thin; scrollbar-color: var(--color-secondary) #fff4fa; }
body::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar { width: 10px; background: #fff4fa; }
body::-webkit-scrollbar-thumb, .cookie-modal::-webkit-scrollbar-thumb { background: var(--color-secondary); border-radius: 8px; }

/* ===== ANIMATIONS ===== */
.cta-btn, .btn {
  will-change: transform;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.testimonial-card, .feature, .case-study-card, .faq-item, .blog-list article, .card {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
nav a, .footer-nav a, .mobile-nav a {
  transition: color var(--transition), background var(--transition);
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--color-secondary-dark);
  outline-offset: 1px;
  z-index: 1;
}

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