/* =======================================
   CSS RESET & NORMALIZATION
========================================= */
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 { font-size: 100%; }
body { line-height: 1; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

/* ==============
   VARIABLES (fallbacks)
   =============== */
:root {
  --color-bg: #fff;
  --color-bg-dark: #18191b;
  --color-bg-light: #f6f6f7;
  --color-primary: #18191b;
  --color-secondary: #565b60;
  --color-accent: #ECECEC;
  --brand-primary: #365144;
  --brand-secondary: #7D8F6E;
  --brand-accent: #FCF6EC;
  --text-heading: #18191b;
  --text-body: #1a1a1a;
  --text-muted: #6f6f6f;
  --border: #D2D2D2;
  --shadow-dark: 0 4px 24px rgba(24,25,27,0.09);
  --shadow-light: 0 2px 8px rgba(0,0,0,0.03);
  --radius-lg: 16px;
  --radius: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #18191b;
    --color-bg-light: #222225;
    --color-primary: #fff;
    --color-secondary: #ECECEC;
    --text-heading: #fff;
    --text-body: #000;
    --text-muted: #aaa;
    --border: #27282c;
    --brand-accent: #232323;
  }
}

/* ================================
   BASE BODY & TYPOGRAPHY
================================== */
body {
  background: var(--color-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 6px; }

p, ul, ol {
  margin-bottom: 18px;
  color: var(--text-body);
  font-size: 1rem;
}

ul, ol {
  margin-left: 16px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
}

strong, b {
  font-weight: 700;
  color: var(--text-heading);
}
a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s;
  outline: none;
}
a:hover, a:focus {
  color: var(--brand-primary);
  text-decoration: none;
}


/* ================================
   HEADER & NAVIGATION
================================== */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 1px 8px rgba(32,32,32,0.03);
  padding: 0 0;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 76px;
}
.logo {
  margin-left: 32px;
  margin-right: 28px;
  display: flex;
  align-items: center;
  height: 68px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-right: auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 10px 0 10px 0;
  background: none;
  border-radius: 4px;
  position: relative;
  transition: color 0.14s;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a:focus{
  color: var(--brand-primary);
  background: var(--brand-accent);
}

.cta-button.primary {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 28px;
  margin-left: 24px;
  margin-right: 32px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: background 0.18s,color 0.18s, box-shadow 0.18s, border 0.18s;
  outline: none;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 6px 32px rgba(54,81,68,0.10);
}
button.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius);
  font-size: 1.9rem;
  height: 46px;
  width: 46px;
  margin-right: 16px;
  margin-left: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.16s, background 0.18s, color 0.18s;
  z-index: 201;
}
button.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* ================================
   MOBILE MENU OVERLAY
================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,25,27,0.96);
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77, 0, .175, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  margin: 28px 30px 12px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 38px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(120,120,125,0.1);
  transition: color 0.14s;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
}

/* ================================
   MAIN - LAYOUTS & SECTION SPACING
================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ================================
   FEATURE, CARD, GRID, FLEX RULES
================================== */

.feature-grid,
.service-list,
.care-service-list,
.feature-item,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > li, .feature-grid > div,
.service-list > li,
.care-service-list > li {
  flex: 1 1 260px;
  background: var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 32px 20px 28px 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  max-width: 360px;
  border: 1px solid var(--border);
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.feature-grid > li:hover, .feature-grid > div:hover,
.service-list > li:hover,
.care-service-list > li:hover {
  box-shadow: 0 10px 32px rgba(24,25,27,0.12);
  transform: translateY(-2px) scale(1.012);
  z-index: 2;
}
.feature-grid img {
  height: 42px;
  margin-bottom: 8px;
  filter: grayscale(100%) contrast(180%);
  opacity: 0.92;
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--brand-accent); padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow-light); }
.card-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

.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;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid, .card-container, .card-grid, .content-grid, .service-list, .care-service-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }


/* ================================
   TESTIMONIAL CARDS
================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 18px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(43,43,43,0.13);
  margin-bottom: 24px;
  border: 1.5px solid var(--border);
  max-width: 630px;
  transition: box-shadow 0.18s, border 0.18s;
  color: #191A1A;
}
.testimonial-card blockquote {
  color: #18191b;
  font-style: italic;
  font-size: 1.18rem;
  margin-bottom: 0;
  margin-right: 14px;
  background: none;
  border: none;
}
.testimonial-card cite {
  color: var(--brand-primary);
  font-size: 0.97rem;
  margin-left: 8px;
}
@media(max-width: 600px) {
  .testimonial-card { padding: 18px 14px; }
}

/* ================================
   TEXT MODULES & SECTION TYPO
================================== */
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  margin-bottom: 24px;
  gap: 10px;
}
.text-section h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
  margin-top: 12px;
}
.text-section ul, .text-section ol {
  margin-left: 18px;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 7px;
}

.address-block img, .contact-info-brief img, .contact-info-full img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(100%) contrast(180%);
  opacity: 0.84;
}

.info-notification {
  background: #f9fafb;
  color: var(--brand-primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(81,81,81,0.06);
  border: 1.5px solid var(--border);
  font-size: 1rem;
}

/* ================================
   BUTTONS, LINK BUTTONS
================================== */
.cta-button,
.button,
.button-link {
  display: inline-block;
  appearance: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  text-decoration: none;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.21s;
  margin-top: 8px;
}
.cta-button.primary, .button.primary, .button-link.primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.cta-button.primary:hover, .button.primary:hover, .button-link.primary:hover,
.cta-button.primary:focus, .button.primary:focus, .button-link.primary:focus {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.cta-button.secondary, .button.secondary, .button-link.secondary {
  background: #fff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.cta-button.secondary:hover, .button.secondary:hover, .button-link.secondary:hover {
  background: var(--brand-primary);
  color: #fff;
}

.button-link {
  padding: 11px 18px;
  font-size: 1rem;
  border-radius: 6px;
  background: none;
  color: var(--brand-primary);
  border: none;
  text-decoration: underline;
  box-shadow: none;
  margin-left: 0;
  margin-right: 8px;
}
.button-link:hover, .button-link:focus {
  color: var(--brand-secondary);
  text-decoration: none;
}

/* ============ SECTION CARDS ============= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; background: var(--brand-accent); padding: 30px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-light); position: relative; border: 1.4px solid var(--border); transition: box-shadow 0.24s, transform 0.18s; }
.card:hover { box-shadow: var(--shadow-dark); transform: translateY(-2px) scale(1.014); z-index:2; }

/* ================================
   MAP PLACEHOLDER, OTHERS
================================== */
.map-placeholder {
  padding: 54px 0 54px 0;
  text-align: center;
  background: var(--brand-accent);
  color: var(--text-body);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ================================
   FOOTER
================================== */
footer {
  width: 100%;
  background: var(--color-bg-dark);
  color: #fff;
  padding: 40px 0 28px 0;
  border-top: 3px solid var(--brand-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 68px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.16s;
  opacity: 0.89;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  text-decoration: none;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-info img {
  height: 38px;
  width: auto;
  margin-bottom: 4px;
  filter: grayscale(100%) contrast(160%);
}
.footer-info div {
  color: #ECECEC;
  opacity: 0.88;
  font-size: 0.97rem;
  margin-bottom: 2px;
}

/* =========================================
   COOKIE CONSENT BANNER AND MODAL
========================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 24px 20px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 10000;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.18);
  font-size: 1.08rem;
  animation: fadeInUp 0.75s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: none; }
}
.cookie-consent-banner .button,
.cookie-consent-banner .cta-button {
  font-size: 0.98rem;
  margin-right: 10px;
  margin-left: 0px;
  margin-top: 0;
}
.cookie-consent-banner .button.accept {
  background: var(--brand-primary);
  color: #fff;
  border: 2px solid var(--brand-primary);
}
.cookie-consent-banner .button.accept:hover,
.cookie-consent-banner .button.accept:focus {
  background: #fff;
  color: var(--brand-primary);
}
.cookie-consent-banner .button.reject {
  background: #fff;
  color: #191a1a;
  border: 2px solid var(--border);
}
.cookie-consent-banner .button.reject:hover,
.cookie-consent-banner .button.reject:focus {
  background: #363636;
  color: #fff;
  border-color: var(--brand-primary);
}
.cookie-consent-banner .button.settings {
  background: var(--brand-secondary);
  color: #fff;
  border: 2px solid var(--brand-secondary);
}
.cookie-consent-banner .button.settings:hover {
  background: #fff;
  color: var(--brand-secondary);
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,25,27, 0.93);
  z-index: 30000;
  align-items: center;
  justify-content: center;
  will-change: opacity;
  animation: fadeInUp 0.7s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #18191b;
  border-radius: var(--radius-lg);
  padding: 42px 34px 36px 34px;
  box-shadow: 0 10px 60px rgba(18,19,20,0.31);
  max-width: 460px;
  width: 94vw;
  animation: fadeInUp 0.55s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2, .cookie-modal h3 {
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.cookie-modal ul {
  margin-bottom: 14px;
  margin-left: 18px;
}
.cookie-modal label {
  font-size: 1.04rem;
  margin-bottom: 12px;
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  width: 40px;
  height: 22px;
  background: #ECECEC;
  border-radius: 11px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-right: 8px;
  margin-left: 8px;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  display: none;
}
.cookie-modal .toggle-switch .switch {
  position: absolute;
  height: 18px;
  width: 18px;
  background: var(--brand-primary);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.2s, background 0.3s;
}
.cookie-modal .toggle-switch input[type="checkbox"]:checked + .switch {
  left: 20px;
  background: var(--brand-secondary);
}
.cookie-modal .category-label {
  font-size: 1.01rem;
  margin-right: 6px;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--brand-primary);
  border: none;
  font-size: 1.65rem;
  position: absolute;
  right: 16px;
  top: 18px;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--brand-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

/* =========================================
   RESPONSIVENESS
========================================== */
@media (max-width: 1070px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  .feature-grid > li, .feature-grid > div, .service-list > li {
    max-width: none;
    min-width: 150px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 780px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 0 0;
  }
  .logo { margin-left: 16px; margin-right: 4px; height: 52px; }
  .logo img { height: 36px; }
  .main-nav a, .cta-button.primary { margin-left: 0; margin-right: 0; }
  .main-nav {
    display: none;
  }
  .cta-button.primary {
    display: none;
  }
  button.mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 650px) {
  section { padding: 32px 6px; margin-bottom: 36px; }
}
@media (max-width: 510px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.28rem; }
  .container { padding: 0 4px; }
  .testimonial-card { padding: 12px 6px; font-size: 0.96rem; }
  .cookie-consent-banner { padding: 18px 4px; font-size: 0.92rem; gap: 12px; }
  .cookie-modal { padding: 22px 4vw; }
}

/* =========================================
   MICRO-INTERACTIONS & TRANSITIONS
========================================== */
input, button, a, .card, .feature-grid > li, .service-list > li, .cta-button, .button, .button-link {
  transition: all 0.13s cubic-bezier(.4,0,.2,1);
}
.card, .feature-grid > li, .service-list > li {
  will-change: transform;
}

/* =========================================
   ACCESSIBILITY FOCUS VISIBLE
========================================== */
:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1.5px;
}

/* =========================================
   SPECIAL CLASSES FROM HTML (BY NAME)
========================================== */
.business-hours {
  font-size: 1.03rem;
  color: var(--brand-primary);
  font-weight: 600;
  background: #fafbfa;
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-light);
}
.how_contact_works_steps ol,
.care_process_steps ol {
  padding-left: 16px;
  margin-left: 10px; 
  margin-bottom: 10px;
}
.how_contact_works_steps li,
.care_process_steps li {
  margin-bottom: 7px;
  padding-left: 0;
}
.map-placeholder {
  margin-bottom: 16px;
}

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