/* CSS RESET & BASELINE ------------------------------------------------- */
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;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Merriweather', Georgia, serif;
  color: #232326;
  background: #FAF7F3;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: normal;
}
a {
  color: #155175;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFA43B;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 24px 22px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  display: inline-block;
}
strong, b {
  font-weight: bold;
}
em, i {
  font-style: italic;
}
hr {
  border: none;
  border-top: 1px solid #E5E2DE;
  margin: 40px 0;
}

/* FONT CLASSES ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #143759;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  line-height: 1.23;
}
h3 {
  font-size: 1.45rem;
}
h4 {
  font-size: 1.1rem;
  color: #155175;
}
p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #232326;
}

/* LAYOUT WRAPPERS -------------------------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 800px;
}

/* SECTION PADDING --------------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0;
    margin-bottom: 36px;
  }
}

/* BUTTONS & CTAs ---------------------------------------------------------- */
.cta-btn, .btn, button, [type="button"], [type="submit"] {
  font-family: inherit;
  background: #155175;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 13px 36px;
  font-size: 1.13rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,81,117,0.13);
  transition: background 0.2s, color 0.2s, transform 0.18s;
  outline: none;
  margin-top: 8px;
  letter-spacing: 0.03em;
  display: inline-block;
}
.cta-btn:hover, .btn:hover, button:hover, [type="button"]:hover {
  background: #FFA43B;
  color: #153554;
  transform: translateY(-2px) scale(1.03);
}
.cta-btn:focus, .btn:focus, button:focus {
  box-shadow: 0 0 0 2px #FFA43B33;
}

/* HEADER & NAVIGATION ----------------------------------------------------- */
header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #E5E2DE;
  box-shadow: 0 3px 18px rgba(21,81,117,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container,
header > .container,
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 20px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  height: 60px;
}
header .logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #143759;
  text-decoration: none;
  font-size: 1.07rem;
  padding: 6px 10px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #FFA43B;
  background: #15517511;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #155175;
  padding: 6px 12px;
  border-radius: 36px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus {
  background: #EEEEEE;
}

/* MOBILE NAVIGATION ------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 28px 0 rgba(21,81,117,.09);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.61,.49,.39,1.34);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  overflow-y: auto;
  min-width: 285px;
}
.mobile-menu.open {
  transform: translateX(0%);
  transition: transform 0.38s cubic-bezier(.33,1.22,.49,.73);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 25px 25px 10px 0;
  font-size: 2.1rem;
  background: #155175;
  color: #fff;
  border: none;
  border-radius: 24px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:focus {
  background: #FFA43B;
  color: #143759;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 40px 30px 40px;
  flex: 1 1 auto;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.23rem;
  color: #143759;
  text-decoration: none;
  border-radius: 20px;
  padding: 10px;
  transition: color 0.20s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFA43B;
  background: #15517511;
}
@media (max-width: 990px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 990px) {
  header > .logo {margin-right:auto;}
}
@media (min-width: 990px) {
  .mobile-menu {
    display: none!important;
  }
}

/* MAIN & SECTION LAYOUTS -------------------------------------------------- */
main {
  min-height: 65vh;
  padding-bottom: 24px;
}
section {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(21,81,117,0.035);
}
section > .container > .content-wrapper,
section > .container > .text-section {
  gap: 16px;
}

/* FLEXBOX LAYOUTS --------------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 9px rgba(21,81,117,.10);
  margin-bottom: 20px;
  padding: 30px 24px 28px 24px;
  position: relative;
  flex: 1 1 300px;
  min-width: 256px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 18px 0 rgba(21,81,117,0.14);
  transform: translateY(-2px) scale(1.015);
}
.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;
  padding: 20px 24px;
  background: #F4F6F8;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(21,81,117,.07);
  margin-bottom: 20px;
  max-width: 480px;
  color: #232326;
}
.testimonial-card p {
  font-size: 1.12rem;
  font-style: italic;
  color: #232326;
  margin-bottom: 2px;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #155175;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* UL/LI ICON ALIGNMENT ---------------------------------------------------- */
ul li img {
  height: 26px;
  width: 26px;
  margin-right: 12px;
  margin-bottom: -4px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RESPONSIVE FLEXBOX ADJUSTMENTS ------------------------------------------ */
@media (max-width: 990px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .content-wrapper, .text-section {
    gap: 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  section {
    padding: 18px 0;
    margin-bottom: 26px;
  }
}

/* FOOTER ------------------------------------------------------------------ */
footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid #E5E2DE;
  box-shadow: 0 -2px 18px 0 rgba(21,81,117,0.07);
  padding: 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  max-width: 1160px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
footer nav a {
  color: #155175;
  font-size: 1.01rem;
  padding: 6px;
  border-radius: 12px;
  transition: color 0.18s, background 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: #15517513;
  color: #FFA43B;
}
footer img {
  margin-bottom: 6px;
  max-height: 40px;
}
.contact-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.99rem;
  color: #232326;
}
.contact-foot img {
  margin-right: 8px;
  margin-bottom: -3px;
  vertical-align: middle;
  height: 19px;
  width: 19px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  footer nav {
    flex-direction: row;
    gap: 12px;
  }
}


/* COOKIE CONSENT BANNER --------------------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FAF7F3;
  color: #143759;
  border-top: 1px solid #E5E2DE;
  box-shadow: 0 -4px 18px rgba(21,81,117,.11);
  padding: 22px 20px 18px 20px;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: transform 0.32s;
  font-size: 1rem;
}
#cookie-banner.hide {
  transform: translateY(150%);
}
#cookie-banner .cookie-text {
  flex: 1 1 320px;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
#cookie-banner button {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  box-shadow: 0 1.5px 6px 0 rgba(21,81,117,0.07);
  transition: background 0.14s, color 0.13s;
  margin: 0;
}
#cookie-banner .accept-btn {
  background: #155175;
  color: #fff;
}
#cookie-banner .accept-btn:hover,
#cookie-banner .accept-btn:focus {
  background: #FFA43B;
  color: #143759;
}
#cookie-banner .reject-btn {
  background: #fff;
  color: #143759;
  border: 1px solid #15517533;
}
#cookie-banner .reject-btn:hover,
#cookie-banner .reject-btn:focus {
  background: #FFDFAE;
  color: #143759;
}
#cookie-banner .settings-btn {
  background: #FFA43B;
  color: #fff;
}
#cookie-banner .settings-btn:hover,
#cookie-banner .settings-btn:focus {
  background: #155175;
  color: #fff;
}
@media (max-width: 700px) {
  #cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 8px 10px 8px;
    font-size: .97rem;
  }
  #cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/* COOKIE MODAL ------------------------------------------------------------ */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 4200;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,51,61,0.23);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#cookie-modal.open {
  display: flex;
  animation: modalfadein 0.22s cubic-bezier(0.22,1,0.36,1.02);
}
@keyframes modalfadein {
  0% { opacity: 0; } 100% { opacity:1; }
}
#cookie-modal .modal-content {
  background: #fff;
  color: #232326;
  border-radius: 24px;
  padding: 32px 28px 24px 28px;
  max-width: 430px;
  width: 93vw;
  box-shadow: 0 9px 38px rgba(21,81,117,0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#cookie-modal .modal-content h3 {
  font-size: 1.41rem;
  color: #143759;
  margin-bottom: 8px;
}
#cookie-modal .modal-content label {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
#cookie-modal .modal-content input[type=checkbox] {
  accent-color: #155175;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: #143759;
  border: 1px solid #E5E2DE;
  border-radius: 23px;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cookie-modal .close-modal:hover {
  background: #E8EEF3;
}

/* ICONS AND DECORATIVE ---------------------------------------------------- */
.icon {
  vertical-align: middle;
  margin-right: 7px;
}

/* MICRO INTERACTIONS ------------------------------------------------------ */
a, button, .cta-btn, [tabindex] {
  transition: color .18s, background .18s, box-shadow .16s, transform .14s;
}
.card, .testimonial-card, section, header, footer {
  transition: box-shadow 0.18s, background 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 5px 22px rgba(21,81,117,.17);
}

/* TYPOGRAPHY SCALE -------------------------------------------------------- */
html { font-size: 16px; }
@media (min-width: 1360px) { html { font-size: 17.5px; } }
@media (max-width: 1020px) { html { font-size: 15px;} }
@media (max-width: 768px) { html { font-size: 15px; } }
@media (max-width: 600px) { html { font-size: 14px;} }

/* SPACING UTILITIES ------------------------------------------------------- */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 { gap: 20px !important; }

/* FORMS & INPUTS (for future-proof) --------------------------------------- */
input, select, textarea {
  font-family: inherit;
  border: 1px solid #D1D4DA;
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.17s;
}
input:focus, select:focus, textarea:focus {
  outline: 1.5px solid #FFA43B;
  border-color: #FFA43B;
  background: #FFF8F1;
}
label {
  font-size: 1.03rem;
  margin-bottom: 6px;
  display: inline-block;
}

/* ENSURE GAP BETWEEN CARDS AND SECTIONS ----------------------------------- */
section:not(:last-of-type) {
  margin-bottom: 60px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 0;
}

/* HIDE/SHOW UTILITIES FOR JS ---------------------------------------------- */
.hide { display: none !important; }

/* ACCESSIBILITY ----------------------------------------------------------- */
:focus-visible {
  outline: 2px solid #FFA43B;
  outline-offset: 2px;
}

/* PRINT (optional) -------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal { display: none !important; }
  section, main, .container { box-shadow: none !important; }
}

/* END OF CSS ------------------------------------------------------------- */
