/* ===== 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, 
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.6;
  background: #F9F7F2;
  color: #1a2632;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #234D6B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #94C9A9;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
}

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ===== BRAND VARIABLES ===== */
:root {
  --primary: #234D6B;
  --secondary: #94C9A9;
  --accent: #F9F7F2;
  --dark: #1a2632;
  --success: #3ad29f;
  --danger: #ea4c4c;
  --shadow: 0 4px 20px rgba(35,77,107,.08),0 1.5px 5px 0 rgba(35,77,107,0.12);
  --border-radius: 18px;
}

/* ===== TYPOGRAPHY ===== */
body, p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--dark);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  font-weight: 900;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
h4,h5,h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
strong {
  font-weight: 700;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35,77,107,0.18);
  transform: translateY(-2px) scale(1.012);
}
.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: 20px;
  background: #F9F7F2;
  padding: 20px 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(35,77,107,.065);
  border-left: 6px solid var(--secondary);
  font-size: 1.05rem;
  color: var(--dark);
}
.testimonial-card p {
  color: var(--dark);
  font-size: 1.09rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 6px;
}
.testimonial-card div {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}
.ratings-summary {
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 24px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  box-shadow: 0 1px 4px rgba(35,77,107, 0.07);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 1px 16px rgba(35,77,107,.06);
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  min-height: 72px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
header nav .cta-nav {
  background: var(--primary);
  color: #fff !important;
  border-radius: 32px;
  padding: 10px 24px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-left: auto;
  box-shadow: 0 4px 18px rgba(35,77,107,0.07);
  transition: background 0.18s, transform 0.14s;
}
header nav .cta-nav:hover,
header nav .cta-nav:focus {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.04);
}
header nav img {
  margin-right: 10px;
  height: 35px;
  width: auto;
}

/* ===== MOBILE NAV BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  position: absolute;
  right: 24px;
  top: 13px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.16s, transform 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,77,107, 0.98);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.86,0,0.07,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  margin: 24px 18px 0 0;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.14s, transform 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #fff;
  min-width: 240px;
  max-width: 320px;
  height: 100vh;
  padding: 50px 24px 40px 32px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  box-shadow: -5px 0 24px rgba(35,77,107,.06);
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 13px 0 13px 10px;
  border-radius: 8px;
  background: transparent;
  display: block;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* ===== MAIN BUTTONS & CTA ===== */
.cta-main, .cta-process {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 16px 44px;
  margin: 20px 0 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .025em;
  font-size: 1.2rem;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(35, 77, 107, 0.12);
  cursor: pointer;
  transition: background 0.22s, transform 0.17s, box-shadow 0.15s;
}
.cta-main:hover,.cta-main:focus,
.cta-process:hover,.cta-process:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.036);
  box-shadow: 0 7px 20px rgba(35,77,107,0.18);
}

/* ===== BLOG ELEMENTS ===== */
.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.posts-grid article {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 18px 20px;
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.posts-grid article:hover {
  box-shadow: 0 8px 32px rgba(35,77,107,0.14);
  transform: scale(1.018);
}
.posts-grid h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.posts-grid a {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .95rem;
  padding-top: 4px;
  border-bottom: 1.8px solid var(--secondary);
  transition: color 0.12s, border 0.12s;
}
.posts-grid a:hover,
.posts-grid a:focus {
  color: var(--primary);
  border-bottom: 1.8px solid var(--primary);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.blog-tags span {
  background: var(--secondary);
  color: #fff;
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px 0;
}
.blog-search input[type="text"] {
  flex: 1 1 170px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  outline: none;
  transition: border 0.17s;
  background: #f8fafd;
}
.blog-search input[type="text"]:focus {
  border: 1.5px solid var(--primary);
}
.blog-search button {
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.14s, transform 0.12s;
}
.blog-search button:hover,
.blog-search button:focus {
  background: var(--secondary);
  transform: scale(1.09);
}
.blog-search button img {
  width: 20px;
  height: 20px;
}

.contact-short-info {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #F9F7F2;
  border-radius: 12px;
  padding: 13px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 800;
}
.contact-short-info img {
  width: 20px;
  height: 20px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 34px 0 22px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 7px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--secondary);
  color: #fff;
}
footer nav span {
  color: var(--accent);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.97rem;
  margin-left: 12px;
}
footer div {
  color: #cfddea;
  font-size: 0.96rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ===== LISTS AND ICONS ===== */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
}
ul li img, ol li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--secondary);
  border-radius: 9px;
  padding: 5px;
  margin-right: 4px;
  box-shadow: 0 2px 8px rgba(35,77,107,.07);
}

/* ===== SPACING ===== */
@media (min-width: 1200px) {
  .container {
    padding: 0 26px;
  }
  .content-wrapper {
    padding: 54px 44px;
  }
}

/* ===== RESPONSIVE DESIGN (Mobile-first) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 38px 14px;
  }
}
@media (max-width: 945px) {
  header nav {
    gap: 13px;
    min-height: 62px;
    padding: 0 10px;
  }
  .posts-grid {
    gap: 16px;
  }
  .card,
  .posts-grid article {
    min-width: 180px;
    max-width: 99%;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 32px 6px;
  }
  .section {
    padding: 30px 6px;
  }
  .container {
    padding: 0 3vw;
  }
  .content-grid,
  .card-container,
  .posts-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
    align-items: flex-start;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .testimonial-card {
    padding: 18px 10px;
  }
  .feature-item {
    gap: 10px;
  }
  footer .container {
    padding: 0 2vw;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .content-wrapper {
    padding: 18px 2px;
  }
  .section {
    margin-bottom: 30px;
  }
  .testimonial-card {
    font-size: .96rem;
    padding: 12px 5px;
    border-radius: 8px;
  }
  .contact-short-info {
    padding: 8px 9px;
    font-size: .94rem;
  }
  .blog-tags span {
    padding: 5px 7px;
    font-size: 0.89rem;
  }
  footer {
    padding: 18px 0 12px 0;
  }
}

/* ===== UTILS: ANIMATIONS, EFFECTS ===== */
@keyframes slideInUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 26px rgba(35,77,107,0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 32px 19px 32px;
  z-index: 5005;
  min-width: 270px;
  max-width: 94vw;
  animation: slideInUp 0.55s;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner p {
  color: var(--dark);
  margin-bottom: 4px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn,
.cookie-settings-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s, transform 0.12s;
  outline: none;
  margin-right: 6px;
}
.cookie-btn.reject {
  background: var(--danger);
}
.cookie-btn.accept {
  background: var(--success);
}
.cookie-settings-btn {
  background: var(--primary);
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  z-index: 6000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,77,107,0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.32s;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px 29px 34px;
  width: 420px;
  max-width: 94vw;
  box-shadow: 0 7px 32px rgba(35,77,107,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInUp 0.55s;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-category input[type='checkbox'] {
  transform: scale(1.28);
  accent-color: var(--secondary);
  cursor: pointer;
}
.cookie-essential {
  color: var(--dark);
  font-weight: 700;
  background: #e0ece6;
  border-radius: 10px;
  padding: 4px 12px 4px 10px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--secondary);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 4px;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--danger);
}
.cookie-modal-footer {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 520px) {
  .cookie-banner {
    padding: 16px 11px 11px 11px;
    font-size: 0.97rem;
  }
  .cookie-modal-inner {
    padding: 18px 5px 16px 7px;
    width: 98vw;
    max-width: 100vw;
  }
}

/* ===== BOLD/GEOMETRIC/ICONIC ===== */
.card, .testimonial-card, .posts-grid article {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: none;
  position: relative;
}
.card::before, .testimonial-card::before, .posts-grid article::before {
  content: '';
  position: absolute;
  left: -9px; top: -9px;
  width: 45px; height: 45px;
  background: var(--secondary);
  opacity: 0.05;
  border-radius: 48% 44% 36% 54%;
  z-index: 1;
  pointer-events: none;
  display: none;
}
.card:hover::before, .testimonial-card:hover::before, .posts-grid article:hover::before {
  display: block;
  animation: fadeIn 0.23s;
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
::-webkit-scrollbar {
  width: 11px;
  background: #E0ECE6;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 7px;
}

/* ===== VISUAL GEOMETRIC ELEMENTS (decorative) ===== */
@media (min-width: 900px) {
  body::after {
    content: '';
    position: fixed;
    z-index: 0;
    right: -80px;
    top: 130px;
    width: 220px;
    height: 220px;
    background: var(--secondary);
    opacity: 0.10;
    border-radius: 36% 59% 51% 49%/54% 33% 67% 46%;
    pointer-events: none;
    filter: blur(0.5px);
  }
}

/* ===== MICRO-INTERACTIONS ===== */
a, button, .card, .posts-grid article, .cta-main, .cta-process {
  transition: background 0.19s, box-shadow 0.19s, color 0.15s, transform 0.13s;
}

/* ===== FOCUS STATES & ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===== PRINT FRIENDLY ===== */
@media print {
  header,
  footer,
  .mobile-menu,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  .container, .content-wrapper {
    box-shadow: none !important;
    background: none !important;
  }
}
