/* Kamira Scandinavian Clean CSS Theme - Responsive, Flexbox Only */
/* CSS Reset & Normalize */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; font-weight: normal; }
body { line-height: 1.6; background: #FAFAF9; color: #244257; min-height: 100vh; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: #244257; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #79A887; outline: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* Brand Fonts */
h1, h2, h3 { font-family: 'Roboto Slab', Georgia, serif; }

/* Typography Scale */
h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 700; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.25; font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; margin-bottom: 10px; }
h4, h5, h6 { font-family: 'Open Sans', Arial, sans-serif; font-size: 1.1rem; font-weight: 600; }
p, li, dd, dt { font-size: 1rem; margin-bottom: 12px; }
ul, ol { margin-left: 22px; }

/* Container */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 880px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* Header & Nav */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(36,66,87,0.06);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo-link img { height: 44px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #244257;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  margin-right: 6px;
  transition: border 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  border-bottom: 2px solid #79A887;
  color: #79A887;
}
.cta-btn {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  background: #79A887;
  color: #fff;
  border-radius: 28px;
  padding: 10px 28px;
  font-size: 1.09rem;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(36,66,87,0.05);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.17s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #56876d;
  box-shadow: 0 3px 15px rgba(36,66,87,0.09);
  transform: translateY(-1px) scale(1.025);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #244257;
  cursor: pointer;
  margin-left: 16px;
  padding: 8px 12px;
  transition: background 0.15s;
  z-index: 60;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #79A887;
}

/* Mobile Burger Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #244257f4;
  z-index: 1001;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 32px;
  padding-left: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.55,.04,.97,.58);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 10px 18px 30px 0;
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 9px 14px;
  transition: background 0.12s;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #56876d44;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Roboto Slab', Georgia, serif;
  padding: 10px 0;
  margin-right: 0;
  border: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #79A887;
}

/* Hero Section */
.hero {
  background: #EFEFEF;
  border-bottom: 1px solid #d3e1d9;
  padding: 38px 0 24px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

/* Section and Card Layout Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 9px rgba(36,66,87,0.08);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 256px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
}
.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;
  background: #fff;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(36,66,87,0.07);
  margin-bottom: 20px;
  margin-top: 10px;
  font-family: 'Roboto Slab', Georgia, serif;
  border-left: 5px solid #79A887;
  color: #244257;
  font-size: 1.08rem;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 3px 24px rgba(36,66,87,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features Section */
.features {
  margin-bottom: 60px;
  padding: 40px 0 20px 0;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 20px;
}
.feature {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(36,66,87,0.07);
  padding: 26px 18px 24px 18px;
  flex: 1 1 210px;
  min-width: 224px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 11px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 36px rgba(79,173,136,0.11);
  transform: translateY(-2px) scale(1.02);
}

/* FAQ Section */
.faq dl {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq dt {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #244257;
  font-weight: 700;
  margin-bottom: 7px;
  font-size: 1.08rem;
}
.faq dd {
  font-size: 1rem;
  margin-bottom: 0;
  color: #244257;
  margin-left: 12px;
}

/* Blog List Styles */
.blog-list .post-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
}
.post-preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(36,66,87,0.06);
  padding: 20px 16px 16px 16px;
  flex: 1 1 230px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.16s, transform 0.17s;
}
.post-preview:hover, .post-preview:focus-within {
  box-shadow: 0 4px 18px rgba(79,173,136,0.10);
  transform: translateY(-1px) scale(1.015);
}

/* Contact Info Section */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 28px 0;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #F5F7F6;
  border-radius: 11px;
  padding: 12px 20px;
  min-width: 220px;
}
.contact-info img {
  width: 25px;
  height: 25px;
}

/* CTA Section */
.cta-section {
  background: #79A887;
  color: #fff;
  text-align: center;
  border-radius: 16px;
  margin-top: 55px;
  margin-bottom: 55px;
  padding: 48px 20px 46px 20px;
  box-shadow: 0 2px 24px rgba(79,173,136,0.16);
}
.cta-section .cta-btn {
  background: #fff;
  color: #244257;
}
.cta-section .cta-btn:hover, .cta-section .cta-btn:focus {
  background: #d3e1d9;
}

/* General Lists */
ul, ol {
  margin-bottom: 16px;
  padding-left: 28px;
  color: #244257;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 7px;
}
ul li::marker, ol li::marker {
  color: #79A887;
  font-size: 1.25em;
}

/* Footer */
footer {
  background: #244257;
  color: #fff;
  font-size: 0.96rem;
  padding: 38px 0 24px 0;
  margin-top: 55px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #EFEFEF;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #79A887;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  max-width: 290px;
}
.footer-contact img {
  height: 35px;
  margin-bottom: 8px;
}

/* -- Cookie Consent Banner -- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #EFEFEF;
  color: #244257;
  box-shadow: 0 -3px 14px rgba(36,66,87,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 24px 15px 16px 15px;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(.52,.12,.79,.86);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 20px;
  border: none;
  padding: 8px 22px;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .accept {
  background: #79A887;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #56876d;
}
.cookie-banner .reject {
  background: #fff;
  color: #244257;
  border: 1px solid #244257;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #f3f7f7;
  color: #244257;
}
.cookie-banner .settings {
  background: #fff;
  color: #79A887;
  border: 1px solid #79A887;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f3f7f7;
  color: #79A887;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; top: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  background: rgba(36,66,87,0.17);
  animation: fade-in-bg 0.44s cubic-bezier(.52,.12,.79,.86);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fade-in-bg {
  from { background: rgba(36,66,87,0.00); }
  to { background: rgba(36,66,87,0.17); }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 96vw;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 6px 34px 2px rgba(36,66,87,0.27);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modal-in 0.25s cubic-bezier(.47,.03,.51,.83);
}
@keyframes modal-in {
  from { transform: translateY(32px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.cookie-modal-content label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-modal-content .cookie-desc {
  color: #5e6a79;
  font-size: 0.97rem;
  margin-bottom: 4px;
}
.cookie-modal-content .footer {
  display: flex;
  gap: 16px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  border-radius: 20px;
  border: none;
  padding: 7px 19px;
  font-size: 1rem;
  cursor: pointer;
  margin-right: 2px;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-content .save {
  background: #79A887;
  color: #fff;
  font-weight: 600;
}
.cookie-modal-content .save:hover, .cookie-modal-content .save:focus {
  background: #56876d;
}
.cookie-modal-content .cancel {
  background: #fff;
  color: #244257;
  border: 1px solid #244257;
}
.cookie-modal-content .cancel:hover, .cookie-modal-content .cancel:focus {
  background: #f3f7f7;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  color: #244257;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  line-height: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e9edea;
}

/* Section Spacing Overrides for Direct HTML Usage */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
section:last-child {
  margin-bottom: 0;
}

/* --- Utilities & Microinteractions --- */
::-webkit-scrollbar { width: 10px; background: #F5F7F6; }
::-webkit-scrollbar-thumb { background: #d3e1d9; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b0cbbe; }

input, button, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Confirmation content wrapper */
.confirm {
  align-items: center;
  text-align: center;
  gap: 21px;
  padding: 38px 12px 28px 12px;
}

/* Media Queries - Responsive Mobile Layout */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 980px) {
  .features .feature-grid, .card-container {
    gap: 20px;
  }
  .feature, .card { min-width: 170px; }
  .footer-contact { max-width: 220px; }
}
@media (max-width: 820px) {
  .container, .content-wrapper { max-width: 100vw; }
  .content-wrapper { padding: 0 2px; }
}
@media (max-width: 768px) {
  html { font-size: 95%; }
  .main-nav, .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  header .container { flex-wrap: wrap; }
  .footer-nav { gap: 14px; }
  .footer-contact img { height: 28px; }
  .contact-info { flex-direction: column; gap: 12px; }
  .features .feature-grid, .card-container, .blog-list .post-preview-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature, .card, .testimonial-card, .post-preview { min-width: 0; width: 100%; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .faq dl { gap: 14px; }
  .cta-section {
    border-radius: 9px;
    padding: 31px 10px 30px 10px;
    margin-top: 30px;
    margin-bottom: 33px;
  }
  footer .container { flex-direction: column; gap: 17px; }
  footer .footer-contact { max-width: 100vw; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .container, .content-wrapper { padding-left: 4px; padding-right: 4px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .cta-section { font-size: 1.02rem; }
  .footer-contact { gap: 2px; }
}

/* Accessibility & Focus States */
a:focus, button:focus, .cta-btn:focus, .cookie-banner button:focus, .cookie-modal-content button:focus {
  outline: 2px solid #79A887;
  outline-offset: 1px;
  z-index: 2;
}

/* Decorative shadow for focused cards */
.card:focus-within, .feature:focus-within, .post-preview:focus-within {
  box-shadow: 0 4px 18px rgba(36,66,87,0.13);
}

/* Form Elements (if any in future) */
input, textarea, select {
  border: 1.5px solid #d3e1d9;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 13px;
  transition: border 0.15s;
  color: #244257;
}
input:focus, textarea:focus, select:focus {
  border-color: #79A887;
}

/* Misc. spacing for direct HTML usage */
.text-section, .footer-contact {
  margin-bottom: 18px;
}
.text-section > h3, .text-section > h2 {
  margin-top: 18px;
}

/* Hide cookie modal on small screens if not open */
@media (max-width: 420px) {
  .cookie-modal-content { padding: 18px 7px 16px 7px; }
}

/* === END STYLES === */
