/* =============================================================================
   RYTM RUCHU - GRADIENT MODERN STYLE CSS
============================================================================= */

/* ----------------------
   CSS RESET & BASE STYLES
------------------------- */
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;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #F7F8F3 0%, #ffffff 80%);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #254969;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}

*::selection {
  background: #E26A2C22;
}

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

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 10px;
  font-size: 16px;
}

strong, b {
  color: #254969;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #254969;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
h4, h5, h6 { font-weight: 600; }

p {
  margin-bottom: 14px;
  font-size: 16px;
}

a {
  color: #E26A2C;
  text-decoration: none;
  transition: color .2s;
  outline: none;
  font-weight: 600;
}
a:hover, a:focus {
  color: #B14E1F;
  text-decoration: underline;
}

/* ----------------------
   FLEX CONTAINER PATTERNS
------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 32px -8px #25496917;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F7F8F3;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 16px -6px #25496910;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  min-width: 250px;
}
.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;
  width: 100%;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F8F3;
  border-radius: 20px;
  box-shadow: 0 2px 18px -8px #25496920;
  margin-bottom: 24px;
  margin-top: 0;
  max-width: 540px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.value-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-previews ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.key-stats ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #254969;
  font-size: 15px;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

/* ----------------------
   NAVIGATION & HEADER
------------------------- */
header {
  background: linear-gradient(90deg, #254969 0%, #2c6696 90%);
  color: #fff;
  box-shadow: 0 1px 12px -6px #25496950;
  padding: 0;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 22px;
  min-height: 64px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: #E26A2C;
  color: #fff;
  text-decoration: none;
}
header nav a.cta-primary {
  background: #E26A2C;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  padding: 9px 22px;
  margin-left: auto;
  box-shadow: 0 2px 8px -2px #E26A2C55;
  font-size: 18px;
  transition: background 0.18s, box-shadow 0.18s;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: #B14E1F;
  box-shadow: 0 6px 24px -2px #E26A2C44;
}

header nav img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}

/* Hamburger (mobile menu) */
.mobile-menu-toggle {
  display: none;
  background: #E26A2C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 7px 13px;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 110;
  transition: background .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #B14E1F;
}

/* Mobile nav overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #254969 90%, #E26A2C 100%);
  z-index: 1001;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(.78,1.2,.22,1), opacity 0.22s;
  box-shadow: 2px 0 36px -10px #25496984;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin: 26px 22px 22px 0;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
  border-radius: 6px;
  padding: 2px 9px;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  color: #E26A2C;
  background: #ffffff12;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 28px;
  width: 100%;
}
.mobile-menu .mobile-nav a {
  color: #fff;
  background: none;
  font-size: 22px;
  padding: 15px 7px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 7px;
  transition: background .13s, color .13s;
}
.mobile-menu .mobile-nav a:hover,
.mobile-menu .mobile-nav a:focus {
  background: #E26A2C;
  color: #fff;
}

/* ----------------------
   SECTION & CARD THEMING
------------------------- */
main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 220px);
  width: 100%;
}
section {
  width: 100%;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}
.content-wrapper, .card {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Icon List (feature/benefit) */
.content-wrapper ul > li,
.text-section ul > li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  font-size: 17px;
  background: #999090;
  padding: 13px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 6px -3px #25496913;
}
.content-wrapper ul > li img,
.text-section ul > li img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.value-list li img {
  width: 28px;
  height: 28px;
}

/* Cards */
.card {
  border: 1px solid #F7F8F3;
  background: linear-gradient(120deg, #F7F8F3 60%, #ffffff 100%);
  transition: box-shadow .23s, transform .15s;
}
.card:hover {
  box-shadow: 0 10px 44px -4px #25496940;
  transform: translateY(-3px) scale(1.01);
}

.testimonial-card {
  border: 1px solid #E1E6ED;
  background: #fff;
  color: #1e2e4c;
  transition: box-shadow .23s, background .18s;
}
.testimonial-card blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #254969;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
  padding: 0 0 8px 0;
  position: relative;
}
.testimonial-card p {
  color: #E26A2C;
  font-weight: 700;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* CTA Buttons */
.cta-primary {
  background: linear-gradient(90deg, #E26A2C 0%, #B14E1F 100%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  font-size: 1.18rem;
  padding: 12px 35px;
  margin-top: 6px;
  box-shadow: 0 5px 16px -3px #E26A2C33, 0 2px 8px -4px #B14E1F22;
  cursor: pointer;
  display: inline-block;
  transition: background .19s, color .13s, box-shadow .23s, transform .16s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: linear-gradient(90deg, #B14E1F 0%, #E26A2C 100%);
  color: #fff;
  box-shadow: 0 12px 32px -10px #25496944;
  transform: translateY(-2px) scale(1.03);
}

/* ----------------------
   FOOTER
------------------------- */
footer {
  background: linear-gradient(92deg,#254969 60%,#254969cc 100%);
  color: #fff;
  padding: 32px 0 26px 0;
  margin-top: 38px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 20px -4px #25496924;
  width: 100%;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
  justify-content: flex-start;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: none;
  font-size: 16px;
  padding: 6px 9px;
  border-radius: 7px;
  transition: color .16s, background .16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #E26A2C;
  background: #fff1ed;
}
footer address {
  font-style: normal;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer address img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ----------------------
   COOKIE CONSENT BANNER
------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: 100vw;
  max-width: 100vw;
  background: linear-gradient(90deg, #254969 75%, #E26A2C 99%);
  color: #fff;
  box-shadow: 0 -3px 28px -7px #25496982;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 16px 18px;
  gap: 12px;
  font-size: 16px;
  animation: slideInBanner 0.72s cubic-bezier(.54,1.7,.42,1) 0.1s both;
}
@keyframes slideInBanner {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  padding: 9px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin: 0 2px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px -4px #25496920;
  transition: background .15s, color .15s, box-shadow .17s;
}
.cookie-banner .accept {
  background: #E26A2C;
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #B14E1F;
}
.cookie-banner .reject {
  background: #fff;
  color: #254969;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #254969;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff1ed;
  color: #254969;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #E26A2C;
  color: #fff;
}

/* Cookie modal preference popup */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(.97);
  z-index: 1300;
  background: #fff;
  min-width: 320px;
  max-width: 95vw;
  width: 420px;
  border-radius: 20px;
  box-shadow: 0 8px 40px -6px #25496955;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px 24px 18px 24px;
  animation: popUpModal .27s cubic-bezier(.65,1.4,.67,1.05) 0.05s both;
}
@keyframes popUpModal {
  from { opacity: 0; transform: translate(-50%,-44%) scale(.92); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cookie-modal h2 {
  margin: 0;
  font-size: 1.22rem;
  color: #254969;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #E26A2C;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  font-size: 16px;
  font-weight: 500;
}
.cookie-modal .cookie-category label {
  color: #254969;
}
.cookie-modal .toggle-switch {
  display: flex;
  align-items: center;
}
.cookie-modal .toggle-switch input[type='checkbox'] {
  display: none;
}
.cookie-modal .toggle-slider {
  width: 38px;
  height: 22px;
  border-radius: 13px;
  background: #E1E6ED;
  position: relative;
  transition: background .18s;
  margin-left: 8px;
  box-shadow: 0 1px 5px -2px #25496914;
}
.cookie-modal .toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #E26A2C;
  border-radius: 50%;
  transition: left .19s, background .19s;
}
.cookie-modal .toggle-switch input[type='checkbox']:checked + .toggle-slider {
  background: #E26A2C44;
}
.cookie-modal .toggle-switch input[type='checkbox']:checked + .toggle-slider:before {
  left: 19px;
  background: #E26A2C;
}
/* Essential cookies (fixed) */
.cookie-modal .cookie-category.essential label {
  color: #888;
}
.cookie-modal .cookie-category.essential .toggle-slider,
.cookie-modal .cookie-category.essential .toggle-switch {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 17px;
}
.cookie-modal .cookie-actions button {
  padding: 9px 18px;
  font-size: 1rem;
}

/* ----------------------
   RESPONSIVE & MOBILE STYLES
------------------------- */
@media (max-width: 1120px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header nav {
    font-size: 15px;
    gap: 7px;
    padding: 0 8px;
    min-height: 56px;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
  .section {
    margin-bottom: 40px;
    padding: 24px 7px;
    border-radius: 16px;
  }
  .container {
    padding: 0 7px;
  }
  main {
    min-height: unset;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu .mobile-nav {
    font-size: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .footer nav {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    max-width: 99vw;
    border-radius: 12px;
    padding: 17px 9px;
  }
  .cookie-modal {
    width: 97vw;
    min-width: 0;
    max-width: 99vw;
    padding: 18px 7px 9px 7px;
  }
}
@media (max-width: 520px) {
  .section {
    padding: 12px 2px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .cta-primary {
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 8px;
  }
}

/* ----------------------
   GENERAL ANIMATIONS
------------------------- */
.cta-primary, .cookie-banner button {
  transition: background .15s, color .13s, box-shadow .23s, transform .16s;
}

/* ----------------------
   MICRO-INTERACTIONS
------------------------- */
.cta-primary:active {
  transform: scale(0.99);
  background: #B14E1F;
}
.testimonial-card {
  transition: box-shadow .23s, background .15s;
}
.testimonial-card:hover {
  background: #F7F8F3;
  box-shadow: 0 4px 40px -10px #B14E1F20;
}

/* FOCUS VISIBLE A11Y */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px dashed #E26A2C;
  outline-offset: 2px;
}

/* ----------------------
   SPACING & GAP ENFORCEMENT
------------------------- */
.content-wrapper > * { margin-bottom: 12px; }
.content-wrapper > *:last-child { margin-bottom: 0 }
.section, .card-container, .card, .content-grid, .text-image-section,
.testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* Avoid section overlapping */
.section + .section {
  margin-top: 0;
  margin-bottom: 60px;
}

/* ----------------------
   DARK MODE (optional future)
------------------------- */
@media (prefers-color-scheme: dark) {
  body { background: #232d37; color: #eee; }
  header, .section, .card, .testimonial-card {
    background: #232d37;
    color: #fff;
  }
  footer {
    background: #1b2128;
    color: #fff;
  }
  .cta-primary { background: #E26A2C; }
  .cta-primary:hover { background: #B14E1F; }
  .cookie-banner, .cookie-modal { background: #1b2128; color: #fff; }
}

/* =============================================================================
   END - RYTM RUCHU MODERN GRADIENT CSS
============================================================================= */