/* RESET & BASE STYLES */
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;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFBEF;
  color: #224B46;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #224B46;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C9691C;
  outline: none;
}

strong {
  font-weight: 700;
}

ul, ol {
  padding-left: 1.3em;
  margin-top: 1em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.6em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  color: #224B46;
  margin-bottom: 0.6em;
}
h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.22;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.18;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.1em;
  font-size: 1.02rem;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF6E5;
  border-radius: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

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

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #FFEFDB 64%, #E1C79B 100%);
  padding: 60px 0 50px 0;
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  box-shadow: 0 8px 32px 0 rgba(225, 199, 155, 0.10);
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  color: #224B46;
  font-size: 2.6rem;
}
.hero p {
  color: #545454;
  font-size: 1.08rem;
}

/* FEATURES */
.features {
  margin-top: 24px;
}
.features .content-wrapper {
  align-items: flex-start;
  gap: 32px;
}
.features h2 {
  margin-bottom: 0.4em;
}
.features ul {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.07rem;
}
.features-icons {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-top: 16px;
}
.features-icons img {
  background: #FFFFFF;
  padding: 11px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(225, 199, 155, 0.17);
}

/* SERVICES SECTION */
.services .content-wrapper {
  gap: 32px;
}
.services ul {
  margin-bottom: 16px;
}
.services li {
  background: #FFF6E5;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(225, 199, 155, 0.08);
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* TESTIMONIALS */
.testimonials {
  background: #FDF8F3;
  border-radius: 36px;
  margin: 32px 0 0 0;
  box-shadow: 0 8px 36px 0 rgba(225, 199, 155, 0.10);
  padding-bottom: 32px;
}
.testimonials .content-wrapper {
  gap: 20px;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  background: #FFF;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px 0 rgba(225, 199, 155, 0.13);
  align-items: flex-start;
}
.testimonial-card p {
  color: #27403A;
  font-size: 1.02rem;
  margin-bottom: 0;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #A57803;
  font-weight: 500;
}

/* CARDS & FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(225, 199, 155, 0.11);
  padding: 30px 26px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: box-shadow 0.25s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(34, 75, 70, 0.12), 0 2px 12px 0 rgba(225, 199, 155, 0.12);
  z-index: 2;
}
/* Example .content-grid pattern */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CTA BUTTONS */
.cta-btn, .cookie-consent .cookie-btn, .cookie-modal .cookie-btn {
  background: #E1C79B;
  color: #224B46;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 14px 30px;
  border: none;
  border-radius: 28px;
  margin-top: 8px;
  box-shadow: 0 2px 10px 0 rgba(225, 199, 155, 0.12);
  transition: background 0.22s, color 0.19s, box-shadow 0.3s;
  cursor: pointer;
  outline: none;
  display: inline-block;
  letter-spacing: 0.5px;
}
.cta-btn:hover, .cta-btn:focus, .cookie-consent .cookie-btn:hover, .cookie-modal .cookie-btn:hover {
  background: #224B46;
  color: #FFF;
  box-shadow: 0 4px 18px 0 rgba(34, 75, 70, 0.12);
}

/* HEADER NAVIGATION */
header {
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 2px 16px -8px rgba(34,75,70,0.07);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-left: 0;
}
.main-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: #224B46;
  font-weight: 600;
  border-radius: 20px;
  padding: 7px 15px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E1C79B;
  color: #224B46;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #224B46;
  cursor: pointer;
  display: none;
  z-index: 101;
  border-radius: 10px;
  padding: 7px 14px;
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E1C79B;
  color: #224B46;
}
.cta-btn {
  margin-left: 16px;
  margin-right: 0;
  margin-top: 0;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 94vw;
  max-width: 370px;
  background: #FFF6E5;
  box-shadow: -2px 0 24px 0 rgba(34,75,70,0.10);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.67,0.05,0.34,0.95);
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: -6px 0 44px 0 rgba(34,75,70,0.13);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #224B46;
  position: absolute;
  top: 22px;
  right: 22px;
  cursor: pointer;
  z-index: 1200;
  border-radius: 10px;
  padding: 6px 14px;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #E1C79B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  margin-left: 0;
  gap: 0;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 1.07rem;
  color: #224B46;
  font-weight: 600;
  padding: 14px 28px;
  border-bottom: 1px solid #F2E6CF;
  width: 100%;
  transition: background 0.17s, color 0.17s;
  border-radius: 0;
  text-align: left;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E1C79B;
  color: #224B46;
}

/* Hide nav for desktop */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle,
  .mobile-menu-close {
    display: none !important;
  }
}

/* FOOTER */
footer {
  width: 100%;
  background: #224B46;
  color: #ffffff;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  box-shadow: 0 -2px 16px -8px rgba(34,75,70,0.07);
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 16px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-contact ul {
  margin: 0;
  padding-left: 0;
}
.footer-contact li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff8ed;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-contact img {
  background: transparent;
  border-radius: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  margin-top: 0;
}
.footer-nav a {
  color: #FDF8F3;
  font-size: 0.99rem;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 16px;
  transition: background 0.15s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #E1C79B;
  color: #224B46;
}

/* -------------------- COOKIE CONSENT -------------------- */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100vw - 32px);
  max-width: 440px;
  background: #FFF6E5;
  color: #224B46;
  font-size: 1rem;
  box-shadow: 0 12px 40px 2px rgba(225, 199, 155, 0.13);
  border-radius: 20px;
  padding: 28px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 2000;
  animation: slideUpCookie 0.5s cubic-bezier(0.77,0,0.18,1) 1;
}
@keyframes slideUpCookie {
  from { transform: translateX(-50%) translateY(44px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.cookie-consent .cookie-btn {
  margin-right: 0;
  margin-left: 0;
  min-width: 110px;
}
.cookie-consent .cookie-btn:not(:last-child) {
  margin-right: 10px;
}
.cookie-consent .cookie-btn.cookie-settings {
  background: transparent;
  color: #224B46;
  border: 1.7px solid #E1C79B;
}
.cookie-consent .cookie-btn.cookie-settings:hover,
.cookie-consent .cookie-btn.cookie-settings:focus {
  background: #E1C79B;
  color: #224B46;
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,75,70,0.45);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieFadeIn 0.36s;
}
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FFFBEF;
  color: #224B46;
  border-radius: 28px;
  width: 94vw;
  max-width: 470px;
  box-shadow: 0 6px 32px 0 rgba(225,199,155,0.19);
  padding: 30px 26px 20px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideDownModal 0.38s cubic-bezier(0.68,0,0.32,1) 1;
}
@keyframes slideDownModal {
  from { transform: translateY(-42px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 8px;
  font-size: 1.03rem;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 22px;
  background: #E1C79B;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
  border: none;
  appearance: none;
  outline: none;
}
.cookie-modal .cookie-toggle:checked {
  background: #224B46;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #FFF;
  position: absolute;
  top: 1.5px; left: 2px;
  box-shadow: 0 2px 8px rgba(224,199,155,0.18);
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle:checked::after {
  left: 17px;
}
.cookie-modal .cookie-btn {
  margin-top: 10px;
  min-width: 128px;
  font-size: 1.01rem;
  padding: 12px 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: #27403A;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E1C79B;
}

/* -------------------- FORM ELEMENTS -------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 1px solid #E1C79B;
  border-radius: 13px;
  padding: 12px 15px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 18px;
  background: #FFF;
  color: #224B46;
  outline: none;
  transition: border-color 0.19s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #C9691C;
  box-shadow: 0 2px 8px 0 rgba(225,199,155,0.10);
}
label {
  font-weight: 600;
  font-size: 1.01rem;
  color: #224B46;
  margin-bottom: 6px;
}


/* --------------- RESPONSIVE DESIGN --------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    max-width: 100vw;
  }
  .hero {
    border-radius: 0 0 32px 32px;
    padding: 34px 0 32px 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 7px;
    border-radius: 17px;
  }
  .features-icons {
    gap: 18px;
  }
  .card, .services li {
    min-width: unset;
    padding: 18px 12px;
  }
  .footer-contact ul {
    font-size: 0.99rem;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 8px;
  }
  .footer-nav {
    align-items: flex-start;
    gap: 8px;
  }
  /* Flexbox column for all dual-sections */
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.31rem;
  }
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1rem; }
  .cookie-modal { padding: 16px 6px 11px 6px; }
  .cookie-consent {padding: 16px 6px 11px 6px;}
}

/* --------------- ANIMATIONS & MICRO-INTERACTIONS --------------- */
.cta-btn, .cookie-consent .cookie-btn, .cookie-modal .cookie-btn, .main-nav a, .footer-nav a, .card {
  transition: box-shadow 0.23s, background 0.16s, color 0.18s, transform 0.13s;
}
.cta-btn:active, .cookie-consent .cookie-btn:active, .cookie-modal .cookie-btn:active, .main-nav a:active, .footer-nav a:active {
  transform: scale(0.97);
}
.card:active {
  transform: scale(0.99);
}

/* Rounded images (for icons, logo) */
img[alt*='icon'], img[alt*='Logo'], img[alt*='logo'] {
  border-radius: 11px;
}

/* Basic spacing helpers */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }

@media (max-width: 530px) {
  .footer-contact ul li, .footer-contact ul {
    font-size: 0.95rem;
  }
}

/* --------------- COLOR ACCESSIBILITY IN CONTRAST-SECTIONS --------------- */
.testimonial-card p, .testimonial-card span {
  color: #224B46;
}

/* --------------- MISC SMALL UTILS --------------- */
::-webkit-scrollbar {
  width: 11px;
  background: #FFFBEF;
}
::-webkit-scrollbar-thumb {
  background: #E1C79B;
  border-radius: 6px;
}

/* Prevent card overlap & spacing */
.card, .services li, .testimonial-card {
  margin-bottom: 20px;
}

/* Prevent content overlap for modals/popups */
.cookie-consent, .cookie-modal-backdrop {
  z-index: 3500 !important;
}
