/* =====================
   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, input, textarea, button, select, figure, figcaption, main, section, article, aside, nav, footer, header, hgroup {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
input, textarea {
  resize: none;
}

/* =====================
   BRAND COLORS & FONTS
   ===================== */
:root {
  --primary: #1C3340;
  --secondary: #6A9BAE;
  --accent: #F6F8F9;
  --white: #fff;
  --black: #15181A;
  --success: #24966B;
  --danger: #C02B2B;

  --border-radius: 14px;
  --border-radius-md: 10px;
  --shadow: 0px 4px 18px 0px rgba(28,51,64,0.07), 0px 1.5px 8px 0px rgba(106,155,174,0.05);
  --shadow-md: 0px 10px 32px 0px rgba(28,51,64,0.08);

  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Slab'), local('RobotoSlab'),
    url('https://fonts.gstatic.com/s/robotoslab/v24/BngMUXZYTXPIvIBgJJSb6u9kg3iH.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'),
    url('https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-U1UpcaXcl0Aw.woff2') format('woff2');
}

body {
  background: var(--accent);
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: .01em;
  /* No horizontal scroll */
  overflow-x: hidden;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--primary);
}

/* =====================
   GEOMETRIC STRUCTURED LAYOUT
   ===================== */
.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px 0px rgba(28,51,64,0.13);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: var(--border-radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border: 2.5px solid var(--secondary);
  max-width: 480px;
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.0625rem;
  color: var(--primary);
  margin: 0;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
  font-family: var(--font-body);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HERO SECTION ==== */
.hero {
  background: var(--primary);
  color: var(--white);
  min-height: 220px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 0;
}
.hero h1,
.hero p,
.hero .cta-btn {
  color: var(--white);
}
.hero .cta-btn {
  margin-top: 18px;
  background: var(--secondary);
  color: var(--white);
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: var(--white);
  color: var(--primary);
}

/* =====================
   HEADER, NAVIGATION, LOGO
   ===================== */
header {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 22px;
  height: 68px;
  border-bottom: 2px solid var(--accent);
  position: relative;
  z-index: 20;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 30px;
  height: 48px;
}
.logo-link img {
  height: 42px;
  min-width: 120px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  letter-spacing: .04em;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

.cta-btn {
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 8px;
  margin-left: 28px;
  margin-right: 12px;
  letter-spacing: .03em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 1.5px 8px 0px rgba(28, 51, 64, 0.06);
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 18px 0px rgba(28,51,64,0.13);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  cursor: pointer;
  z-index: 30;
  transition: background 0.19s, color 0.19s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}

/* =====================
   MOBILE NAVIGATION OVERLAY
   ===================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 100;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(.63,.05,.42,.92);
  box-shadow: 0 0 22px 0 rgba(28, 51, 64, 0.09);
  padding: 0 32px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  margin-top: 24px;
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.20s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--danger);
}
.mobile-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  padding: 15px 4px 15px 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* =====================
   FLEXBOX PATTERNS & LAYOUTS
   ===================== */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow);
  padding: 24px 18px 22px 18px;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.21s;
}
.feature-list li:hover, .feature-list li:focus-within {
  box-shadow: 0 6px 28px 0 rgba(28,51,64,0.13);
  border-left: 6px solid var(--primary);
}
.feature-list img {
  height: 32px;
  width: 32px;
}

.steps-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.steps-list li {
  background: var(--secondary);
  color: var(--white);
  border-radius: 7px;
  font-weight: 600;
  padding: 14px 24px;
  margin-bottom: 0;
  font-family: var(--font-display);
  letter-spacing: .02em;
}

.text-section {
  background: var(--accent);
  border-radius: var(--border-radius); 
  padding: 18px 24px;
  margin-bottom: 12px;
}

.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 10px;
}
.appointment-list > li {
  background: var(--white);
  border-left: 5px solid var(--secondary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.appointment-list h3 {
  font-size: 1.13rem;
  margin-bottom: 3px;
}
.appointment-list span {
  color: var(--primary);
}
.appointment-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  padding: 0;
  margin-top: 10px;
}
.appointment-actions li a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--accent);
  transition: background 0.18s, color 0.18s;
}
.appointment-actions li a:hover, .appointment-actions li a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* ====================
   TABLES, DEFINITION LISTS
   ==================== */
dt {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 18px;
}
dd {
  margin: 4px 0 14px 22px;
  color: var(--primary);
}

/* ====================
   FOOTER
   ==================== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 26px 0;
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  border-radius: 16px 16px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 22px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: .02em;
  padding: 8px 6px;
  border-radius: 3px;
  transition: color 0.18s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
  background: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer-contact p {
  color: var(--accent);
  font-size: 0.96rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  height: 17px;
  width: 17px;
}

/* ====================
   BUTTONS & FORMS
   ==================== */
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 7px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--primary);
  color: var(--white);
}

/* ====================
   MICRO-INTERACTIONS
   ==================== */
a, button, .cta-btn, .main-nav a, .mobile-nav a, .appointment-actions a {
  transition: color 0.16s, background 0.18s, box-shadow 0.19s, border 0.15s;
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  box-shadow: 0px -6px 32px 0px rgba(28, 51, 64, 0.19);
  font-size: 1.08rem;
  border-radius: 16px 16px 0 0;
  gap: 18px;
  animation: banner-slide-in 0.47s cubic-bezier(.61,.01,.31,1);
}
@keyframes banner-slide-in {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 0.97rem;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.13s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.6px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--white);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2020;
  left: 0;top: 0;right: 0;bottom: 0;
  background: rgba(28,51,64,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.21s;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 17px;
  box-shadow: 0 8px 48px 0px rgba(28,51,64,0.12);
  max-width: 420px;
  width: 92%;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popup 0.25s cubic-bezier(.61,0,.38,1);
}
@keyframes popup {
  0%   { transform: scale(.8); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.34rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.05rem;
}
.cookie-modal .switch {
  width: 38px; height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary);
  border-radius: 30px;
  transition: background 0.18s;
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.15s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--primary);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .switch[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 17px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute; right: 18px; top: 18px;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.45rem;
  width: 34px;height: 34px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--danger);
  color: var(--white);
}

/* =====================
   GENERAL & TYPOGRAPHY STRUCTURE
   ===================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
}
ul, ol {
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.7;
  font-size: 1rem;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1023px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  header{
    padding: 0 4vw;
  }
  .footer-contact {
    gap: 7px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
  .footer-nav {
    gap: 11px;
  }
  .feature-list,
  .card-container {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html{ font-size: 15px; }
  body{ font-size: 0.98rem;}
  .main-nav,
  .cta-btn{
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero {
    min-height: 120px;
    padding: 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .section {
    padding: 25px 6px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    padding: 14px 10px;
    max-width: 100%;
  }
  .feature-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-list li {
    max-width: 100%;
  }
  .steps-list {
    flex-direction: column;
    gap: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact p {
    font-size: 0.93rem;
    gap: 2px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-bottom:10px;
  }
  footer {
    padding: 25px 0 16px 0;
    border-radius: 10px 10px 0 0;
    margin-top: 40px;
  }
  .mobile-menu {
    padding: 0 10px;
  }
}
@media (max-width: 512px) {
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  section {
    padding: 14px 3px;
    margin-bottom: 16px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px 8px;
    font-size: 0.96rem;
  }
  .cookie-consent-buttons {
    gap: 8px;
  }
  .cookie-modal {
    max-width: 99vw;
    padding: 17px 6px 17px 8px;
  }
}

/* ===============
   MISC/UTILITIES
   =============== */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top:0!important; }
.mt-1 { margin-top:8px; }
.mb-0 { margin-bottom:0!important; }
.mb-1 { margin-bottom:8px; }
.mb-2 { margin-bottom:16px; }
.text-center { text-align: center!important; }
.text-right { text-align: right!important; }

/* ===============
   GEOMETRIC STRUCTURED ANGULAR EFFECTS
   =============== */
.section, .feature-list li, .card, .testimonial-card {
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  border-top-right-radius: 0;
}
h1, h2, h3, h4, h5, h6 {
  text-transform: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}
hr {
  border: none;
  border-top: 2.5px solid var(--secondary);
  margin: 24px 0;
}

/* ===============
   FOCUS STYLES
   =============== */
a:focus-visible, .cta-btn:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- HIDE DEFAULT SPINNERS FOR NUMBER INPUTS --- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
