/* ===========================
   CSS RESET & NORMALIZE (mobile-friendly)
   =========================== */
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;
}
.text-section img {
  width: 100px;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
textarea {
  resize: vertical;
}

/* =======================
   BRAND VARIABLES
   ======================= */
:root {
  --color-primary: #205265;
  --color-secondary: #77B255;
  --color-accent: #FFD780;
  --color-bg: #fff;
  --color-bg-section: #FAFBFB;
  --color-text: #22343D;
  --color-muted: #7a8592;
  --color-link: #205265;
  --color-btn: #205265;
  --color-btn-text: #fff;
  --color-btn-hover: #183F4D;
  --color-border: #E8ECEF;
  --shadow: 0 2px 16px rgba(32, 82, 101, 0.07);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,600&display=swap') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap') format('woff2');
}

/* =========================
   LAYOUT CONTAINERS
   ========================= */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  min-height: 100vh;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
    border-radius: 12px;
  }
}

/* =================================
   TYPOGRAPHY
   ================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol, blockquote, .testimonial-info, .price, li {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 8px;
}
strong { font-weight: 600; }
.small { font-size: 0.92em; color: var(--color-muted); }
blockquote {
  color: var(--color-primary);
  font-family: var(--font-display);
  background: #F5FAF8;
  border-left: 4px solid var(--color-secondary);
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1.125rem;
  letter-spacing: 0.1px;
}

/* LINKS */
a {
  color: var(--color-link);
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: var(--color-secondary);
  outline: none;
}

.cta-btn, .main-navigation .cta-btn, .content-wrapper .cta-btn {
  display: inline-block;
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  padding: 12px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(32,82,101,.08);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.18s, box-shadow 0.18s, transform .08s;
  border: none;
  margin-top: 12px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px rgba(32,82,101,.13);
}

/* =====================================================
   HEADER & NAVIGATION STYLES (main-navigation, mobile menu)
   ===================================================== */
header {
  background: var(--color-bg);
  position: relative;
  border-bottom: 1px solid var(--color-border);
  z-index: 20;
}
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}
.logo-link img {
  height: 44px;
  width: auto;
}
.main-navigation ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-navigation ul li {
  margin-bottom: 0;
}
.main-navigation ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 6px;
  border-radius: 4px;
  transition: color .16s, background .13s;
}
.main-navigation ul li a:hover, .main-navigation ul li a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Mobile menu toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  background: var(--color-bg-section);
  color: var(--color-primary);
  font-size: 2.4rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-left: 10px;
  transition: background .15s, color .11s, box-shadow .13s;
  z-index: 1201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 2px 18px rgba(32,82,101,.07);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 1300;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6,-0.01,.39,1.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 0 6px 48px rgba(32,82,101,.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-primary);
  background: transparent;
  align-self: flex-end;
  margin: 26px 22px 0 0;
  border: none;
  padding: 0 4px;
  transition: color .14s;
  z-index: 1301;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 56px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  padding: 10px 0;
  border-radius: 6px;
  transition: background .12s, color .14s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 1023px) {
  .main-navigation ul {
    display: none;
  }
  .main-navigation .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  background: linear-gradient(105deg, #F6FDF9 80%, #FFF 100%);
  padding: 48px 0 46px 0;
  min-height: 340px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.hero .content-wrapper {
  flex: 1;
  align-items: flex-start;
  gap: 20px;
  padding-left: 0;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .hero {
    padding: 24px 0;
    min-height: unset;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .content-wrapper {
    gap: 14px;
    padding: 0;
  }
}

/* =====================
   FLEX LAYOUT PATTERNS
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  transition: box-shadow .18s, transform .16s;
  flex: 1 1 260px;
  min-width: 230px;  /* Always keeps no-compact columns on mobile */
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px rgba(32,82,101,0.16);
  transform: translateY(-3px) scale(1.012);
  z-index: 2;
}
.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: stretch;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: 11px;
  box-shadow: 0 2px 14px rgba(32,82,101,.11);
  margin-bottom: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 620px;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  border: none;
  background: inherit;
  padding: 0;
}
.testimonial-info {
  font-weight: 500;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
}

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

/* ==========================================
   LISTS, GRIDS, AND FEATURE BLOCKS
   ========================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
}
.feature-grid > li,
.feature-grid > div {
  background: #FFF;
  border-radius: 14px;
  padding: 26px 22px 20px 22px;
  box-shadow: var(--shadow);
  flex: 1 1 230px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  transition: box-shadow .19s, transform .13s;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(32,82,101,0.11);
  transform: translateY(-2px) scale(1.018);
  z-index: 2;
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
}
.feature-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 7px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 22px 0 10px 0;
}
.services-list li {
  background: #FFF;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px 17px 16px 17px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.06rem;
}
.price {
  font-size: 1.01em;
  font-weight: 500;
  color: var(--color-secondary);
  padding-left: 2px;
}

.difficulty-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.difficulty-filter li {
  background: var(--color-bg-section);
  padding: 9px 15px;
  border-radius: 7px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section h3 {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-family: var(--font-display);
  margin-bottom: 0;
}

/* ==============
   LISTS (inside text-section or .content-wrapper)
   ============== */
ol {
  padding-left: 24px;
  margin-bottom: 10px;
}
ul {
  padding-left: 17px;
  margin-bottom: 7px;
}
ul li,
ol li {
  margin-bottom: 5px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  height: 7px; width: 7px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin-right: 8px;
}
ol li:before { display: none; }

/* ========================
   FOOTER
   ======================== */
footer {
  margin-top: 56px;
  background: #F7FBFB;
  border-top: 1px solid var(--color-border);
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0 38px 0;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-bottom: 7px;
}
.footer-nav a {
  color: var(--color-muted);
  font-size: 1rem;
  font-family: var(--font-display);
  transition: color .14s;
  padding: 5px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
}
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--color-text);
  font-size: 0.98rem;
}
.footer-contact-info a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color .13s;
}
.footer-contact-info a:hover, .footer-contact-info a:focus {
  color: var(--color-secondary);
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  opacity: 0.78;
  transition: opacity .17s, transform .14s;
  cursor: pointer;
}
.footer-social img:hover, .footer-social img:focus {
  opacity: 1;
  transform: scale(1.10);
}

@media (max-width: 1024px) {
  footer .content-wrapper {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0 24px 0;
  }
  .footer-nav {
    gap: 16px;
  }
}

/* =======================
   RESPONSIVE ADJUSTMENTS
   ======================= */
@media (max-width: 900px) {
  .feature-grid {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .services-list li {
    font-size: 0.98rem;
    padding: 14px 10px 13px 13px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
}

/* ============================
   MICRO-INTERACTIONS & ANIMATIONS
   ============================ */
.cta-btn, .card, .feature-grid > li, .feature-grid > div {
  transition: box-shadow .18s, transform .18s, background .16s, color .15s;
}

/* ============================
   COOKIE CONSENT BANNER & MODAL
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 28px rgba(32,82,101,0.08);
  z-index: 1400;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  max-width: 100vw;
  padding: 25px 30px 20px 30px;
  border-top: 1px solid var(--color-border);
  font-size: 1rem;
  animation: cookieBannerShow .38s cubic-bezier(.43,.1,.71,1.45);
}
@keyframes cookieBannerShow {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-text);
  margin-right: 18px;
  flex: 1;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-btn-text);
  border: none;
  border-radius: 8px;
  padding: 7px 18px 7px 18px;
  margin: 0;
  transition: background .16s, color .13s;
  box-shadow: 0 2px 10px rgba(32,82,101,.07);
}
.cookie-btn.secondary {
  background: var(--color-secondary);
  color: #FFF;
}
.cookie-btn.light {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-btn-hover);
  color: #fff;
  outline: none;
}
.cookie-btn.light:hover, .cookie-btn.light:focus {
  background: #f3c447;
  color: var(--color-primary);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 10px 16px 10px;
    font-size: .99rem;
  }
  .cookie-buttons {
    gap: 9px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,82,101,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  pointer-events: auto;
  opacity: 1;
  animation: cookieModalShow .39s cubic-bezier(.43,.1,.71,1.45);
}
@keyframes cookieModalShow {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 40px 30px 24px 30px;
  border-radius: 18px;
  max-width: 410px;
  box-shadow: 0 16px 56px rgba(32,82,101,0.2);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: modalPop .25s cubic-bezier(.59,-0.02,.56,1.03);
}
@keyframes modalPop {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1.0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 19px;
  background: none;
  font-size: 1.7rem;
  color: var(--color-muted);
  border: none;
  z-index: 2;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--color-secondary); }
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 2px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
  cursor: pointer;
}
.cookie-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-category .always-on {
  font-size: 0.93rem;
  color: var(--color-muted);
  margin-left: 8px;
}

@media (max-width: 500px) {
  .cookie-modal-content {
    max-width: 97vw;
    padding: 18px 7px 16px 7px;
    border-radius: 10px;
  }
  .cookie-modal-content h2 {
    font-size: 1.03rem;
  }
}

/* ===================
   MISC UTILS
   =================== */
::-webkit-input-placeholder { color: var(--color-muted); }
::-moz-placeholder { color: var(--color-muted); }
:-ms-input-placeholder { color: var(--color-muted); }
::placeholder { color: var(--color-muted); opacity: 1; font-size: .97em; }

.shadow, .card, .feature-grid>li, .feature-grid>div, .testimonial-card {
  box-shadow: var(--shadow);
}

input, textarea, select {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 10px;
  transition: border-color .14s, box-shadow .13s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 2px 8px rgba(119, 178, 85, .07);
}

hr {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin: 38px 0;
}

/* ========================
   UTILS & SPACING HELPERS
   ======================== */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 20px !important; }
.p-2 { padding: 12px !important; }
.py-2 { padding-top: 12px !important; padding-bottom: 12px !important; }
.px-2 { padding-left: 12px !important; padding-right: 12px !important; }

/* ================
   ACCESSIBILITY
   ================ */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 5px;
}

/* ===========================
   PRINT (remove shadows/borders for print)
   =========================== */
@media print {
  * {
    box-shadow: none !important;
    color-adjust: exact;
  }
  .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
