/* RESET & BASE */
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;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.55;
  background: #F8F7F4;
  color: #2a3140;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #7C8AAD;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A887C3;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
}


/* -- BRAND PALETTE (soft pastel) -- */
:root {
  --brand-primary: #1C2A38;
  --brand-secondary: #C9B27C;
  --brand-accent: #f0efea;
  --brand-bg1: #F8F7F4;
  --pastel-blue: #eaf1fb;
  --pastel-lilac: #f9f0fa;
  --pastel-mint: #e7f8f2;
  --pastel-yellow: #fcf5e6;
  --pastel-pink: #f8eaf3;
  --shadow-card: 0 2px 14px rgba(44,54,70,0.09);
  --shadow-elevate: 0 2px 20px rgba(44,54,70,0.13);
  --radius-l: 24px;
  --radius-m: 14px;
  --radius-s: 8px;
  --text-dark: #222b3a;
  --text-light: #fff;
}


/* -- TYPOGRAPHY -- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

h1, .h1 {
  font-family: 'Playfair Display', serif;
  color: var(--brand-primary);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
  line-height: 1.13;
}

h2, .h2 {
  font-family: 'Playfair Display', serif;
  color: var(--brand-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 17px;
  line-height: 1.2;
}

h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 9px;
  line-height: 1.28;
}

h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 600;
}

p, .p {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 400;
}
.small-text {
  font-size: 0.93rem;
  color: #7C8AAD;
  margin-top: 14px;
  opacity: 0.8;
  letter-spacing: 0.01em;
}
strong { font-weight: 600; }


/* CONTAINER & LAYOUT */
.container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  align-items: flex-start;
  width: 100%;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: var(--pastel-blue);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 34px 23px 28px 23px;
  display: flex;
  flex-direction: column;
  min-width: 290px;
  flex: 1 1 240px;
}

.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.city-grid > div {
  background: var(--pastel-yellow);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 25px 22px 23px 22px;
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-grid > div {
  background: var(--pastel-mint);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  flex: 1 1 240px;
  min-width: 220px;
  padding: 22px 18px 19px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.service-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}
.service-list > div,
.service-grid > div {
  background: var(--pastel-pink);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  flex: 1 1 240px;
  min-width: 220px;
  padding: 20px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Testimonial layout */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-elevate);
  padding: 22px 20px;
  margin-bottom: 24px;
  max-width: 540px;
  color: #202942;
}
.testimonial-card p {
  color: #222b3a;
  font-size: 1.07rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: #7C8AAD;
  font-size: 1rem;
  font-style: normal;
}

/* Contact block */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 1rem;
}
.contact-block span, .contact-block p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394150;
  font-size: 1rem;
  margin-bottom: 0;
}

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

/* Buttons & CTA */
.cta-btn,
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-s);
  padding: 13px 26px 13px 26px;
  background: linear-gradient(90deg, #d8e2e7 2%, #f6e8e8 50%, #f9f0fa 90%);
  color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(44,54,70,0.05);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.18s;
  margin-top: 7px;
  text-decoration: none;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus, button:hover, .btn:hover {
  background: linear-gradient(90deg, #eae5f5 2%, #fdebf6 90%);
  color: #6b44ae;
  box-shadow: 0 4px 18px rgba(44,54,70,0.09);
  text-decoration: none;
}
/* Subtle underline animation for cta-btn */
.cta-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-secondary);
  transition: width 0.22s;
  margin-top: 3px;
}
.cta-btn:hover::after, .cta-btn:focus::after {
  width: 40%;
}

/* Navigation styles */
.main-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  align-items: center;
}
.main-nav a, .footer-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  padding: 5px 0;
  font-weight: 500;
  border: none;
  background: none;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  color: #9c87b8;
  border-bottom: 2px solid #C9B27C;
}

.logo img {
  max-height: 53px;
}
header {
  background: var(--pastel-blue);
  box-shadow: 0 8px 26px rgba(62,80,112,0.07);
  position: relative;
}
header > .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}
footer {
  background: var(--pastel-yellow);
  border-top: 1px solid #f2e7d6;
  padding: 42px 0 30px 0;
  margin-top: 50px;
  color: #202942;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 23px;
}


/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  color: var(--brand-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(77,93,149,0.10);
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.22s, color 0.18s;
  z-index: 210;
  display: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ebe9f5;
  color: #9170a7;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 310px;
  background: linear-gradient(180deg, #f9f0fa 12%, #eaf1fb 100%);
  box-shadow: -2px 0 32px rgba(100,60,153,0.13);
  z-index: 2222;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.44,1.24,.74,1.04);
  padding: 36px 32px 44px 32px;
  opacity: 1;
  visibility: visible;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: var(--brand-primary);
  font-size: 2rem;
  border: none;
  margin-left: auto;
  cursor: pointer;
  margin-bottom: 34px;
  padding: 0 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #eae5f5;
  color: #A887C3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  padding: 8px 0 8px 0;
  transition: color 0.17s, background 0.18s;
  border-radius: 7px;
  font-weight: 500;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-mint);
  color: #8b70c7;
}


/* -- COOKIE CONSENT BANNER -- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff5fe;
  color: var(--brand-primary);
  box-shadow: 0 -2px 18px rgba(170,140,184,0.10);
  padding: 26px 15px 26px 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  z-index: 3300;
  font-size: 1rem;
  transition: transform 0.28s cubic-bezier(.98,.66,.19,1.34), opacity 0.18s;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 21px 10px 21px 10px;
    gap: 13px;
    font-size: 0.96rem;
  }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  font-size: 1.01rem;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #FEEEEF, #e3f3fd);
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.18s, color 0.13s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: linear-gradient(90deg, #cce3c3, #fcf5e6 80%);
  color: #376e33;
}
.cookie-banner button.reject {
  background: linear-gradient(90deg,#f8eaf3 30%, #ffe6e6 100%);
  color: #994052;
}
.cookie-banner button.settings {
  background: #fff;
  color: #967ab4;
  border: 1.5px solid #dfd6f1;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 2px 12px rgba(115, 52, 140, 0.09);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(92,62,126,0.18);
  opacity: 1;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(82, 65, 99, 0.17);
  color: #29263c;
  max-width: 410px;
  width: 95vw;
  padding: 36px 32px 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-size: 1.05rem;
  animation: modalIn .34s cubic-bezier(.44,1.5,.66,1.01);
}
@keyframes modalIn {
  0% {
    transform: translateY(36px) scale(0.94);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  background: none;
  border: none;
  color: #9982ad;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #f3ecfc;
  color: #A887C3;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #c4b4e2;
  width: 20px;
  height: 20px;
  margin-right: 0;
}
.cookie-category label {
  font-size: 1rem;
  color: #413555;
}
.cookie-category.essential label {
  font-weight: 700;
  color: #375859;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #aad5af;
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
  color: #746891;
  margin-bottom: 3px;
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 9px;
}

/* --- PAGE RESPONSIVENESS --- */
@media (max-width: 980px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .service-grid, .service-list, .city-grid {
    flex-direction: column;
    gap: 17px;
  }
  .feature-grid > div,
  .service-grid > div,
  .service-list > div,
  .city-grid > div {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .content-grid,
  .card-container,
  .city-grid,
  .service-list,
  .service-grid,
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  header > .container {
    gap: 10px;
    flex-direction: row;
  }
  .text-section {
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  .main-nav { display: flex !important; }
}

@media (max-width: 640px) {
  h1, .h1 { font-size: 1.45rem; }
  h2, .h2 { font-size: 1.19rem; }
  h3, .h3 { font-size: 1.04rem; }
  section {
    padding: 30px 0;
    margin-bottom: 38px;
  }
  footer {
    padding: 23px 0 21px 0;
  }
  .logo img {
    max-height: 44px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 420px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 15vw 4vw;
  }
}
@media (max-width: 350px) {
  .cookie-modal { font-size: 0.92rem; }
}

/* --- Animations + Misc --- */
section, .card, .feature-grid > div, .service-list > div, .testimonial-card, .city-grid > div {
  transition: box-shadow 0.17s, background 0.16s, transform 0.18s;
}

.testimonial-card:hover, .city-grid > div:hover,
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 32px rgba(96,20,160,0.12), 0 0px 0 #fff;
  background: #fff8fc;
}
/* Micro-interaction: card pop */
.testimonial-card:active, .city-grid > div:active,
.feature-grid > div:active, .service-list > div:active {
  transform: scale(0.98);
}

.card {
  cursor: default;
}

/* --- Accessibility --- */
*:focus {
  outline: 2px solid #cce3c3;
  outline-offset: 2px;
}

/* --- VISUAL TOUCHES/PERSONALITY --- */
/* SOFT PASTEL block accents */
.feature-grid > div {
  border-left: 9px solid #dfd6f1;
}
.city-grid > div { border-left: 7px solid #fcf5e6; }
.service-list > div, .service-grid > div { border-left: 7px solid #f8eaf3; }

.text-section img[alt*="Icon"] {
  margin-right: 6px;
  vertical-align: middle;
  height: 1.3em;
  width: auto;
}

/* Remove last margin from .section and .card */
section:last-child {
  margin-bottom: 0 !important;
}
.card:last-child, .testimonial-card:last-child,
.feature-grid > div:last-child, .city-grid > div:last-child,
.service-list > div:last-child {
  margin-bottom: 0 !important;
}

/* Utility */
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* --- END --- */
