/* =====================
   CSS RESET & BASELINE
   ===================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #F7F7F5;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  color: #1A2B49;
  background: #F7F7F5;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a { color: #1A2B49; text-decoration: none; transition: color 0.2s; }
a:hover { color: #E94B3C; }
ul, ol { list-style: none; }

/* ==================================
   TYPOGRAPHY (Elegant Classic Scale)
   ================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, 'Times New Roman', serif;
  color: #1A2B49;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.375rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
p, li, span, b {
  font-family: 'Roboto', Georgia, Times, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #262626;
}
p {
  margin-bottom: 18px;
}
b, strong { font-weight: 700; }

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================
   PRIMARY LAYOUT: CONTAINER
   =========================== */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================
   SPACING & SECTION STRUCTURE
   ================================ */
section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26,43,73,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.25s;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  section { padding: 24px 8px; margin-bottom: 36px; }
}

/* Generic grid/flex utilities */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26,43,73,0.06);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(26,43,73,0.18);
  transform: translateY(-3px);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F6F4;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(26,43,73,0.06);
  flex: 1 1 280px;
  min-width: 0;
}
.testimonial-card p {
  font-size: 1.125rem;
  font-style: italic;
  color: #21202a;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #7F7F7E;
  letter-spacing: 0.01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====================================
   HEADER / NAVIGATION (Elegant Flex)
   ==================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e7e6e2;
  box-shadow: 0 2px 12px rgba(26,43,73,0.04);
}
header nav {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 16px 0;
  justify-content: flex-start;
}
header nav > a img {
  height: 38px;
  margin-right: 8px;
}
header nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 0;
}
header nav > ul li a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
header nav > ul li a:hover,
header nav > ul li a:focus {
  background: #F7F7F5;
  color: #E94B3C;
}
.cta-primary {
  padding: 10px 26px;
  background: #1A2B49;
  color: #fff !important;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-left: 34px;
  box-shadow: 0 2px 8px rgba(30,30,30,0.03);
  transition: background 0.2s, box-shadow 0.17s, color 0.17s;
  display: inline-block;
}
.cta-primary:hover,  .cta-primary:focus {
  background: #E94B3C;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(233,75,60,0.09);
  outline: none;
}
.cta-secondary {
  padding: 9px 22px;
  background: none;
  color: #1A2B49;
  border: 1.8px solid #1A2B49;
  border-radius: 18px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.18s, border 0.18s;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  border: 1.8px solid #E94B3C;
  color: #E94B3C;
  background: #fcf2f2;
  outline: none;
}

/* ============
   MOBILE MENU
   ============ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1A2B49;
  margin-left: auto;
  padding: 8px;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { color: #E94B3C; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 43, 73, 0.95);
  color: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 36px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 26px; right: 28px;
  cursor: pointer;
  z-index: 1002;
  padding: 8px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E94B3C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 50px;
  padding-left: 42px;
  padding-right: 38px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: 'Montserrat', Georgia, serif;
  color: #fff;
  padding: 10px 0 10px 4px;
  border-radius: 10px;
  transition: background 0.17s, color 0.17s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E94B3C;
  color: #fff;
  outline: none;
}

@media (max-width: 1024px) {
  header nav > ul {
    gap: 12px;
  }
  .cta-primary {margin-left: 12px;}
}
@media (max-width: 900px) {
  header nav > ul {
    display: none !important;
  }
  .cta-primary {display: none !important;}
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ============================
   HERO & PRIMARY COLUMNS/ULS
   ============================ */
h1 + p { font-size: 1.18rem; margin-bottom: 30px; color: #474656; }
.container > .content-wrapper > a.cta-primary, .container > .content-wrapper > a.cta-secondary {
  margin-top: 10px;
  align-self: flex-start;
}

/* =============
   FLEX UL LISTS
   ============= */
.content-wrapper > ul,
.text-section > ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper > ul li,
.text-section > ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: #fcfaf6;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 0.5px 2px rgba(26,43,73,0.03);
  font-size: 1rem;
  min-height: 48px;
}
.content-wrapper > ul li img,
.text-section > ul li img {
  width: 28px; height: 28px; flex-shrink: 0;
}
.text-section > ul li {
  background: none;
  box-shadow: none;
  padding-left: 10px;
  gap: 8px;
}

/* =============================================
   NEWSLETTER / PROMOS / FOOTER Newsletters call
   ============================================= */
.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f6f6f4;
  border-radius: 14px;
  padding: 22px 18px;
  margin-top: 24px;
  box-shadow: 0 1px 8px rgba(80,80,70,0.04);
  align-items: flex-start;
}
.newsletter-signup > h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.18rem;
}
.newsletter-signup p {
  font-size: 1rem;
  color: #55555a;
  margin-bottom: 7px;
}

/* ============
   FOOTER FLEX
   ============ */
footer {
  background: #fff;
  border-top: 1px solid #e3e2df;
  font-size: 1rem;
  margin-top: 48px;
}
footer .container { padding: 0 20px; }
footer .content-wrapper {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0;
}
.footer-brand img {
  height: 40px;
  display: block;
  margin-bottom: 15px;
}
.footer-info ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-info ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  color: #474656;
}
.footer-info ul li img {
  height: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: #1A2B49;
  font-size: 0.98rem;
  padding: 2px 2px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E94B3C;
  background: #F7F7F5;
}
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
  display: flex;
  align-items: center;
  background: none;
  border-radius: 50%;
  padding: 4px;
  transition: background 0.19s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #f7e8e7;
}
.footer-social img { height: 24px; }

@media (max-width: 1050px) {
  footer .content-wrapper {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 650px) {
  footer .content-wrapper {
    gap: 10px;
    padding: 16px 0;
  }
  .footer-info ul li{
    font-size: 0.94rem;
  }
  .newsletter-signup {margin-top: 16px;}
}

/* ==========================
   MAP, CARD, MISC STYLES
   ========================== */
.map-embed-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.map-embed-info img {
  height: 32px;
  width: 32px;
}

/* ============================
   RESPONSIVE FLEX DIRECTION
   ============================ */
@media (max-width: 768px) {
  .content-grid, .card-container, .feature-list, .footer-nav, .footer-social {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* ================
   BUTTON STYLES
   ================ */
button, .cta-primary, .cta-secondary {
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.99);
  box-shadow: 0 1px 3px rgba(233,75,60,0.07);
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -6px 36px rgba(30,30,30,0.20);
  padding: 20px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  animation: fadeInUpCookie 0.5s;
  font-size: 1rem;
}
#cookie-banner.hide { display: none !important; }
@keyframes fadeInUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  flex: 1 1 200px;
  color: #21202a;
  margin-right: 20px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
#cookie-banner button {
  padding: 9px 18px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  border-radius: 18px;
  border: 1.5px solid #e4e4e1;
  background: #fff;
  color: #1A2B49;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.16s, border 0.14s, color 0.16s;
}
#cookie-banner button.accept {
  background: #1A2B49;
  color: #fff;
  border: none;
}
#cookie-banner button.accept:hover, #cookie-banner button.accept:focus {
  background: #E94B3C;
  color: #fff;
}
#cookie-banner button.settings {
  background: #fcfcfc;
  color: #1A2B49;
  border: 1.5px solid #1A2B49;
}
#cookie-banner button.settings:hover, #cookie-banner button.settings:focus {
  border: 1.5px solid #E94B3C;
  color: #E94B3C;
  background: #f7e8e7;
}
#cookie-banner button.reject {
  background: #fff;
  color: #E94B3C;
  border: 1.5px solid #E94B3C;
}
#cookie-banner button.reject:hover, #cookie-banner button.reject:focus {
  background: #E94B3C;
  color: #fff;
  border: 1.5px solid #E94B3C;
}
@media (max-width: 650px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 12px;
  }
  #cookie-banner p { margin-right: 0; }
  .cookie-actions { gap: 10px; }
}

/* ===============
   COOKIE MODAL
   =============== */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,60%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 48px rgba(26,43,73,0.15);
  z-index: 3000;
  min-width: 320px;
  max-width: 410px;
  width: 92vw;
  padding: 36px 22px 28px 22px;
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeInCookieModal 0.4s;
}
#cookie-modal.open {
  display: flex;
  animation: fadeInCookieModal 0.36s;
}
@keyframes fadeInCookieModal {
  from { opacity:0; transform: translate(-50%,90%); }
  to { opacity:1; transform: translate(-50%,0); }
}
#cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
#cookie-modal .cookie-category input[type='checkbox'] {
  width: 19px;
  height: 19px;
  cursor: pointer;
  accent-color: #1A2B49;
}
#cookie-modal label {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}
#cookie-modal .essential {
  color: #8a8a88;
  font-style: italic;
  opacity: 0.6;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 14px;
}
#cookie-modal button {
  padding: 8px 20px;
  border-radius: 16px;
  border: 1.3px solid #e7e7e2;
  background: #fff;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.13s;
}
#cookie-modal button.accept {
  background: #1A2B49;
  color: #fff;
  border: none;
}
#cookie-modal button.accept:hover {
  background: #E94B3C;
}
#cookie-modal button.cancel {
  background: #fff;
  color: #1A2B49;
  border: 1.3px solid #1A2B49;
}
#cookie-modal button.cancel:hover {
  background: #F7F7F5;
  color: #E94B3C;
  border: 1.3px solid #E94B3C;
}
@media (max-width: 500px) {
  #cookie-modal {
    min-width: 0;
    width: 97vw;
    padding: 18px 7px 20px 10px;
  }
}

/* =======================
   MICRO-INTERACTIONS
   ======================= */
section, .card, .testimonial-card, .cta-primary, .cta-secondary, .cookie-actions button, #cookie-modal button {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.16s, transform 0.14s;
}
section:hover {
  box-shadow: 0 10px 36px rgba(26,43,73,0.13);
}

/* =======================
   GENERAL RESPONSIVE
   ======================= */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .footer-nav, .footer-social { gap: 7px; }
  .newsletter-signup { padding: 13px 8px; }
}
@media (max-width: 450px) {
  h1 { font-size: 1.28rem; }
}

/* ================
   FOCUS VISIBLE
   ================ */
a:focus, button:focus, input:focus { outline: 2px solid #E94B3C; outline-offset: 1px; }

/* ================
   MISC UTILITIES
   ================ */
::-webkit-input-placeholder { color: #a3adb4; }
::-moz-placeholder { color: #a3adb4; }
:-ms-input-placeholder { color: #a3adb4; }
::placeholder { color: #a3adb4; }

/* Hide scrollbars for cookie modal on mobile */
#cookie-modal { scrollbar-width: thin; }

/* ============================
   PRINT FRIENDLINESS
   ============================ */
@media print {
  header, nav, footer, #cookie-banner, #cookie-modal { display: none !important; }
  section { box-shadow: none !important; border-radius: 0; background: #fff; }
}
