/* ===== 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; }
*, *:before, *:after { box-sizing: inherit; }
a {color: inherit; text-decoration: none;}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
body { line-height: 1.5; background: #ffffff; min-height: 100vh; }

/* ===== VARIABLES + BRAND COLORS ===== */
:root {
  --color-primary: #233142;
  --color-primary-dark: #1a2533;
  --color-secondary: #ffffff;
  --color-accent: #F94545;
  --color-accent-alt: #F95959;
  --color-bg-gray: #F5F7FB;
  --color-shadow: rgba(35,49,66,0.08);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius-btn: 28px;
  --radius-card: 20px;
  --shadow-card: 0 6px 32px var(--color-shadow), 0 1.5px 4px var(--color-shadow);
  --transition-main: all 0.28s cubic-bezier(.6,.29,.47,1.01);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-secondary);
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1.2px;
}
h1 { font-size: 2.3rem; line-height: 1.1; margin-bottom: 24px; color: var(--color-accent); }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.22rem; margin-bottom: 12px; color: var(--color-primary); }
h4 { font-size: 1rem; margin-bottom: 8px; }
p, ul, li {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
subheadline, .subheadline {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  margin-bottom: 18px;
  opacity: 0.85;
  font-style: italic;
}
strong { font-weight: 700; }

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: 1200px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

/* ======= SECTIONS & CARDS SPACING ======= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  background: var(--color-bg-gray);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: 0 8px 36px rgba(249,69,69,0.15); }
.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;
  background: #fff;
  box-shadow: var(--shadow-card);
  min-width: 0;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 42px 0 rgba(35,49,66,0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === GENERAL PADDING/MARGIN === */
section:not(:last-child) { margin-bottom: 40px; }
section > .container {margin-bottom: 0;}
ul > li,
ol > li { margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }

/* ===== HEADER & NAV ===== */
header {
  background: var(--color-primary-dark);
  color: var(--color-secondary);
  width: 100%;
  box-shadow: 0 2px 18px rgba(35,49,66,0.03);
  z-index: 50;
  position: relative;
}
header .container {
  padding-top: 10px;
  padding-bottom: 10px;
}
header .content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}
header a img { max-height: 46px; margin-right: 22px; }
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  margin-left: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.2px;
  font-weight: 600;
  color: var(--color-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, color 0.18s;
}
.main-nav a:not(.cta-btn):hover,
.main-nav a:not(.cta-btn):focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 12px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  letter-spacing: 0.9px;
  font-family: var(--font-display);
  position: relative;
  box-shadow: 0 3px 12px 0 rgba(249,69,69,0.12);
  cursor: pointer;
  outline: none;
  opacity: 0.97;
  transition: var(--transition-main);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 24px 0 rgba(249,69,69,0.26);
  letter-spacing: 1.4px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  display: none;
  margin-left: 18px;
  line-height: 1;
  z-index: 1001;
  position: relative;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: rgba(249,69,69,0.12);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary-dark);
  color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.59,.24,.29,1.11);
  z-index: 2000;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 26px;
  padding: 7px 10px;
  border-radius: 10px;
  outline: none;
  transition: background 0.17s;
}
.mobile-menu-close:hover {
  background: rgba(249,69,69,0.16);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 14px 6px;
  color: var(--color-secondary);
  border-radius: 8px;
  background: transparent;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent-alt);
  color: var(--color-primary);
}

@media (max-width:1190px) {
  .main-nav { gap: 14px; }
}
@media (max-width:1030px) {
  .main-nav { gap: 7px; }
}
@media (max-width:900px) {
  .main-nav { gap: 0; }
}
@media (max-width:900px) {
  .main-nav {display: none;}
  .mobile-menu-toggle { display: inline-block; }
}
/* Hide mobile menu by default on desktop */
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ===== MAIN PAGE ELEMENTS ===== */
main { width: 100%; }
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0px;
  background: transparent;
  display: flex;
  flex-direction: column;
}
section:last-child { margin-bottom: 0; }

.text-section {
  margin: 14px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* === ICONS IN FEATURES === */
ul > li img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-right: 14px;
  border-radius: 10px;
  background: var(--color-accent);/* Artistic touch */
  box-shadow: 0 3px 12px rgba(249,89,89,0.11);
  padding: 7px;
  transition: transform 0.14s;
}
ul > li:hover img { transform: rotate(-7deg) scale(1.14); }

/* ===== TESTIMONIALS ===== */
.testimonial-card p {
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-style: italic;
  line-height: 1.4;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 0.98rem;
  margin-left: 18px;
  font-style: normal;
  font-weight: 700;
}

/* Ensuring cards have proper spacing */
.testimonial-card + .testimonial-card { margin-top: 20px; }

/* ====== FOOTER ======*/
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 38px 0 26px 0;
  margin-top: 60px;
  box-shadow: 0 -3px 24px rgba(35, 49, 66, 0.07);
}
footer .content-wrapper {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 44px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer a img { max-height: 44px; margin-bottom: 16px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--color-secondary);
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.footer-contact p, .footer-contact a {
  font-size: 1rem;
  color: var(--color-secondary);
  opacity: 0.91;
}
.footer-contact a:hover { color: var(--color-accent); }

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-primary-dark);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 3000;
  padding: 18px 20px;
  box-shadow: 0 -6px 32px var(--color-shadow);
  font-family: var(--font-display);
  font-size: 1rem;
  animation: cookieFadeIn 0.8s cubic-bezier(.19,1,.22,1);
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  border-radius: 18px;
  padding: 8px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.18s;
  box-shadow: 0 2px 8px 0 rgba(249,69,69,0.13);
}
.cookie-btn.alt {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  outline: none;
}
.cookie-btn.alt:hover, .cookie-btn.alt:focus {
  background: var(--color-accent-alt);
  color: var(--color-secondary);
  border: 2px solid var(--color-accent-alt);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  bottom: 50%; left: 50%;
  transform: translate(-50%,60%);
  background: var(--color-secondary);
  color: var(--color-primary);
  min-width: 330px;
  min-height: 220px;
  padding: 36px 36px 30px 36px;
  border-radius: 24px;
  box-shadow: 0 6px 48px rgba(35,49,66,0.32);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.5s cubic-bezier(.27,1.15,.46,.9);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%,100%); }
  to { opacity: 1; transform: translate(-50%,60%); }
}
.cookie-modal h3 { margin-bottom: 18px; font-size: 1.22rem; }
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.cookie-modal-list label {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-switch {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 16px;
  background: #c9d3e5;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-switch:checked {
  background: var(--color-accent);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(35,49,66,0.09);
  transition: transform 0.14s;
}
.cookie-switch:checked:before {
  transform: translateX(15px);
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 12px;
  transition: background 0.17s;
}
.cookie-modal-close:hover { background: rgba(249,69,69,0.10); }

/* ========== ARTISTIC STYLE ENHANCEMENTS ========== */
section, .card, .testimonial-card, footer {
  box-shadow: 0 3px 15px 0 rgba(35,49,66,0.08);
}
.card, .testimonial-card {
  background: linear-gradient(125deg, #fff 85%, #ffe4e0 100%);
}
.section:nth-child(odd) {
  background: #F5F7FB;
}

h1, h2, h3 {
  background: linear-gradient(85deg, var(--color-primary-dark) 51%, var(--color-accent) 98%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.cta-btn, .cookie-btn {
  background-image: linear-gradient(97deg, var(--color-accent) 65%, #FFB085 100%);
  border: none;
  box-shadow: 0 3px 12px rgba(249,89,89,0.17);
  text-shadow: 0 1px 8px rgba(249,69,69,0.09);
  font-family: var(--font-display);
}

.cta-btn {
  letter-spacing: 1.2px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cta-btn:before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #fff2f2 0%, #ffeab2 100%);
  opacity: 0;
  transition: opacity 0.26s;
  z-index: -1;
}
.cta-btn:hover:before, .cta-btn:focus:before {
  opacity: 0.16;
}

/* Decorative artistic shadow to cards */
.card, .testimonial-card {
  border-radius: 18px 36px 28px 24px/22px 36px 18px 34px;
}

/* Quirky accent bar for h2 underneath */
h2::after, h1::after {
  content: '';
  display: block;
  width: 66px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 6px 14px 9px 4px;
  margin: 12px 0 0 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  .footer .content-wrapper {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  footer .footer-nav { flex-direction: row; gap: 22px; margin-bottom: 16px; }
}
@media (max-width:768px) {
  .header .content-wrapper, footer .content-wrapper { flex-direction: column; gap: 25px; }
  section, .section { padding: 28px 7px; }
  .testimonial-card, .card { padding: 19px 9px; }
  .card, .testimonial-card { font-size: 0.98rem; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .content-grid, .card-container { flex-direction: column; gap: 17px; }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
  .footer .content-wrapper { flex-direction: column; gap: 18px; }
  .footer-contact { margin-top: 22px; }
}

@media (max-width:520px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.08rem; }
  .cta-btn, .cookie-btn { font-size: 0.97rem; padding: 10px 19px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== FOCUS OUTLINES FOR ACCESSIBILITY ===== */
a:focus, .cta-btn:focus, .cookie-btn:focus, .cookie-modal-close:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ====== ANIMATIONS & MICRO-INTERACTIONS ====== */
.card, .testimonial-card, .cta-btn, .cookie-btn, .mobile-nav a, .main-nav a {
  transition: box-shadow 0.18s, background 0.18s, color 0.16s, transform 0.15s;
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.016);
  box-shadow: 0 16px 52px 0 rgba(249,69,69,0.09);
}

.cta-btn:active { transform: scale(0.95); }
.mobile-nav a:active { transform: scale(0.97); }

/* ========== FORMS (if present in contact/other) ========== */
input, textarea, select {
  border: 1.5px solid #E2E6EF;
  border-radius: 11px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border 0.17s, box-shadow 0.17s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(249,69,69,0.13);
  outline: none;
}
button[type=submit] {
  margin-top: 8px;
}

/* === MISC === */
::-webkit-scrollbar { width: 10px; background: #f4f6fa; }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 8px;
}

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