/* ============================
   CSS RESET & BASE NORMALIZATION
   ============================ */

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #2C3556;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2C3556;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 16px;
  color: #2C3556;
}

ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
  color: #2C3556;
}
ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; }
li { margin-bottom: 8px; }

img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #2C3556;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2892C;
}

strong { font-weight: 700; }

/* ===============
   BRAND COLORS
   =============== */
:root {
  --color-primary: #2C3556;
  --color-secondary: #F1F2F6;
  --color-accent: #F2892C;
  --color-white: #fff;
  --color-dark: #2C3556;
  --color-shadow: rgba(44,53,86,0.07);
  --radius: 14px;
}

/* =============================
   GENERAL LAYOUT & CONTAINERS
   ============================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
}

main {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
}

/* =================
   HEADER & NAVBAR
   ================= */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid #ECECEC;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

header a img {
  width: 145px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  padding: 8px 12px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
nav a.cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: bold;
  margin-left: 10px;
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #db791f;
  box-shadow: 0 4px 18px var(--color-shadow);
}
nav a:not(.cta):hover, nav a:not(.cta):focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  margin-left: 24px;
  cursor: pointer;
  transition: color 0.2s;
  outline: none;
  z-index: 110;
  line-height: 1;
}
.mobile-menu-toggle:focus { color: var(--color-accent); }

/* ===================
   MOBILE MENU NAVBAR
   =================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  width: 100vw;
  background: var(--color-secondary);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.75,0,0.25,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-dark);
  align-self: flex-end;
  margin: 32px 28px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
  outline: none;
  z-index: 2500;
}
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-dark);
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 12px 0;
  border-radius: var(--radius);
  width: 100%;
  transition: background 0.2s, color 0.2s;
  letter-spacing: -0.5px;
}
.mobile-nav a:hover {
  color: var(--color-accent);
  background: var(--color-white);
}
.mobile-nav a.cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: bold;
  margin-top: 12px;
  padding: 14px 0;
}

/* ================
   HERO SECTION
   ================ */
.subheadline {
  font-size: 1.25rem;
  color: #546294;
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

a.cta, .cta {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: bold;
  padding: 13px 30px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.17s, box-shadow 0.2s, color 0.17s, transform 0.15s;
  cursor: pointer;
  outline: none;
  text-align: center;
}
a.cta:hover, .cta:hover, a.cta:focus, .cta:focus {
  background: #db791f;
  color: #fff;
  box-shadow: 0 4px 18px var(--color-shadow);
  transform: translateY(-1px) scale(1.03);
}

/* =================
   FEATURES / GRIDS
   ================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 24px;
}
.feature-grid li {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 28px 24px 20px 24px;
  flex: 1 1 220px;
  min-width: 210px;
  box-shadow: 0 2px 8px var(--color-shadow);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.12s;
}
.feature-grid li:hover {
  box-shadow: 0 5px 20px 0 rgba(44,53,86,0.12);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature-grid li strong {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: #2C3556;
  font-weight: 600;
  font-size: 1rem;
}
.feature-grid li span {
  font-size: 0.99rem;
  color: #41507a;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  flex: 1 1 300px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.12s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 6px 30px 0 rgba(44,53,86,0.13);
  transform: translateY(-3px) scale(1.021);
}

.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;
}

/* =======================
   TESTIMONIALS / REVIEWS
   ======================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
}
.testimonial-card p {
  color: #1a2032;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card strong, .testimonial-card span {
  font-size: 1rem;
  color: #2C3556;
}
.testimonial-card h3 {
  font-size: 1.1rem;
  margin-bottom: 7px;
  color: #2C3556;
}

/* ===================
   CONTACT DETAILS
   =================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F6F7FB;
  border-radius: 10px;
  padding: 10px 16px;
  color: #2C3556;
  font-size: 1rem;
  margin-bottom: 0;
}
.contact-details img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
}
.map {
  margin-top: 22px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--color-shadow);
  width: 100%;
  max-width: 430px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
}

/* =====================
   TIMELINE & FAQ (Proc.)
   ===================== */
.timeline {
  background: var(--color-secondary);
  padding: 24px 18px 16px 18px;
  border-radius: var(--radius);
  margin-top: 20px;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.timeline h2 { margin-bottom: 10px; font-size: 1.17rem; }
.timeline ul { margin-bottom: 0; }
.timeline li { font-size: 1rem; margin-bottom: 10px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list li {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #2C3556;
  margin-bottom: 0;
  font-size: 1rem;
  box-shadow: 0 1px 5px var(--color-shadow);
}

/* ===============
   FOOTER
   =============== */
footer {
  background: #F6F7FB;
  padding-top: 36px;
  padding-bottom: 15px;
  border-top: 1px solid #EBEBEB;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #56638a;
  font-size: 0.98rem;
  padding: 6px 10px;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
}
.footer-menu a:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.footer-brand-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 4px;
}
.footer-brand-social img {
  width: 54px;
  height: auto;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.social-links a:hover img {
  opacity: 1;
}
.copyright {
  font-size: 0.92rem;
  color: #7e88a6;
  text-align: center;
}

/* ====================================
   COOKIE BANNER & COOKIE PREFERENCES
   ==================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--color-dark);
  color: #fff;
  box-shadow: 0 -2px 24px rgba(44,53,86,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 26px 18px;
  gap: 32px;
  transition: transform 0.4s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-content {
  flex: 1 1 270px;
  max-width: 600px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 1px 8px var(--color-shadow);
}
.cookie-banner .accept:hover { background: #db791f; }
.cookie-banner .reject {
  background: #fff;
  color: var(--color-dark);
  border: 1px solid #dbdbdb;
}
.cookie-banner .reject:hover { background: #F1F2F6; color: #F2892C; }
.cookie-banner .settings {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner .settings:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.9);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 36px rgba(44,53,86,0.19);
  padding: 34px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  z-index: 4000;
  transition: opacity 0.28s, transform 0.33s;
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.28rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  font-size: 1rem;
  color: #2C3556;
}
.cookie-modal .toggle {
  margin-left: auto;
}
/* toggle switches */
.toggle-switch {
  width: 42px;
  height: 22px;
  background: var(--color-secondary);
  border-radius: 12px;
  position: relative;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
  border: 1px solid #ECECEC;
}
.toggle-switch:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.toggle-switch:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1.5px;
  left: 2.3px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: left 0.18s;
}
.toggle-switch:checked:before {
  left: 22px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  background: transparent;
  border: none;
  color: #2C3556;
  font-size: 1.44rem;
  position: absolute;
  top: 10px;
  right: 16px;
  cursor: pointer;
}

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */
@media (max-width: 1080px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .footer-brand-social img { width: 44px; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-brand-social { flex-direction: column; gap: 12px; }
  .footer-menu { flex-direction: column; gap: 10px; }
  .section { padding: 28px 8px; }
  main { padding: 10px 0 28px 0; }
  .feature-grid { flex-direction: column; gap: 18px; }
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .card { padding: 22px 12px; }
  .map { height: 165px; max-width: 96vw; }
  .timeline, .faq-list li { padding: 14px 9px; }
  .cookie-banner { flex-direction: column; gap: 16px; align-items: flex-start; padding: 18px 5px; font-size: 0.99rem; }
  .cookie-banner .cookie-actions { gap: 9px; }
  .cookie-modal { padding: 24px 8px; min-width: unset; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.29rem; }
  h2 { font-size: 1.12rem; }
  .feature-grid li, .faq-list li, .timeline { padding: 10px 5px; }
  .cookie-modal { padding: 16px 2px; }
}

/* =====================
   Animation: Fade-In
   ===================== */
.fade-in {
  animation: fadein 1.02s cubic-bezier(0.39,0.575,0.565,1) both;
}
@keyframes fadein {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}

/* =============
   UTILITIES
   ============= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.hidden { display: none !important; }

/* ============
   A11Y FOCUS
   ============ */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =======================
   SCROLLBARS (minimal)
   ======================= */
::-webkit-scrollbar { width: 7px; background: #F1F2F6; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 7px; }

/* ===================
   WHITE SPACE & SPACING
   =================== */
.section, .card, .testimonial-card, .feature-grid li, .timeline, .faq-list li {
  margin-bottom: 20px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* ===============
   SPECIAL CLASSES
   =============== */
.subheadline { margin-bottom: 24px; }

/* Prevent content overlap */
.card, .testimonial-card, .feature-grid li, .faq-list li {
  min-width: 0;
}

/* ==================
   PRINT OPTIMIZATION
   ================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  main { padding: 0; }
}
