/* ----------------------------------------- */
/* 1. 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,
main, 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 { scroll-behavior: smooth; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: 0; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
*, *:before, *:after { box-sizing: inherit; }

/* ----------------------------------------- */
/* 2. ROOT VARIABLES & BRAND COLORS          */
/* ----------------------------------------- */
:root {
  --color-primary: #48506B;
  --color-primary-dark: #39405a;
  --color-secondary: #ffffff;
  --color-bg-gray: #EDEDED;
  --color-accent: #EABA6B;
  --color-accent-dark: #e3a53c;
  --color-black: #171717;
  --color-shadow: rgba(72, 80, 107, 0.16);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* ----------------------------------------- */
/* 3. BASE TYPOGRAPHY                       */
/* ----------------------------------------- */
body {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol {
  font-size: 1.125rem;
  margin-bottom: 16px;
  font-weight: 400;
  color: var(--color-primary-dark);
}
strong { font-weight: 700; color: var(--color-primary); }
em { font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  p, ul, ol { font-size: 1rem; }
}

/* ----------------------------------------- */
/* 4. LAYOUT CONTAINERS & SECTION SPACING    */
/* ----------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: 32px;
  box-shadow: 0 6px 32px -8px var(--color-shadow);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 20px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ----------------------------------------- */
/* 5. HEADER, NAV & LOGO                     */
/* ----------------------------------------- */
header {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 20px -8px var(--color-shadow);
}
header .container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
header img {
  height: 48px;
  max-width: 170px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a::after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}
header nav a:hover::after, header nav a:focus::after {
  width: 100%;
}

/* ----------------------------------------- */
/* 6. BUTTONS & CTAs                        */
/* ----------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 14px 32px;
  border-radius: 32px;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px -8px var(--color-shadow);
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.22s, box-shadow 0.22s, transform 0.16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent-dark);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px -8px var(--color-shadow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-gray);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 25px;
  border: 2px solid var(--color-primary);
  box-shadow: none;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--color-accent-dark);
  color: var(--color-secondary);
  background: var(--color-primary);
}

/* ----------------------------------------- */
/* 7. FLEXBOX PATTERNS FOR LAYOUTS           */
/* ----------------------------------------- */
/*  .card-container { display: flex; flex-wrap: wrap; gap: 24px; } */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 2px 20px -8px var(--color-shadow);
  overflow: hidden;
  padding: 36px 28px;
  min-width: 250px;
  flex: 1 1 310px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px -8px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-bg-gray);
  border-radius: 24px;
  box-shadow: 0 2px 16px -8px var(--color-shadow);
  color: var(--color-black);
  font-size: 1.08rem;
  line-height: 1.6;
  min-width: 256px;
  max-width: 650px;
  font-family: var(--font-body);
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card p {
  color: var(--color-black);
  margin: 0 0 0 0;
  font-size: 1.13rem;
  font-family: var(--font-body);
  font-weight: 500;
  flex: 1 1 0;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  font-weight: 700;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px -8px var(--color-shadow);
  transform: translateY(-2px) scale(1.022);
}

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

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ----------------------------------------- */
/* 8. FOOTER                                */
/* ----------------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 0;
  position: relative;
  z-index: 1;
}
footer .container {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
}
footer img {
  height: 36px;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-bg-gray);
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* ----------------------------------------- */
/* 9. LINKS & INTERACTIVITY                  */
/* ----------------------------------------- */
a {
  transition: color 0.18s;
}
a:focus, a:hover {
  color: var(--color-accent-dark);
  outline: none;
}

/* ----------------------------------------- */
/* 10. MOBILE BURGER MENU                    */
/* ----------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 24px;
  z-index: 110;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2.5rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.16s, background 0.14s, color 0.14s;
  box-shadow: 0 2px 12px -5px var(--color-shadow);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav, header .btn-primary {
    display: none !important;
  }
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  z-index: 120;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.6,.04,.98,.335), opacity 0.24s;
  display: flex;
  flex-direction: column;
  padding: 32px 16px 24px 36px;
  box-shadow: 4px 0 32px -14px var(--color-shadow);
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-accent);
  font-size: 2.5rem;
  border: none;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.33rem;
  letter-spacing: 0.015em;
  padding: 12px 0 12px 8px;
  border-radius: 10px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ----------------------------------------- */
/* 11. COOKIE CONSENT BANNER                 */
/* ----------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-bg-gray);
  color: var(--color-primary-dark);
  box-shadow: 0 -2px 20px -8px var(--color-shadow);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUpBanner 0.7s cubic-bezier(.6,.04,.98,.335);
}
@keyframes fadeInUpBanner {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-consent-banner .btn-primary, 
.cookie-consent-banner .btn-secondary {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 23px;
  font-weight: 700;
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(56, 56, 56, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay .41s;
}
@keyframes fadeInOverlay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  min-width: 320px;
  max-width: 95vw;
  padding: 32px 24px 20px;
  border-radius: 28px;
  box-shadow: 0 6px 56px -10px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.35s cubic-bezier(.48,.25,.47,1.08);
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.89); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .cookie-label {
  font-weight: 600;
  font-size: 1.06rem;
  flex: 1 1 0;
}
.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}
.cookie-modal .cookie-category.disabled label {
  color: #c1c1c1;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  margin-top: 10px;
  gap: 16px;
  justify-content: flex-end;
}

/* ----------------------------------------- */
/* 12. FORMS & TABLES                        */
/* ----------------------------------------- */
input, textarea, select {
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #faf8f5;
  color: var(--color-primary-dark);
  outline: none;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}
label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: block;
}

/* ----------------------------------------- */
/* 13. MISCELLANEOUS ELEMENT STYLES          */
/* ----------------------------------------- */
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0.5em;
  font-size: 1.06rem;
}
ul li::marker, ol li::marker {
  color: var(--color-accent);
}
.text-section ul, .text-section ol {
  padding-left: 18px;
}
@media (max-width: 700px) {
  ul, ol {
    padding-left: 17px;
  }
}

blockquote {
  font-style: italic;
  background: #f9f4e7;
  border-left: 4px solid var(--color-accent);
  margin: 16px 0;
  padding: 12px 18px;
  color: var(--color-primary-dark);
  border-radius: 10px;
}

/* ----------------------------------------- */
/* 14. GEOMETRIC DECORATIVE SHAPES           */
/* ----------------------------------------- */
/* (For cards or section backgrounds, only as demo) */
.card::before {
  content: '';
  position: absolute;
  right: -38px; top: -26px;
  width: 80px; height: 80px;
  border-radius: 22px 68px 54px 34px / 59px 26px 60px 25px;
  background: var(--color-accent);
  opacity: 0.10;
  z-index: 0;
}
.card-content, .card > * {
  position: relative;
  z-index: 100;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.09;
  z-index: 0;
}

/* ----------------------------------------- */
/* 15. UTILITIES & RESPONSIVE RULES          */
/* ----------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }
.text-center { text-align: center; }

@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .footer .container { max-width: 100vw; }
}

@media (max-width: 768px) {
  .footer .content-wrapper, .content-wrapper, .section {
    padding: 16px 7px;
  }

  .card, .testimonial-card {
    min-width: 0;
    flex-basis: 98vw;
    padding: 20px 12px;
  }

  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ----------------------------------------- */
/* 16. ACCESSIBILITY & FOCUS STATES          */
/* ----------------------------------------- */
a, button, .btn-primary, .btn-secondary {
  outline: none;
}
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}

/* ----------------------------------------- */
/* 17. Z-INDEX MANAGEMENT & NO OVERLAPS      */
/* ----------------------------------------- */
header, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* ----------------------------------------- */
/* 18. PRINT OPTIMIZATION                    */
/* ----------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
}
