/* ========================
   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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FAFAFA;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #FAFAFA;
  color: #2B3A42;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  margin-left: 1.1em;
  padding-left: 1.1em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #2B3A42;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #8EB6C5;
  text-decoration: underline;
  outline: none;
}

/* ========================
   BRAND & TYPOGRAPHY
  ======================== */
:root {
  --clr-primary: #2B3A42;
  --clr-secondary: #8EB6C5;
  --clr-accent: #F4F7FA;
  --clr-bg: #FAFAFA;
  --clr-card-bg: #FFFFFF;
  --clr-muted: #A4A4A4;
  --clr-shadow: rgba(43,58,66,0.07);
  --clr-border: #e3e7ea;
  --font-display: 'Georgia', 'Roboto Slab', serif;
  --font-body: 'Georgia', 'Times New Roman', Times, serif;
}
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--clr-primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.625rem; line-height: 1.18; margin-bottom: 18px; }
h3 { font-size: 1.25rem; line-height: 1.23; margin-bottom: 12px; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
p, ul, ol { margin-bottom: 18px; }
strong { font-weight: 700; }
blockquote { border-left: 3px solid var(--clr-secondary); padding-left: 16px; margin: 16px 0; font-style: italic; color: var(--clr-primary); }

/* ========================
   CONTAINER & SPACING
  ======================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 38px;
  }
}

/* ========================
   HEADER & NAVIGATION
  ======================== */
header {
  width: 100%;
  background: var(--clr-accent);
  box-shadow: 0 4px 16px var(--clr-shadow);
  position: sticky;
  top: 0;
  z-index: 25;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 18px 16px;
  gap: 24px;
}
.header-main > a img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-primary);
  padding: 6px 10px;
  border-radius: 4px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--clr-secondary);
  color: #fff;
}
.cta-primary {
  background: var(--clr-primary);
  color: #fff !important;
  font-size: 1.125rem;
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: 28px;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 0 3px 12px var(--clr-shadow);
  border: none;
  cursor: pointer;
  outline: none;
  text-align: center;
  display: inline-block;
  transition: background 0.2s, transform 0.16s, box-shadow 0.18s;
  margin-left: 18px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--clr-shadow);
}

/* ========================
   MOBILE NAVIGATION
  ======================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--clr-primary);
  background: transparent;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  z-index: 31;
  position: absolute;
  right: 12px;
  top: 14px;
  transition: color .15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--clr-secondary);
  border-radius: 4px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,247,250, 0.95);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.7,0,.3,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 1.9rem;
  background: none;
  color: var(--clr-primary);
  border: none;
  align-self: flex-end;
  margin: 18px 22px 14px 0;
  cursor: pointer;
  transition: color .2s;
  z-index: 102;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--clr-secondary);
  border-radius: 4px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 0 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--font-body);
  color: var(--clr-primary);
  padding: 9px 0;
  border-bottom: 1px solid var(--clr-border);
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-secondary);
  color: #fff;
}
@media (max-width: 992px) {
  .main-nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-nav {
    margin: 0 18px;
    gap: 18px;
  }
  .mobile-menu-close {
    margin: 14px 15px 12px 0;
  }
}

/* ========================
   HERO & GENERAL SECTIONS
  ======================== */
.feature-grid, .testimonial-grid, .blog-teasers, .featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item,
.teaser, .featured-posts article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  background: var(--clr-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--clr-shadow);
  padding: 28px 22px 22px 22px;
  border: 1px solid var(--clr-border);
  min-width: 220px;
}
.feature-item img,
.teaser img,
.featured-posts article img {
  width: 38px;
  height: 38px;
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-grid, .blog-teasers {
    flex-direction: column;
    gap: 20px;
  }
}

/* ===========
   CARDS
   ============ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--clr-card-bg);
  border-radius: 15px;
  box-shadow: 0 2px 10px var(--clr-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .2s, transform .14s;
  border: 1px solid var(--clr-border);
  width: 100%;
  max-width: 340px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--clr-shadow);
  transform: translateY(-2px) scale(1.02);
}

/* ===========
   TESTIMONIAL CARDS
   =========== */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--clr-shadow);
  padding: 20px 22px;
  font-style: italic;
  gap: 20px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 1px solid var(--clr-border);
}
.testimonial-card p {
  color: #2B3A42;
  font-size: 1.06rem;
}
.testimonial-card span {
  color: var(--clr-muted);
  font-style: normal;
  font-size: 1rem;
  align-self: flex-end;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: var(--clr-accent);
  box-shadow: 0 8px 24px var(--clr-shadow);
}
@media (max-width: 768px) {
  .testimonial-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===============
   BLOG / TEASERS
   =============== */
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.teaser {
  background: var(--clr-card-bg);
  padding: 24px 20px;
  border-radius: 15px;
  border: 1px solid var(--clr-border);
  box-shadow: 0 1px 8px var(--clr-shadow);
  font-size: 1.02rem;
  min-width: 220px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.17s, background 0.15s;
}
.teaser:hover, .teaser:focus-within {
  background: var(--clr-secondary);
  color: #fff;
  box-shadow: 0 7px 22px var(--clr-shadow);
  border: 1px solid var(--clr-secondary);
}
.featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.featured-posts article {
  flex: 1 1 260px;
  padding: 26px 20px;
}
@media (max-width: 768px) {
  .blog-teasers, .featured-posts {
    flex-direction: column;
    gap: 14px;
  }
}

/* ===============
   CATEGORY TABS
   =============== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  margin-top: 14px;
  border-bottom: 1px solid var(--clr-border);
}
.category-tabs span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-primary);
  padding: 4px 18px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  background: none;
  border: none;
  transition: background 0.17s, color 0.17s;
}
.category-tabs span:first-child {
  background: var(--clr-secondary);
  color: #fff;
}
.category-tabs span:hover, .category-tabs span:focus {
  background: var(--clr-accent);
  color: var(--clr-primary);
}

/* ===============
   FORMS
   =============== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  margin-bottom: 18px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--clr-secondary);
  background: var(--clr-accent);
}
input[type='submit'], button[type='submit'] {
  background: var(--clr-primary);
  color: #fff;
  padding: 10px 26px;
  border: none;
  border-radius: 25px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .17s, transform .12s;
}
input[type='submit']:hover, button[type='submit']:hover {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  transform: translateY(-1px) scale(1.025);
}

/* ===============
   CUSTOM FLEX SECTIONS
   =============== */
.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) {
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===============
   CONTACT ICONS / BLOCKS
   =============== */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 12px;
  align-items: center;
}
.contact-icons > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}
.contact-icons img {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}
.phone-email-block, .address-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.phone-email-block img, .address-block img {
  width: 22px; height: 22px;
}
.map-location {
  margin: 20px 0; display: flex; align-items: center;
}
.office-hours {
  color: var(--clr-muted);
  font-size: 1.07rem;
  margin: 8px 0;
}

/* ===============
   FAQ / SUPPORT-LIST
   =============== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.faq-item {
  background: var(--clr-card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--clr-shadow);
  padding: 20px 17px;
  min-width: 220px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  border: 1px solid var(--clr-border);
  transition: box-shadow .15s;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 7px 20px var(--clr-shadow);
}
.support-categories {
  font-family: var(--font-body);
  color: var(--clr-primary);
  margin: 10px 0; font-size: 1.08rem;
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--clr-accent);
  border-top: 2px solid var(--clr-secondary);
  box-shadow: 0 -3px 14px var(--clr-shadow);
  color: var(--clr-primary);
  font-size: 1rem;
  padding-top: 22px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 20px 16px;
}
.footer-main > a img {
  width: 62px;
  height: 62px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--clr-primary);
  opacity: 0.92;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: color .15s;
}
.footer-nav a:hover {
  color: var(--clr-secondary);
  text-decoration: underline;
}
.footer-contact {
  color: var(--clr-muted);
  font-size: 1rem;
  font-family: var(--font-body);
}
.footer-contact p {
  line-height: 1.5; margin: 0;
}
@media (max-width: 1024px) {
  .footer-main {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 16px 10px;
  }
  footer { font-size: 0.98rem; }
}

/* ========================
   COOKIES CONSENT BANNER
  ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--clr-secondary);
  box-shadow: 0 -2px 19px var(--clr-shadow);
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: transform .43s cubic-bezier(.7,0,.3,1);
}
.cookie-banner.hidden {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  padding: 9px 26px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cookie-accept {
  background: var(--clr-secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--clr-primary);
  color: #fff;
}
.cookie-reject {
  background: #eee;
  color: var(--clr-primary);
  font-weight: 600;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--clr-muted);
  color: #fff;
}
.cookie-settings {
  background: none;
  color: var(--clr-secondary);
  text-decoration: underline;
  font-weight: 600;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--clr-accent);
  color: var(--clr-primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 1rem;
    padding: 18px 7px 17px 7px;
  }
  .cookie-buttons {
    justify-content: flex-start;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 320;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,58,66,.33);
  display: none;
  justify-content: center;
  align-items: center;
  transition: background .31s ease;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInCookie .4s;
}
@keyframes fadeInCookie {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 42px 24px 26px 24px;
  border-radius: 17px;
  max-width: 98vw;
  width: 390px;
  box-shadow: 0 8px 36px var(--clr-shadow);
  font-family: var(--font-body);
  color: var(--clr-primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: slideUpCookie .38s cubic-bezier(.7,0,.3,1);
}
@keyframes slideUpCookie {
  from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 9px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.cookie-category {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--clr-primary);
}
.cookie-switch {
  width: 32px;
  height: 18px;
  position: relative;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e3e7ea;
  border-radius: 14px;
  transition: background .18s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: var(--clr-secondary);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  background: #fff;
  left: 2px; bottom: 2px;
  border-radius: 50%;
  transition: .18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(14px);
}
.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 9px; right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--clr-primary);
  cursor: pointer;
  padding: 0 5px;
  transition: color .13s;
}
.cookie-modal-close:hover {
  color: var(--clr-secondary);
}

/* ===============
   UTILS & MISC
   =============== */
.text-section {
  background: none;
  padding: 10px 0;
  font-size: 1.13rem;
}
li {
  margin-bottom: 9px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ===============
   ANIMATIONS
   =============== */
@media (prefers-reduced-motion: no-preference) {
  .cta-primary, .card, .testimonial-card, .feature-item, .teaser {
    transition: box-shadow .16s, background .16s, transform .16s, border .17s, color .13s;
  }
  .mobile-menu,
  .cookie-modal, .cookie-modal-content, .cookie-banner {
    transition: all .32s cubic-bezier(.7,0,.3,1);
  }
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 900px) {
  .header-main {
    flex-direction: row;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.08rem; }
  .feature-item, .teaser, .featured-posts article {
    min-width: 150px;
    padding: 16px 11px;
  }
  .footer-main { padding: 16px 6px 13px 6px; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.08rem; }
  h2, h3 { font-size: 1rem; }
  .card, .faq-item, .feature-item, .testimonial-card, .teaser {
    padding: 11px 5px;
  }
  .cta-primary, .cookie-btn {
    padding: 7px 14px;
    font-size: 1rem;
  }
}

/* ===========================
   CLASSIC ELEGANT ENHANCEMENTS
  =========================== */
.section, .card, .testimonial-card, .feature-item, .faq-item, .footer-main, .mobile-menu, .cookie-modal-content {
  box-shadow: 0 2px 12px var(--clr-shadow);
}
.card, .testimonial-card, .feature-item, .faq-item, .teaser {
  border-radius: 16px;
}
.card, .faq-item, .feature-item, .testimonial-card, .teaser {
  border: 1px solid var(--clr-border);
}
hr {
  border-top: 1.5px solid var(--clr-border);
  margin: 32px 0;
}
/* ========================
   END OF CSS
  ======================== */
