/* ---- 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;
  box-sizing: border-box;
}
html {line-height: 1.15; -webkit-text-size-adjust: 100%;}
body {min-height: 100vh; background: #fff; color: #394448;}
article,aside,footer,header,nav,section {display: block;}
a {color: inherit; text-decoration: none; transition: color 0.2s;}
ul,ol {list-style: none;}
img {max-width: 100%; height: auto; display: block;}
input,button,select,textarea {font-family: inherit; font-size: inherit;}
:root {
  --brand-primary: #264653;
  --brand-secondary: #f4f4f4;
  --brand-accent: #2a9d8f;
  --warm-bg: #fff5ec;
  --warm-peach: #ffe5d0;
  --warm-sand: #fae3b0;
  --warm-orange: #ffb385;
  --text-main: #3b3230;
  --text-darker: #22201a;
  --shadow-soft: 0 2px 16px rgba(35,35,35,0.06);
  --border-radius: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ---- TYPOGRAPHY ---- */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--warm-bg);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}
h1 {font-size: 2.25rem; line-height: 1.1; margin-top: 0;}
h2 {font-size: 1.5rem; line-height: 1.15; margin-top: 0;}
h3 {font-size: 1.125rem; margin-top: 0;}
@media (min-width: 600px) {
  h1 {font-size: 2.75rem;}
  h2 {font-size: 2rem;}
  h3 {font-size: 1.3125rem;}
}
p, ul, ol, dl, pre, blockquote {margin-bottom: 16px;}
strong {font-weight: 700;}
blockquote {
  padding-left: 20px; border-left: 5px solid var(--brand-accent); font-size: 1.125rem;
  background: var(--warm-peach);
  border-radius: calc(var(--border-radius) / 1.5);
  color: var(--text-main);
  margin-bottom: 12px;
}
cite {font-style: normal; color: var(--brand-primary); font-size: .98em;}

/* ---- LAYOUT CONTAINERS ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--warm-bg);
  border-radius: var(--border-radius);
}

/* ---- HEADER & NAV ---- */
header {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--brand-primary);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}
header nav a {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
header nav img {height: 38px; width: auto; margin-right: 10px; border-radius: 8px;}
header .cta-primary {
  background: var(--warm-orange);
  color: var(--brand-primary) !important;
  font-weight: 700;
  margin-left: auto;
  border-radius: 12px;
  padding: 9px 22px;
  font-size: 1.08rem;
  box-shadow: 0 1px 5px rgba(34,27,11,0.08);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
header .cta-primary:hover,
header .cta-primary:focus {
  background: var(--brand-accent);
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(42,157,143,0.18);
}
.mobile-menu-toggle {
  display: none;
  background: var(--brand-accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 0;
  transition: background 0.16s, box-shadow 0.16s;
  z-index: 1101;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--warm-orange);
}

/* Hide desktop nav and show burger on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: flex;
  position: fixed;
  flex-direction: column;
  background: var(--brand-primary);
  color: #fff;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 6px 32px rgba(38,70,83,0.19);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  margin: 20px 20px 8px 0;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 24px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 12px 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 12px;
  transition: background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--warm-orange);
  color: var(--brand-primary);
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---- FOOTER ---- */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 40px 0 24px 0;
  margin-top: 40px;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: #fff;
  opacity: 0.90;
  font-size: 1rem;
  transition: opacity 0.2s, color 0.2s;
  font-family: var(--font-body);
}
footer nav a:hover {
  opacity: 1;
  color: var(--brand-accent);
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-size: .97rem;
  font-family: var(--font-body);
}
.brand-footer img {
  height: 32px;
  width: auto;
  border-radius: 50%;
}

/* ---- CTA PRIMARY BUTTON ---- */
.cta-primary {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 13px 32px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(42,157,143,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  cursor: pointer;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--warm-orange);
  color: var(--brand-primary);
  box-shadow: 0 5px 24px rgba(255,181,133,0.16);
}

/* ---- CARD STYLES ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 340px;
  gap: 8px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ---- SERVICE LIST (USED ON MAIN PAGE & SERVICES PAGE) ---- */
.service-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-top: 14px;
}
.service-list > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-list > div:hover,
.service-list > div:focus-within {
  box-shadow: 0 8px 20px rgba(255,179,133,0.13), var(--shadow-soft);
  transform: translateY(-5px) scale(1.01);
}
.service-list img {
  height: 38px;
  width: 38px;
  margin-bottom: 7px;
}
.service-list h3 {
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.service-list span {
  font-size: .97rem;
  color: var(--brand-primary);
  font-weight: 700;
  margin-top: 6px;
}

/* ---- TESTIMONIAL CARDS ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
  flex-direction: column;
  color: var(--text-darker);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  border-left: 7px solid var(--warm-orange);
}
.testimonial-card span {
  color: var(--brand-accent);
  font-size: 1.23rem;
  letter-spacing: 2px;
  font-weight: 700;
  align-self: flex-end;
}
.testimonial-card cite {
  align-self: flex-end;
  margin-top: 10px;
  color: var(--brand-primary);
}
@media (max-width: 600px) {
  .testimonial-card {padding: 12px;}
  .testimonial-card blockquote {font-size: 1rem;}
}

/* ---- SPACING AND FLEX PATTERNS ---- */
.section {margin-bottom: 60px; padding: 40px 20px;}
.card-container {display: flex; flex-wrap: wrap; gap: 24px;}
.card {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;}
.testimonial-card {display: flex; align-items: center; gap: 20px; padding: 20px;}
.feature-item {display: flex; flex-direction: column; align-items: flex-start; gap: 15px;}

/* ---- CONTACT INFO SHORT/BLOCK ---- */
.contact-info-short, .contact-details {
  background: var(--warm-sand);
  border-radius: var(--border-radius);
  padding: 20px 20px 12px 20px;
  font-size: 1.05em;
  color: #352720;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  margin-top: 17px;
}
.contact-info-short a, .contact-details a {
  text-decoration: underline;
  color: var(--brand-accent);
}

/* ---- LISTS & ICONS ---- */
ul li, ol li {
  margin-bottom: 13px;
  padding-left: 32px;
  position: relative;
  font-size: 1rem;
}
ul li img {
  position: absolute;
  left: 0; top: 2px;
  height: 20px; width: 20px;
  border-radius: 8px;
  background: var(--warm-peach);
  padding: 3px;
  margin-right: 6px;
}
/* For text-section lists don't need icons */
.text-section ul li img {display: none;}
.text-section ul li {padding-left: 0;}

/* ---- FAQ STYLES ---- */
dl {margin: 0 0 20px 0;}
dt {font-weight: 700; margin-top: 18px; color: var(--brand-primary);}
dd {margin-bottom: 15px; margin-left: 0; color: #222;}

/* ---- OL STEP LISTS ---- */
ol {
  counter-reset: step;
  margin-left: 0;
  padding-left: 0;
}
ol li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  margin-bottom: 23px;
}
ol li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

/* ---- PAGE/SECTION RESPONSIVE ---- */
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 10px; padding-right: 10px;
  }
  .section, section {padding: 32px 8px;}
  .service-list {gap: 16px;}
}
@media (max-width: 600px) {
  .content-wrapper, .text-section {
    padding: 0;
    gap: 14px;
    max-width: 100%;
  }
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.13rem;}
  h3 {font-size: 1.01rem;}
  .section, section {
    padding: 18px 0 22px 0;
    margin-bottom: 37px;
    border-radius: 0;
    background: transparent;
  }
  .service-list > div, .card {
    padding: 14px 10px;
    min-width: unset;
    max-width: unset;
  }
  .contact-info-short, .contact-details {
    padding: 13px 10px 8px 10px;
  }
}

/* ---- HOVER/FOCUS MICRO-INTERACTIONS ---- */
.card, .service-list > div, .testimonial-card, .contact-info-short, .contact-details {
  transition: box-shadow 0.21s, transform 0.21s, background 0.17s;
}
.card:active, .service-list > div:active {
  background: var(--warm-peach);
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff0e2;
  border-top: 2px solid var(--warm-orange);
  box-shadow: 0 -2px 18px rgba(255,179,133,0.13);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 20px 16px 28px;
  z-index: 1400;
  transition: transform 0.32s cubic-bezier(.73,0,.35,1), opacity 0.2s;
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 0;
  color: var(--brand-primary);
  max-width: 580px;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
  box-shadow: 0 1px 5px rgba(42,157,143,0.14);
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--warm-orange);
  color: var(--brand-primary);
}
.cookie-btn.settings {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--warm-peach);
  color: var(--brand-primary);
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.42);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 42px rgba(38,70,83,0.23);
  padding: 36px 32px 28px 32px;
  width: 94vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.38s cubic-bezier(.68,-0.01,.4,1.1);
}
@keyframes modalIn {
  0% {transform: translateY(80px) scale(0.94); opacity: 0;}
  75% {transform: translateY(-8px) scale(1.01); opacity: 1;}
  100% {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal h3 {
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 1.2rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-primary);
  flex: 1 1 auto;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 22px; height: 22px;
}
.cookie-category.essential label:after {
  content: ' (required)';
  font-size: .97em;
  color: var(--brand-accent);
  font-weight: 400;
}
.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  border-radius: 24px;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {background: var(--warm-sand);}

/* ---- FORM, BUTTONS & INTERACTIVE ELEMENTS ---- */
button, .button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 14px;
  border: none;
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 1px 5px rgba(42,157,143,0.12);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--warm-orange);
  color: var(--brand-primary);
}
input, textarea {
  border-radius: var(--border-radius);
  border: 1.5px solid var(--brand-accent);
  padding: 10px 15px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 14px;
  outline: none;
  background: #fff;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--brand-primary);
}

/* ---- ACCESSIBILITY & UTILS ---- */
.sr-only {position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;}
.visually-hidden {border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;}

/* ---- THANK YOU PAGE ---- */
.thank-you-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* ---- VISUAL ENHANCEMENTS ---- */
.card, .service-list > div, .testimonial-card, .contact-info-short, .contact-details, .cookie-modal {
  box-shadow: var(--shadow-soft);
  background: #fff;
  border-radius: var(--border-radius);
}

/* ---- SELECTIONS ---- */
::selection {
  background: var(--warm-peach);
  color: var(--brand-primary);
}

/* ---- PRINT OPTIMIZATION ---- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {display: none !important;}
  .section, .content-wrapper, .container {box-shadow: none !important; background: #fff !important;}
  body {color: #000;}
}
section {
  padding: 15px;
}