/* === 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,
main, 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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #212749;
  background-color: #FFFDF8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #21747e;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #212749;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
button, [type=button], [type=submit], [type=reset] {
  cursor: pointer;
}

/* === BRAND COLORS & FONTS === */
:root {
  --color-primary: #212749;
  --color-secondary: #69C9B9;
  --color-accent: #F5D26C;
  --color-bg: #FFFDF8;
  --color-card-bg: #FFF9E6;
  --color-card-border: #F8ECD9;
  --color-shadow: rgba(33, 39, 73, 0.09);
  --color-text-dark: #212749;
  --color-text-light: #ffffff;
  --color-alert: #F08A75;
  --color-divider: #f0e7d8;
  --shadow-md: 0 2px 12px 0 var(--color-shadow);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* === LAYOUT CONTAINERS & SPACING === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
main {
  min-height: 400px;
  position: relative;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}
.content-wrapper,
.text-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.text-section {
  background: var(--color-card-bg);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, li, label {
  font-size: 1rem;
  font-family: var(--font-body);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* === BUTTONS & CTA === */
.cta,
button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.75em 2.1em;
  border-radius: 34px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  border: 2px solid var(--color-accent);
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  gap: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s, transform 0.12s;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-primary);
  box-shadow: 0 6px 18px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.035);
}

/* === FLEX SPACING PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 var(--color-shadow);
}
.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;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  margin-top: 10px;
  border: 1.5px solid var(--color-card-border);
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
}
.feature-grid > div {
  min-width: 220px;
  flex: 1 1 200px;
  border-radius: 18px;
  background: var(--color-card-bg);
  padding: 20px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 30px 0 var(--color-shadow);
  transform: translateY(-5px) scale(1.028);
}

/* === BLOG & PRICING === */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-list article {
  background: #fff;
  border-radius: 21px;
  box-shadow: var(--shadow-md);
  padding: 24px 18px 20px 18px;
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.11s;
}
.blog-list article:hover {
  box-shadow: 0 8px 32px 0 var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
}
.blog-categories {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.blog-categories ul {
  display: flex;
  gap: 14px;
}
.blog-categories a {
  background: var(--color-card-bg);
  padding: 5px 18px;
  border-radius: 16px;
  transition: background 0.16s, color 0.16s;
  font-weight: 500;
}
.blog-categories a:hover {
  background: var(--color-secondary);
  color: var(--color-text-light);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-box input {
  border-radius: 20px;
  border: 1.5px solid var(--color-card-border);
  background: #f7f5ee;
  padding: 7px 16px;
  font-size: 1rem;
  width: 150px;
  transition: border 0.17s, background 0.16s;
}
.search-box input:focus {
  border-color: var(--color-secondary);
  background: #fff;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.pricing-table > div {
  background: var(--color-card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 26px 18px 19px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  border: 1.5px solid var(--color-card-border);
  transition: box-shadow 0.17s, transform 0.12s;
}
.pricing-table > div:hover {
  box-shadow: 0 8px 30px 0 var(--color-shadow);
  transform: translateY(-5px) scale(1.028);
}
.features-comparison {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  padding: 14px 20px;
  margin-bottom: 20px;
}
.features-comparison ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.features-comparison li {
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.faq-list > div {
  background: #fff;
  border-radius: 19px;
  box-shadow: var(--shadow-md);
  padding: 18px 14px 16px 14px;
  flex: 1 1 250px;
  min-width: 180px;
  margin-bottom: 20px;
  border: 1.5px solid var(--color-card-border);
}


/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}
header img {
  height: 48px;
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 13px;
  border-radius: 18px;
  transition: background 0.16s, color 0.15s;
}
header nav a.cta {
  background: var(--color-secondary);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 1.09rem;
  box-shadow: 0 1px 5px 0 var(--color-shadow);
  padding: 8px 20px;
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
header nav a:hover, header nav a:focus {
  background: var(--color-card-bg);
  color: var(--color-secondary);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: none;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 10px 0 var(--color-shadow);
  transition: background 0.18s, color 0.18s;
  margin-left: 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-text-light);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250,247,233,0.97);
  backdrop-filter: blur(1.5px);
  z-index: 40;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.56,.06,.53,.95);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: relative;
  left: 18px;
  top: 25px;
  font-size: 2.2rem;
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  align-self: flex-end;
  margin-right: 16px;
  margin-bottom: 28px;
  box-shadow: 0 1px 8px 0 var(--color-shadow);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 60px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-card-bg);
  border-radius: 18px;
  width: 90%;
  text-align: center;
  padding: 13px 0;
  box-shadow: 0 1px 5px 0 var(--color-shadow);
  margin-bottom: 0;
  transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* === MAIN & PAGE CONTENT === */
ul, ol {
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
}
li strong {
  font-weight: 700;
  color: var(--color-secondary);
}

section > .container {
  margin-bottom: 0;
}

.map-location, .contact-details {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.contact-details ul, .map-location ul {
  list-style: none;
  padding-left: 0;
}
.contact-details li, .map-location li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.contact-details img, .map-location img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  font-size: 1.09rem;
  color: var(--color-primary) !important;
  background: #ffffff;
  border-left: 5px solid var(--color-accent);
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 0.98rem;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--color-primary);
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 48px 0 22px 0;
  box-shadow: 0 -2px 12px 0 var(--color-shadow);
}
footer .container {
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer img {
  height: 58px;
  margin-bottom: 14px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 6px;
  width: 22px;
  height: 22px;
}
footer span {
  font-size: 0.99rem;
  margin-top: 12px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF7E3;
  color: #212749;
  border-top: 2px solid var(--color-accent);
  z-index: 1000;
  box-shadow: 0 0 18px 0 var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 30px;
  padding: 28px 18px 22px 18px;
  transition: transform 0.33s;
  font-size: 1rem;
  max-width: 100vw;
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__text {
  flex: 2 1 300px;
  margin-right: 18px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 auto;
}
.cookie-btn, .cookie-settings-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  margin-right: 4px;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  transition: background 0.17s, color 0.18s, transform 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn-reject {
  background: var(--color-alert);
  color: #fff;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #db7055;
  color: #fff;
}
.cookie-settings-btn {
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* === COOKIE MODAL POPUP === */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,39,73,0.30);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__box {
  background: #FFF9E6;
  color: var(--color-primary);
  border-radius: 18px;
  max-width: 98vw;
  width: 425px;
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  padding: 42px 28px 28px 28px;
  position: relative;
  animation: scale-in 0.35s cubic-bezier(.53,1.93,.36,.84);
}
@keyframes scale-in {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  transition: background 0.18s, color 0.16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 600;
  margin-right: 8px;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  color: var(--color-primary);
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
}
@media (max-width: 990px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pricing-table, .feature-grid, .blog-list, .faq-list, .features-comparison ul, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  main, .container, .section, section { padding: 0 0; }
  .content-wrapper { padding: 24px 10px; }
  .text-section { padding: 20px 8px; }
  .section, section { padding: 18px 8px; margin-bottom: 38px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.05rem; }
  .card, .feature-grid > div, .pricing-table > div, .faq-list > div, .testimonial-card {
    padding: 16px 9px;
  }
  .feature-grid, .blog-list, .pricing-table, .faq-list, .features-comparison ul, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card { flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 14px; align-items: stretch; }
  .blog-categories, .search-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .footer-contact { font-size: 0.94rem; }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 19px 8px 14px 8px;
    font-size: 0.93rem;
  }
  .cookie-banner__buttons { flex-direction: column; gap: 10px; }
  .cookie-modal__box { width: 97vw; padding: 22px 7vw 22px 7vw; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  header .container {
    flex-direction: row;
    padding: 11px 7px;
    gap: 14px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .blog-list, .pricing-table, .faq-list {
    gap: 13px;
  }
  .features-comparison ul { gap: 8px; }
  footer .container {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 0 7px;
  }
  footer nav a { font-size: 0.98rem; }
  .footer-contact img {
    width: 17px;
    height: 17px;
    margin-right: 4px;
  }
}

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

/* === TRANSITIONS & MICROINTERACTIONS === */
.card, .feature-grid > div, .pricing-table > div, .faq-list > div, .testimonial-card, .blog-list article {
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .pricing-table > div:hover, .faq-list > div:hover, .testimonial-card:hover, .blog-list article:hover {
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 8px 28px 0 var(--color-shadow);
}
.cta, .cookie-btn, .cookie-btn-reject, .cookie-settings-btn {
  transition: background 0.16s, color 0.13s, box-shadow 0.14s, transform 0.13s;
}

/* === MISCELLANEOUS === */
::-webkit-input-placeholder { color: #908c76; font-style: italic; }
:-moz-placeholder { color: #908c76; font-style: italic; }
::-moz-placeholder { color: #908c76; font-style: italic; }
:-ms-input-placeholder { color: #908c76; font-style: italic; }
::placeholder { color: #908c76; font-style: italic; }

hr {
  border: 0;
  height: 1.5px;
  background: var(--color-divider);
  margin: 18px 0;
}

/* === PRINT SAFE === */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body, main, .container { background: #fff !important; color: #212749 !important; }
}
