/* ====== 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F3F7FA;
  color: #23384E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
a {
  text-decoration: none;
  color: #23384E;
  transition: color 0.2s;
}
strong {
  font-weight: 600;
}

/* ====== WARM FRIENDLY COLOR VARIABLES ====== */
:root {
  --brand-primary: #23384E;
  --brand-secondary: #A1B5C6;
  --brand-accent: #F3F7FA;
  --brand-orange: #FFB067;
  --brand-coral: #F6716B;
  --neutral-100: #fff;
  --neutral-200: #FAF6F2;
  --neutral-300: #EDE6DE;
  --neutral-900: #23384E;
  --shadow: rgba(35, 56, 78, 0.07);
}

/* ====== TYPOGRAPHY ====== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 18px;
  line-height: 1.2;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
  margin-top: 12px;
  line-height: 1.25;
  letter-spacing: -.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.34rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 10px;
  margin-top: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--brand-primary);
}
p, li {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
ul, ol {
  list-style: disc inside;
}
.section ul, .section ol,
.content-wrapper ul, .content-wrapper ol {
  padding-left: 18px;
  margin-bottom: 18px;
}
a:hover, a:focus {
  color: var(--brand-coral);
}

/* ====== MAIN STRUCTURE ====== */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  padding: 0;
}

.section {
  background: var(--neutral-100);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.2s;
  position: relative;
}
.section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: var(--brand-accent);
  border-bottom: 1.5px solid var(--neutral-300);
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  height: 76px;
  padding: 0 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--brand-accent);
}
.main-nav img {
  height: 34px;
  margin-right: 22px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-orange);
  color: #fff;
}
.main-nav .cta-primary {
  margin-left: auto;
  background: var(--brand-orange);
  color: #fff !important;
  border-radius: 16px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 1.03em;
  box-shadow: 0 2px 12px var(--shadow);
  transition: background 0.19s, box-shadow 0.19s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: var(--brand-coral);
  box-shadow: 0 4px 18px rgba(246,113,107,0.13);
  color: #fff;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 10px;
    padding-right: 8px;
    font-size: 0.97em;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}

/* ====== MOBILE MENU ====== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  padding: 4px 14px 3px 14px;
  margin-right: 10px;
  position: absolute;
  right: 12px;
  top: 15px;
  z-index: 41;
  cursor: pointer;
  box-shadow: 0 1px 7px var(--shadow);
  transition: background 0.18s, color 0.20s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-coral);
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,56,78, 0.82);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.68,.05,.32,1.57);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-coral);
  color: #fff;
  font-size: 2.6rem;
  border: none;
  border-radius: 16px;
  padding: 0 14px;
  margin: 18px 0 14px 18px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 110;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-orange);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 12px;
  align-items: flex-start;
  padding: 0 32px;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 14px 0 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  width: 100%;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-orange);
  color: #23384E !important;
}

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ====== HERO SECTION & PAGE INTRO ====== */
.hero-section {
  background: linear-gradient(93deg, var(--neutral-100) 70%, var(--brand-accent) 100%);
  border-radius: 0 0 30px 30px;
  margin-bottom: 32px;
  box-shadow: 0 4px 18px var(--shadow);
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 0 44px 0;
}
.hero-section h1 {
  color: var(--brand-primary);
}
.hero-section p {
  font-size: 1.18rem;
  color: var(--brand-primary);
}
.hero-section .cta-primary {
  margin-top: 12px;
}
@media (max-width: 690px) {
  .hero-section {
    border-radius: 0 0 16px 16px;
    margin-bottom: 18px;
  }
  .hero-section .content-wrapper {
    padding: 25px 0 24px 0;
    gap: 10px;
  }
  .hero-section h1 {
    font-size: 1.65rem;
  }
}

/* ====== CARDS & FEATURE GRIDS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.card {
  background: var(--neutral-100);
  border-radius: 18px;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 28px 20px;
  margin-bottom: 20px;
  flex: 1 1 min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.16s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 26px rgba(246,113,107,0.13);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-grid, .city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.feature-grid > div, .city-grid > div {
  background: var(--brand-accent);
  border-radius: 16px;
  padding: 28px 22px;
  flex: 1 1 250px;
  min-width: 224px;
  box-shadow: 0 2px 14px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature-grid > div img, .city-grid > div img {
  height: 42px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.feature-grid > div h3, .city-grid > div h3 {
  font-size: 1.16rem;
}
.feature-grid > div p, .city-grid > div p {
  color: var(--brand-primary);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

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

/* ====== SECTION SPACING & LAYOUT FLEX ====== */
.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 {
    flex-direction: column;
    gap: 16px;
  }
}

/* ====== TESTIMONIALS ====== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-accent);
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-bottom: 20px;
  min-height: 90px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 26px rgba(255,176,103,0.19);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.09rem;
  color: var(--brand-primary); /* Ensures dark text on light bg for contrast */
}
.testimonial-card span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
}
.testimonial-card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 5px var(--shadow);
}

/* ====== CONTACT DETAILS ====== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.contact-details > div {
  background: var(--brand-accent);
  border-radius: 13px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 180px;
  box-shadow: 0 2px 8px var(--shadow);
}
.contact-details img {
  width: 26px;
  height: 26px;
}

.map-placeholder {
  background: var(--neutral-300);
  border-radius: 15px;
  padding: 24px 18px;
  margin-bottom: 20px;
  color: var(--brand-primary);
  text-align: center;
}

@media (max-width: 600px) {
  .contact-details {
    flex-direction: column;
    gap: 10px;
  }
  .contact-details > div {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ====== BUTTONS & CTAs ====== */
.cta-primary, .cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: var(--brand-orange);
  border: none;
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 15px 32px;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 12px;
  transition: background 0.22s, box-shadow 0.22s, transform 0.20s;
  display: inline-block;
  outline: none;
}
.cta-primary:focus, .cta-primary:hover {
  background: var(--brand-coral);
  box-shadow: 0 6px 28px rgba(246,113,107,0.13);
  transform: scale(1.02);
}
.cta-secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-orange);
  color: #fff;
}

/* ====== FOOTER ====== */
footer {
  background: var(--brand-primary);
  color: #fff;
  padding: 36px 0 16px 0;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -2px 20px var(--shadow);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 5px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1em;
  border-radius: 8px;
  padding: 4px 12px;
  transition: color 0.2s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-orange);
  background: #fff;
}
footer p {
  font-size: 0.95em;
  color: #f7f2ed;
  margin-bottom: 0;
}
@media (max-width: 768px) {
  footer .container {
    gap: 9px;
  }
  footer {
    padding: 24px 0 7px 0;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-top: 36px;
  }
}

/* ====== MISC. FLEX LAYOUT CLASSES ====== */
.card-container, .card, .feature-grid, .feature-item, .city-grid, .contact-details, .content-grid, .text-image-section, .testimonial-card {
  /* Flex rules already declared per class */
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--neutral-100);
  box-shadow: 0 -2px 20px rgba(35,56,78,0.16);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 32px;
  z-index: 2000;
  animation: slideUp .44s cubic-bezier(.57,1.18,.41,.91);
  font-size: 1rem;
}
@keyframes slideUp {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin-right: 12px;
  color: var(--brand-primary);
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 21px;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.20s, color 0.17s, box-shadow 0.13s;
  box-shadow: 0 1px 5px var(--shadow);
}
.cookie-btn.accept {
  background: var(--brand-orange);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--brand-coral);
}
.cookie-btn.reject {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--brand-gray);
  color: var(--brand-primary);
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--brand-orange);
  color: var(--brand-orange);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--brand-orange);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    font-size: 0.96em;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 7px;
    width: 100%;
  }
}

/* ====== COOKIE SETTINGS MODAL ====== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(35,56,78,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.27s cubic-bezier(.57,1.18,.41,.91);
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--neutral-100);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(35,56,78,0.30);
  padding: 32px 24px 26px 24px;
  max-width: 370px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.09em;
  color: var(--brand-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-orange);
  width: 20px;
  height: 20px;
}
.cookie-category input[disabled] {
  filter: grayscale(1) opacity(0.5);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 8px 12px 8px;
    border-radius: 14px;
  }
}

/* ====== UTILITIES ====== */
.rounded {
  border-radius: 20px !important;
}
.shadow {
  box-shadow: 0 2px 14px var(--shadow) !important;
}
.gap-20 {
  gap: 20px !important;
}
.gap-24 {
  gap: 24px !important;
}
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* ====== FORMS (if any are added) ====== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-secondary);
  background: var(--neutral-100);
  color: var(--brand-primary);
  margin-bottom: 18px;
  outline: none;
  box-shadow: 0 1px 5px var(--shadow);
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--brand-orange);
  box-shadow: 0 3px 10px var(--shadow);
}

/* ======= RICH TEXT SECTIONS ======= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.text-section ul, .text-section ol {
  margin-left: 24px;
  margin-bottom: 14px;
}

/* Utility for visually distinct lists */
li > strong {
  color: var(--brand-orange);
  font-weight: 600;
}
ol > li {
  margin-bottom: 7px;
}

/* ====== SPACING RULES & CARD SPACING ====== */
.card-container > *, .feature-grid > *, .city-grid > *, .content-grid > *, .testimonial-card + .testimonial-card, .contact-details > * {
  margin-bottom: 0;
}
.section > *, .content-wrapper > * {
  margin-bottom: 20px;
}
.section > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* ====== MEDIA QUERIES: TYPOGRAPHY & SPACING ====== */
@media (max-width: 644px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.25rem; }
  .cta-primary, .cta-secondary { font-size: 1em; padding: 11px 15px; }
}


/* ====== ANIMATION FOR MICRO-INTERACTIONS ====== */
.cta-primary, .cta-secondary, .card, .feature-grid > div, .testimonial-card, .mobile-nav a {
  transition: box-shadow 0.14s, background 0.14s, color 0.14s, transform 0.14s;
}

/* ====== HIDE OUTLINE ON BUTTONS BUT KEEP FOR KEYBOARD USERS ====== */
.cta-primary:active, .cta-secondary:active, button:active {
  outline: none;
}
.cta-primary:focus-visible, .cta-secondary:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-coral);
  outline-offset: 2px;
}

/* ====== SCROLLBAR (for desktop/improved look) ====== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--brand-accent);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 15px;
}

/* ====== MOBILE RESPONSIVENESS ENSURED ====== */
@media (max-width: 500px) {
  .container { padding: 0 3vw; }
  .hero-section { border-radius: 0 0 10px 10px; margin-bottom: 9px; }
  .section { padding: 16px 2vw; margin-bottom: 26px; }
  .content-wrapper { padding: 0; }
  h1, .h1 { font-size: 1.25rem; }
}

/* ====== ACCESSIBILITY ====== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  background: var(--brand-orange);
  color: #fff;
  padding: 6px 18px;
  border-radius: 8px;
}

/* ====== END OF CSS ====== */
