/* =============================================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFDF6;
  color: #24265C;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:root {
  --primary: #24265C;
  --secondary: #36B4A9;
  --accent: #FFFDF6;
  --text: #24265C;
  --dark: #182033;
  --shadow: rgba(36, 38, 92, 0.10);
  --testimonial-bg: #F8FAFF;
  --cta-gradient-start: #36B4A9;
  --cta-gradient-end: #6DD5CB;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background-color: var(--accent);
  color: var(--text);
}

/* =============================================================
   Typography (Creative/Artistic)
============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.125rem; }
p, li, span { font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 1rem; }
strong { font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.07rem; }
}

/* Decorative artistic heading underline */
h1, h2, h3 {
  position: relative;
}
h1::after, h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 4px;
  background: var(--secondary);
  margin-top: 4px;
  opacity: 0.33;
}

/* =============================================================
   Layout Containers - Flexbox Only!
============================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 28px 10px; margin-bottom: 36px; }
}

/* Artistic Card and Grid Flex layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 20px;
  padding: 30px 24px;
  transition: transform 0.30s, box-shadow 0.3s;
  position: relative;
  min-width: 220px;
  flex: 1 1 280px;
}
.card:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 40px rgba(54,180,169,0.10), 0 1.5px 10px var(--shadow);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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) {
  .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ================
   Header & Nav
================== */
header {
  width: 100%;
  background: var(--accent);
  border-bottom: 1.5px solid #e8e8f1;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #FFF;
}

.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  padding: 13px 34px;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 18px var(--shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  text-align: center;
}
.cta-primary {
  color: #FFF;
  background: var(--secondary);
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #FFF;
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 34px rgba(54,180,169,0.12);
}
.cta-secondary {
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--secondary);
}
.cta-secondary:hover, .cta-secondary:focus {
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 6px 18px var(--shadow);
}

/* Hide Mobile Nav by default */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  cursor: pointer;
  display: none;
  padding: 8px 12px;
  z-index: 9991;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  background: rgba(54,180,169, 0.09);
  border-radius: 7px;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFDF6;
  transform: translateX(100vw);
  transition: transform 0.45s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  box-shadow: -5px 6px 34px rgba(36,38,92,0.18);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  padding: 5px 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10000;
}
.mobile-menu-close:focus {
  background: rgba(54,180,169, 0.07);
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: bold;
  padding: 10px 0 10px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 1100px) {
  header .container { gap: 9px; }
}
/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header nav, header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================
   Footer
================== */
footer {
  width: 100%;
  background: #f5faf8;
  border-top: 2px solid #edeef8;
  margin-top: 50px;
  padding-top: 36px;
  padding-bottom: 22px;
  font-size: 0.97rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-flex > *:not(:last-child) {
  margin-bottom: 20px;
}
.footer-links, .legal-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a, .legal-links a {
  color: var(--dark);
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.92;
  transition: color 0.2s, opacity 0.18s;
}
.footer-links a:hover, .legal-links a:hover {
  opacity: 1;
  color: var(--secondary);
}
footer img {
  max-width: 58px;
  margin-bottom: 10px;
}
.contact-info {
  font-size: 1rem;
}
@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    gap: 20px;
  }
  footer {
    margin-top: 34px;
    padding-bottom: 32px;
  }
}

/* ================
   Sections, Cards, Features
================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.features-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 24px 18px;
  min-width: 200px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.25s;
  margin-bottom: 20px;
  position: relative;
}
.features-grid > div:hover {
  box-shadow: 0 8px 36px rgba(54,180,169,0.13);
  transform: translateY(-2px) scale(1.020) rotate(-1.5deg);
}
.features-grid img {
  width: 40px; height: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 5px rgba(54,180,169,0.13));
  border-radius: 7px;
}

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

.city-cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.city-cards .text-section {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 1.2px 7px var(--shadow);
  padding: 20px 18px;
  margin-bottom: 17px;
  min-width: 220px;
  max-width: 330px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.city-cards .text-section:hover, .city-cards .text-section:focus {
  box-shadow: 0 8px 38px rgba(54,180,169,0.10);
  transform: scale(1.03) rotate(-1deg);
}

@media (max-width: 900px) {
  .features-grid, .city-cards { flex-direction: column; gap: 20px; }
}

.text-section {
  background: transparent;
  padding: 0 0 10px 0;
  margin-bottom: 18px;
}
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 8px;
  list-style: disc;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 7px;
  line-height: 1.7;
}
.text-section a {
  color: var(--secondary);
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.15s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--primary);
  text-decoration: underline wavy var(--secondary);
}

/* =============================================================
   Inputs, Filters (search, select, etc)
============================================================= */
input[type=text], select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid #d6e2e1;
  border-radius: 24px;
  padding: 9px 19px;
  margin: 12px 5px 12px 0;
  background: #fff;
  color: var(--primary);
  transition: border 0.20s;
  outline: none;
  box-sizing: border-box;
}
input[type=text]:focus, select:focus {
  border: 2px solid var(--secondary);
  box-shadow: 0 1px 8px rgba(54,180,169,0.09);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  margin-right: 10px;
}

/* ================
   Testimonials
================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--testimonial-bg);
  box-shadow: 0 4px 14px var(--shadow);
  border-radius: 19px;
  padding: 20px;
  margin-bottom: 20px;
  color: #24265C;
  transition: box-shadow 0.15s, transform 0.15s;
  min-width: 240px;
}
.testimonial-card p {
  color: #222436;
  font-size: 1.09rem;
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.67;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 3px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(36,38,92,0.10), 0 1.5px 10px var(--shadow);
  transform: scale(1.02) rotate(0.7deg);
}

@media (max-width: 768px) {
  .testimonial-card { padding: 18px; }
}

/* ================
   FAQ Section/Accordion
================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: #fff;
  border-radius: 14px;
  padding: 21px 18px;
  box-shadow: 0 1.5px 11px var(--shadow);
  margin-bottom: 8px;
  transition: box-shadow 0.2s, transform 0.22s;
}
.faq-list > div:hover, .faq-list > div:focus {
  box-shadow: 0 7px 24px rgba(54,180,169,0.11);
  transform: scale(1.014) rotate(-0.6deg);
}

/* ================
   Cookie Consent Banner (Fixed)
================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #222946;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -5px 24px rgba(54,180,169,0.10);
  padding: 15px 20px;
  z-index: 10999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}
#cookie-banner.hide {
  transform: translateY(130%);
  pointer-events: none;
}
#cookie-banner p {
  flex: 1 1 210px;
  margin: 0;
  color: #222946;
}
#cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  border: none;
  padding: 8px 18px;
  font-size: 1rem;
  margin-left: 8px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  cursor: pointer;
}
#cookie-accept { background: var(--secondary); color: #fff; }
#cookie-accept:hover { background: var(--primary); color: #fff; }
#cookie-reject { background: #f5faf8; color: var(--primary); border: 1.5px solid var(--secondary); }
#cookie-reject:hover { background: var(--secondary); color: #fff; }
#cookie-settings { background: #fffdf6; color: var(--secondary); border: 1.5px solid var(--primary); }
#cookie-settings:hover { background: var(--primary); color: #fff; }

@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 8px;
    gap: 7px;
  }
}

/* Cookie settings modal */
#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 12000;
  background: rgba(36,38,92,0.16);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
#cookie-modal.open {
  display: flex;
}
#cookie-modal .modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 360px;
  width: 93%;
  padding: 34px 26px;
  box-shadow: 0 8px 44px rgba(54,180,169,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalAppear 0.43s cubic-bezier(0.68,-0.6,0.32,1.6);
}
#cookie-modal .modal-content h3 {
  margin-bottom: 8px;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.32rem;
  cursor: pointer;
  transition: background 0.16s;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}
#cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #f3f3fa;
  border-radius: 13px;
  position: relative;
  outline: none;
  border: 1.5px solid #d7ddec;
  transition: background 0.17s, border 0.17s;
  vertical-align: middle;
  cursor: pointer;
}
#cookie-modal .cookie-toggle:checked {
  background: var(--secondary);
  border-color: var(--secondary);
}
#cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3.5px; top: 3.5px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 2px #d6d8ea;
  transition: left 0.18s;
}
#cookie-modal .cookie-toggle:checked::before {
  left: 19px;
}
@keyframes modalAppear {
  0% { opacity: 0; transform: scale(0.89) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===========
   Animations/Micro-Interactions
============ */
.card, .card-container > *, .features-grid > div, .city-cards .text-section, .testimonial-card, .faq-list > div {
  transition: box-shadow 0.2s, transform 0.18s, background 0.18s;
}
a, button {
  transition: all 0.16s ease;
}

/* Artistic Elements */
.card:before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 30px; height: 30px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.11;
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}
.card:after {
  content: '';
  position: absolute;
  bottom: -8px; right: -8px;
  width: 25px; height: 25px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.085;
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

/* Artistic blob (hero, optional) */
.hero-blob {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 180px;
  right: -60px;
  top: 50px;
  opacity: 0.18;
  pointer-events: none;
  border-radius: 160px 200px 160px 180px / 100px 180px 100px 180px;
  background: var(--secondary);
  filter: blur(16px);
}

/* ================
   Spacing Patterns (MANDATORY)
================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==================
   Utility and Helpers
==================== */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }

.hide { display: none !important; }

@media (max-width: 600px) {
  h1, h2, h3, h4, h5, h6 { margin-bottom: 10px; }
}

/* =================
   Accessibility Enhancements
=================== */
a:active, button:active {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ==============
   Print Styles
=============== */
@media print {
  header, footer, #cookie-banner, #cookie-modal { display: none !important; }
  body { color: #000; background: #FFF; }
}
