:root {
  --orange: #ff6a00;
  --orange-dark: #e35e00;
  --text: #666;
  --heading: #111;
  --muted: #888;
  --line: #ececec;
  --card: #fff;
  --page: #f3f3f3;
  --footer: #1a1a1a;
  --footer-bottom: #111;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --header-h: 72px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.7;
  font-size: 14.5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ========== HERO / HEADER ========== */
.hero {
  position: relative;
  min-height: 300px;
  background-color: #f3f3f3;
  background-image:
    linear-gradient(90deg, rgba(247, 247, 247, 0.98) 0%, rgba(247, 247, 247, 0.86) 30%, rgba(255, 255, 255, 0.08) 58%, rgba(0, 0, 0, 0.12) 100%),
    url("../images/hero-doctor.jpg");
  background-repeat: no-repeat;
  background-position: left center, 92% 8%;
  background-size: cover, auto 165%;
  color: #fff;
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--page));
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 90;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(180, 180, 180, 0.28) 42%, rgba(70, 70, 70, 0.42) 100%);
}

.header-inner {
  width: 100%;
  padding: 0 8px 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  color: #f08a1a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-text small {
  color: #e28a2e;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.main-nav > ul {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 13px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.main-nav > ul > li > a .caret {
  font-size: 9px;
  margin-left: 6px;
  opacity: 0.9;
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.active > a {
  background: var(--orange);
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

.dropdown a {
  display: block;
  padding: 11px 16px;
  color: #444;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f1f1;
}

.dropdown a:hover {
  background: #fff7f0;
  color: var(--orange);
}

.has-dropdown:hover .dropdown {
  display: block;
}

.hero-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 58px 20px 78px;
  max-width: 62%;
}

.hero-caption h1 {
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.breadcrumb {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.8;
}

/* ========== LAYOUT ========== */
.page {
  padding: 10px 0 70px;
}

.layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 300px;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 34px 36px 40px;
}

.entry-title {
  color: var(--heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0;
}

.entry-title + .entry-title {
  margin: 0 0 18px;
}

.card p {
  margin-bottom: 16px;
}

.card h2.section-title,
.card h3.section-title {
  color: var(--heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin: 26px 0 0;
}

.card h2.section-title + h3.section-title,
.card h3.section-title + h3.section-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.card .lead-link {
  color: var(--orange);
  font-weight: 600;
}

.card .lead-link:hover {
  text-decoration: underline;
}

.card ul.bullets {
  padding-left: 18px;
  margin: 8px 0 18px;
}

.card ul.bullets li {
  list-style: disc;
  margin: 4px 0;
}

.muted-label {
  color: #777;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.media {
  margin: 8px 0 18px;
}

.media img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.contact-meta {
  color: #555;
  margin: 14px 0 22px;
}

.contact-meta p {
  margin: 0 0 4px;
}

.social-link {
  display: inline-block;
  color: var(--orange);
  margin: 10px 0;
  border-bottom: 1px solid var(--orange);
  line-height: 1.2;
}

.social-link + .social-link {
  margin-left: 0;
  display: block;
  width: max-content;
}

/* ========== SIDEBAR ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.search-card,
.nav-card {
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.search-form {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #ddd;
  border-right: 0;
  height: 40px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  color: #555;
}

.search-form input:focus {
  border-color: #ccc;
}

.search-form button {
  flex: 0 0 54px;
  width: 54px;
  height: 40px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--orange-dark);
}

.nav-card h3 {
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}

.nav-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 3px;
  background: var(--orange);
}

.side-nav a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid #eee;
  color: #444;
  font-size: 14.5px;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--orange);
}

/* ========== HOME ========== */
.slider {
  position: relative;
  overflow: hidden;
  background: #ddd;
  margin: -34px -36px 22px;
}

.slides {
  display: flex;
  transition: transform 0.45s ease;
}

.slides img {
  min-width: 100%;
  height: 230px;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.slider-dots button.on {
  background: var(--orange);
}

.home-block {
  margin-top: 8px;
}

.home-block h2 {
  color: var(--heading);
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 8px;
}

.subhead {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  font-weight: 600;
}

.about-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
  margin: 8px 0 16px;
}

.clients {
  margin-top: 10px;
}

.client {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.client-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.client-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.client h4 {
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
}

.icon-orange {
  background: #f26222;
}

.icon-teal {
  background: #1aa6a6;
}

.icon-cyan {
  background: #17b1c2;
}

/* ========== TESTIMONIALS / FORMS ========== */
.quote {
  border-left: 3px solid var(--orange);
  background: #fafafa;
  padding: 14px 16px;
  margin: 0 0 18px;
  color: #555;
}

.quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #333;
  font-weight: 700;
  font-size: 13px;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #444;
  font-weight: 600;
  font-size: 13px;
}

.form-grid input,
.form-grid textarea {
  height: 40px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 14px;
}

.form-grid textarea {
  height: 110px;
  resize: vertical;
}

.form-grid button,
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: 0;
  height: 42px;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  width: max-content;
}

.form-grid button:hover,
.btn:hover {
  background: var(--orange-dark);
}

.form-note {
  display: none;
  margin-top: 12px;
  color: #1a7f37;
  font-weight: 600;
}

.search-empty {
  padding: 8px 0 4px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer);
  color: #bdbdbd;
  padding: 48px 0 28px;
}

.footer-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--orange);
}

.site-footer p,
.site-footer a {
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid > div:first-child p {
  text-align: justify;
  max-width: 300px;
}

.footer-links a {
  display: block;
  color: #bdbdbd;
  padding: 2px 0;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  background: var(--footer-bottom);
  color: #9a9a9a;
  text-align: center;
  padding: 16px 16px 18px;
  font-size: 13px;
  margin-top: 36px;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--orange-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #222;
    z-index: 80;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
  }

  .main-nav > ul > li > a {
    height: auto;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: none;
  }

  .dropdown {
    position: static;
    display: none;
    background: #222;
    box-shadow: none;
  }

  .has-dropdown.open .dropdown,
  .has-dropdown:hover .dropdown {
    display: block;
  }

  .dropdown a {
    color: #ddd;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    padding-left: 28px;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .hero-caption h1 {
    font-size: 34px;
  }

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

@media (max-width: 800px) {
  .hero {
    min-height: 220px;
    background-position: left center, 70% 8%;
    background-size: cover, cover;
  }

  .hero-caption {
    padding: 28px 16px 48px;
    max-width: 100%;
  }

  .card {
    padding: 24px 18px 28px;
  }

  .entry-title,
  .card h2.section-title,
  .card h3.section-title {
    font-size: 24px;
  }

  .logo-text strong {
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .slides img {
    height: 190px;
  }

  .slider {
    margin: -24px -18px 18px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .layout,
  .footer-grid {
    width: min(100% - 24px, var(--max));
  }

  .hero-caption h1 {
    font-size: 28px;
  }

  .client {
    flex-direction: column;
    align-items: flex-start;
  }
}
