/* --- Base 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,
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, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  vertical-align: middle;
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* --- Typography & Brand --*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');
:root {
  --brand-primary: #273969;
  --brand-secondary: #E7EAEF;
  --brand-accent: #CC9836;
  --brand-accent-dark: #b0771a;
  --brand-bg: #fff;
  --brand-text: #273969;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', Arial, sans-serif;
  --radius: 16px;
  --shadow-base: 0 2px 12px rgba(39,57,105,0.06);
  --shadow-card: 0 4px 28px rgba(39,57,105,0.10);
}

body {
  background: linear-gradient(135deg, #E7EAEF 0%, #fff 80%);
  min-height: 100vh;
  color: var(--brand-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.5s;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-primary);
  font-family: var(--font-display);
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  color: var(--brand-primary);
  font-weight: 600;
}
p, ul li, ol li {
  color: #273969;
  font-size: 1rem;
  margin-bottom: 10px;
}
strong, b {
  font-weight: 600;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-base);
}
@media (max-width: 768px) {
  .section {
    padding: 28px 6px;
    margin-bottom: 32px;
  }
}

/* --- Header & Navigation --- */
header {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(90deg, var(--brand-primary) 0%, #384f93 100%);
  box-shadow: 0 2px 16px rgba(39,57,105,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header > a img {
  height: 40px;
  margin-right: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 4px 6px;
  border-radius: 8px;
}
header nav a:hover, .mobile-nav a:hover {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.13);
}
header .cta-btn {
  margin-left: 32px;
}
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    color: #fff;
    font-size: 2.2rem;
    background: none;
    border: none;
    line-height: 1;
    padding: 0 16px;
    z-index: 1100;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--brand-primary) 80%, #5E6C8E 100%);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  box-shadow: -4px 0 24px rgba(39,57,105,0.2);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  margin: 28px 28px 0 0;
  background: none;
  transition: color 0.18s;
  z-index: 2100;
  padding: 4px 8px;
  border-radius: 34px;
}
.mobile-menu-close:hover {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 56px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 0;
  border-radius: 10px;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:active {
  color: var(--brand-accent);
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-accent) 40%, var(--brand-accent-dark) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 32px;
  font-size: 1.08rem;
  padding: 14px 34px;
  margin-top: 10px;
  box-shadow: 0 2px 12px rgba(204,152,54,0.11);
  transition: background 0.22s cubic-bezier(.55,.34,.6,1.17), box-shadow 0.22s;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--brand-accent-dark) 50%, var(--brand-accent) 100%);
  box-shadow: 0 7px 22px rgba(204,152,54,0.16);
  color: #fff;
}

/* --- Hero / Section Structure --- */
main > section {
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 768px) {
  main > section {
    margin-bottom: 36px;
  }
}

/* --- Feature Grids & Cards --- */
.feature-grid, .service-grid, .card-container, .featured-posts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-grid > div {
  background: var(--brand-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 26px 20px;
  flex: 1 1 220px;
  min-width: 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.16s, box-shadow 0.19s;
}
.feature-grid > div:hover, .service-grid > div:hover {
  transform: translateY(-7px) scale(1.035);
  box-shadow: 0 10px 36px rgba(39,57,105,0.13);
  background: #f5f6fa;
}
.feature-grid img {
  max-width: 48px;
  margin-bottom: 12px;
}

/* Classic List Styling for Offer Overviews */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: #273969;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
  position: relative;
}
ul li span, ol li span {
  color: var(--brand-accent-dark);
  font-weight: 600;
  margin-left: 8px;
  font-size: 1rem;
}

ul li::marker, ol li::marker {
  color: var(--brand-accent);
  font-size: 1.18em;
}

/* --- Card Utilities --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(39,57,105,0.15);
}

/* --- Content Grid / Text-Image Section --- */
.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;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- Testimonial Cards & Sliders --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  max-width: 390px;
  color: #181e2e;
  border-left: 5px solid var(--brand-accent);
  transition: box-shadow 0.17s, background 0.16s;
}
.testimonial-card p {
  color: #273969;
  font-size: 1.1rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--brand-primary);
  font-size: 0.97rem;
  font-style: normal;
  font-family: var(--font-body);
  margin-top: -8px;
}
.testimonial-card:hover {
  background: #f8fafd;
  box-shadow: 0 8px 28px rgba(204,152,54,0.12);
}

@media (max-width: 1000px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 24px;
  }
}

/* --- Text Section --- */
.text-section {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.text-section h3 {
  margin-top: 12px;
  color: var(--brand-accent-dark);
  font-family: var(--font-display);
}

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

/* --- Newsletter Signup --- */
.newsletter-signup {
  background: linear-gradient(90deg, #f6f5ed 0%, #e7eaef 100%);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: 0 2px 14px rgba(39,57,105,0.06);
  margin-top: 12px;
  margin-bottom: 16px;
}
.newsletter-signup p {
  color: var(--brand-primary);
  font-size: 1.05rem;
  font-weight: 500;
}

/* --- Featured posts --- */
.featured-posts {
  margin-top: 18px;
  padding: 15px 0 0 6px;
}
.featured-posts h3 {
  font-size: 1.07rem;
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 8px;
}
.featured-posts ul {
  gap: 12px;
  flex-direction: column;
  margin-bottom: 0;
}

/* --- Footer --- */
footer {
  width: 100%;
  background: linear-gradient(90deg, var(--brand-primary) 40%, #353a6a 100%);
  color: #fff;
  padding: 38px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 5px;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: color 0.18s, text-decoration 0.16s;
  opacity: 0.88;
}
footer nav a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
  opacity: 1;
}
footer span {
  font-size: 0.96rem;
  font-family: var(--font-body);
  color: #eef0f5;
  opacity: 0.78;
}
@media (max-width: 768px) {
  footer > div {
    flex-direction: column;
    gap: 9px;
  }
  footer span {
    text-align: center;
  }
  footer nav {
    flex-direction: column;
    gap: 11px;
  }
}

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 3000;
  background: linear-gradient(90deg, #fff 66%, #e7eaef 100%);
  box-shadow: 0 -3px 18px rgba(39,57,105,0.11);
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: center;
  padding: 18px 24px;
  animation: slideUpCookie 0.55s;
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}
.cookie-banner p {
  color: #273969;
  font-size: 1rem;
  margin: 0 8px 0 0;
  max-width: 370px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  display: inline-block;
  border-radius: 22px;
  font-size: 0.98rem;
  padding: 9px 16px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.21s, color 0.17s, box-shadow 0.14s;
  border: none;
  margin: 0 2px;
  box-shadow: 0 1px 6px rgba(39,57,105,0.06);
}
.cookie-btn.accept {
  background: linear-gradient(90deg, var(--brand-accent) 70%, var(--brand-accent-dark) 100%);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, var(--brand-accent-dark) 60%, var(--brand-accent) 100%);
}
.cookie-btn.reject {
  background: #E7EAEF;
  color: var(--brand-primary);
}
.cookie-btn.reject:hover {
  background: #dadbe2;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--brand-accent-dark);
  border: 2px solid var(--brand-accent-dark);
  padding: 8px 17px;
}
.cookie-btn.settings:hover {
  background: #fef6ec;
}

@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px;
    gap: 18px;
  }
  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,57,105, 0.30);
  z-index: 3200;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg 0.28s;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 34px 22px 24px 28px;
  min-width: 310px;
  max-width: 96vw;
  box-shadow: 0 7px 40px rgba(39,57,105,0.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideModal 0.35s cubic-bezier(.61,.45,.39,.79);
}
@keyframes slideModal {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 12px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-toggle {
  width: 40px; height: 24px;
  border-radius: 24px;
  background: #e7eaef;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  margin-left: auto;
  border: 2px solid #e7eaef;
}
.cookie-toggle.enabled {
  background: var(--brand-accent);
  border: 2px solid var(--brand-accent-dark);
}
.cookie-toggle .toggle-dot {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(39,57,105,0.08);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.17s;
}
.cookie-toggle.enabled .toggle-dot {
  left: 20px;
  background: #fff3e0;
}
.cookie-cat .category-desc {
  font-size: 0.94rem;
  color: #444d66;
  opacity: 0.95;
}
.cookie-btn.save {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  margin-top: 12px;
}
.cookie-btn.save:hover, .cookie-btn.save:focus {
  background: var(--brand-accent-dark);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 21px;
  color: var(--brand-primary);
  font-size: 1.7rem;
  background: none;
  transition: color 0.18s;
  border-radius: 50%;
  padding: 3px 7px;
}
.cookie-modal .close-modal:hover {
  color: var(--brand-accent-dark);
  background: #f8f7f1;
}

/* --- Responsive Utilities --- */
@media (max-width: 1060px) {
  .feature-grid > div,
  .service-grid > div,
  .card, .testimonial-card {
    min-width: 90%;
    flex: 1 1 90vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 4vw;
  }
  h1 {
    font-size: 1.64rem;
  }
  h2 {
    font-size: 1.24rem;
    margin-top: 20px;
    margin-bottom: 12px;
  }
}

@media (max-width: 620px) {
  .feature-grid, .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .service-grid > div {
    min-width: 0;
    flex: 1 1 92vw;
  }
  .testimonial-slider {
    gap: 12px;
  }
}

/* --- Additional Micro-interactions & Effects --- */
.content-wrapper a {
  transition: color 0.16s, box-shadow 0.18s;
}
.content-wrapper a:active {
  color: var(--brand-accent);
}
img, .feature-grid img {
  transition: filter 0.19s;
}
img:active, .feature-grid img:active {
  filter: brightness(0.86);
}

/* --- Utility Spacing for Cards/Sections --- */
.card, .testimonial-card, .feature-grid > div, .service-grid > div {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
}
.feature-item {
  gap: 15px;
  align-items: flex-start;
}
.text-image-section {
  gap: 30px;
  align-items: center;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}

/* --- Accessibility: Focus Styles --- */
a, button, .cta-btn {
  outline: none;
}
a:focus, .cta-btn:focus, button:focus {
  box-shadow: 0 0 0 2px var(--brand-accent);
  outline: none;
}

/* --- Hide browser default tap highlight on mobile --- */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0.02);
}

/* --- Print Adjustments --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
}
