/* --- RESET & NORMALIZE --- */
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,
main, 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #292E49;
  background: #F8F8F5;
  min-height: 100vh;
}
article, aside, footer, header, main, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
button { cursor: pointer; }

/* --- ROOT VARIABLES --- */
:root {
  --primary: #292E49;
  --secondary: #FCD581;
  --accent: #FFFFFF;
  --neutral-bg: #F8F8F5;
  --shadow: 0 2px 32px 0 rgba(41,46,73,0.06);
  --radius-lg: 16px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --font-regular: 400;
  --font-medium: 500;
  --font-bold: 700;
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p, li, ul, ol, span, strong {
  font-family: var(--font-body);
  font-size: 1rem;
}
p { margin-bottom: 16px; }
strong { font-weight: var(--font-medium); }

/* --- LAYOUT SPACING --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 10px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 36px rgba(41,46,73,0.12);
}
.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: flex-start;
    gap: 18px;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #FAFAFA;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 600px;
  border-left: 4px solid var(--secondary);
  transition: box-shadow 0.18s, border-color .18s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #222;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  font-family: var(--font-body);
  color: #4b4b4b;
  letter-spacing: 0.2px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(41,46,73,0.13);
  border-color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- HEADER & NAV --- */
header {
  background: var(--accent);
  box-shadow: 0 3px 20px 0 rgba(41,46,73,0.05);
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-medium);
  color: var(--primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-button {
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  border-radius: var(--radius-sm);
  padding: 10px 30px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 8px 0 rgba(41,46,73,0.09);
  border: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  margin-left: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 3px 26px 0 rgba(252,213,129,0.18);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  font-size: 2rem;
  z-index: 1203;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 7px rgba(41,46,73,0.11);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  z-index: 3500;
  transform: translateX(105vw);
  transition: transform 0.32s cubic-bezier(.7,.3,.2,1);
  box-shadow: 0 6px 36px rgba(41,46,73,0.22);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 22px 0 0;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 42px auto 0 auto;
  align-items: flex-start;
  max-width: 300px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--primary);
  padding: 13px 0;
  border-bottom: 1px solid #ececec;
  width: 100%;
  border-radius: 0;
  transition: color .18s, background .18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: #f7f7ee;
}
@media (max-width: 1024px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* --- MAIN & SECTION --- */
main {
  width: 100%;
  background: var(--neutral-bg);
  flex: 1;
}
section {
  width: 100%;
  display: flex;
  justify-content: center;
}
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
  padding-left: 0;
}
li {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1.06rem;
  line-height: 1.5;
}
ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 2px;
}

/* --- FOOTER --- */
footer {
  background: var(--accent);
  box-shadow: 0 -1px 10px 0 rgba(41,46,73,0.06);
  padding: 38px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 32px;
}
footer nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #555;
  transition: color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: #757575;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer nav {
    margin: 0 0 0 0;
    flex-direction: row;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 28px 0 12px 0;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
  footer nav {
    font-size: 0.94rem;
    flex-direction: column;
    gap: 10px;
  }
}

/* --- BUTTONS & LINKS --- */
button, .cta-button, .cookie-btn {
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  border-radius: var(--radius-sm);
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 24px;
  font-size: 1rem;
  margin-left: 12px;
  margin-bottom: 8px;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #eeeeee;
  color: #4b4b4b;
}
.cookie-btn:focus, .cookie-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 2px 8px 0 rgba(252,213,129,0.18);
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4500;
  background: var(--accent);
  box-shadow: 0 -1px 30px 0 rgba(41,46,73,0.09);
  border-top: 2px solid var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 18px 20px;
  font-size: 1.08rem;
  font-family: var(--font-body);
  transition: transform .32s;
}
@media (max-width:540px) {
  .cookie-banner {
    font-size: 0.97rem;
    padding: 14px 5px 10px 5px;
  }
}
.cookie-banner.hide {
  transform: translateY(120%);
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 4600;
  inset: 0;
  background: rgba(41,46,73,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.26s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  padding: 44px 28px 28px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 44px 0 rgba(41,46,73,.15);
  min-width: 300px;
  max-width: 405px;
  width: 100%;
  font-family: var(--font-body);
  color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popup-in .31s cubic-bezier(.33,1.02,.42,1) both;
}
@keyframes popup-in {
  0% { transform: scale(0.9) translateY(44px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h3 { font-family: var(--font-display); font-size: 1.22rem; margin-bottom: 0.7em; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 1.03rem;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"], .cookie-category input[type="radio"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 15px; right: 16px;
  font-size: 1.4rem;
  color: #444;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  width: 32px; height: 32px;
  line-height: 32px;
  text-align: center;
  transition: background .16s, color .17s;
}
.cookie-modal .close-modal-btn:hover,
.cookie-modal .close-modal-btn:focus {
  color: var(--primary);
  background: #f1f0ee;
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-button, .cookie-btn, .mobile-menu-toggle, .card, .testimonial-card {
  transition: var(--transition);
}
.card:focus-within, .card:hover {
  box-shadow: 0 6px 40px 0 rgba(252,213,129,0.18);
}
a, button {
  transition: background-color 0.18s, color 0.18s, box-shadow 0.21s;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  h1   { font-size: 2.05rem; }
  h2   { font-size: 1.5rem; }
  .card { min-width: 210px; padding: 18px 10px; }
  .testimonial-card { max-width: 100%; padding: 16px 10px; }
}
@media (max-width: 768px) {
  header .container { min-height: 56px; gap: 14px; }
  .section { margin-bottom: 34px; padding: 18px 2px; }
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.18rem; }
  .testimonial-card, .card { margin-bottom: 16px; }
  .features, .card-container, .content-grid { gap: 12px; }
}
@media (max-width: 540px) {
  .container { padding: 0 4px; }
}

/* --- SCROLLBAR STYLES --- */
::-webkit-scrollbar {
  width: 8px; background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #e1dac8;
  border-radius: 6px;
}

/* --- CUSTOM SELECTION --- */
::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* --- UTILITIES --- */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-20 { gap: 20px !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- FORCED FLEXBOX ALIGNMENTS --- */
/* Provided Pattern Classes */
/* Already implemented throughout above */

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; }
}

/* --- MISCELLANEOUS --- */
hr {
  border: none;
  height: 1px;
  background: #f2ebc9;
  margin: 28px 0;
}

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