/* ----------------------------------------
   CSS RESET & BASELINE
------------------------------------------*/
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #FAFAFB;
  color: #294051;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #24526B;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:hover, a:focus {
  color: #6E9E57;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
b, strong {
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1px solid #e0e5ed;
  margin: 32px 0;
}

/* Font Faces */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24526B;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-top: 32px;}
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, ul, ol {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  margin-bottom: 12px;
  font-size: 1.125rem;
}

/* ----------------------------------------
   COLOR VARIABLES (Soft Pastel Palette)
------------------------------------------*/
:root {
  --primary: #24526B;
  --secondary: #EDE3D4;
  --accent: #93C47D;
  --pastel-blue: #c5dffb;
  --pastel-pink: #ffe1ef;
  --pastel-mint: #c2f1e7;
  --pastel-lavender: #e6e6ff;
  --pastel-yellow: #fff8d4;
  --light-bg: #FAFAFB;
  --card-bg: #FFF;
  --card-shadow: 0 2px 14px 0 rgba(70,76,95,0.07);
  --dreamy-gradient: linear-gradient(120deg, #e6e6ff 0%, #f9eeff 100%);
  --dark-text: #1A2C39;
  --muted-text: #6A7682;
  --shadow-elevated: 0 6px 32px 0 rgba(36,82,107,0.07);
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --mobile-nav-bg: #F7F9FC;
}

/* ----------------------------------------
   LAYOUT CONTAINERS
------------------------------------------*/
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--dreamy-gradient);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 8px;
    border-radius: var(--border-radius-sm);
  }
  .container { padding: 0 8px; }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px) scale(1.016);
}
.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--card-shadow);
  color: var(--dark-text);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 700px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--dark-text);
}
.testimonial-card:hover {
  box-shadow: 0 4px 28px 0 rgba(146,176,160,0.13);
  background: var(--pastel-mint);
}

/* Minimum space between all cards */
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Lists with icons (services, features) */
ul li img, ol li img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
  background: var(--pastel-blue);
  border-radius: 8px;
  padding: 3px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
}

/* ----------------------------------------
   BUTTONS & CTA
------------------------------------------*/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.16rem;
  border-radius: 32px;
  padding: 0.82em 2.2em;
  border: none;
  cursor: pointer;
  min-width: 180px;
  box-shadow: 0 1px 10px 0 rgba(146,176,160,0.09);
  transition: background 0.2s, box-shadow 0.2s, color 0.19s, transform 0.12s;
  margin-top: 12px;
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 28px 0 rgba(36, 82, 107, 0.19);
}
.cta.secondary {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--primary);
}
button.cta {
  border: none;
}

/* ----------------------------------------
   NAVIGATION
------------------------------------------*/
header {
  background: var(--pastel-blue);
  box-shadow: 0 2px 18px 0 rgba(36,82,107,0.03);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 11px;
  border-radius: 22px;
  position: relative;
  transition: background 0.14s, color 0.14s;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--pastel-pink);
  color: var(--primary);
}
.main-nav > a.cta {
  margin-left: auto;
  margin-right: 0;
}
.main-nav > a img {
  height: 40px; width: auto; vertical-align: middle;
  margin-right: 12px;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 940px) {
  .main-nav > a:not(:first-child):not(.cta) {
    font-size: 0.97rem;
    padding: 4px 6px;
  }
}

/* ----------------------------------------
   MOBILE NAVIGATION
------------------------------------------*/
.mobile-menu-toggle {
  display: none; /* Default hidden */
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 19px;
    right: 20px;
    z-index: 1003;
    width: 46px;
    height: 46px;
    border: none;
    background: var(--pastel-mint);
    color: var(--primary);
    border-radius: 50%;
    font-size: 2.2rem;
    line-height: 44px;
    box-shadow: 0 2px 10px 0 rgba(36,82,107,0.06);
    transition: background 0.21s, color 0.17s, box-shadow 0.19s;
    cursor: pointer;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: var(--accent);
    color: #fff;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mobile-nav-bg);
  z-index: 1004;
  transform: translateX(100vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.42s cubic-bezier(.7,.1,.31,1);
  box-shadow: 0 0 44px 0 rgba(36,82,107,0.13);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  display: block;
  margin-left: auto;
  margin-right: 18px;
  margin-top: 18px;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1005;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 65px 0 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 22px;
  outline: none;
  transition: background 0.17s, color 0.17s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-pink);
  color: var(--accent);
}

@media (min-width:901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* ----------------------------------------
   FOOTER
------------------------------------------*/
footer {
  background: var(--pastel-blue);
  padding: 38px 0 18px 0;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 2px 8px;
  border-radius: 12px;
}
footer nav a:hover, footer nav a:focus {
  background: var(--accent);
  color: #fff;
}
footer a img {
  width: 28px;
  height: 28px;
  margin-right: 1px;
  border-radius: 9px;
  background: var(--pastel-mint);
  box-shadow: 0 1px 6px 0 rgba(36,82,107,0.07);
}
footer div:last-child {
  color: var(--muted-text);
  font-size: 0.97rem;
  margin-top: 2px;
}

@media (max-width: 768px) {
  footer .container, footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ----------------------------------------
   FORMS (generic, for future expansion)
------------------------------------------*/
input, select, textarea {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #E7E7EF;
  padding: 12px 14px;
  box-shadow: 0 1px 4px 0 rgba(36,82,107,0.03);
  outline: none;
  background: #fff;
  color: #1A2C39;
  transition: border-color 0.16s, box-shadow 0.16s;
  margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 10px 0 rgba(36,82,107,0.11);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: var(--primary);
  font-size: 1.08rem;
}

/* ----------------------------------------
   COOKIE CONSENT BANNER
------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff6e1;
  color: var(--primary);
  box-shadow: 0 -2px 16px 0 rgba(36,82,107,0.14);
  z-index: 4000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 22px 18px 18px 18px;
  font-size: 1.04rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  animation: cookie-slide-in 0.85s cubic-bezier(.65,0,.19,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  border: none;
  border-radius: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 8px;
  padding: 9px 24px;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.16s;
}
.cookie-banner .accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .accept:hover,.cookie-banner .accept:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .reject:hover,.cookie-banner .reject:focus {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-banner .settings {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .settings:hover,.cookie-banner .settings:focus {
  background: var(--primary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(60,68,97,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 38px 30px 28px 30px;
  width: 92vw;
  max-width: 420px;
  box-shadow: 0 8px 48px 0 rgba(36,82,107,0.21);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-in 0.4s cubic-bezier(.65,0,.19,1);
}
@keyframes modal-in {
  from { transform: translateY(-44px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #efefef;
  font-size: 1.07rem;
}
.cookie-category.essential {
  font-weight: 700;
  color: var(--primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 26px;
  border: none;
  background: none;
  font-size: 1.65rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* ----------------------------------------
   MISC: Animations, transitions, effects
------------------------------------------*/
section, .section, .card, .testimonial-card, .card-container {
  transition: box-shadow 0.25s, background 0.21s, border-radius 0.14s;
}
.card, .testimonial-card {
  animation: fadeInCard 1s cubic-bezier(.65,0,.19,1);
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------
   RESPONSIVE DESIGN
------------------------------------------*/
@media (max-width: 768px) {
  body {
    font-size: 0.99rem;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.41rem;
    margin-top: 20px;
  }
  .card, .testimonial-card {
    padding: 15px 8px;
    border-radius: var(--border-radius-sm);
  }
  .main-nav > a img {
    height: 34px;
  }
}
@media (max-width: 480px) {
  .cta, .cta.primary, .cta.secondary {
    font-size: 1rem;
    padding: 0.72em 1.3em;
    min-width: 120px;
  }
  footer {
    padding: 18px 0 10px 0;
    font-size: 0.95rem;
  }
}

/* ----------------------------------------
   UTILITY CLASSES
------------------------------------------*/
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-space-between { display: flex; align-items: center; justify-content: space-between; }
.gap-20 { gap: 20px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.rounded { border-radius: var(--border-radius); }
.bg-pastel-blue { background: var(--pastel-blue) !important; }
.bg-pastel-pink { background: var(--pastel-pink) !important; }
.bg-pastel-mint { background: var(--pastel-mint) !important; }
.bg-pastel-lavender { background: var(--pastel-lavender) !important; }

/* ----------------------------------------
   MISCELLANEOUS BRAND DETAILS
------------------------------------------*/
::-webkit-scrollbar {width: 7px; background: #f2f8fd;}
::-webkit-scrollbar-thumb {background: #c5dffb; border-radius: 6px;}

/* Icon fix for card icons */
ul li img, ol li img {
  filter: drop-shadow(0 2px 4px rgba(36,82,107,0.01));
}

/* Ensures no overlap, always flex for all main containers */
main > section > .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section > .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----------------------------------------
   VISUAL HIERARCHY & SPACING
------------------------------------------*/
h1 + p,
h2 + p,
h3 + p { margin-top: -10px; margin-bottom: 18px; }

.section + .section {margin-top: 20px;}

@media (max-width: 640px) {
  .testimonial-card, .card {
    min-width: 0;
    max-width: 99vw;
  }
}

/* ----------------------------------------
   PRINT STYLES
------------------------------------------*/
@media print {
  * {
    background: none !important;
    color: #222 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
