/* ===========================
   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, 
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; }
*, *:before, *:after { box-sizing: inherit; } 

body {
  background: #F8F6F3;
  color: #233A53;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* ===========================
   Typography
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  color: #233A53;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.15rem; }
p, ul, ol, li, blockquote { font-family: 'Inter', Arial, sans-serif; font-size: 1rem; color: #233A53; }
p { margin-bottom: 16px; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 8px; line-height: 1.6; }
blockquote {
  font-size: 1.15rem;
  color: #233A53;
  font-style: italic;
  background: #EAF0F6;
  border-left: 4px solid #7DA97B;
  margin: 0 0 12px 0;
  padding: 12px 20px;
  border-radius: 8px;
}

b, strong { font-weight: 600; color: #233A53; }
a {
  color: #233A53;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #7DA97B;
  text-decoration: underline;
}

/* ===========================
   Layout Containers
=========================== */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35, 58, 83, 0.08);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(35, 58, 83, 0.12);
}

.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;
}
.text-section {
  background: #f2f6fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35, 58, 83, 0.07);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  height: 32px;
  width: 32px;
  margin-bottom: 10px;
}
.feature:hover {
  box-shadow: 0 4px 18px rgba(35, 58, 83, 0.13);
  transform: translateY(-2px) scale(1.02);
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-left: 5px solid #7DA97B;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(35,58,83,0.06);
}
.testimonial-card blockquote {
  margin: 0;
  background: transparent;
  border: none;
  font-style: italic;
  color: #233A53;
  font-size: 1rem;
}
.testimonial-client {
  font-weight: 500;
  color: #7DA97B;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-post-preview {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35,58,83,0.07);
  padding: 20px;
  flex: 1 1 280px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.blog-post-preview:hover {
  box-shadow: 0 4px 16px rgba(35,58,83,0.13);
}
.categories-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #7DA97B;
}
.categories-filter a {
  color: #233A53;
  border-bottom: 1px solid #7DA97B;
  padding: 2px 4px;
  border-radius: 2px;
  margin-right: 4px;
  transition: background 0.15s;
}
.categories-filter a:hover {
  background: #7DA97B21;
  color: #7DA97B;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list b {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #233A53;
}


/* ===========================
   CTA, Buttons, Forms
=========================== */
.cta, .button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 32px;
  background: #233A53;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35,58,83,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: center;
  margin-bottom: 10px;
}
.cta.primary, .button.primary, button.primary, input.primary[type="submit"] {
  background: #7DA97B;
  color: #fff;
}
.cta.secondary {
  background: #F8F6F3;
  color: #233A53;
  border: 2px solid #7DA97B;
}
.cta:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #2f5e89;
  color: #fff;
  box-shadow: 0 4px 18px rgba(35,58,83,0.16);
  transform: translateY(-2px) scale(1.01);
}
.cta.primary:hover {
  background: #233A53;
}
.cta.secondary:hover {
  background: #eaf0f6;
  color: #233A53;
}
button:focus, .cta:focus, .button:focus, input[type="submit"]:focus {
  outline: 3px solid #7DA97B;
  outline-offset: 2px;
  background: #7DA97B;
  color: #fff;
}

input, textarea {
  font-family: 'Inter', Arial, sans-serif;
  border: 1px solid #D9E2EC;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  outline: 2px solid #7DA97B;
  border-color: #7DA97B;
}

/* ===========================
   Header & Navigation
=========================== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(35,58,83,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-size: 1rem;
  color: #233A53;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: #eaf0f6;
  color: #7DA97B;
}
.cta.primary {
  margin-left: 16px;
  box-shadow: 0 2px 10px rgba(125, 169, 123, 0.10);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #233A53;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 50;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #7DA97B;
  color: #fff;
  outline: 2px solid #7DA97B;
}

/* ===========================
   Mobile Menu Styles
=========================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #233A53;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px;
  z-index: 1080;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 4px 0 28px rgba(35,58,83,0.20);
  min-width: 240px;
  max-width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 30px;
  padding: 8px 12px;
  border-radius: 6px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #7DA97B;
  background: #152233;
  outline: 2px solid #7DA97B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover {
  background: #7DA97B;
  color: #233A53;
}

@media (max-width: 1020px) {
  .container { max-width: 100%; }
  nav { gap: 14px; }
}
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  nav { gap: 8px; }
  .cta.primary { min-width: 120px; padding: 13px 16px; }
}

/* Hide desktop nav and cta on mobile, show burger */
@media (max-width: 768px) {
  header .container {
    gap: 8px;
  }
  nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
}
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   Main Content/Misc
=========================== */
main {
  flex: 1 0 auto;
  padding-top: 36px;
}
section {
  background: transparent;
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
section .container {
  width: 100%;
}

ul img, li img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
  vertical-align: bottom;
}

/* ===========================
   Footer
=========================== */
footer {
  background: #233A53;
  color: #fff;
  padding: 42px 0 32px 0;
  font-size: 16px;
  margin-top: 32px;
}
footer .container {
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-branding img {
  height: 34px;
}
.footer-branding span {
  font-size: 1rem;
  color: #EAF0F6;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #EAF0F6;
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  padding: 2px 8px;
}
.footer-nav a:hover {
  background: #7DA97B;
  color: #233A53;
}
.footer-contact {
  color: #c3ccd8;
  font-size: 0.96rem;
  margin-top: 8px;
  line-height: 1.7;
  word-break: break-word;
}

@media (max-width: 992px) {
  footer .container { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-branding { margin-bottom: 6px; }
}

/* ===========================
   Cookie Consent Banner
=========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 5000;
  background: #233A53;
  color: #fff;
  box-shadow: 0 -4px 16px rgba(35,58,83,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  gap: 30px;
  font-size: 0.97rem;
  animation: slideUpBanner 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(120px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-btn {
  background: #7DA97B;
  color: #fff;
  border: none;
  border-radius: 18px;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 22px;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s;
  margin-bottom: 0;
}
.cookie-banner-btn.reject {
  background: #fff;
  color: #233A53;
  border: 2px solid #7DA97B;
}
.cookie-banner-btn.settings {
  background: #233A53;
  color: #fff;
  border: 2px solid #7DA97B;
  margin-right: 8px;
}
.cookie-banner-btn:hover,
.cookie-banner-btn:focus {
  background: #45a075;
  color: #fff;
  outline: none;
}
.cookie-banner-btn.reject:hover {
  background: #eaf0f6;
  color: #233A53;
}
.cookie-banner-btn.settings:hover {
  background: #eaf0f6;
  color: #233A53;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5500;
  background: rgba(35,58,83,0.87);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-content {
  background: #fff;
  color: #233A53;
  border-radius: 18px;
  padding: 36px 30px 28px 32px;
  box-shadow: 0 6px 32px rgba(35,58,83,0.18);
  max-width: 380px;
  min-width: 260px;
  width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: scaleUpModal 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes scaleUpModal {
  from { transform: scale(0.7); opacity: 0; } 
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eaf0f6;
}
.cookie-category:last-child { border: none; }
.cookie-category label {
  font-weight: 500;
  color: #233A53;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: #233A53;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #7DA97B;
  outline: none;
}

.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e2e9f3;
  border-radius: 16px;
  position: relative;
  transition: background 0.2s;
  outline: none;
  margin-left: 14px;
}
.cookie-switch:checked {
  background: #7DA97B;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: transform 0.18s, background 0.18s;
}
.cookie-switch:checked:before {
  transform: translateX(18px);
}
.cookie-switch[disabled] {
  background: #9FA6B2;
  cursor: not-allowed;
}
.cookie-switch[disabled]:before {
  background: #eee;
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 990px) {
  .feature-grid, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 24px 0 24px 0;
    margin-bottom: 38px;
  }
  .section {
    margin-bottom: 36px;
    padding: 26px 8px;
  }
  .feature, .card, .blog-post-preview {
    min-width: 90vw;
    max-width: 100vw;
    padding: 18px 12px;
  }
  .feature-grid, .blog-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    padding: 14px 10px;
    gap: 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .content-wrapper { gap: 14px; }
  .container { padding: 0 4vw; }
  .footer-branding img { height: 27px; }
  .footer-branding span { font-size: 0.87rem; }
}

/* Flex-direction column mobile for text-image section */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ===========================
   Microinteractions & Effects
=========================== */
.card, .feature, .testimonial-card, .blog-post-preview, .cookie-modal-content {
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:active, .feature:active, .testimonial-card:active, .blog-post-preview:active {
  transform: scale(0.99);
  box-shadow: 0 2px 10px rgba(125,169,123,0.12);
}

/* ===========================
   Various Utility Classes
=========================== */
.hide { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }

/*****
 * End of Radiant Field CSS
*****/
