/* =========================================================
   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: 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.7;
  background: #fff;
  color: #1A1A1A;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
ul,ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  outline: none;
  font: inherit;
  cursor: pointer;
}
:root {
  --primary: #183153;
  --secondary: #F5F4F0;
  --accent: #E9861C;
  --black: #171717;
  --white: #fff;
  --gray-100: #F6F6F6;
  --gray-200: #EAEAEA;
  --gray-300: #CCCCCC;
  --gray-400: #B1B1B1;
  --gray-500: #707070;
  --gray-700: #404040;
  --gray-900: #222222;

  --shadow-card: 0 2px 16px 0 rgba(24,49,83, 0.08);
  --shadow-elevate: 0 8px 32px 0 rgba(24, 49, 83, 0.12);
  --radius-card: 14px;
  --radius-btn: 40px;

  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

@media all {
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  body {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    min-height: 100vh;
    letter-spacing: 0.005em;
  }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--black);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  color: var(--primary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--primary);
}
h3 {
  font-size: 1.23rem;
  color: var(--black);
  margin-bottom: 10px;
}
h4,h5,h6 {
  font-size: 1rem;
}
p {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--gray-900);
  margin-bottom: 12px;
  max-width: 700px;
}
strong, b {
  font-weight: 600;
  color: var(--primary);
}
blockquote {
  border-left: 4px solid var(--primary);
  margin-left: 0;
  padding-left: 16px;
  font-style: italic;
  color: var(--gray-700);
  font-size: 1.12rem;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 22px;
}
ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.text-section ul {
  margin-top: 8px;
}

.category-tag {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--primary);
  border-radius: 20px;
  padding: 3px 15px;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

a.cta-link {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 2px;
  margin-top: 10px;
  transition: border 0.2s, color 0.2s;
}
a.cta-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.author-bio {
  margin-bottom: 24px;
  border-left: 2px solid var(--gray-300);
  padding-left: 18px;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

/* =========================================================
   SPACING & SECTIONS
   ========================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}
.text-section {
  max-width: 820px;
  margin: 0 auto;
}

/* Card & Flex Layouts (NO Grid) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 260px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 14px 0 rgba(24,49,83, 0.09);
  margin-bottom: 20px;
  min-width: 280px;
  flex: 1 1 280px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature-item:hover {
  box-shadow: var(--shadow-elevate);
  transform: translateY(-3px) scale(1.015);
}
/* Testimonial Grids */
.testimonial-slider, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
/* Blog Posts */
.blog-post {
  background: var(--gray-100);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(24,49,83, 0.05);
  padding: 24px 18px;
  min-width: 260px;
  flex: 1 1 275px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-post h3 a {
  color: var(--primary);
  transition: color 0.18s;
}
.blog-post h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.blog-post:hover {
  box-shadow: var(--shadow-elevate);
  transform: translateY(-2px) scale(1.012);
}

/* Benefits List */
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  border-radius: 25px;
  padding: 8px 18px 8px 10px;
  font-size: 1.07rem;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
  background: var(--white);
  border-bottom: 1.5px solid var(--gray-100);
  box-shadow: 0 1px 6px 0 rgba(24, 49, 83, 0.05);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  min-height: 74px;
  padding-top: 6px;
  padding-bottom: 6px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.1;
  padding: 6px 2px;
  position: relative;
  transition: color 0.17s;
}
.main-nav a:not(.cta-button):after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: width 0.19s;
  margin: 2px 0 0 0;
}
.main-nav a:not(.cta-button):hover {
  color: var(--accent);
}
.main-nav a:not(.cta-button):hover:after {
  background: var(--accent);
  width: 85%;
}
.main-nav .cta-button {
  margin-left: 10px;
}

/* CTA Button (Main + everywhere) */
.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 11px 32px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(24,49,83, 0.09);
  border: none;
  transition: background 0.18s, color 0.19s, box-shadow 0.16s, transform 0.16s;
  margin-top: 8px;
  margin-bottom: 2px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(24,49,83,0.14);
  transform: translateY(-1px) scale(1.025);
}

/* ===================
    MOBILE MENU
   =================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: transparent;
  border: none;
  padding: 4px 15px 4px 6px;
  border-radius: 35px;
  transition: background 0.15s;
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--gray-200);
  color: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 44px;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.6,.04,.98,.335);
  box-shadow: 10px 0 60px 0 rgba(24,49,83,0.07);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 22px;
  background: var(--primary);
  color: var(--white);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.11s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  margin-top: 34px;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.24rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 0;
  border-radius: 12px;
  transition: color 0.14s, background 0.13s;
  min-width: 160px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  background: var(--gray-200);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 0.98rem;
  }
  .section {
    margin-bottom: 42px;
    padding: 28px 4vw;
  }
}
@media (max-width: 820px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  header .container {
    padding: 0 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 520px) {
  nav.footer-nav, .footer-contact, .footer-social {
    min-width: unset;
    width: 100%;
  }
}
/* =========================================================
   HERO SECTION
   ========================================================= */
section:nth-of-type(1) {
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 60px;
}
section:nth-of-type(1) h1, section:nth-of-type(1) p {
  max-width: 600px;
}
section:nth-of-type(1) .cta-button {
  margin-top: 16px;
}

/* =========================================================
   TESTIMONIALS & CARDS
   ========================================================= */
.star-rating {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-top: 4px;
}
.star-rating img {
  width: 22px;
  height: 22px;
}
.testimonial-info {
  color: var(--gray-500);
  font-size: 0.99rem;
}

.testimonial-card {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 16px 0 rgba(24,49,83,0.09);
  min-width: 275px;
  font-size: 1.14rem;
  margin-bottom: 24px;
}
.testimonial-card p, .testimonial-card blockquote {
  color: var(--black);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
/* visual accent for testimonials */
.testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 5px;
  height: 100%;
  border-radius: 5px 0 0 5px;
  background: var(--accent);
  opacity: 0.09;
}
.testimonial-card {
  position: relative;
  overflow: hidden;
}
/* Ensure contrast and readability */
.testimonial-card, .testimonial-card p, .testimonial-card blockquote, .testimonial-info {
  color: var(--primary) !important;
  background: var(--white) !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--gray-100);
  color: var(--primary);
  padding: 0;
  border-top: 2px solid var(--gray-200);
  margin-top: 80px;
  font-size: 1rem;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-width: 180px;
}
.footer-logo-nav img {
  width: 58px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 0.96rem;
  padding: 5px 0;
  font-family: var(--font-body);
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 220px;
  font-size: 0.97rem;
  color: var(--primary);
  font-family: var(--font-body);
}
.footer-contact img {
  width: 17px;
  height: 17px;
  margin-right: 7px;
  vertical-align: text-bottom;
  display: inline-block;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 19px;
  align-items: center;
  min-width: 110px;
  margin-top: 7px;
}
.footer-social a img {
  width: 29px;
  height: 29px;
  transition: filter 0.14s, opacity 0.13s;
}
.footer-social a:hover img {
  filter: brightness(0.6) sepia(1) hue-rotate(-8deg) saturate(7) brightness(1.1);
  opacity: 0.79;
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================= */
#cookie-consent-banner, .cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 -2px 32px rgba(24,49,83,0.17);
  z-index: 2000;
  padding: 26px 8vw 20px 8vw;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  font-size: 1.07rem;
  transition: transform 0.41s cubic-bezier(.24,.78,.38,.99), opacity 0.31s;
}
#cookie-consent-banner.hide, .cookie-consent-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-consent-banner button {
  padding: 7px 23px;
  border-radius: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--gray-300);
  color: var(--black);
  transition: background 0.15s, color 0.14s;
  border: none;
  outline: none;
  margin-bottom: 2px;
  box-shadow: none;
}
.cookie-consent-banner .accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-consent-banner .accept:hover,
.cookie-consent-banner .accept:focus {
  background: var(--primary);
}
.cookie-consent-banner .reject {
  background: var(--primary);
  color: var(--white);
}
.cookie-consent-banner .reject:hover,
.cookie-consent-banner .reject:focus {
  background: var(--accent);
  color: var(--white);
}
.cookie-consent-banner .settings {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-consent-banner .settings:hover,
.cookie-consent-banner .settings:focus {
  background: var(--gray-400);
  color: var(--black);
}

/* Cookie Modal */
#cookie-modal,.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,49,83,0.44);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.41,.53,.55,1);
}
.cookie-modal.active, #cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content, #cookie-modal .modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 48px 0 rgba(24,49,83,0.22);
  padding: 32px 30px 26px 30px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  z-index: 2150;
}
.cookie-modal .modal-close, #cookie-modal .modal-close {
  position: absolute;
  right: 19px; top: 13px;
  background: var(--accent);
  color: var(--white);
  font-size: 2rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover,
#cookie-modal .modal-close:hover {
  background: var(--primary);
}
.cookie-modal .cookie-category, #cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-modal label, #cookie-modal label {
  font-size: 1.02rem;
  color: var(--primary);
  font-family: var(--font-body);
  margin-left: 4px;
}
.cookie-modal input[type=checkbox], #cookie-modal input[type=checkbox] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category strong {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.07rem;
  margin-right: 5px;
}

/* Cookie Modal Save Button */
.cookie-modal .modal-save, #cookie-modal .modal-save {
  margin-top: 12px;
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  padding: 7px 25px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.15s;
}
.cookie-modal .modal-save:hover, #cookie-modal .modal-save:hover {
  background: var(--accent);
}

/* Essential cookies always enabled */
.cookie-modal .essential, #cookie-modal .essential, .cookie-modal .cookie-category.essential {
  opacity: 1;
  pointer-events: none;
}
.cookie-modal .cookie-category.essential label, #cookie-modal .cookie-category.essential label {
  color: var(--gray-500);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1050px) {
  .feature-grid, .testimonial-slider, .content-grid, .blog-post-list, .testimonial-grid, .benefits-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-slider, .content-grid, .blog-post-list, .testimonial-grid, .benefits-list {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .testimonial-card, .card, .blog-post {
    min-width: unset;
    width: 100%;
    max-width: 100vw;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 38px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2.03rem; }
  h2 { font-size: 1.52rem; }
  .container { padding: 0 5px; }
  .footer-contact, .footer-logo-nav, .footer-social {
    min-width: 1px;
  }
}
@media (max-width: 540px) {
  .cookie-consent-banner,
  #cookie-consent-banner {
    flex-direction: column;
    gap: 15px;
    padding: 22px 8px 17px 8px;
    font-size: 0.99rem;
  }
}
@media (max-width: 390px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  .cta-button { font-size: 0.99rem; padding: 9px 13px; }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-logo-nav, .footer-social {
    margin-bottom: 16px;
  }
  .footer-social {
    margin-top: 1px;
  }
  .footer-nav {
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .footer-contact {
    margin-bottom: 10px;
  }
  .content-wrapper {
    gap: 12px;
  }
}

/* Reduce padding/margins for very small screens */
@media (max-width: 500px) {
  .section {
    margin-bottom: 28px;
    padding: 17px 2vw;
  }
  .footer-logo-nav img {
    width: 44px;
  }
}

/* ============================== */
/* MICRO-INTERACTIONS */
/* ============================== */
.cta-button:active,
.feature-item:active,
.blog-post:active {
  transform: scale(0.98);
}

/* ============================== */
/* ACCESSIBILITY FOCUS STATES */
/* ============================== */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 60;
  position: relative;
}

/* HIDE visually for only screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================== */
/* SCROLLBAR (for DESKTOP only)  */
/* ============================== */
@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    background: var(--gray-100);
  }
  ::-webkit-scrollbar-thumb { 
    background: var(--gray-400);
    border-radius: 8px;
  }
}
