/* ---------------- CSS RESET & NORMALIZE ---------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #204051;
  background: #FCFFFD;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
a {
  color: #22577A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #38A3A5;
}
ul, ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
address {
  font-style: normal;
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}

/* --------------- VARIABLES: Pastel Color Palette --------------- */
:root {
  --brand-primary: #22577A;
  --brand-secondary: #38A3A5;
  --brand-accent: #FAFAFA;
  --pastel-lavender: #F1F2F7;
  --pastel-pink: #FCF6F5;
  --pastel-mint: #E7F9F7;
  --pastel-yellow: #FFFBE5;
  --pastel-blue: #E1ECF9;
  --shadow: 0px 4px 20px 0px rgba(34,87,122,0.07), 0px 2px 7px rgba(56,163,165,0.04);
  --radius-lg: 18px;
  --radius: 12px;
}

/* --------------- TYPOGRAPHY --------------- */
body, input, textarea, button {
  font-family: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22577A;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
h1 { font-size: 2.375rem; line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: 1.65rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.17rem; font-weight: 600; }
h4 { font-size: 1.09rem; font-weight: 600; }
h5, h6 { font-size: 1rem; font-weight: 600; }
p, ul, ol, address, .blog-summary p, .blog-post-preview p {
  margin-bottom: 16px;
  font-size: 1rem;
}

@media (max-width: 576px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.18rem; }
}

/* --------------- CONTAINER & LAYOUT --------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-lavender);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
}

/* --------------- HEADER --------------- */
header {
  background: linear-gradient(90deg, #F1F2F7 80%, #E7F9F7 100%);
  border-bottom: 1.5px solid #e3edf1;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(34,87,122,0.02);
}
header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 74px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.brand-logo img { height: 38px; }

.main-nav {
  display: flex;
  gap: 26px;
}
.main-nav a {
  color: #22577A;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.92;
  padding: 8px 6px 8px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
}

.cta {
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 10px 0 rgba(56,163,165,0.07);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
  display: inline-block;
  margin-left: 10px;
}
.cta.primary {
  background: linear-gradient(90deg,#E1ECF9 80%,#E7F9F7 100%);
  color: var(--brand-primary);
  font-weight: 600;
  border: 1.5px solid var(--brand-secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: #38A3A5;
  color: #fff;
  border-color: #22577A;
  box-shadow: 0 4px 16px 0 rgba(34,87,122,0.13);
}
.cta.secondary {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
  border: 1.5px solid var(--brand-secondary);
  font-weight: 500;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--brand-secondary);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #22577A;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus{
  outline: 2px solid #38A3A5;
}

/* --------------- MOBILE NAV ----------------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--pastel-lavender) 60%, var(--pastel-mint) 100%);
  z-index: 1001;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.18s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  box-shadow: 0 5px 24px 0 rgba(90, 155, 178, 0.14);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  margin: 18px 0 30px 22px;
  color: #22577A;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  align-self: flex-start;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus {
  outline: 2px solid #38A3A5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-left: 22px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #22577A;
  padding: 12px 8px 12px 0;
  border-radius: 10px;
  transition: background 0.19s, color 0.19s;
  min-width: 70vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: var(--brand-secondary);
}

@media (max-width: 1050px) {
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

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

/* ----------------- MAIN LAYOUT & SPACING ----------------- */
main section {
  margin-bottom: 60px;
  padding: 40px 0;
  border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
  main section {
    margin-bottom: 32px;
    padding: 22px 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--pastel-mint);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.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;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fffbe5;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(56,163,165,0.06);
  border-left: 6px solid #38A3A5;
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(34,87,122,0.13);
  transform: translateY(-2px) scale(1.018);
}
.testimonial-card p {
  color: #2d4157;
  font-size: 1.09rem;
}
.testimonial-card strong {
  color: #22577A;
  font-size: 1rem;
}

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

/* ---------------- BLOG ELEMENTS --------------- */
.blog-summary, .blog-post-preview {
  background: #E1ECF9;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(56,163,165,0.08);
  margin-bottom: 20px;
  padding: 18px 18px 14px 18px;
  max-width: 450px;
  transition: box-shadow .15s, transform .19s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-summary:hover, .blog-post-preview:hover {
  box-shadow: 0 4px 16px 0 rgba(56,163,165,0.13);
  transform: translateY(-2px) scale(1.016);
}

.social-media-links {
  display: flex;
  gap: 14px;
  margin-top: 17px;
  align-items: center;
}
.social-media-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #38A3A5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.18s, box-shadow 0.2s;
}
.social-media-links a:hover {
  background: #22577A;
}
.social-media-links img {
  width: 20px;
  height: 20px;
}

.price {
  color: #38A3A5;
  font-weight: 600;
  margin-top: 6px;
  font-size: 1.02rem;
  background: #F1F2F7;
  border-radius: 6px;
  padding: 3px 11px;
}

/* ------ Address/map block ------ */
.map-placeholder {
  width: 100%;
  max-width: 350px;
  border-radius: var(--radius);
  background: var(--pastel-mint);
  padding: 16px;
  margin-bottom: 20px;
}

/* ------ Footer ------ */
footer {
  background: linear-gradient(120deg, #E7F9F7 70%, #F1F2F7 100%);
  border-top: 1.5px solid #e3edf1;
  padding: 44px 0 30px 0;
  margin-top: 40px;
  font-size: 0.97rem;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #22577A;
  opacity: 0.85;
  font-size: 0.98rem;
  transition: color 0.15s;
}
.footer-nav a:hover {
  color: #38A3A5;
}
.footer-contact > a {
  color: #38A3A5;
  text-decoration: underline;
  transition: color 0.16s;
}
.footer-contact > a:hover {
  color: #22577A;
}

@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ------ Blog/category list mobile ------ */
.blog-summary ul, .blog-post-preview ul {
  margin: 0 0 0 16px;
  padding: 0;
  list-style: disc inside;
}

/* ------------- Cookie Consent Banner ------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1800;
  background: linear-gradient(90deg, #F1F2F7 60%, #E7F9F7 100%);
  box-shadow: 0 -2px 16px 0 rgba(34,87,122,0.11);
  padding: 18px 16px 18px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  font-size: 1rem;
  animation: fadeInBanner 0.8s;
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(45px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  color: #22577A;
  margin-bottom: 6px;
  max-width: 540px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  padding: 8px 13px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  margin-left: 2px;
  transition: background 0.17s, color 0.15s, box-shadow 0.16s;
  box-shadow: 0 1.5px 7px rgba(56,163,165,0.09);
}
.cookie-btn.accept {
  background: #38A3A5;
  color: #fff;
  font-weight: 600;
  border: 1px solid #38A3A5;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #22577A;
  border-color: #22577A;
}
.cookie-btn.reject {
  background: #F1F2F7;
  color: #22577A;
  border: 1px solid #38A3A5;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus{
  background: #FFFBE5;
  color: #38A3A5;
}
.cookie-btn.settings {
  background: #fffbe5;
  color: #22577A;
  border: 1px solid #E7F9F7;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #E1ECF9;
  color: #22577A;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 5px;
    gap: 11px;
  }
}

/* --------- Cookie Consent Modal --------- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,87,122,0.19);
  z-index: 1810;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.5s;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 30px 28px 30px;
  box-shadow: 0 4px 32px rgba(56,163,165,0.14);
  max-width: 430px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: popInModal 0.55s cubic-bezier(.36,1.45,.42,1);
}
@keyframes popInModal {
  0% { opacity: 0; transform: scale(0.9); }
  90% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 9px; right: 16px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #22577A;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E7F9F7;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 9px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  background: #E1ECF9;
  border-radius: 15px;
  position: relative;
  outline: none;
  border: 1px solid #38A3A5;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #38A3A5;
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 3px; top: 2.2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.63,-0.21,.92,1.67);
  box-shadow: 0 1.5px 3px rgba(34,87,122,0.11);
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}

.cookie-category-label {
  font-weight: 500;
  color: #22577A;
}
.cookie-category-desc {
  color: #555;
  font-size: 0.97rem;
  margin-left: 6px;
  opacity: 0.8;
}
.cookie-category-row[aria-disabled="true"] {
  opacity: 0.58;
}

.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 21px 7vw 14px 7vw;
    min-width: 0;
  }
}

/* ----------- GENERAL INTERACTIVE STYLES ----------- */
button, [type="button"], [type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
button:active, .cta:active {
  transform: translateY(1px) scale(.98);
}

/* ----------- Responsive FLEX Utility (mobile-first) ----------- */
@media (min-width: 769px) {
  .content-grid { flex-direction: row; }
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .content-grid { flex-direction: column; }
}

/* ------------- Extra Spacing for Demo Structure ------------- */
main { margin-bottom: 50px; }

/* ------------ Spacing Utility Classes ------------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ---------- DREAMY SUBTLE DECORATIONS --------- */
.section {
  /* Subtle dreamy drop-shadow and gentle white overlay */
  /* extra pastel tone while not interfering with content text contrast */
  background: linear-gradient(95deg, #F1F2F7 65%, #E7F9F7 100%);
}

/* ------------- FORMS & INPUTS ------------- */
input, textarea, select {
  background: #FBFBFB;
  border: 1.7px solid #E1ECF9;
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 1rem;
  color: #22577A;
  margin-bottom: 11px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #38A3A5;
  outline: 2px solid #E7F9F7;
}

/* ------------- MISC FIXES ------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #E7F9F7;
}
::-webkit-scrollbar-thumb {
  background: #B6DBF6;
  border-radius: 5px;
}

/* --- If any .card-content exist in HTML extension --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ------------- PRINT FRIENDLY ------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100vw !important; padding: 0 6vw !important; }
}
