:root {
  /* Color Palette - strictly adhering to constraints */
  --primary-color: #e00000;
  --primary-color-hover: #b30000;
  --primary-color-light: #fce5e5;
  --primary-color-muted: rgba(224, 0, 0, 0.05);

  --secondary-color: #e1e1e1;
  --secondary-color-light: #f5f5f5;
  --secondary-color-dark: #b8b8b8;

  --black: #000000;
  --white: #ffffff;

  --text-color: #1a1a1a;
  --text-light: #4a4a4a;
  --text-muted: #737373;

  --nav-bg: #000000;
  --bg-color: #ffffff;
  --bg-alt: #fafafa;

  /* Typography */
  --body-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --heading-font: "Playfair Display", Georgia, serif;

  /* Layout */
  --content-width: 1100px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(224, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Keep hash-link targets clear of the sticky header. */
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.25;
  margin: 2em 0 0.75em;
  color: var(--black);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-top: 1em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.2em 0;
  font-size: 1.125rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 24px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-list a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-list a:focus-visible {
  outline-color: var(--white);
  outline-offset: -3px;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-banner {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-divider {
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.5;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-color);
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-left: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--secondary-color);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary-color-light);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-phone {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.2;
}

.contact-email {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-phone:hover, .contact-email:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: var(--primary-color);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-color-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-appointment {
  background: var(--black);
}

.btn-appointment:hover {
  background: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--nav-bg);
  color: var(--white);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 16px 20px;
  cursor: pointer;
  width: 100%;
  text-align: right;
}

.nav-toggle span {
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: var(--transition-fast);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-list > li > a:hover,
.nav-list > li.is-active > a,
.nav-list > li > a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-list > li > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.caret {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.has-sub:hover .caret,
.has-sub.open .caret {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  border: 1px solid var(--secondary-color-light);
  border-top: 3px solid var(--primary-color);
}

.submenu a {
  padding: 12px 24px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.submenu a:hover, .submenu a.active {
  background: var(--primary-color-light);
  color: var(--primary-color);
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.has-sub.open .submenu {
  display: block;
  animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Main content ---------- */

.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.page-section {
  margin-bottom: 64px;
}

.block {
  margin: 24px 0;
}

.align-center { text-align: center; }
.align-right { text-align: right; }

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 40px 0;
  align-items: stretch;
}

/* Adjusting specific column flex values mapped from inline styles to grid */
.row .col[style*="flex-basis: 75"],
.row .col[style*="flex-basis:75"] {
  grid-column: span 2;
}

@media (min-width: 900px) {
  .row {
    grid-template-columns: repeat(12, 1fr);
  }
  .row > .col {
    grid-column: span 6;
  }
  .row > .col[style*="flex-basis: 75"],
  .row > .col[style*="flex-basis:75"] {
    grid-column: span 8;
  }
  .row > .col[style*="flex-basis: 25"],
  .row > .col[style*="flex-basis:25"] {
    grid-column: span 4;
  }
  .row > .col[style*="flex-basis: 16"],
  .row > .col[style*="flex-basis:16"] {
    grid-column: span 3;
  }
  .row > .col[style*="flex-basis: 41"],
  .row > .col[style*="flex-basis:41"] {
    grid-column: span 6;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--secondary-color-light);
  transition: box-shadow var(--transition-normal);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card[style*="background-color:rgb(225, 225, 225)"],
.card[style*="background-color: var(--secondary-color)"] {
  background: var(--bg-alt);
  border: 1px solid var(--secondary-color);
}

.img-block {
  margin: 32px auto;
  text-align: center;
}

.img-block img {
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.img-block figcaption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.btn-block {
  margin: 32px 0;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--black);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrap {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--secondary-color-light);
}

.map-wrap iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  margin: 60px 0;
}

blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  border-left: 4px solid var(--primary-color);
  background: var(--primary-color-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.25rem;
  font-family: var(--heading-font);
  color: var(--text-color);
  font-style: italic;
}

/* Highlighted Text from original styles */
span[style*="color: rgb(255, 1, 0)"],
span[style*="color: rgb(251, 46, 43)"] {
  color: var(--primary-color) !important;
}

span[style*="color: rgb(18, 3, 255)"],
span[style*="color: rgba(18, 3, 255, 0.99)"] {
  color: var(--primary-color) !important; /* Re-theme blue links to primary red to match constraints */
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--secondary-color);
  text-underline-offset: 4px;
}

span[style*="color: rgb(18, 3, 255)"] a,
span[style*="color: rgba(18, 3, 255, 0.99)"] a {
  color: inherit !important;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 600px;
  margin: 40px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--secondary-color-light);
}

.contact-form label {
  display: block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--secondary-color-dark);
  border-radius: var(--radius-sm);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-alt);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  padding: 0;
  border: 0;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-size: 1.1rem;
}

.form-status {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  background: var(--bg-alt);
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--nav-bg);
  color: var(--secondary-color);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand a {
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 1.05rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 24px 0;
}

.footer-address {
  line-height: 2;
  margin: 0;
  color: #a0a0a0;
}

.footer-address strong {
  color: var(--white);
}

.teletherapy-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-contact a {
  color: #a0a0a0;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-phone {
  font-size: 1.5rem;
  font-family: var(--heading-font);
  color: var(--white) !important;
}

.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #737373;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .header-main {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 24px 20px;
  }

  .brand {
    flex-direction: column;
    gap: 20px;
  }

  .brand-link {
    flex-direction: column;
    gap: 16px;
  }

  .social-links {
    margin: 0;
    padding: 0;
    border: none;
    justify-content: center;
  }

  .header-contact {
    flex-direction: column;
    gap: 20px;
  }

  .contact-methods {
    align-items: center;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-list > li > a.active::after {
    display: none;
  }

  .nav-list > li > a.active {
    background: var(--primary-color);
  }

  .submenu {
    position: static;
    box-shadow: none;
    display: none;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }

  .has-sub:hover .submenu {
    display: none;
  }

  .has-sub.open .submenu {
    display: block;
    animation: none;
  }

  .submenu a {
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
  }

  .submenu a:hover, .submenu a.active {
    background: transparent;
    color: var(--primary-color);
  }

  .row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
  }
}
