/* ==== CSS RESET AND 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;
}
/* 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;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F4EFEF;
  color: #2C2320;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}
a {
  color: #832232;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #22356B;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* ==== BRAND TYPOGRAPHY ==== */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  color: #832232;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.375rem;
  font-weight: 800;
}
h2 {
  font-size: 1.75rem;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22356B;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #43291F;
}

/* ==== CONTAINER, SECTIONS, LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgba(131, 34, 50, 0.07), 0 1.5px 5px rgba(34,53,107,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(131, 34, 50, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}
.branding img {
  height: 45px;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: #22356B;
  padding: 6px 12px;
  border-radius: 12px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFE5E5;
  color: #832232;
}
.cta-btn {
  display: inline-block;
  background: #832232;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 21px;
  padding: 11px 34px;
  margin-left: 10px;
  box-shadow: 0 3px 18px rgba(131, 34, 50, 0.13);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.18s, transform 0.16s, box-shadow 0.19s;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover, .cta-btn:focus {
  background: #22356B;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(34,53,107,0.15);
}
.mobile-menu-toggle {
  display: none;
  background: #fff3f3;
  border: 2px solid #832232;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: #832232;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, border-color 0.17s;
  margin-left: 18px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFE5E5;
  border-color: #22356B;
  color: #22356B;
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffdfa;
  box-shadow: 0 8px 30px rgba(131,34,50,0.16);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  z-index: 1500;
  padding: 34px 26px 20px 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #832232;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(34,53,107,0.08);
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #22356B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #832232;
  padding: 13px 0 13px 12px;
  border-radius: 11px;
  font-weight: 600;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FEECEC;
  color: #22356B;
}

/* ==== LAYOUT FLEXBOX COMPONENTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(131,34,50,0.07);
  padding: 28px 18px 22px 18px;
  flex: 1 1 270px;
  min-width: 250px;
  transition: transform 0.18s, box-shadow 0.21s;
}
.card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 5px 22px rgba(34,53,107,0.12);
}
.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;
  border-radius: 19px;
  background: #F4EFEF;
  color: #35211D;
  box-shadow: 0 4px 16px rgba(131, 34, 50, 0.07);
  min-width: 250px;
  margin-right: 16px;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #22356B;
  line-height: 1.4;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF8F4;
  border-radius: 15px;
  padding: 22px 26px;
  box-shadow: 0 2px 10px rgba(34,53,107,0.06);
}

/* ==== SPECIAL GRIDS & LISTS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature-grid > div {
  background: #FFF8F4;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(131,34,50,0.06);
  flex: 1 1 260px;
  min-width: 210px;
  padding: 21px 17px 17px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 20px rgba(34,53,107,0.12);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid img {
  width: 35px;
  height: 35px;
  margin-bottom: 6px;
}
.services-list, .contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.services-list li {
  background: #FEECEC;
  color: #832232;
  border-radius: 14px;
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 24px;
  margin-bottom: 0;
}
.service-category {
  color: #832232;
}
.service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.service-categories > div {
  background: #fff7f5;
  border-radius: 13px;
  box-shadow: 0 1.5px 7px rgba(34,53,107,0.09);
  padding: 18px 14px 10px 14px;
  flex: 1 1 220px;
  min-width: 195px;
}
.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member-list > div {
  background: #FFF8F4;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(34,53,107,0.08);
  padding: 17px 12px 14px 15px;
  flex: 1 1 215px;
  min-width: 190px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.blog-list article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(131,34,50,0.06);
  flex: 1 1 275px;
  min-width: 220px;
  padding: 20px 18px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.blog-list article:hover {
  box-shadow: 0 6px 22px rgba(34,53,107,0.17);
  transform: translateY(-5px) scale(1.01);
}
.blog-categories {
  margin-bottom: 16px;
  color: #22356B;
  font-weight: 500;
  font-size: 1rem;
}
.blog-categories a {
  background: #FFF8F4;
  color: #832232;
  padding: 2px 9px;
  border-radius: 9px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98em;
  margin-right: 7px;
  margin-left: 2px;
  transition: background 0.17s, color 0.17s;
}
.blog-categories a:hover {
  background: #832232;
  color: #fff;
}
.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.search-bar input[type=text] {
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #E0CFCF;
  outline: none;
  width: 250px;
  background: #FFF7F5;
  color: #22356B;
  transition: border-color 0.16s;
  margin-right: 8px;
}
.search-bar input[type=text]:focus {
  border-color: #832232;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  color: #43291F;
  background: #fff7f3;
  border-radius: 11px;
  padding: 8px 14px;
}
.contact-list img {
  width: 23px;
  height: 23px;
  border-radius: 0;
}

.team-photo-placeholder {
  background: #FEECEC;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  min-height: 85px;
  padding: 23px;
  box-shadow: 0 1.5px 9px rgba(131, 34, 50, 0.08);
}
.map-embed {
  margin-top: 14px;
}

/* ==== TESTIMONIAL SLIDER (FLEX) ==== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

/* ==== FOOTER ==== */
footer {
  background: #22356B;
  color: #fff;
  padding: 40px 0 26px 0;
  border-top-left-radius: 33px;
  border-top-right-radius: 33px;
  box-shadow: 0 -2px 12px rgba(34,53,107,0.15);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 12px;
  padding: 6px 10px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #832232;
}
.contact-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f7eaea;
}
.social-media {
  display: flex;
  gap: 11px;
  align-items: center;
}
.social-media a img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: box-shadow 0.17s, filter 0.13s;
}
.social-media a:hover img {
  box-shadow: 0 3px 12px #fff8fa;
  filter: brightness(1.18);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff7f5;
  border-top: 3px solid #832232;
  box-shadow: 0 -2px 18px rgba(131,34,50,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 18px 18px;
  gap: 16px;
  z-index: 2500;
  animation: fadeUpIn 0.3s ease;
}
.cookie-consent-banner p {
  color: #43291F;
  font-size: 1rem;
  text-align: center;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  background: #832232;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 21px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #22356B;
  transform: scale(1.08);
}
.cookie-btn.cookie-reject {
  background: #FFE5E5;
  color: #832232;
  border: 2px solid #832232;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #fff;
  color: #22356B;
  border-color: #22356B;
}
.cookie-btn.cookie-settings {
  background: #fff7f5;
  color: #22356B;
  border: 2px solid #22356B;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #F4EFEF;
  color: #832232;
  border-color: #832232;
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  background: rgba(34,35,107, 0.26);
  left: 0; top: 0; right:0; bottom:0;
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.28s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdfa;
  padding: 38px 30px 24px 30px;
  border-radius: 22px;
  box-shadow: 0 8px 34px rgba(34,53,107,0.19);
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #832232;
  margin-bottom: 7px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #FFF8F4;
  border-radius: 11px;
  padding: 9px 13px;
}
.cookie-toggle {
  margin-left: auto;
  background: #FFE5E5;
  border: 2px solid #832232;
  border-radius: 13px;
  width: 43px;
  height: 25px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cookie-toggle[aria-checked="true"] {
  background: #832232;
  border-color: #832232;
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s, background 0.13s;
}
.cookie-toggle[aria-checked="true"]:after {
  left: 22px;
  background: #FFE5E5;
}
.cookie-toggle[disabled] {
  background: #EEE6E6;
  border-color: #BBB9B9;
  cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: #832232;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,53,107,0.09);
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #22356B;
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* ==== BUTTONS ==== */
button, .cta-btn, .cookie-btn {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 3px solid #22356B;
  outline-offset: 2px;
}

/* ==== RESPONSIVE RULES ==== */
@media (max-width: 1100px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 97vw;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    padding: 9px 20px;
    font-size: 0.99rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 30px;
  }
  .content-grid, .feature-grid, .team-member-list, .card-container, .testimonial-slider, .service-categories, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .card, .feature-grid > div, .team-member-list > div, .service-categories > div, .blog-list article {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.09rem;
  }
  .footer-nav a {
    font-size: 1rem;
    padding: 5px 6px;
  }
}

/* ==== MICRO-INTERACTIONS & ANIMATIONS ==== */
.card, .feature-grid > div, .blog-list article {
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .feature-grid > div:hover, .blog-list article:hover {
  box-shadow: 0 7px 24px rgba(131,34,50,0.13);
  transform: translateY(-3px) scale(1.019);
}

.cta-btn:active, .cookie-btn:active {
  filter: brightness(0.95);
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 2px solid #22356B;
  outline-offset: 1.5px;
}
::selection {
  background: #FFE5E5;
  color: #832232;
}

/* ==== CUSTOM SCROLLBAR ==== */
body::-webkit-scrollbar {
  width: 10px;
  background: #FFE5E5;
  border-radius: 10px;
}
body::-webkit-scrollbar-thumb {
  background: #832232;
  border-radius: 10px;
}

/* ==== MISC ==== */
hr {
  border: none;
  height: 1.5px;
  background: #F4EFEF;
  margin: 30px 0;
}

/* ==== END OF CSS ==== */
