/* CSS RESET & BASE ------------------------------------------------------ */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F9FB;
  color: #363944;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #22589B;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #1B223A;
  text-decoration: underline;
}

/* ROOT COLORS & FONTS --------------------------------------------------- */
:root {
 --primary: #1B223A;
 --primary-dark: #151930;
 --secondary: #F0F4FC;
 --background: #F7F9FB;
 --accent: #437FC7;
 --accent-dark: #22589B;
 --pastel-blue: #E2E8FB;
 --pastel-pink: #FFE9F3;
 --pastel-green: #E6F7F2;
 --pastel-yellow: #FFF8DF;
 --pastel-purple: #F3E7FB;
 --font-display: 'Montserrat', Arial, sans-serif;
 --font-body: 'Open Sans', Arial, sans-serif;
}

/* TYPOGRAPHY ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
p, ul, ol {
  color: #363944;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 9px;
}
.subtitle {
  color: #4B5070;
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: var(--accent-dark);
}

/* LAYOUT --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.header .container, 
footer .container {
  align-items: center;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--pastel-purple);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 2px 16px 0 rgba(175, 172, 204, 0.07);
}

/* FLEX CONTAINERS ------------------------------------------------------ */
.card-container, .feature-list, .articles-grid, .team-list, .testimonial-card, .search-categories ul, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CARD STYLES ---------------------------------------------------------- */
.card, .feature-list > div, .feature-list > li, .team-list > div, .articles-grid > article, .testimonial-card > div {
  background: var(--secondary);
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(175, 172, 204, 0.07);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 100%;
}
.card:hover, .feature-list > div:hover, .feature-list > li:hover, .team-list > div:hover, .articles-grid > article:hover {
  box-shadow: 0 6px 22px 0 rgba(110, 126, 170, 0.15);
  transform: translateY(-7px) scale(1.027);
}

/* HERO SECTION --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-pink) 90%);
  padding: 56px 0 48px 0;
  margin-bottom: 0;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 38px 0 rgba(145,156,207, 0.09);
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 12px;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.hero .cta-primary {
  margin-top: 12px;
}

/* HEADER & NAV --------------------------------------------------------- */
header {
  background: var(--background);
  padding-top: 14px;
  position: sticky;
  top: 0;
  z-index: 21;
  box-shadow: 0 2px 10px 0 rgba(180, 170, 220, 0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
header img[alt="Pristine Whisk"] {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0 4px 0;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.cta-primary {
  background: linear-gradient(90deg, #E2EDFA 30%, #F9EAFB 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 26px;
  padding: 13px 34px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(166, 186, 206, 0.06);
  transition: background 0.20s, color 0.20s, box-shadow 0.20s, transform 0.15s;
  text-align: center;
  margin-top: 0;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #FFF8DF 10%, #FFE9F3 100%);
  color: var(--accent-dark);
  box-shadow: 0 8px 28px 0 rgba(120, 150, 220, 0.15);
  transform: translateY(-2px) scale(1.03);
}

/* FLEX: FEATURE LIST, TEAM, ARTICLES ------------------------------------ */
.feature-list, .team-list, .articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  justify-content: flex-start;
}
.feature-list > div, .feature-list > li {
  flex: 1 1 242px;
  min-width: 242px;
  max-width: calc(33% - 32px);
  align-items: flex-start;
  background: var(--secondary);
}
.articles-grid > article {
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 33%;
  background: var(--pastel-blue);
  border: 1px solid #e4eaf3;
}
.articles-grid > article h3 {
  margin-bottom: 8px;
}
.articles-grid > article a {
  color: var(--accent-dark);
  font-weight: 600;
}
.articles-grid > article a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* SEARCH & CATEGORIES ----------------------------------------------------*/
.search-categories {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  margin-top: 28px;
}
.search-categories input[type="search"] {
  flex: 1;
  padding: 13px 18px;
  border-radius: 30px;
  border: 1px solid #e4eaf3;
  background: var(--pastel-green);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-right: 10px;
  box-shadow: 0 2px 12px 0 rgba(180,220,200,0.03);
  outline: none;
  transition: border-color 0.18s;
}
.search-categories input[type="search"]:focus {
  border-color: var(--accent-dark);
  background: #FFFFFF;
}
.search-categories ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}
.search-categories li a {
  background: var(--pastel-yellow);
  padding: 6px 18px;
  border-radius: 18px;
  font-size: 0.99rem;
  color: var(--primary);
  font-weight: 600;
  transition: background 0.22s, color 0.18s;
}
.search-categories li a:hover {
  background: var(--pastel-blue);
  color: var(--accent-dark);
}

/* TESTIMONIAL CARDS ----------------------------------------------------- */
.testimonial-card {
  background: var(--pastel-green);
  border-radius: 22px;
  box-shadow: 0 2px 10px 0 rgba(145,156,207, 0.07);
  gap: 20px;
  padding: 24px;
  margin-top: 6px;
  margin-bottom: 20px;
  color: #181A24;
}
.testimonial-card > div {
  min-width: 220px;
  flex: 1 1 220px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(160,166,200,0.05);
  padding: 18px 12px 18px 18px;
  margin: 0 !important;
  color: #181A24;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.stars span {
  color: #FFD86E;
  font-family: var(--font-display);
  font-size: 1.24em;
  letter-spacing: 0.06em;
}
/* Ensure testimonial cards texts have very high contrast */
.testimonial-card p, .testimonial-card strong, .testimonial-card .stars span {
  color: #181A24 !important;
}

/* FOOTER --------------------------------------------------------------- */
footer {
  background: var(--pastel-blue);
  border-top: 2px solid #E2E8FB;
  padding: 35px 0 22px 0;
  font-size: 0.99rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact img {
  width: 1.2em;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.85;
}

/* MAP PLACEHOLDER ------------------------------------------------------- */
.map-placeholder {
  border-radius: 14px;
  background: var(--pastel-blue);
  color: var(--primary);
  text-align: center;
  padding: 28px 0;
  font-size: 1.04rem;
  box-shadow: 0 2px 14px 0 rgba(180, 170, 220, 0.04);
  margin-top: 14px;
}

/* BUTTONS & INTERACTIVE ------------------------------------------------ */
button, .cta-primary {
  font-family: var(--font-display);
}
button {
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 22px;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, color 0.15s, box-shadow 0.19s;
  box-shadow: 0 1px 6px 0 rgba(90,130,160,0.07);
}
button:hover, button:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(60,90,140,0.13);
}

/* MOBILE NAVIGATION & MENU --------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  z-index: 44;
  transition: background .2s;
}
.mobile-menu-toggle:hover {
  background: var(--accent-dark);
}
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(240,244,252,0.95);
  box-shadow: 0 8px 28px 0 rgba(23,35,66,0.08);
  transition: transform 0.37s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.25s;
  transform: translateX(-100vw);
  opacity: 0.1;
}
.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 700;
  border: none;
  outline: none;
  position: absolute;
  top: 22px; right: 28px;
  z-index: 13;
  opacity: 0.95;
  padding: 8px 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 90px 0 0 44px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.22rem;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 16px;
  transition: background 0.17s, color 0.16s;
  width: 100%;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: #fff;
  padding-left: 10px;
}
@media (max-width: 980px) {
  .container {
    max-width: 94vw;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 870px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 9px;
  }
  header .container {
    gap: 6px;
  }
  .main-nav {
    display: none;
  }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    background: var(--background);
    width: 100vw;
    padding: 32px 0;
    position: fixed;
    z-index: 34;
    top: 0;
    left: 0;
  }
  .cta-primary {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 40px 0 30px 0;
    border-radius: 0 0 22px 22px;
  }
  .hero h1 {
    font-size: 1.60rem;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  .feature-list,
  .team-list,
  .articles-grid,
  .testimonial-card,
  .footer-contact {
    flex-direction: column;
    gap: 18px !important;
  }
  .testimonial-card {
    padding: 12px;
    gap: 8px !important;
  }
  .card, .feature-list > div, .feature-list > li, .team-list > div, .articles-grid > article, .testimonial-card > div {
    min-width: 0;
    max-width: 100%;
    flex: 1 0 100%;
    padding: 17px 8px 15px 13px;
  }
  .search-categories {
    flex-direction: column;
    gap: 18px;
  }
  .search-categories input[type="search"] {
    min-width: 90px;
    font-size: 1rem;
  }
  .footer-contact {
    gap: 5px;
  }
  section {
    padding: 24px 6px;
    margin-bottom: 40px;
  }
  .text-section {
    padding: 18px 9px;
  }
  .map-placeholder {
    padding: 16px 2px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .hero {
    padding: 20px 0 10px 0;
  }
  .cta-primary, button {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
  .search-categories input[type="search"] {
    width: 100%;
    margin-right: 0;
  }
}

/* COOKIE CONSENT BANNER ------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-yellow), var(--pastel-blue));
  color: var(--primary);
  box-shadow: 0 -2px 24px 0 rgba(120,110,170,0.13);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 20px 32px 21px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform .4s cubic-bezier(.71,-0.03,.21,1.12), opacity .19s;
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-consent-banner button, .cookie-consent-banner .cta-primary {
  font-size: 1rem;
  font-family: var(--font-display);
  border: none;
  margin: 0 0 0 0;
  padding: 9px 18px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(170,180,190,0.06);
  transition: background 0.14s;
}
.cookie-consent-banner .cta-primary {
  background: var(--accent-dark);
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus, .cookie-consent-banner .cta-primary:hover {
  background: var(--primary);
}
.cookie-consent-banner .cookie-settings {
  background: var(--pastel-purple);
  color: var(--primary);
  border: 1px solid var(--accent-dark);
  box-shadow: none;
}
.cookie-consent-banner .cookie-settings:hover {
  background: var(--accent);
  color: #fff;
}

/* COOKIE MODAL ---------------------------------------------------------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 36px 0 rgba(80,100,160,0.18);
  z-index: 200;
  min-width: 340px;
  max-width: 97vw;
  padding: 32px 26px 24px 26px;
  text-align: left;
  animation: fadeinmodal 0.33s;
  opacity: 1;
}
@keyframes fadeinmodal {
  from { opacity: 0; transform: translate(-50%, -60%) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal.active {
  display: block;
}
.cookie-modal h2 {
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-family: var(--font-display);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--primary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 23px;
  height: 23px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cookie-modal .cookie-description {
  color: #6D6F7E;
  font-size: 0.97rem;
  margin-left: 38px;
  margin-bottom: 11px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 26px;
}
.cookie-modal .cta-primary {
  background: var(--accent-dark);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  color: var(--accent-dark);
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  padding: 4px 9px;
  opacity: 0.74;
}
.cookie-modal .close-modal:hover {
  color: var(--primary);
  opacity: 1;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 13px 5px 13px 11px;
    min-width: 0;
    max-width: 99vw;
  }
}

/* MICRO INTERACTIONS ---------------------------------------------------- */
.cta-primary, .card, .feature-list > div, .feature-list > li, .team-list > div, .main-nav a, .articles-grid > article, .testimonial-card > div, button {
  transition: box-shadow 0.22s, background 0.18s, color 0.17s, transform 0.18s;
}
.card:hover, .feature-list > div:hover, .team-list > div:hover, .articles-grid > article:hover, .testimonial-card > div:hover {
  box-shadow: 0 7px 24px 0 rgba(140,160,210,0.13);
  transform: translateY(-4px) scale(1.022);
}
.cta-primary:active {
  transform: scale(0.97);
}
.main-nav a:active, .mobile-nav a:active {
  transform: scale(0.97);
}

/* MISC. UTILS ----------------------------------------------------------- */
::-webkit-input-placeholder { color: #7E97BB; }
:-moz-placeholder { color: #7E97BB; }
::-moz-placeholder { color: #7E97BB; }
:-ms-input-placeholder { color: #7E97BB; }
::placeholder { color: #7E97BB; opacity:1; }

.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  border:0!important;
}

/* END OF CSS ------------------------------------------------------------ */