/* ========================
   CSS RESET & BASE STYLES
=========================== */
/* Box sizing rules */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin, padding */
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* Remove list styles on ul, ol elements */
ul, ol {
  list-style: none;
}

/* Set core body defaults */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22313a;
  background: #FFFAFB;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

:root {
  --color-primary: #22577A;
  --color-secondary: #57CC99;
  --color-accent: #FFFAFB;
  --color-warm-bg: #FFF6EC;
  --color-warm-bg-2: #FFEDD8;
  --color-warm-brown: #D3A06C;
  --color-soft-shadow: rgba(34, 87, 122, 0.07);
  --color-soft-shadow-2: rgba(87,204,153,0.09);
  --color-card-bg: #FFFFFF;
  --color-neutral: #F8F8F8;
  --color-nav-hover: #FFE7D1;
  --color-btn-hover: #E1C9A5;
}

/* Default link style */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 6px 36px 0 var(--color-soft-shadow);
  padding: 40px 20px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  background: var(--color-warm-bg);
}

/* ========================
       TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.section h1,
.section h2,
.section h3 {
  margin-top: 0;
}
p, ul, li, blockquote, cite {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2f2f2f;
  font-size: 1rem;
}

blockquote {
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 12px;
  quotes: "\201C" "\201D";
}

cite {
  font-weight: 600;
  color: var(--color-secondary);
  display: block;
  font-size: 0.97em;
}

/* ========================
     HEADER & NAVIGATION
=========================== */
header {
  background: var(--color-accent);
  box-shadow: 0 3px 18px 0 var(--color-soft-shadow);
  position: sticky;
  top: 0; z-index: 900;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 18px;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  background: transparent;
  transition: background 0.2s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-nav-hover);
  color: var(--color-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 28px;
  border: none;
  border-radius: 23px;
  box-shadow: 0 2px 8px 0 var(--color-soft-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--color-soft-shadow);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #fff2ee;
  box-shadow: 0 6px 18px 0 var(--color-soft-shadow-2);
}

/* Hamburger (Mobile) */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  cursor: pointer;
  margin-left: 14px;
  transition: background .24s, transform .23s;
  box-shadow: 0 2px 10px 0 var(--color-soft-shadow-2);
  z-index: 1001;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
}

@media (min-width: 1080px) {
  .header .container {
    gap: 0;
  }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; }
}
@media (max-width: 899px) {
  .main-nav { display: none; }
  .btn-primary { margin-left: 0; }
}

/* ========================
      MOBILE MENU STYLES
=========================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-warm-bg-2);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.43,.17,.44,1.09);
  box-shadow: 2px 0 28px 0 var(--color-soft-shadow-2);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 28px 8px 0;
  font-size: 2.2rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s, color .14s, transform .17s;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 0 28px 28px 28px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 13px;
  width: 100%;
  transition: background 0.16s, color 0.14s;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-nav-hover);
  color: var(--color-secondary);
}

/* ========================
         SECTIONS
=========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 var(--color-soft-shadow-2);
  padding: 22px 24px;
  transition: box-shadow 0.17s, transform 0.13s;
  min-width: 220px;
  flex: 1 1 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 var(--color-soft-shadow);
  transform: translateY(-3px) scale(1.02);
}
.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;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.feature-grid > div {
  background: var(--color-warm-bg-2);
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 var(--color-soft-shadow-2);
  padding: 28px 18px 22px 18px;
  flex: 1 1 200px;
  min-width: 230px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform .13s;
}
.feature-grid > div img {
  height: 52px;
  width: 52px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 28px 0 var(--color-soft-shadow);
  transform: translateY(-2px) scale(1.03);
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 19px;
  margin-bottom: 24px;
  box-shadow: 0 2px 18px 0 var(--color-soft-shadow-2);
  border-left: 8px solid var(--color-secondary);
  flex-wrap: wrap;
  max-width: 650px;
  transition: box-shadow .16s, border-left-color .22s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 30px 0 var(--color-soft-shadow);
  border-left-color: var(--color-primary);
}
.testimonial-card blockquote {
  color: #222;
  font-size: 1.09rem;
  flex: 1 1 70%;
  font-style: italic;
}
.testimonial-card cite {
  flex: 1 1 20%;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: right;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; gap: 10px; align-items: flex-start; }
  .testimonial-card cite { text-align: left; }
}

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

ul > li, ol > li {
  margin-bottom: 11px;
  padding-left: 6px;
}
ul > li b {
  color: var(--color-primary);
}

/* ========================
         FOOTER
=========================== */
footer {
  background: var(--color-warm-bg);
  padding: 48px 0 16px 0;
  color: #264141;
  border-top: 3px solid var(--color-secondary);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: 12px;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 600;
  transition: background .18s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.97rem;
}
.contact-info img {
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
.social-links a img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 6px 0 var(--color-soft-shadow);
  background: #fff;
  transition: transform 0.22s, box-shadow .2s;
}
.social-links a:hover img,
.social-links a:focus img {
  transform: scale(1.09) translateY(-2px);
  box-shadow: 0 3px 16px 0 var(--color-secondary);
}
/* ========================
     COOKIE CONSENT
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 2500;
  background: var(--color-warm-brown);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 20px 18px;
  box-shadow: 0 -2px 14px 0 rgba(0,0,0,0.07);
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  gap: 14px;
  font-size: 1.07rem;
  animation: cookieBannerIn 0.38s ease;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-right: 0;
  transition: background 0.17s, color 0.18s, transform .13s;
  margin-bottom: 0px;
}
.cookie-accept-btn { background: var(--color-secondary); color: #fff; }
.cookie-reject-btn { background: #fff; color: var(--color-warm-brown); }
.cookie-settings-btn { background: var(--color-primary); color: #fff; }
.cookie-banner button:hover, .cookie-banner button:focus {
  transform: scale(1.04);
  box-shadow: 0 2px 8px 0 var(--color-soft-shadow-2);
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 2600;
  background: rgba(60,40,30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .19s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 5px 32px 0 var(--color-soft-shadow);
  min-width: 320px;
  max-width: 90vw;
  padding: 30px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn .33s ease;
}
@keyframes cookieModalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-modal .cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-neutral);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-category span.cookie-essential {
  color: var(--color-secondary);
  font-weight: bold;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .17s, transform .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-primary);
}

/* ========================
       MEDIA QUERIES
=========================== */
@media (max-width: 1020px) {
  .container {
    max-width: 94vw;
    padding: 0 12px;
  }
}
@media (max-width: 899px) {
  .feature-grid {
    gap: 18px;
    justify-content: center;
  }
}
@media (max-width: 820px) {
  .content-wrapper {
    padding: 30px 5vw;
  }
  .feature-grid > div {
    min-width: 170px;
    max-width: 95vw;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .text-section,
  .card, .card-container,
  .testimonial-card {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .footer-nav, .contact-info, .social-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .section {
    padding: 30px 5vw;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .content-wrapper {
    padding: 18px 5vw;
    border-radius: 16px;
  }
  .feature-grid > div {
    border-radius: 13px;
  }
  .section {
    margin-bottom: 38px;
    padding: 18px 0;
  }
  h1, h2 {
    font-size: 1.4rem;
  }
  .btn, .btn-primary {
    padding: 10px 8vw;
    font-size: 1rem;
    border-radius: 14px;
  }
}
/* ========================
         UTILITIES
=========================== */
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }

/* ===============
  ANIMATIONS
=================
*/
.btn, .btn-primary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background .19s, color .17s, transform .15s;
}

.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow .19s, transform .13s;
}

.cookie-banner, .cookie-banner button, .cookie-modal, .cookie-modal-close {
  transition: background .18s, color .14s, transform .14s;
}

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

/* ========================
   END OF STYLE.CSS
=========================== */
