/* ============ 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F4EF;
  color: #2C352A;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}
strong, b {
  font-weight: bold;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
}

/* ============ ROOT VARIABLES (with fallbacks) ============ */
:root {
  --primary: #31636C;
  --secondary: #B6C4B6;
  --accent: #F5F4EF;
  --text: #2C352A;
  --muted: #747474;
  --border: #E5E5E0;
  --white: #fff;
  --shadow: 0 4px 16px rgba(49,99,108, 0.06);
}

/* ============ FONT-FACES ============ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: var(--text);
  background: var(--accent);
  font-size: 16px;
  letter-spacing: 0.015em;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  line-height: 1.14;
  color: var(--primary);
  margin-bottom: 24px;
}
h1 { font-size: 2.75rem;  letter-spacing: -0.01em; }
h2 { font-size: 2rem;  margin-top: 24px; }
h3 { font-size: 1.25rem; margin-top: 20px; }
h4 { font-size: 1.12rem;  }
h5, h6 { font-size: 1rem;  }

p, li, .text-section, label {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 1rem;
}
.text-section h2, .text-section h3 { color: var(--primary); }

strong {
  font-family: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
}

/* ============ CONTAINER & LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card, .content-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
}

.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;
  margin-bottom: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 26px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 580px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow:  0 6px 28px rgba(49,99,108, 0.14);
  transform: translateY(-3px);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-top: 5px;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ NAVIGATION ============ */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(44,53,42,0.05);
  position: sticky; top: 0; z-index: 20;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 22px 0;
}
header nav a {
  font-size: 1.08rem;
  font-family: 'Montserrat', serif;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  font-weight: 500;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
header nav a.cta {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 7px 22px;
  margin-left: 10px;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  box-shadow: 0 2px 8px rgba(49,99,108,0.08);
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--secondary);
  color: var(--primary);
}
header nav img {
  max-height: 38px;
  margin-right: 16px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 2.1rem;
  border-radius: 7px;
  padding: 5px 14px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 8px;
  z-index: 30;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(49,99,108, 0.97);
  z-index: 99;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(.5,1,.89,1), opacity 0.22s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  color: var(--white);
  font-size: 2.8rem;
  background: none;
  border: none;
  position: absolute;
  top: 18px;
  right: 20px;
  cursor: pointer;
  z-index: 100;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(182,196,182,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 80px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  color: var(--white);
  font-size: 1.22rem;
  margin-bottom: 6px;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  padding-left: 8px;
}

@media (max-width: 1020px) {
  header nav {
    gap: 10px;
    font-size: 1rem;
    padding: 18px 0;
  }
}
@media (max-width: 840px) {
  header nav a {
    padding: 5px 6px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 10px;
    max-width: 97vw;
  }
}

/* ============ MAIN SECTIONS ============ */
main {
  width: 100%;
  margin: 0 auto 0 auto;
  padding-top: 18px;
  background: var(--accent);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 38px;
    padding: 22px 4px;
    border-radius: 7px;
  }
}

/* ============ LISTS, ICONS AND HEADINGS ============ */
ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  font-size: 1.03rem;
  margin-bottom: 15px;
  line-height: 1.65;
}
ul li img, ol li img {
  width: 24px;
  height: 24px;
  margin-right: 14px;
  flex-shrink: 0;
}
ul li strong {
  color: var(--primary);
  margin-right: 4px;
  font-weight: 700;
  font-family: 'Montserrat', serif;
}
ol {
  list-style: decimal inside;
  padding-left: 14px;
}
ol li {
  list-style: decimal;
}

/* ============ BUTTONS, LINKS, CTAS ============ */
.cta, .btn, button, input[type="submit"], [type="button"] {
  font-family: 'Montserrat', serif;
  color: var(--white);
  background: var(--primary);
  padding: 10px 30px;
  border-radius: 12px;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 2px 8px rgba(49,99,108,0.11);
  transition: background 0.18s, color 0.15s, transform 0.16s;
  cursor: pointer;
  margin-top: 15px;
  min-width: 120px;
  display: inline-block;
  text-align: center;
}
.cta:hover, .btn:hover, button:hover,
.cta:focus, .btn:focus, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* ============ CARDS ============ */
.card, .card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 210px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s;
}
.card:hover, .card-content:hover {
  box-shadow: 0 8px 28px rgba(44,53,42, 0.09);
}
.card .cta {
  margin-top: 0px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 38px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.98rem;
}
footer nav a {
  color: var(--primary);
  padding: 4px 7px;
  border-radius: 6px;
  transition: background 0.13s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
footer .social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

footer img {
  max-height: 40px;
  margin-bottom: 15px;
}
footer p {
  color: var(--muted);
  font-size: .98rem;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 22px 0 14px 0;
  }
  .footer .container {
    padding-bottom: 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ============ MISC/GENERAL ============ */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}
a:hover, a:focus {
  color: var(--secondary);
}
mark {
  background: var(--secondary);
  color: var(--white);
  padding: 0 3px;
  border-radius: 3px;
}
hr {
  border: none; height: 1px; background: var(--border); margin: 30px 0; }

/* ============ RESPONSIVE FLEX LAYOUTS ============ */
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 10px;
  }
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 -2px 24px rgba(49,99,108, 0.09);
  padding: 24px 18px 20px 18px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  animation: cookieFadeIn .5s;
}
@keyframes cookieFadeIn {
  from { opacity:0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  max-width: 540px;
  font-family: 'Open Sans', serif;
  color: var(--text);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: 9px;
  border: none;
  padding: 7px 18px;
  font-family: 'Montserrat', serif;
  margin: 0;
  background: var(--primary);
  color: var(--white);
  transition: background 0.17s, color 0.14s, transform .13s;
  font-weight: 700;
  cursor: pointer;
  min-width: 90px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px);
}
.cookie-banner .cookie-settings-btn {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-left: 6px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--white);
  color: var(--primary);
}

@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 6px 16px 6px;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
  }
}

/* ============ COOKIE CONSENT MODAL ============ */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(49, 99, 108, 0.70);
  z-index: 5001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .37s;
}
@keyframes modalFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(49,99,108,0.19);
  max-width: 430px;
  width: 95vw;
  padding: 30px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  text-align: left;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
  font-family: 'Montserrat', serif;
}
.cookie-modal .category {
  margin-bottom: 14px;
}
.cookie-modal .category label {
  font-size: 1rem;
  color: var(--text);
  font-family: 'Open Sans', serif;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  padding: 7px 21px;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  transition: background 0.15s, color .12s;
  cursor: pointer;
}
.cookie-modal button.cookie-modal-cancel {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal button.cookie-modal-cancel:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 16px;
  background: none;
  color: var(--primary);
  font-size: 1.9rem;
  border: none;
  cursor: pointer;
  z-index: 11;
}

/* ============ FORMS (Newsletter, etc.) ============ */
input, textarea, select {
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 6px;
  background: var(--white);
  margin-bottom: 18px;
  transition: border .13s;
}
input:focus, textarea:focus, select:focus {
  border: 1px solid var(--primary);
}

/* ============ ANIMATIONS & MICRO-INTERACTIONS ============ */
section, .card, .testimonial-card, nav a, .cta, .btn, button {
  transition: box-shadow .17s, background .15s, color .13s, transform .14s;
}
h1, h2, h3 {
  transition: color .18s;
}

/* ======== UTILS & HELPER CLASSES ======== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center !important; }
.flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
gap-8 { gap: 8px; }
gap-16 { gap: 16px; }

/* ======== ACCESSIBILITY FOCUS STATES ======== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* ============ SCROLLBAR STYLE ============ */
::-webkit-scrollbar { width: 8px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

/* ============ MEDIA QUERIES: FINE-TUNE SPACING ============ */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; margin-top: 6px; }
  h3 { font-size: 1rem; }
  .card, .testimonial-card, .card-content { padding: 15px 9px; border-radius: 7px; }
  main { padding-top: 5px; }
  section { padding: 15px 2px; }
  .card-container { gap: 8px; }
}

/* ============ BRAND PERSONALITY & ELEGANT DETAILS ============ */
section, .testimonial-card, .card {
  box-shadow: 0 4px 16px rgba(182,196,182, .10), 0 1.5px 6px rgba(49,99,108,0.10);
}
.card, .testimonial-card, section {
  border-radius: 18px;
}
img[alt*="logo"] {
  filter: grayscale(15%) brightness(1.09);
  border-radius: 6px;
}

/* ============ NO ABSOLUTE FOR CARDS, CARD SHADOW ONLY ============ */

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