/* === CSS RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  background: none;
  color: inherit;
}
button, input, select, textarea {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  outline: none;
  appearance: none;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
html {
  font-size: 16px;
}

/* === VARIABLES: COLORS & FONTS === */
:root {
  --color-primary: #222C38;
  --color-secondary: #E63946;
  --color-accent: #F1FAEE;
  --color-text: #222C38;
  --color-light-bg: #F9FAFB;
  --color-shadow: rgba(34,44,56,0.05);
  --font-display: 'Oswald', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Oswald';
  src: local('Oswald'), url('https://fonts.googleapis.com/css?family=Oswald:400,500,700&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
  font-display: swap;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TYPOGRAPHY & HEADING STYLE === */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--color-primary);
  line-height: 1.1;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 18px;
  color: var(--color-primary);
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-primary);
}
p, li {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
strong {
  font-weight: 700;
}

/* === GENERAL LAYOUT SPACING & FLEX === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === FLEXBOX CARD & LIST CONTAINERS === */
.card-container,
.feature-grid,
.service-list,
.service-list .service-item,
.articles-list,
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 28px 24px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(34,44,56,0.10);
}

.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: 16px;
  padding: 22px 26px 20px 26px;
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 410px;
  transition: box-shadow .2s, transform .18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px #d3dce6;
  transform: translateY(-2px) scale(1.01);
}
.testimonial-author {
  display: block;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-display);
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 18px 20px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: box-shadow .2s, transform .18s;
  min-width: 230px;
  max-width: 330px;
}
.feature-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 4px;
}
.feature-item:hover {
  box-shadow: 0 4px 18px #d3dce6;
  transform: translateY(-1px) scale(1.01);
}

/* === HERO SECTION === */
.hero {
  background: var(--color-accent);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0 35px 0;
  margin-bottom: 32px;
  box-shadow: 0 1px 32px var(--color-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-primary);
  max-width: 650px;
}

/* === NAVIGATION & HEADER === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  position: relative;
  padding: 8px 4px;
  transition: color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
.main-nav a.active {
  color: var(--color-secondary);
  font-weight: 500;
}
.main-nav .cta-btn {
  margin-left: 16px;
}

/* === CTA BUTTON STYLE === */
.cta-btn, button.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 25px;
  padding: 11px 28px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background .16s, box-shadow .18s, transform .13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b21824;
  box-shadow: 0 4px 16px #d3dce6;
  transform: scale(1.03);
  color: #fff;
}

button,
.button,
input[type="submit"] {
  border-radius: 8px;
  transition: background .16s, transform .15s, box-shadow .17s;
  border: none;
  font-family: var(--font-body);
}
button:hover, .button:hover {
  transform: scale(1.04);
}

/* === PRICING TAGS === */
.price {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.05rem;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* === ARTICLE AND BLOG === */
.articles-list, .service-list {
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.articles-list li, .service-list li, .service-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .16s;
}
.articles-list li:hover, .service-list li:hover, .service-item:hover {
  box-shadow: 0 3px 16px #cad6e2;
  transform: translateY(-1px) scale(1.01);
}
.article-highlights {
  background: var(--color-accent);
  border-radius: 12px;
  padding: 18px 18px 12px 18px;
  margin: 20px 0 0 0;
  box-shadow: 0 1px 8px var(--color-shadow);
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #f3f3f5;
  padding: 32px 0 12px 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  opacity: 0.82;
  transition: color .15s, opacity .1s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact {
  font-size: 0.95rem;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
footer .logo, .footer-wrapper > a {
  margin-bottom: 8px;
}

/* === LEGAL SECTION FOR POLICIES === */
.legal {
  background: var(--color-accent);
  border-radius: 10px;
  margin-bottom: 60px;
}
.legal .content-wrapper {
  padding: 36px 22px;
  gap: 18px;
}
.legal h1 {
  margin-bottom: 12px;
}
.legal h2 {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 1.18rem;
}
.legal ul {
  margin: 8px 0 14px 18px;
  list-style: disc inside;
  color: var(--color-text);
  font-size: 1rem;
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background .15s, box-shadow .18s;
  z-index: 2001;
}

.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #b21824;
  color: #fff;
  box-shadow: 0 2px 8px #e9f4fd6a;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 95vw;
  max-width: 380px;
  background: #fff;
  box-shadow: 2px 0 16px #b7becc50;
  z-index: 3200;
  transform: translateX(-110%);
  transition: transform .34s cubic-bezier(.86,0,.07,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 24px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--color-secondary);
  font-size: 2rem;
  cursor: pointer;
  border: none;
  margin: 22px 18px 8px 0;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: #a4121e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 28px 16px 34px;
  margin-top: 16px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.13rem;
  font-family: var(--font-display);
  padding: 13px 0;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-menu {
  box-shadow: 2px 0 24px #bccbdd60;
}

/* Overlay for menu */
.mobile-menu-overlay {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,44,56,0.12);
  z-index: 3100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s cubic-bezier(.86,0,.07,1);
}
.mobile-menu.open ~ .mobile-menu-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Hide main nav on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px #b8bfc7b0;
  z-index: 4000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 20px 18px 20px;
  font-size: 1rem;
  color: var(--color-text);
  animation: slideBannerIn .5s cubic-bezier(.86,0,.07,1);
}
@keyframes slideBannerIn {
  from {transform: translateY(80px); opacity: 0;}
  to   {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 340px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .cookie-btn {
  border-radius: 20px;
  padding: 9px 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .12s, color .17s, border .13s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid var(--color-secondary);
  margin-left: 4px;
}
.cookie-banner .cookie-btn.reject {
  background: #f6f8fa;
  border: 1px solid #e6eaf0;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1px solid var(--color-accent);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%) scale(0.98);
  background: #fff;
  width: 94vw;
  max-width: 430px;
  z-index: 4100;
  padding: 32px 28px 24px 28px;
  border-radius: 18px;
  box-shadow: 0 2px 32px #474f5a20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .18s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin: 10px 0 2px 0;
}
.cookie-category span {
  font-weight: 500;
}
.cookie-category label {
  margin-left: 6px;
}
.cookie-toggle-switch {
  width: 42px;
  height: 24px;
  border-radius: 16px;
  background: #e5e8ee;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background .14s;
}
.cookie-toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: left .14s, background .14s;
}
.cookie-toggle-switch input[type="checkbox"]:checked + .cookie-toggle-slider {
  left: 21px;
  background: var(--color-primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 92px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn.close-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.cookie-modal .cookie-btn.close-modal:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .hero {
    padding: 28px 0 22px 0;
    min-height: 120px;
  }
  .container {
    padding: 0 8px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-item, .testimonial-card {
    max-width: 100%;
  }
  .card,
  .service-item,
  .articles-list li {
    padding: 18px 12px;
  }
  .cookie-modal {
    padding: 20px 10px 16px 10px;
    border-radius: 12px;
  }
}

/* === SCROLLBARS (minimal style) === */
body, .container, .main-nav, .content-wrapper, .article-list, .feature-grid, .card-container, .testimonials {
  scrollbar-width: thin;
  scrollbar-color: #e5e8ee #fff;
}
::-webkit-scrollbar {
  width: 8px;
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background: #e5e8ee;
  border-radius: 10px;
}

/* === TABLES & FORMS MINIMALIST === */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 12px;
  font-size: 1rem;
}
th, td {
  border: 1px solid #ececec;
  padding: 8px 6px;
}
th {
  background: #f4f8fa;
  color: var(--color-primary);
  font-weight: bold;
}
input, textarea, select {
  border: 1px solid #d5dbe0;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fcfcfd;
  font-size: 1rem;
  transition: border .14s;
  width: 100%;
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
}

/* === UTILITY CLASSES === */
.hide {
  display: none!important;
}
.text-center {
  text-align: center;
}
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  animation: fadeIn .45s cubic-bezier(.86,0,.07,1) forwards;
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.slide-in {
  transform: translateY(15px);
  opacity: 0;
  animation: slideInY .3s forwards;
}
@keyframes slideInY {
  to {transform: translateY(0); opacity: 1;}
}

/* === ACCESSIBILITY FOCUS INDICATOR === */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* === COLOR CONTRAST FOR TESTIMONIALS, ETC. === */
.testimonial-card, .testimonial-card p {
  color: var(--color-primary)!important;
  background: var(--color-accent)!important;
}

/* === ENSURE NO GRID/COLUMNS, FLEX-ONLY LAYOUTS === */
/* (All layout containers already specified as flex above) */
