/* ========================================
   Merry Odyssey CRM - style.css
   Soft Pastel UI | Only Flexbox Layouts
   ======================================== */

/* CSS RESET & NORMALIZE */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  color: #26324E;
  background: #F6F7FA;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1A4673;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #B2C6DE;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #F9A826;
}
ul, ol {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 24px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(188,211,238,0.13);
  overflow: hidden;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid #EEF2F7;
}
th {
  background: #F6F7FA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  color: #1A4673;
}
tr:last-child td {
  border-bottom: none;
}

/* ============= 1. CONTAINERS ============= */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========== 2. TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-top: 0;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #1A4673;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1A4673;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #3D5A80;
  margin-bottom: 12px;
}
h4, h5, h6 {
  color: #4B6584;
}
p {
  margin: 0 0 22px 0;
  color: #26324E;
}
strong {
  color: #1A4673;
}

/* Soft pastel headings underline */
h2::after {
  display: block;
  content: '';
  width: 48px;
  height: 3px;
  margin-top: 5px;
  background: #F9A826;
  border-radius: 2px;
  opacity: 0.34;
}

/* ============== 3. HEADER ============== */
header {
  background: #F3F6FB;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 2px 16px 0 rgba(200, 210, 255, 0.09);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

header img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.main-nav a {
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 7px;
  color: #3D5A80;
  position: relative;
  transition: all 0.2s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: none;
}

.main-nav a:hover, .main-nav a:active {
  background: #EEF2F7;
  color: #1A4673;
}
.main-nav .cta-primary {
  background: #FFD697;
  color: #1A4673;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(249, 168, 38, 0.11);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border-radius: 18px;
  padding: 8px 22px;
}
.main-nav .cta-primary:hover {
  background: #F9A826;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(249, 168, 38, 0.17);
}

/* Hamburger menu for mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1A4673;
  cursor: pointer;
  z-index: 102;
  padding: 4px 8px;
  border-radius: 9px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #EEF2F7;
}

/* ========== 4. MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #f6f7fbf9;
  z-index: 110;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.7,0,0.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 28px;
  padding-left: 0;
  box-shadow: 0 6px 40px 0 rgba(180, 200, 239, 0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #1A4673;
  align-self: flex-end;
  margin-right: 32px;
  margin-bottom: 18px;
  cursor: pointer;
  z-index: 111;
  border-radius: 12px;
  padding: 3px 10px;
  transition: background 0.18s;
}
.mobile-menu-close:focus,.mobile-menu-close:hover {
  background: #EEE8FC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #3D5A80;
  padding: 13px 0 13px 7px;
  border-radius: 7px;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: #FFD697;
  color: #1A4673;
}
.mobile-nav a.cta-primary {
  background: #1A4673;
  color: #fff;
  font-weight: 600;
  margin: 12px 0 0 0;
  border-radius: 18px;
  padding: 11px 20px;
}
.mobile-nav a.cta-primary:hover {
  background: #F9A826;
  color: #fff;
}

/* ============= 5. SECTIONS LAYOUT CSS =========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFCF6;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 1px 16px 0 rgba(237, 213, 186, 0.14);
}

/* FEATURE CARDS GRID (Flexbox only) */
.features-grid {
  display: flex;
  flex-flow: row wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fffaf6;
  border-radius: 16px;
  flex: 1 1 245px;
  min-width: 235px;
  max-width: 320px;
  padding: 28px 22px 24px 22px;
  box-shadow: 0 2px 14px 0 rgba(249,168,38,0.11);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.18s;
  position: relative;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px #FFE8B3);
}
.feature:hover, .feature:focus-within {
  transform: translateY(-3px) scale(1.018);
  box-shadow: 0 6px 30px 0 rgba(249,168,38,0.13), 0 0.5px 7px 0 rgba(70,69,99,0.06);
}

/* CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 1px 16px 0 rgba(183, 183, 212, 0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  min-width: 240px;
  max-width: 400px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px 0 rgba(109, 154, 180, 0.09);
  transform: translateY(-2px) scale(1.01);
}

/* GRID CONTENT */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* TEXT-IMAGE SECTION */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.text-image-section > * {
  flex: 1 1 300px;
  min-width: 200px;
}

/* ============= TESTIMONIALS ============== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.testimonial-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 16px 22px;
  background: #fff;
  min-width: 250px;
  max-width: 390px;
  flex: 1 1 280px;
  border-radius: 15px;
  box-shadow: 0 2px 12px 0 rgba(60,93,169,0.12);
  margin-bottom: 20px;
  font-size: 1.04rem;
  color: #26324E;
  z-index: 0;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card span, .testimonial-card strong {
  color: #1A4673;
  font-weight: 500;
}
.testimonial-card p {
  color: #26324E;
  margin-bottom: 10px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(249,168,38,0.12);
  transform: translateY(-3px) scale(1.012);
}

/* ============ FAQ LIST ============= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.faq-item {
  background: #fbf8ff;
  border-radius: 11px;
  box-shadow: 0 1px 8px 0 rgba(191,170,241,0.08);
  padding: 22px 18px 14px;
  margin-bottom: 6px;
  transition: box-shadow 0.15s, transform 0.13s;
  border-left: 4px solid #FFD697;
}
.faq-item h3 {
  color: #463F78;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 2px 16px 0 rgba(175, 137, 255, 0.10);
  transform: translateY(-2px);
}

/* ============= ARTICLES ============== */
.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.article {
  background: #fffafc;
  border-radius: 15px;
  box-shadow: 0 1px 16px 0 rgba(255,178,204,0.10);
  padding: 24px 20px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 420px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.19s;
}
.article h3 {
  margin-bottom: 10px;
  color: #1A4673;
  font-size: 1.2rem;
}
.article p {
  margin-bottom: 13px;
  color: #3D5A80;
}
.article a {
  color: #F792C2;
  font-weight: 500;
  transition: color 0.17s;
}
.article a:hover {
  color: #1A4673;
}
.article:hover, .article:focus-within {
  box-shadow: 0 4px 26px 0 rgba(254, 169, 208,0.12);
}

.featured-article {
  background: #f3e3ff;
  border-radius: 17px;
  padding: 32px 22px;
  box-shadow: 0 1px 12px 0 rgba(179, 149, 255, 0.12);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.featured-article h3 {
  color: #8b4eab;
}
.featured-article a {
  color: #6B59FF;
  font-weight: 500;
}

/* ============ HERO SECTION ============= */
.hero {
  background: linear-gradient(140deg, #FFFCF6 36%, #F9EFFF 110%);
  padding: 54px 0 42px 0;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 3px 32px 0 rgba(250, 183, 255, 0.11);
  margin-bottom: 34px;
}
.hero .container {
  align-items: flex-start;
}
.hero h1, .hero p {
  color: #1A4673;
}
.hero .cta-primary {
  margin-top: 12px;
}

/* ============= BUTTONS & CTA =============== */
.cta-primary, .cta-secondary, button, input[type='submit'] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #F9A826;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 24px;
  box-shadow: 0 2px 11px 0 rgba(255, 193, 101, 0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.10s;
  cursor: pointer;
  outline: none;
  margin-top: 10px;
}
.cta-primary:focus, .cta-primary:hover, button:focus, button:hover, input[type='submit']:focus, input[type='submit']:hover {
  background: #FFD697;
  color: #1A4673;
  box-shadow: 0 4px 18px 0 rgba(255, 193, 101, 0.17);
  transform: translateY(-2px) scale(1.017);
}

.cta-secondary {
  background: #FFF4E0;
  color: #F9A826;
  border: 1px solid #FFD697;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #F9A826;
  color: #fff;
}

/* ============= FORMS ============== */
input, textarea, select {
  background: #fff;
  border-radius: 11px;
  border: 1px solid #E5ECF6;
  padding: 11px 16px;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: border 0.18s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #F9A826;
  box-shadow: 0 2px 7px 0 rgba(255, 208, 124, 0.08);
}

/* ============= MAP PLACEHOLDER ============= */
.map-placeholder {
  padding: 20px 0;
  margin: 20px 0 0 0;
  color: #8C7CB1;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* ============= FOOTER ============== */
footer {
  background: #FFF9F2;
  padding: 42px 0 24px 0;
  box-shadow: 0 -8px 34px 0 rgba(233, 208, 180, 0.08);
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}
.footer-legal {
  margin-top: 10px;
  font-size: 0.97rem;
  opacity: 0.81;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 1rem;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 2px;
  width: 20px;
  height: 20px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 2px 8px 0 rgba(151, 147, 255, 0.08);
  transition: background 0.14s, box-shadow 0.14s;
}
.footer-social a:hover {
  background: #FFD697;
  box-shadow: 0 4px 16px 0 rgba(249, 168, 38, 0.11);
}

/* =============== RESPONSIVE DESIGN ================ */
@media (max-width: 1060px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  .features-grid, .articles, .testimonials {
    gap: 16px;
  }
  .feature, .article {
    max-width: 98vw;
  }
}
@media (max-width: 850px) {
  .footer-social {
    margin-top: 18px;
    margin-bottom: 2px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { max-width: 100vw; padding: 0 8px; }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .articles, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .article, .testimonial-card { min-width: unset; max-width: 100vw; }
  .footer-nav, .footer-legal, .footer-contact, .footer-social {
    font-size: 0.98rem;
    gap: 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  .content-wrapper {
    padding: 0 2px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 525px) {
  body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  .feature, .article, .testimonial-card {
    padding: 17px 8px !important;
  }
  .footer-contact, .footer-legal, .footer-nav {
    font-size: 0.95rem;
  }
}

/* ============= COOKIE CONSENT BANNER ============== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  padding: 22px 18px 16px 18px;
  background: #faf8ff;
  box-shadow: 0 -4px 31px 0 rgba(159, 91, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  z-index: 1111;
  font-size: 1rem;
  border-radius: 13px 13px 0 0;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.38s cubic-bezier(.7,0,.2,1), opacity 0.23s;
}
.cookie-consent-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-content {
  color: #1A4673;
  text-align: center;
  margin-bottom: 7px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 2px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 20px;
  border: none;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1px 7px rgba(208, 179, 255,0.10);
}
.cookie-btn.accept {
  background: #F9A826;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { 
  background: #FFD697;
  color: #1A4673;
}
.cookie-btn.reject {
  background: #fff;
  color: #F9A826;
  border: 1.5px solid #FFD697;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFE8B3;
  color: #1A4673;
}
.cookie-btn.settings {
  background: #fae7ff;
  color: #8B4EAB;
  border: 1.5px solid #e4d4f1;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #dfbfff;
  color: #5F3A7A;
}

/* ============== COOKIE MODAL =============== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(100,53,180,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1121;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 6px 40px rgba(182, 131, 243, 0.16);
  padding: 38px 32px 28px 32px;
  min-width: 308px;
  max-width: 94vw;
  margin: 12px;
  z-index: 1450;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookieModalIn 0.36s cubic-bezier(.72,.01,.22,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.97) translateY(28px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.34rem;
  color: #8b4eab;
  margin-bottom: 14px;
}
.cookie-modal-section {
  background: #faf6ff;
  padding: 16px 18px;
  border-radius: 13px;
  margin-bottom: 12px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}
.cookie-modal-section label {
  flex: 1 1 auto;
  color: #463F78;
}
.cookie-toggle {
  margin-left: auto;
  width: 46px;
  height: 26px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0;
  right: 0; bottom: 0;
  background: #e4d4f1;
  border-radius: 26px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #F9A826;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 1px 3px #FFE2B3;
}
.cookie-toggle input:checked + .cookie-slider::before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 20px;
}
.cookie-modal-close {
  background: none;
  color: #F9A826;
  font-size: 1.19rem;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 7px;
  margin-left: auto;
  margin-bottom: 7px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFD697;
  color: #1A4673;
}

/* =============== UTILITY CLASSES =============== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }

/* Remove blue background on tap on iOS */
*:focus { outline: none; }

/* ====== END: Merry Odyssey CRM style.css ====== */
