/* ================== CSS RESET & BASE ================== */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Libre Baskerville', 'Georgia', 'Times New Roman', Times, serif;
  color: #2f3233;
  background: #fdfcf8;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #205050;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD166;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #ecebe8;
}
th {
  background: #faf8f4;
  font-weight: 700;
  font-size: 1rem;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #205050;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
  line-height: 1.22;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
.subheadline {
  font-size: 1.2rem;
  font-family: 'Open Sans', serif;
  color: #41615d;
  font-weight: 400;
  margin-bottom: 24px;
}
p {
  font-size: 1rem;
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* ================== CONTAINER & LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ================== HEADER & NAVIGATION ================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(32, 80, 80, 0.03);
  border-bottom: 1px solid #ecebe8;
}
.logo {
  display: flex;
  align-items: center;
  height: 70px;
  margin-right: 32px;
  padding: 5px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Open Sans', serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
  color: #205050;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:not(.btn-primary):after {
  display: block;
  content: '';
  height: 2px;
  background: #FFD166;
  width: 0%;
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:not(.btn-primary):hover:after {
  width: 100%;
}
.main-nav .btn-primary {
  margin-left: 24px;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 0;
}

/* ================== BUTTONS ================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: #205050;
  border-radius: 8px;
  padding: 12px 32px;
  box-shadow: 0 2px 10px 0 rgba(32,80,80,0.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  outline: none;
  margin-top: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD166;
  color: #205050;
  box-shadow: 0 4px 20px 0 rgba(32,80,80,0.08);
  transform: translateY(-2px) scale(1.03);
}

/* For buttons in banners/modals */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #205050;
  background: #FFD166;
  border-radius: 8px;
  padding: 10px 24px;
  margin: 0 8px 0 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #205050;
  color: #fff;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid #205050;
  background: #fff;
  color: #205050;
  font-weight: 600;
  font-family: 'Open Sans', serif;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover, .btn-outline:focus {
  background: #205050;
  color: #fff;
}

/* ================== HERO SECTION ================== */
.hero-section {
  background: #f1f3ef;
  border-bottom: 1px solid #ecebe8;
  padding: 56px 0 56px 0;
  margin-bottom: 48px;
}
.hero-section .container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

/* ================== FEATURE HIGHLIGHTS ================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 16px 0 0 0;
  list-style: none;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(32, 80, 80, 0.05);
  padding: 32px 24px 28px 24px;
  min-width: 210px;
  flex: 1 1 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px 0 rgba(32,80,80,0.10);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

/* ================== SERVICE LIST/GRID ================== */
.service-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0 24px 0;
  align-items: stretch;
}
.service-list > div,
.service-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(32, 80, 80, 0.05);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.15s;
}
.service-list > div:hover,
.service-grid > div:hover {
  box-shadow: 0 8px 32px rgba(32, 80, 80, 0.10);
  transform: translateY(-2px) scale(1.019);
}
.service-list h3, .service-grid h2 {
  color: #205050;
  font-size: 1.15rem;
}
.service-list .service-price, .service-grid .service-price {
  margin-top: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.09rem;
  color: #FFD166;
  font-weight: 600;
}

/* ================== CARDS & FLEX CONTAINERS ================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 16px 0 rgba(32,80,80,0.06);
  margin-bottom: 20px;
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 340px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 34px 0 rgba(32,80,80,0.09);
  transform: translateY(-3px) scale(1.016);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ================== FLEX PATTERNS FROM BRIEF ================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 26px 24px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 26px 0 rgba(34, 62, 69, 0.06);
  margin-bottom: 20px;
  color: #1f2323;
  min-width: 260px;
  max-width: 520px;
  margin-right: 18px;
  margin-left: 0;
  border: 1px solid #f2ede5;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card p {
  color: #205050;
  font-size: 1.07rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #756b5f;
  align-self: flex-end;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 10px 40px rgba(32,80,80,0.13);
  transform: translateY(-2px);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

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

.section:not(:last-child) {
  margin-bottom: 60px;
}

.text-section {
  margin-bottom: 16px;
}
.text-section ul, .text-section ol {
  margin: 12px 0 16px 0;
  list-style: disc;
  padding-left: 1.5em;
}
.text-section li {
  margin-bottom: 12px;
}

/* ================== PRICE TABLE ================== */
.price-table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px 0 rgba(32,80,80,0.05);
  margin-bottom: 32px;
  margin-top: 2px;
  font-size: 1.05rem;
}
.price-table th {
  color: #205050;
}
.price-table tr:hover td {
  background: #faf6eb;
}
.price-table td {
  color: #3d4343;
}

/* ================== FOOTER ================== */
footer {
  background: #f6f5f2;
  border-top: 1px solid #ecebe8;
  margin-top: 42px;
  padding-top: 30px;
  padding-bottom: 16px;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.footer-logo img {
  height: 54px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-nav a,.footer-legal a {
  color: #205050;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  transition: color 0.17s;
}
.footer-nav a:hover,.footer-legal a:hover {
  color: #FFD166;
}
.footer-contact p {
  color: #473f37;
  font-size: 0.98rem;
  margin-bottom: 7px;
}
.footer-contact a {
  color: #205050;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.80;
}
.footer-social a:hover {
  opacity: 1;
  filter: brightness(1.2);
}
.footer-social img {
  width: 32px;
  height: 32px;
}
.footer-copy {
  margin-top: 8px;
  color: #aaa083;
  font-size: 0.98rem;
  text-align: center;
}

/* ================== MOBILE BURGER MENU ================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #205050;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
  z-index: 1020;
}
.mobile-menu-toggle:focus {
  background: #f6f5f2;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  z-index: 9990;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 80, 80, 0.97);
  transition: transform 0.3s cubic-bezier(.5,.2,.1,1), opacity 0.22s;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  animation: slideInMenu 0.4s cubic-bezier(.62,.04,.38,1.02);
}
@keyframes slideInMenu {
  from {transform: translateX(100%); opacity: 0;}
  to {transform: translateX(0); opacity: 1;}
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  color: #FFD166;
  border: none;
  cursor: pointer;
  padding: 16px 26px 8px 0;
  margin-top: 8px;
  transition: color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 52px 0 0 43px;
  padding-bottom: 16px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: #fff;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 3px;
  transition: color 0.18s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD166;
  background: #20404022;
}

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

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff9ea;
  border-top: 1px solid #ecebe8;
  box-shadow: 0 -2px 24px 0 rgba(32, 80, 80, 0.07);
  padding: 24px 16px 24px 16px;
  z-index: 9100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.26s, opacity 0.17s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner .cookie-text {
  color: #205050;
  font-size: 1rem;
  max-width: 540px;
  font-family: 'Open Sans', serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* COOKIE MODAL (Settings) */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,80,80,0.67);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: modalIn 0.3s cubic-bezier(.44,.2,.61,1.1);
}
@keyframes modalIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 38px 32px 28px 32px;
  box-shadow: 0 12px 52px 0 rgba(32,80,80,0.18);
  min-width: 320px;
  max-width: 90vw;
  font-size: 1.07rem;
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.42rem;
  color: #205050;
}
.cookie-categories {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #205050;
  cursor: pointer;
}
.cookie-category .category-name {
  font-weight: bold;
  color: #205050;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .cookie-close-modal {
  position: absolute;
  top: 8px; right: 16px;
  font-size: 2.1rem;
  background: none;
  color: #205050;
  border: none;
  cursor: pointer;
  z-index: 11001;
}
.cookie-modal .cookie-close-modal:hover {
  color: #FFD166;
}

/* ================== SECTION SPACING RULES ================== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* ================== GLOBAL RESPONSIVE ================== */
@media (max-width: 990px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .feature-grid, .service-list, .service-grid, .card-container, .testimonial-slider, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 38px;
  }
  .hero-section {
    padding: 34px 0;
    margin-bottom: 26px;
  }
  .feature-grid,
  .service-list,
  .service-grid,
  .testimonial-slider, 
  .card-container, 
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-main {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav, .footer-legal {
    flex-direction: row;
    gap: 13px;
  }
  .mobile-nav {
    margin-left: 16px;
    gap: 19px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .footer-social img {
    width: 28px;
    height: 28px;
  }
  .cookie-modal .cookie-modal-content {
    padding: 22px 7vw 22px 7vw;
    min-width: 90vw;
    font-size: 0.98rem;
  }
}

/* Responsive flex direction for text+image blocks */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ================== UTILITY ================== */
.hide {
  display: none !important;
}
.visible {
  display: block !important;
}
.text-center {
  text-align: center !important;
}

/* ================== MODAL OVERLAYS GENERAL ================== */
[role="dialog"], .modal {
  z-index: 9999;
}

/* ================== SPECIAL DECORATIVE ================== */
hr {
  border: none;
  height: 1px;
  background: #ecebe8;
  margin: 32px 0;
}

.map-embed {
  margin: 16px 0 8px 0;
  background: #f9f7f2;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #ecebe8;
  color: #6d6b66;
  font-size: 0.97rem;
}

/* ================== FORM ELEMENTS (for any future forms) ================== */
input, textarea, select {
  border-radius: 6px;
  border: 1px solid #cac5bb;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  background: #fff;
  margin-bottom: 16px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD166;
  outline: 1px solid #FFD166;
}
label {
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #205050;
}

/* ================== ANIMATION MICRO-INTERACTIONS ================== */
.card, .service-list > div, .feature-grid li, .testimonial-card, .btn-primary, .btn-secondary, .btn-outline {
  transition: box-shadow 0.18s, transform 0.14s, background 0.13s, color 0.13s;
}

/* ================== FONT FACE FALLBACKS ================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

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