/* =====================
   CSS RESET & BASELINE
   ===================== */
html,body,div,span,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,ins,q,small,strong,sub,sup,ul,li,ol,form,label,nav,footer,header,section,main,button {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #22356F;
  background: #fff;
  line-height: 1.6;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #D72631;
  text-decoration: none;
  transition: color 0.20s;
}
a:hover, a:focus {
  color: #22356F;
}
button, .cta {
  cursor: pointer;
  font-family: inherit;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}

/* =====================
   BRAND COLORS & FONTS
   ===================== */
:root {
  --color-primary: #22356F;
  --color-secondary: #D72631;
  --color-accent: #F5DFBB;
  --color-bg: #fff;
  --color-text: #22356F;
  --color-text-contrast: #fff;
  --color-success: #2EC4B6;
  --color-shadow: rgba(34,53,111,0.13);
  --shadow-lg: 0 10px 28px rgba(34,53,111, 0.15), 0 2px 4px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(34,53,111, 0.12);
  --shadow-card: 0 2px 8px rgba(215,38,49,0.10);
  --border-radius: 18px;
  --brand-font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --brand-font-body: 'Roboto', Arial, sans-serif;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font-display);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--color-primary);
  line-height: 1.17;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
}
p, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}
.em, em { font-style: italic; color: var(--color-secondary); }

/* Visual text highlight */
mark, .highlight {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 0.1em 0.35em;
}

/* =====================
   LAYOUT WRAPPERS
   ===================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.text-section {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 25px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.15s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: var(--shadow-lg);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 28px;
  background: #fff;
  border-left: 7px solid var(--color-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  margin-top: 10px;
}
.testimonial-card p {
  color: #263771;
  font-size: 1.08rem;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================
   NAVIGATION & HEADER
   ===================== */
header {
  background: #fff;
  box-shadow: var(--shadow-md);
  padding-top: 0;
  margin-bottom: 0;
  z-index: 60;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0 20px 0;
  min-height: 78px;
  width: 100%;
}
.main-nav > a:first-child img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav li {
  list-style: none;
}
.main-nav a {
  font-family: var(--brand-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.main-nav .cta.primary {
  margin-left: 24px;
}

/* ==============
   CTA & BUTTONS
   ============== */
.cta,
button.cta, a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-font-display);
  font-weight: 800;
  text-align: center;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  font-size: 1.18rem;
  margin-top: 14px;
  min-width: 44px;
  box-shadow: 0 2px 10px rgba(215,38,49,0.08);
  letter-spacing: 1px;
  transition: background 0.22s, color 0.22s, box-shadow 0.16s, transform 0.20s;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(34,53,111,0.20);
}
.cta.secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cta:hover, .cta:focus {
  background: #fff;
  color: var(--color-secondary);
  box-shadow: 0 7px 29px rgba(34,53,111,0.18);
  transform: translateY(-3px) scale(1.05);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 6px 30px 0 rgba(215,38,49,0.18);
}

/* ====================
   FEATURES & SERVICES
   ==================== */
.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-wrapper ul li {
  position: relative;
  padding-left: 26px;
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 500;
}
.content-wrapper ul li:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  background: linear-gradient(135deg, var(--color-secondary) 80%, var(--color-accent) 100%);
  box-shadow: 0 2px 6px #d7263133;
}
.text-section ul li:before {
  background: var(--color-primary);
}
.services-list li {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-list li img {
  width: 42px;
  margin-bottom: 6px;
}
.services-list span {
  color: var(--color-secondary);
  font-weight: bold;
}

/* =============
   FOOTER
   ============= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 28px 0;
  box-shadow: 0 0 42px 0 rgba(34,53,111,0.12);
}
footer .container {
  padding-top: 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--brand-font-display);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.90;
  transition: color 0.12s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact-short p {
  color: #fff;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 14px 0 0;
}
.footer-social a img {
  height: 28px;
  filter: grayscale(0) contrast(1.3) drop-shadow(0 2px 4px #3332);
  transition: transform 0.2s, filter 0.15s;
}
.footer-social a:hover img {
  filter: brightness(1.25) drop-shadow(0 4px 14px #d7263160);
  transform: scale(1.13);
}
.footer-newsletter h3 {
  color: var(--color-accent);
}
.footer-newsletter p {
  color: #fff;
}

/* ===================
   HAMBURGER MENU MOBILE
   =================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 106;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100%; width: 100vw;
  background: #22356FCF;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.77,0.2,0.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.25rem;
  padding: 13px 28px 8px 18px;
  align-self: flex-end;
  margin: 16px 0 0 0;
  z-index: 111;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 25px 0 0 35px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--brand-font-display);
  font-size: 1.28rem;
  font-weight: 700;
  padding: 6px 4px 6px 0;
  border-left: 6px solid transparent;
  border-radius: 9px 0 0 9px;
  transition: background 0.14s, color 0.14s, border-left 0.13s;
  min-width: 180px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-left: 6px solid var(--color-secondary);
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 170;
  box-shadow: 0 -4px 24px #22356F22;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-font-body);
  font-size: 1rem;
  color: var(--color-primary);
  animation: cookie-slide-in 0.7s cubic-bezier(.6,0,.3,1) 1;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 7px;
  align-items: center;
  justify-content: center;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-family: var(--brand-font-display);
  font-weight: 700;
  padding: 9px 26px;
  margin: 0 2px;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 2px 10px #d7263115;
}
.cookie-banner .cookie-btn.cookie-accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .cookie-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-reject:hover {
  background: #222a61;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 180;
  background: rgba(34,53,111, 0.89);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.23s, visibility 0s linear 0.23s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 18px 30px;
  max-width: 360px;
  width: 98%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: start;
  position: relative;
  animation: cookie-modal-pop 0.42s cubic-bezier(.72,1.3,.33,1) 1;
}
@keyframes cookie-modal-pop {
  from { transform: scale(0.92) translateY(30px); opacity: 0.16; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px; top: 11px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.32rem;
  margin-bottom: 8px;
}
.cookie-modal ul {
  font-size: 1rem;
  color: #22356F;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-modal label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-btn-wrap {
  margin-top: 12px;
}

/* =========================
   RESPONSIVE & MOBILE DESIGN
   ========================= */
@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.49rem; }
  .main-nav ul { gap: 13px; }
  .card { min-width: 220px; max-width: 350px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .main-nav ul, .main-nav .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .main-nav { justify-content: flex-start; gap: 7px; }
  .main-nav > a:first-child img { height: 38px; }
  .section { padding: 28px 7px; margin-bottom: 36px; }
  .content-wrapper, .text-section { padding: 18px 7px; }
  .content-grid, .card-container { gap: 11px; }
  .card { padding: 20px 10px; min-width: 130px; max-width: 99vw; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer-nav { flex-direction: column; gap: 2px; text-align: center; }
  .footer-social { margin: 18px auto 0; }
}
@media (max-width: 570px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.06rem; margin-bottom: 12px; }
  p, li { font-size: 0.96rem; }
  .footer-contact-short p { font-size: 0.93rem; }
}

/* ==============
   ANIMATIONS & MICRO EFFECTS
   ============== */
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px #d7263120;
  transform: translateY(-6px) scale(1.02);
}
.cta, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.21s, color 0.18s, transform 0.17s;
}
.mobile-nav a {
  transition: background 0.14s, color 0.13s, border-left 0.12s;
}

/* ==============
   VISIBILITY
   ============== */
[hidden] { display: none !important; }

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

/* ======================
   BRAND PERSONALITY & VIBRANCY!
   ====================== */
body {
  background: linear-gradient(120deg, #F5DFBB 0%, #fff 100%);
}
.section:nth-child(2n) .text-section,
.content-wrapper.text-section {
  background: linear-gradient(110deg, #f8e8c1 80%, #ffeedd 100%);
  border-left: 8px solid var(--color-primary);
  box-shadow: 0 1px 24px #22356F22;
}

/* Section title separators */
h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 6px;
  margin-top: 5px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

/* Subtle animated underline on hover for links in content */
.content-wrapper a:not(.cta):not(.mobile-nav a):not(.footer-nav a) {
  background: linear-gradient(90deg, var(--color-accent) 80%, transparent 100%);
  transition: background-size 0.19s;
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  padding-bottom: 1px;
}
.content-wrapper a:not(.cta):hover {
  background-size: 100% 8px;
  color: var(--color-secondary);
}

/* ===============
   PRINT STYLES
   =============== */
@media print { * { color: #222 !important; background: none !important; box-shadow: none !important; } }
