/* 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,
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, 
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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fdfdfe;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
  border: none;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #343944;
  background: #FAFAFE;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #254E70;
  letter-spacing: 0.01em;
  line-height: 1.16;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
}
p, ul, ol, li, blockquote {
  font-size: 1.06rem;
  color: #343944;
  line-height: 1.8;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
blockquote {
  background: #F3EDF7;
  border-left: 5px solid #B3BFD7;
  padding: 16px 24px;
  font-style: italic;
  border-radius: 10px;
  margin: 24px 0;
}
strong {
  font-weight: 600;
}

/* BRAND COLORS (pastel palette) */
:root {
  --primary: #254E70;
  --primary-light: #B5D6E7;
  --secondary: #9FD3C7;
  --secondary-light: #E1F5E8;
  --accent: #FFFFFF;
  --card: #F7FCFE;
  --lavender: #E8EAF6;
  --peach: #FFF4E6;
  --yellow: #FEF5C1;
  --pink: #FDE9EC;
  --shadow: rgba(60,80,120,0.12);
  --border: #E0E7F5;
  --text: #343944;
  --muted: #8890a0;
  --button: #A3CDD9;
  --button-hover: #7BCAC0;
  --cta-gradient-from: #B5D6E7;
  --cta-gradient-to: #E1F5E8;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  transition: box-shadow 0.3s;
}
.section:hover {
  box-shadow: 0 4px 36px rgba(60,80,120,0.18);
}
.cta-section {
  background: linear-gradient(120deg, var(--cta-gradient-from), var(--cta-gradient-to));
  text-align: center;
  padding: 60px 20px;
  border-radius: 28px;
  margin-bottom: 60px;
  box-shadow: 0 6px 30px var(--shadow);
}

/* FLEXBOX LAYOUTS */
.feature-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .card {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--shadow);
  flex: 1 1 240px;
  min-width: 220px;
  padding: 30px 24px 26px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
  text-align: center;
  position: relative;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  margin-bottom: 9px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 4px 28px rgba(60,80,120,0.18);
  transform: translateY(-2px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 0;
}
.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) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(60,80,120,0.08);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
  max-width: 640px;
  color: #232944;
}
.testimonial-card p {
  color: #343944;
  font-size: 1.09rem;
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--primary);
}
.star-rating {
  color: #FFD169;
  font-size: 1.25rem;
  letter-spacing: 1.5px;
}

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

/* HEADER */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  min-height: 64px;
  position: relative;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-right: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.18s;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
header nav a:hover, .footer-menu a:hover {
  background: var(--secondary-light);
  color: #34788b;
}
.cta-btn {
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  color: var(--primary);
  border-radius: 12px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(37, 78, 112, 0.12);
  border: none;
  margin-left: 12px;
  transition: background 0.22s, color 0.15s, box-shadow 0.16s;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, var(--button-hover), var(--peach));
  color: #1d2638;
  box-shadow: 0 4px 16px rgba(120,170,200,0.13);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, var(--secondary-light), var(--primary-light));
  border-radius: 0 0 48px 48px;
  padding: 80px 0 60px 0;
  margin-bottom: 60px;
  box-shadow: 0 2px 32px var(--shadow);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  font-size: 2.75rem;
}
.hero h2 {
  margin-top: -5px;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
}
.hero p {
  margin: 22px 0 32px 0;
  font-size: 1.13rem;
}
.hero .cta-btn {
  margin-top: 10px;
}

@media (max-width: 900px) {
  .container { max-width: 100%; }
  .content-grid { flex-direction: column; gap: 24px; }
  .feature-grid { flex-direction: column; gap: 20px; }
}
@media (max-width: 768px) {
  html { font-size: 15.5px; }
  header .container { flex-direction: row; flex-wrap: wrap; padding: 16px 10px 12px 10px; }
  nav, header nav { display: none; }
  .feature-grid, .card-container { flex-direction: column; gap: 20px; }
  .hero { padding: 50px 0 34px 0; border-radius: 0 0 32px 32px; }
  .cta-section { border-radius: 18px; }
  .section { margin-bottom: 38px; padding: 28px 10px; }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .hero { padding: 28px 0 12px 0; border-radius: 0 0 18px 18px; }
  .cta-section { padding: 28px 6px; }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  padding: 8px 14px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background 0.17s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary-light);
}
@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  nav, header nav { display: flex !important; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(255,255,255,0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-105vw);
  transition: transform 0.32s cubic-bezier(.65,-0.15,.67,1.13);
  box-shadow: 0 8px 40px rgba(44,60,90,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 24px 0 0;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 11px;
  background: var(--secondary-light);
  padding: 8px 18px 8px 12px;
  border: none;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--peach);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 26px;
  margin-top: 18px;
  width: 100vw;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 16px 0 8px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.13s;
  min-width: 100px;
}
.mobile-nav a:hover {
  background: var(--secondary-light);
  color: #34788b;
}

/* TABLES */
table {
  width: 100%;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--shadow);
  margin-bottom: 24px;
  border-collapse: separate;
  border-spacing: 0;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 1rem;
}
th {
  background: var(--secondary-light);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* LISTS */
ul, ol {
  margin-bottom: 24px;
  margin-left: 20px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0.25em;
  position: relative;
  line-height: 1.7;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  top: -1px;
}
ol li {
  list-style: decimal;
}

/* FOOTER */
footer {
  background: var(--lavender);
  padding-top: 30px;
  border-top: 1px solid var(--border);
  margin-top: 50px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0;
}
.footer-logo img {
  max-width: 74px;
  margin-bottom: 8px;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-menu a {
  font-size: 0.98rem;
  color: var(--primary);
  border-radius: 8px;
  padding: 4px 8px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: #3A4753;
}
.footer-contact .contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}
.footer-social a {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(30,50,80,0.08);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.14s;
}
.footer-social a:hover {
  box-shadow: 0 2px 10px rgba(44,78,130,0.11);
}
.footer-copyright {
  margin-top: 20px;
  font-size: 0.93rem;
  color: #869bbc;
  width: 100%;
}
@media (max-width: 1000px) {
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-social { margin-top: 12px; }
}

/* FORMS AND INPUTS */
input[type="search"], input[type="text"], textarea {
  padding: 10px 18px;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.02rem;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px var(--shadow);
  transition: border 0.18s;
}
input[type="search"]:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
}
input::placeholder, textarea::placeholder {
  color: #bccada;
  opacity: 1;
}

/* BUTTONS (general) */
button, .button {
  background: var(--button);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 11px;
  border: none;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, box-shadow 0.19s, color 0.17s;
  margin: 4px 8px 4px 0;
}
button:hover, .button:hover, button:focus {
  background: var(--button-hover);
  color: #18334b;
  box-shadow: 0 4px 14px #B5D6E7;
}

/* LINKS */
a {
  transition: color 0.18s, background 0.18s;
}
a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* MICROINTERACTIONS / HOVER */
.cta-section .cta-btn {
  margin-top: 22px;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
}
.cta-section .cta-btn:active {
  background: var(--primary-light);
}
.feature-grid > div:active,
.card:active {
  box-shadow: 0 2px 15px var(--secondary);
}

/* Z-INDEX LAYERS FOR OVERLAYS */
.mobile-menu { z-index: 1200; }
.mobile-menu-toggle { z-index: 1201; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--peach), var(--secondary-light));
  box-shadow: 0 -2px 16px var(--shadow);
  padding: 24px 22px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 18px;
  animation: cookie-in 0.7s cubic-bezier(.21,.99,.53,1.05);
}
@keyframes cookie-in {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.07rem;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: var(--primary-light);
  color: var(--primary);
  margin-right: 10px;
  margin-bottom: 6px;
  box-shadow: 0 2px 7px rgba(40,90,110,0.10);
  transition: background 0.17s, color 0.14s;
}
.cookie-banner button:last-child,
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-banner .cookie-btn.accept {
  background: var(--secondary);
  color: #254E70;
}
.cookie-banner .cookie-btn.reject {
  background: #ffd5d7;
  color: #E7284A;
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary-light);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover {
  opacity: 0.92;
  box-shadow: 0 4px 14px #E1F5E8;
  background: var(--secondary-light);
  color: #18334b;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(50,70,100,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.25s;
  animation: cookie-modal-in 0.65s cubic-bezier(.19,.99,.64,1.08);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: scale(0.89) translateY(60px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(37,78,112,0.14);
  padding: 36px 30px 26px 30px;
  min-width: 300px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-modal-close {
  font-size: 1.7rem;
  color: var(--primary);
  background: none;
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  transition: background 0.14s;
}
.cookie-modal-close:hover {
  background: var(--peach);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category-label {
  flex: 1;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 20px;
  background-color: #dee6f2;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  margin-right: 6px;
}
.cookie-toggle input[type="checkbox"]:checked {
  background-color: var(--secondary);
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 99px;
  transition: left 0.18s;
  box-shadow: 0 1px 2px rgba(30,60,80,0.07);
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 20px;
}
.cookie-legend {
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .cookie-banner { padding: 14px 6px 16px 6px; font-size: 0.95rem; }
  .cookie-modal-box { padding: 19px 8px; }
}

/* ACCESSIBILITY FOR FOCUS STATES */
button:focus, .cta-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* MISC SPACING AND FLEX */
.section, section, .card, .testimonial-card, .feature-grid > div, .cta-section, .content-wrapper {
  margin-bottom: 32px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

/* TAGS/BADGES in BLOG */
span {
  display: inline-block;
  background: var(--yellow);
  color: #726b5f;
  font-size: 0.93rem;
  border-radius: 8px;
  padding: 4px 14px;
  margin-right: 8px;
  margin-bottom: 3px;
}

/* Animations for subtle elements */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 30px var(--shadow);
  transform: translateY(-3px) scale(1.015);
}

/* Responsive utility classes */
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  .feature-grid > div, .card { padding: 16px 7px; }
  .testimonial-card { padding: 14px 6px; }
}

/* Print friendly */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; color: #232944 !important; }
}
