/* --- CSS Reset & Normalize --- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: 'Roboto', Georgia, serif;
  background: #F5F3EF;
  color: #254154;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.65;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #254154;
  text-decoration: none;
  transition: color .18s;
}
a:focus, a:hover {
  color: #CBBF9F;
  outline: none;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
main, section, header, footer, nav {
  width: 100%;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #254154;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.11;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
 
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}
.text-section {
  margin-bottom: 20px;
}

/* --- Global Spacing and Flex Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(37,65,84,0.08);
  padding: 32px 22px 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #254154;
  padding: 30px 26px;
  border-radius: 14px;
  box-shadow: 0 3px 28px 0 rgba(37,65,84,0.09);
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 32px 0 rgba(37,65,84,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Header --- */
header {
  background: #fff;
  border-bottom: 1px solid #E9E6DF;
  box-shadow: 0 1px 7px rgba(37,65,84,0.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  color: #254154;
  letter-spacing: 0.01em;
  font-weight: 500;
  line-height: 1.6;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .19s, color .19s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #CBBF9F;
  border-bottom: 2px solid #CBBF9F;
}
.cta-btn {
  background: #254154;
  color: #fff !important;
  font-family: 'Playfair Display', serif;
  padding: 14px 34px;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  box-shadow: 0 2px 8px 0 rgba(37,65,84,0.08);
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.045em;
  margin-left: 16px;
  outline: none;
  transition: background 0.22s, box-shadow 0.18s, color 0.16s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #CBBF9F;
  color: #254154 !important;
  box-shadow: 0 5px 18px 0 rgba(37,65,84,0.16);
}
/* Hide burger menu by default on desktop */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #254154;
  cursor: pointer;
  display: none;
  margin-left: 18px;
  z-index: 1031;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 340px;
  max-width: 91vw;
  height: 100%;
  background: #fff;
  z-index: 1200;
  box-shadow: -12px 0 36px 0 rgba(37,65,84,0.18);
  transform: translateX(110%);
  transition: transform 0.42s cubic-bezier(.61,.01,.14,.96);
  display: flex;
  flex-direction: column;
  padding: 32px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #254154;
  cursor: pointer;
  z-index: 1012;
  transition: color .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #CBBF9F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 56px;
  padding: 0 42px;
}
.mobile-nav a {
  color: #254154;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.17rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid #E9E6DF;
  transition: color 0.17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #CBBF9F;
  background-color: #f6f4f0;
  border-radius: 6px;
}
/* Mobile menu overlay for click outside */
.mobile-menu-backdrop {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(37,65,84,.15);
  z-index:1190;
}

@media (max-width:768px) {
  header .container {
    min-height: 60px;
    gap: 7px;
  }
  .logo img {
    height: 34px;
  }
  .cta-btn {
    padding: 12px 20px;
    font-size: .94rem;
    margin-left: 0;
  }
  .mobile-menu {
    width: 94vw;
    min-width: 220px;
    padding-top: 20px;
  }
  .mobile-nav {
    gap: 15px;
    padding: 0 16px;
    margin-top: 40px;
  }
}

/* --- Footer --- */
footer {
  background: #254154;
  color: #fff;
  padding: 38px 0 32px 0;
  box-shadow: 0 -1px 18px 0 rgba(37,65,84,0.09);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer .logo, footer img {
  height: 40px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #CBBF9F;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.19s;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer address {
  font-style: normal;
  font-family: 'Roboto', Georgia, serif;
  font-size: 0.97rem;
  color: #F5F3EF;
  line-height: 26px;
  margin-bottom: 7px;
}
footer address img {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  margin-right: 5px;
}
footer address a {
  color: #CBBF9F;
  transition: color 0.13s;
}
footer address a:hover, footer address a:focus {
  color: #fff;
}
footer .container > :last-child {
  margin-bottom: 0;
}
@media (min-width:700px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 38px;
  }
}

/* --- Section Styling --- */
section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 22px 0 rgba(37,65,84,0.04);
  margin-bottom: 34px;
  max-width: 1020px;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width:700px) {
  section {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 12px;
    padding: 8px 2px;
  }
}

/* --- Index Page (features etc.) --- */
.features-list, .content-wrapper ul, .content-wrapper ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: disc outside;
  margin-top: 4px;
}
.features-list li, .content-wrapper ul li, .content-wrapper ol li {
  position: relative;
  background: none;
  padding-left: 0;
  font-size: 1.08rem;
  color: #254154;
  border-radius: 7px;
}
.features-list li img,
.content-wrapper ul li img {
  vertical-align: middle;
  margin-bottom: -4px;
  margin-right: 8px;
  height: 28px;
  width: 28px;
  display: inline-block;
}
ul li strong, ol li strong {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.09em;
  color: #254154;
}
.more-link {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  color: #254154;
  padding-top: 8px;
  font-weight: 700;
  font-size: 1.08rem;
  border-bottom: 1px solid #CBBF9F;
  transition: border-color .14s, color .14s;
}
.more-link:hover, .more-link:focus {
  color: #CBBF9F;
  border-bottom: 1px solid #254154;
}

/* --- Blockquote/Testimonials --- */
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: #254154;
  quotes: "\201E" "\201C" "\201A" "\2018";
  font-style: italic;
  margin-bottom: 6px;
}
blockquote:before {
  content: open-quote;
  color: #CBBF9F;
  font-size: 2.1rem;
  vertical-align: -9px;
  margin-right: 5px;
}
blockquote:after {
  content: close-quote;
  color: #CBBF9F;
  font-size: 2.1rem;
  vertical-align: -9px;
  margin-left: 5px;
}
.testimonial-card .stars {
  color: #CBBF9F;
  letter-spacing: 3px;
  font-size: 1.23rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
@media (max-width:600px) {
  .testimonial-card {
    padding: 18px 9px;
  }
}

/* --- Address and Contact boxes --- */
address {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #254154;
  line-height: 25px;
}
address img {
  display: inline-block;
  vertical-align: middle;
  height: 19px;
  margin-bottom: -2px;
  margin-right: 7px;
}
address a {
  color: #254154;
  text-decoration: underline;
  transition: color 0.13s;
}
address a:hover {
  color: #CBBF9F;
}

/* --- Forms & Buttons --- */
button, .cta-btn, input[type="button"], input[type="submit"] {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 22px;
  background: #254154;
  color: #fff;
  padding: 12px 36px;
  box-shadow: 0 2px 8px 0 rgba(37,65,84,0.07);
  transition: background 0.17s, color 0.16s, box-shadow 0.18s;
}
button:hover, .cta-btn:hover, button:focus, .cta-btn:focus,
input[type="button"]:hover, input[type="submit"]:hover {
  background: #CBBF9F;
  color: #254154;
  box-shadow: 0 6px 35px 0 rgba(37,65,84,0.07);
  outline: none;
}

/* --- Responsive Typography & Spacing --- */
@media (max-width:1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}
@media (max-width:700px) {
  .container {
    padding: 0 8px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 4px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.14rem; }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #CBBF9F;
  box-shadow: 0 -8px 32px 0 rgba(37,65,84,0.06);
  padding: 24px 16px 20px 16px;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s, transform .34s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
}
.cookie-banner p {
  color: #254154;
  font-size: 1rem;
  font-family: 'Roboto', serif;
  margin-bottom: 3px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Playfair Display', serif;
  border-radius: 18px;
  font-size: .97rem;
  padding: 11px 26px;
  border: 1px solid #CBBF9F;
  background: #fff;
  color: #254154;
  font-weight: 600;
  transition: background 0.19s, color 0.19s, border 0.15s;
)
}
.cookie-btn.accept {
  background: #254154;
  color: #fff;
  border: 1px solid #254154;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #CBBF9F;
  color: #254154;
}
.cookie-btn.reject {
  background: #fff;
  color: #254154;
  border: 1px solid #CBBF9F;
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus{
  background: #f6f4f0;
  color: #254154;
  border: 1.5px solid #254154;
}
.cookie-btn.settings {
  background: #CBBF9F;
  color: #254154;
  border: 1px solid #CBBF9F;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus{
  background: #254154;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; width: 100vw; height: 100vh;
  background: rgba(37,65,84,0.14);
  z-index:1750;
}
.cookie-modal {
  position: fixed;
  left:50%; top:50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 48px 0 rgba(37,65,84,0.18);
  min-width: 340px;
  max-width: 92vw;
  z-index: 1752;
  padding: 36px 32px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity .24s, transform .32s;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,-28%) scale(.95);
  pointer-events: none;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 0;
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #254154;
  width: 18px;
  height: 18px;
  margin-right: 5px;
}
.cookie-category.essential {
  opacity: 0.73;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 18px;
  background: none;
  border: none;
  color: #254154;
  font-size: 1.55rem;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #CBBF9F;
}
@media (max-width:520px) {
  .cookie-modal {
    padding: 22px 8px 9px 8px;
    min-width: 0;
    border-radius: 11px;
  }
}

/* --- Micro-Interactions / Animations --- */
.card, .testimonial-card, .section, .cta-btn, .cookie-banner, .cookie-modal {
  transition: box-shadow .24s, background .18s, color .19s, transform .19s;
}
.card:hover {
  box-shadow: 0 8px 34px 0 rgba(37,65,84,0.11);
  transform: translateY(-4px);
}
.cta-btn:active {
  transform: scale(0.98);
}

/* --- Other Page Tweaks --- */
.text-section {
  width: 100%;
}
@media (min-width:900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
  }
  .text-section {
    width: 48%;
  }
}

/* --- Special Classes for Alignment Patterns --- */
/* (ensure min spacing between cards, prevent overlap) */
.card-container > *, .content-grid > *, .content-wrapper > *, .testimonial-card + .testimonial-card {
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .card-container, .content-grid {
    gap: 32px;
  }
}

/* --- Prevent overflow and ensure breathing room --- */
body {
  overflow-x: hidden;
}

/* --- Selection Styling --- */
::selection {
  background: #CBBF9F;
  color: #254154;
}

/* --- Scrollbar Styling (modern browsers) --- */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #CBBF9F;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F3EF;
}

/* --- Hide mobile nav on large screens, show on small screens --- */
@media (min-width:1024px) {
  .mobile-menu { display: none !important; }
}

/* -- Hide container side-padding if small viewport -- */
@media (max-width:400px) {
  .container { padding: 0 3px; }
  .footer-nav { gap: 13px; }
}
