/* =======================================================================
   CSS 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, 
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #f7f9fa;
  color: #183046;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #264653;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4A261;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
}
strong { font-weight: 600; }

/* ================= FONT IMPORTS (Google Fonts) ================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap');

/* =================== BODY GLOBAL =================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  width: 100%;
}

/* =================== HEADER =================== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e1e6ea;
  box-shadow: 0 2px 8px rgba(38,70,83,0.04);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
header img {
  height: 42px;
}
nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 0;
  color: #264653;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #F4A261;
}
.cta.primary {
  background: #264653;
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 12px 36px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(38,70,83,0.12);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  margin-left: 12px;
  min-width: 140px;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #183046;
  color: #E9C46A;
}
.cta.secondary {
  background: #E9C46A;
  color: #264653;
  border: none;
  border-radius: 26px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(38,70,83,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-left: 10px;
  min-width: 110px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #F4A261;
  color: #ffffff;
}

/* ------ MOBILE MENU BUTTON AND NAVIGATION ------ */
.mobile-menu-toggle {
  display: none;
  background: #E9C46A;
  color: #264653;
  font-size: 2rem;
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1101;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(38,70,83,0.08);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4A261;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(38,70,83,0.20);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.77,.2,.05,1.0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 26px 0 0;
  background: #264653;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 2rem;
  padding: 4px 16px;
  box-shadow: 0 2px 8px rgba(38,70,83,0.11);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F4A261;
  color: #264653;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 48px;
  width: 100%;
  text-align: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 12px 0;
  color: #264653;
  width: 100vw;
  transition: background 0.18s, color 0.18s;
  border-radius: 0;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #E9C46A;
  color: #183046;
  outline: none;
}
@media (max-width: 991px) {
  header .container {
    gap: 10px;
  }
  nav {
    gap: 16px;
  }
  .cta.primary {
    padding: 10px 20px;
    font-size: 0.98rem;
  }
}
@media (max-width: 820px) {
  header .container {
    height: 62px;
    gap: 15px;
  }
  header img {
    height: 32px;
  }
}
@media (max-width: 800px) {
  header nav,
  header .cta.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================= SECTIONS, MAIN STRUCTURE ================== */
section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(38,70,83,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.25s, background 0.25s;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.08em;
  line-height: 1.7;
}
.text-section ul,
.text-section ol {
  margin-bottom: 10px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 8px;
  height: 24px;
  display: inline-block;
}
.text-section strong {
  color: #264653;
  font-weight: 700;
}

/* ================== TYPOGRAPHY ====================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #264653;
  line-height: 1.22;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 10px;
}
h1 { font-size: 2.7rem; margin-bottom: 14px; }
h2 { font-size: 2rem; margin-bottom: 10px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.06rem; }
p, ul, ol {
  color: #1e3550;
  font-size: 1.08em;
  line-height: 1.6;
  margin-bottom: 8px;
}
@media (max-width: 650px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  .section,
  section {
    margin-bottom: 36px;
    padding: 26px 6px;
  }
}

/* ================== FLEX PATTERNS =================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(38,70,83,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.19s, transform 0.21s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(38,70,83,0.13);
  transform: translateY(-4px) scale(1.018);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

/* ================== TESTIMONIALS =================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #f3f7fa;
  box-shadow: 0 3px 12px 0 rgba(38,70,83,0.07);
  transition: box-shadow 0.16s, background 0.17s;
  color: #183046;
  font-style: normal;
  font-size: 1.07em;
  min-width: 280px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #264653;
  font-size: 1.11em;
}
.testimonial-card p {
  color: #183046;
  font-size: 1.02em;
  line-height: 1.6;
}
.testimonial-card img {
  height: 20px;
  margin: 0 1px;
  vertical-align: middle;
}
/* Accessibility: ensure dark text high contrast */
.testimonial-card, .testimonial-card p,
.testimonial-card strong {
  color: #183046;
  background: inherit;
}

/* =============== FEATURE ITEM LAYOUT ============== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* =============== BLOG PREVIEWS ============== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.blog-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(38,70,83,0.05);
  padding: 22px 18px 18px 18px;
  width: calc(33% - 18px);
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.blog-preview h3 {
  font-size: 1.1rem;
}
.blog-preview:hover {
  box-shadow: 0 4px 16px 0 rgba(38,70,83,0.14);
  transform: scale(1.025);
  z-index: 2;
}
.blog-preview .cta.secondary {
  margin-left: 0;
  margin-top: 6px;
  min-width: 72px;
}
.blog-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-top: 8px;
  color: #264653;
}
@media (max-width: 1000px) {
  .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .blog-preview {
    width: 100%;
    min-width: 175px;
  }
}

/* =============== BLOG SEARCH ACTIONS ============= */
.blog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 10px 0 6px 0;
}
.blog-actions input[type="search"] {
  border: 1px solid #dae1e8;
  border-radius: 8px;
  font-size: 1em;
  padding: 10px;
  outline: none;
  transition: border 0.17s, box-shadow 0.17s;
}
.blog-actions input[type="search"]:focus {
  border: 1.5px solid #264653;
  box-shadow: 0 1px 8px 0 rgba(38,70,83,0.04);
}

/* =============== FOOTER =============== */
footer {
  background: #264653;
  color: #fff;
  padding: 36px 0 20px 0;
  font-size: 1em;
  box-shadow: 0 -1px 8px rgba(38,70,83,0.04);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #E9C46A;
  font-size: 1em;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #F4A261;
  text-decoration: underline;
}
.footer-contact {
  font-size: 1em;
  line-height: 1.44;
  color: #f7f9fa;
}
.footer-contact img {
  height: 19px;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}
footer p {
  color: #E9C46A;
  margin-top: 16px;
  line-height: 1.22;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    align-items: center;
  }
  .footer-nav,
  .footer-contact{
    justify-content: center;
    width: 100%;
  }
}

/* =============== COOKIE BANNER & MODAL =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #ffffff;
  border-top: 2px solid #E9C46A;
  box-shadow: 0 -2px 22px 0 rgba(38,70,83,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 22px 22px 22px;
  gap: 20px;
  font-size: 1.04em;
  z-index: 3200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: #264653;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-buttons .cookie-btn {
  padding: 10px 18px;
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  background: #E9C46A;
  color: #264653;
  transition: background 0.16s, color 0.14s;
}
.cookie-buttons .cookie-btn:hover,
.cookie-buttons .cookie-btn:focus {
  background: #F4A261;
  color: #fff;
}
.cookie-buttons .cookie-btn.reject {
  background: #fff;
  color: #264653;
  border: 1.3px solid #E9C46A;
}
.cookie-buttons .cookie-btn.reject:hover {
  background: #E9C46A;
  color: #fff;
  border: 1.3px solid #E9C46A;
}
.cookie-buttons .cookie-btn.settings {
  background: #264653;
  color: #fff;
  border: none;
}
.cookie-buttons .cookie-btn.settings:hover {
  background: #183046;
  color: #E9C46A;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 3300;
  background: rgba(38,70,83,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.visible {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  padding: 34px 22px 26px 22px;
  border-radius: 18px;
  min-width: 330px;
  max-width: 97vw;
  box-shadow: 0 2px 22px 0 rgba(38,70,83,0.17);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3201;
  animation: modalIn 0.46s cubic-bezier(.24,.98,.45,1.05);
}
@keyframes modalIn {
  from { transform: translateY(44px) scale(.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #264653;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #183046;
  font-weight: 500;
}
.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input[type='checkbox']{
  opacity: 0;
  width: 44px;
  height: 24px;
}
.cookie-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #dae1e8;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.24s;
}
.cookie-switch input[type='checkbox']:checked + .cookie-slider {
  background: #F4A261;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
  box-shadow: 0 0 5px 0 rgba(38,70,83,.10);
}
.cookie-switch input[type='checkbox']:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions .cookie-btn {
  border-radius: 16px;
  padding: 8px 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-btn.close-modal {
  background: #dae1e8;
  color: #264653;
  font-size: 1em;
  border: none;
}
.cookie-modal .cookie-btn.close-modal:hover {
  color: #fff;
  background: #E9C46A;
}
@media (max-width: 600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 26px 8px 18px 8px;
  }
}

/* =================== CONFIRMATION MESSAGE =================== */
.confirmation-message {
  background: #E9C46A22;
  border-left: 5px solid #E9C46A;
  border-radius: 10px;
  padding: 16px 18px;
  color: #183046;
  margin-bottom: 24px;
  font-size: 1.06em;
}

/* =================== CUSTOM UI ENHANCEMENTS ================= */
section ul, section ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
section ul li, section ol li {
  margin-bottom: 7px;
  font-size: 1.05em;
  line-height: 1.55;
}
section ul li img, section ol li img {
  height: 20px;
  vertical-align: middle;
  margin-right: 7px;
}

/* =================== FORMS (if needed in future) =================== */
input, textarea, select, button {
  font-family: inherit;
}
input[type="text"], input[type="email"], textarea {
  background: #f7f9fa;
  border: 1.2px solid #dae1e8;
  padding: 13px 10px;
  border-radius: 8px;
  transition: border 0.16s, box-shadow 0.13s;
  margin-bottom: 8px;
  font-size: 1em;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.2px solid #264653;
  box-shadow: 0 2px 8px 0 rgba(38,70,83,0.07);
  outline: none;
}
button {
  outline: none;
}

/* ================== MISC SPACING & GAPS ================== */
.section:not(:last-child),
section:not(:last-child) {
  margin-bottom: 60px;
}
@media (max-width: 500px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section, section {
    padding: 12px 0 18px 0;
    border-radius: 14px;
  }
}

/* ========== MINIMUM GAPS BETWEEN CARDS & ELEMENTS ========= */
.card, .testimonial-card, .blog-preview, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .footer-nav, .blog-list {
  gap: 20px;
}

/* =============== UTILITIES =============== */
.hide { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }

/* =============================
   FOCUS ACCESSIBILITY
   ============================= */
a:focus, button:focus, .cta:focus, input:focus {
  outline: 2px solid #264653;
  outline-offset: 1.5px;
}

/* =====================
   Z-INDEX MANAGEMENT
   ===================== */
.mobile-menu,
.mobile-menu.open { z-index: 1200; }
.mobile-menu-toggle { z-index: 1101; }
.cookie-banner { z-index: 3200; }
.cookie-modal-overlay { z-index: 3300; }
.cookie-modal { z-index: 3310; }

/* =====================
   SMOOTH ANIMATIONS
   ===================== */
.cta, .cta.primary, .cta.secondary,
.card, .card:hover,
.blog-preview, .blog-preview:hover,
.testimonial-card, .mobile-menu {
  transition: box-shadow 0.2s, transform 0.18s, background 0.18s, color 0.16s;
}

/* ================
   CUSTOM SCROLLBARS + SELECTION
   ================ */
::selection {
  background: #E9C46A99;
  color: #264653;
}
::-webkit-scrollbar {
  width: 12px; background: #dae1e8;
}
::-webkit-scrollbar-thumb {
  background: #E9C46A;
  border-radius: 12px;
}

/* =====================================================================
   END OF STYLE.CSS
   ===================================================================== */
