/* 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,
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #2D2D2D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:root {
  --color-primary: #1A2C47;
  --color-secondary: #F3F6FB;
  --color-white: #FFFFFF;
  --color-accent: #44B382;
  --color-warm1: #FFF5E5;
  --color-warm2: #FBF7F2;
  --color-warm3: #FDE7CF;
  --color-friendly: #EABB80;
  --color-warning: #FFCC80;
  --color-danger: #E57373;
  --color-shadow: 0 4px 16px rgba(33,37,41,0.06);
}

/* TYPOGRAPHY --------------------------------------------------- */
h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.17;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--color-primary);
}
p {
  margin-bottom: 16px;
  color: #2D2D2D;
}
strong { font-weight: 700; }
em, i { font-style: italic; }

/* CONTAINERS & LAYOUT ------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-warm2);
  border-radius: 20px;
  box-shadow: var(--color-shadow);
}
@media (max-width: 1024px) {
  .section {
    padding: 32px 8px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(33,37,41,0.04);
  position: relative;
  padding: 24px 20px;
  min-width: 280px;
  flex: 1 1 320px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(74,104,141,0.13);
  transform: translateY(-2px) scale(1.015);
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-warm3);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(26,44,71,0.07);
  transition: box-shadow .2s;
  border-left: 6px solid var(--color-accent);
  color: #1A2C47;
}
.testimonial-card p {
  color: #222;
  margin-bottom: 2px;
  font-size: 1.08rem;
  line-height: 1.6;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-weight: 600;
}
.testimonial-card img {
  vertical-align: middle;
  height: 20px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: var(--color-shadow);
  padding: 20px 18px;
  margin-bottom: 20px;
}

/* FEATURES GRID ----------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--color-warm1);
  border-radius: 18px;
  padding: 28px 20px 20px 20px;
  flex: 1 1 220px;
  box-shadow: 0 3px 16px rgba(33,37,41,0.07);
  min-width: 225px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(68,179,130,0.08);
}
.feature-grid img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.feature-grid p {
  font-size: 1rem;
  color: #353535;
}

/* ARTICLE/BLOG PREVIEW------------------------------------------- */
.article-preview {
  background: var(--color-warm1);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(33,37,41,0.06);
  margin-bottom: 20px;
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .17s;
}
.article-preview h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}
.article-preview a {
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  transition: color .18s;
  width: fit-content;
}
.article-preview a:hover { color: #1A2C47; }

/* BUTTONS ------------------------------------------------------- */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border-radius: 50px;
  padding: 13px 36px;
  font-size: 1.15rem;
  outline: none;
  border: none;
  margin: 10px 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(68,179,130,0.10);
  transition: background .16s, box-shadow .22s, transform .13s;
  letter-spacing: .012em;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #298257;
  box-shadow: 0 6px 20px rgba(68,179,130,0.18);
  transform: translateY(-1.5px) scale(1.015);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid var(--color-accent);
  padding: 11px 28px;
  font-size: 1.07rem;
  margin: 10px 0 0 0;
  transition: background .2s, color .18s, border .2s;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26,44,71,0.08);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* NAVIGATION ---------------------------------------------------- */
header {
  background: var(--color-white);
  width: 100%;
  box-shadow: 0 2px 16px rgba(33,37,41,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 990;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  color: var(--color-primary);
  border-radius: 8px;
  padding: 8px 16px;
  transition: background .18s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-warm3);
  color: var(--color-accent);
}
.main-nav .btn-primary {
  margin-left: 10px;
  padding: 9px 22px;
  font-size: 1rem;
}
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
@media (max-width: 540px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* MOBILE MENU --------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background .14s;
  box-shadow: 0 2px 8px rgba(68, 179, 130, 0.13);
  margin-left: 12px;
  cursor: pointer;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #298257;
  outline: 2px solid var(--color-primary);
}
@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 85vw;
  max-width: 340px;
  background: var(--color-warm2);
  box-shadow: -8px 0 32px rgba(33,37,41,.15);
  z-index: 2002;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.62,.15,.34,.95), opacity .27s;
}
.mobile-menu.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-accent);
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 18px 18px 12px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-warm3);
  color: #1A2C47;
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 18px 24px 24px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.12rem;
  padding: 12px 12px 12px 0;
  border-radius: 8px;
  transition: background .16s, color .13s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-warm3);
  color: var(--color-accent);
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER ------------------------------------------------------- */
footer {
  background: var(--color-secondary);
  border-top: 1.5px solid #E0DDD7;
  width: 100%;
  margin-top: 60px;
}
footer .container {
  padding: 22px 10px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #888;
  font-size: 1rem;
  transition: color .18s;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
footer span {
  color: #999;
  font-size: 1rem;
  margin-left: 10px;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 10px;
  }
  footer span {
    margin: 0 0 8px 0;
  }
}

/* TABLES -------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-warm1);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  font-size: 1.02rem;
  box-shadow: 0 2px 10px rgba(26,44,71,0.04);
}
thead {
  background: var(--color-warm3);
  color: var(--color-primary);
}
th, td {
  padding: 12px 20px;
  text-align: left;
}
th {
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
}
tbody tr {
  border-bottom: 1px solid #E6E1DA;
}
tbody tr:last-child {
  border-bottom: none;
}
td {
  color: #383838;
}
tbody tr:hover {
  background: var(--color-warm3);
}

/* FORMS, INPUTS, SELECTS ---------------------------------------- */
input[type="text"], select, textarea {
  border: 1.5px solid #EABB80;
  border-radius: 12px;
  background: #FFF;
  padding: 11px 14px;
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color .16s, box-shadow .18s;
}
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px #44B38234;
}

/* CTA & SPECIALS ----------------------------------------------- */
.cta-section, .cta, section.cta {
  background: var(--color-accent);
  color: #fff;
  border-radius: 24px;
  padding: 32px 16px 36px 16px;
  margin-bottom: 28px;
  box-shadow: var(--color-shadow);
  text-align: center;
}
.cta-section h2, .cta h2, section.cta h2 {
  color: #fff;
  margin-bottom: 24px;
}

/* TEXT SECTIONS ------------------------------------------------ */
.text-section {
  background: var(--color-white);
  padding: 18px 18px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(33,37,41,0.03);
  margin-bottom: 20px;
}

/* MISCELLANEOUS ------------------------------------------------ */
ul {
  margin-bottom: 20px;
  padding-left: 16px;
}
li {
  margin-bottom: 12px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: #2D2D2D;
  position: relative;
}
ul > li::before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-friendly);
  border-radius: 50%;
  position: relative;
  top: 0.55em;
}

/* Spacing corrections for last elements */
.content-wrapper > *:last-child {
  margin-bottom: 0;
}
.section:last-child { margin-bottom: 20px; }

/* HERO STYLES -------------------------------------------------- */
main > section:first-child {
  background: var(--color-warm1);
  box-shadow: var(--color-shadow);
}

/* RESPONSIVENESS ----------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .card-container, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
@media (max-width: 768px) {
  .feature-grid > div, .card, .section, .cta-section {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 24px 4px;
    margin-bottom: 34px;
  }
  .card, .feature-item {
    padding: 16px 9px;
  }
}

/* TRANSITIONS & EFFECTS ----------------------------------------- */
.card, .article-preview, .testimonial-card, .feature-grid > div {
  transition: 
    box-shadow .20s cubic-bezier(.2,.9,.8,.3),
    transform .13s cubic-bezier(.47,.1,.52,.78);
}
.card:active, .article-preview:active, .testimonial-card:active, .feature-grid > div:active {
  transform: scale(.995);
}

/* VISUAL HIERARCHY (SCALE) -------------------------------------- */
@media(min-width: 901px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}
@media (max-width:480px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.15rem; }
}

/* COOKIE CONSENT BANNER ----------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-warm1);
  border-top: 2px solid var(--color-friendly);
  box-shadow: 0 -2px 28px rgba(33,37,41,0.11);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 32px 18px 32px;
  z-index: 2048;
  transition: transform .22s cubic-bezier(.52,.2,.53,1), opacity .24s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner p {
  color: #4a340e;
  font-size: 1rem;
  flex: 1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  background: var(--color-accent);
  color: #fff;
  border-radius: 32px;
  padding: 9px 22px;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(68,179,130,0.12);
  margin-left: 2px;
  transition: background .18s, transform .13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #298257;
  transform: translateY(-1.5px) scale(1.05);
}
.cookie-banner .cookie-btn.secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  padding: 7.5px 16px;
  margin: 0;
  box-shadow: none;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: var(--color-warm3);
  color: var(--color-accent);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 6px 8px 8px;
  }
}

/* COOKIE SETTINGS MODAL ------------------------------------------ */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,44,71,0.17);
  z-index: 2100;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.show {
  display: flex;
  animation: fade-in .25s;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-warm2);
  border-radius: 18px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 6px 44px rgba(26,44,71,0.13);
  padding: 32px 26px 22px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideModal .33s;
}
@keyframes slideModal {
  from { transform: translateY(55px); opacity: .55; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.cookie-modal .cookie-switch {
  width: 42px;
  height: 22px;
  border-radius: 12px;
  background: #EABB80;
  position: relative;
  flex-shrink: 0;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-switch-label {
  display: block;
  width: 100%;
  height: 100%;
  background: #EABB80;
  border-radius: 12px;
  position: absolute;
  cursor: pointer;
}
.cookie-modal .cookie-switch-label::after {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: left .17s, background .15s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .cookie-switch-label {
  background: var(--color-accent);
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .cookie-switch-label::after {
  left: 22px; background: var(--color-accent);
}
.cookie-modal .cookie-category.disabled .cookie-switch-label {
  background: #ccc;
  filter: grayscale(.42) brightness(.98);
  pointer-events: none;
}
.cookie-modal .cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  position: absolute;
  top: 11px;
  right: 17px;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #1A2C47;
}
.cookie-modal .cookie-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.jccenter { justify-content: center !important; }

/* KEY ANIMATION CLASSES ------------------------------------- */
.slide-in-right { animation: slideInRight .44s cubic-bezier(.22,.72,.34,1); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.slide-out-right { animation: slideOutRight .36s cubic-bezier(.8,.06,1,.56); }
@keyframes slideOutRight {
  from { transform: none; opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* Z-INDEX LAYERS ------------------------------------------- */
header { z-index: 990; }
.mobile-menu { z-index: 2002; }
.cookie-banner { z-index: 2048; }
.cookie-modal-overlay { z-index: 2100; }

/* FIXED SPACING ---------------------------------------------- */
.section, .feature-grid > div, .card, .testimonial-card, .feature-item, .article-preview, .text-section {
  margin-bottom: 20px;
}

/* ACCESSIBILITY ---------------------------------------------- */
.btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}
main:focus { outline: none; }

/* CUSTOM SCROLLBAR FOR DECORATION ---------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-warm3);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* END OF STYLE.CSS ----------------------------------------- */
