/* ========= ROOT THEME ========= */
:root {
  --color-primary: #145c63;         /* header/brand teal */
  --color-primary-dark: #0d4449;
  --color-accent: #f3fbff;         /* light blue sections */
  --color-contact-bg: #f5f5f5;     /* contact background */
  --color-text: #222;
  --color-muted: #666;
  --color-border: #e2e2e2;
  --color-light: #ffffff;
  --max-width: 1040px;
  --radius: 8px;
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ========= GLOBAL ========= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  background: #fafafa;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========= TOP BAR ========= */

.top-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1.25rem;
}

.top-bar a {
  color: #e0fbff;
}

/* ========= HEADER / NAV ========= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9e1e3;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand a {
  text-decoration: none;
  color: var(--color-text);
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  display: block;
}

.brand-credentials {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.brand-role {
  font-size: 0.85rem;
  color: var(--color-primary-dark);
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 0.2rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
}

/* ========= HERO ========= */

.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 7rem 1.25rem 7.5rem; /* tall like Wix */
  background-image: url("https://static.wixstatic.com/media/54e5b921fdf54a1db3802e905a8c53f6.jpg/v1/fill/w_980%2Ch_653%2Cal_c%2Cq_85%2Cusm_0.66_1.00_0.01%2Cenc_avif%2Cquality_auto/54e5b921fdf54a1db3802e905a8c53f6.jpg");
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.65)
  );
}

.hero-content {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: 2.6rem;
  letter-spacing: 0.14em;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  font-weight: 400;
}

/* ========= SECTIONS ========= */

.section {
  padding: 3.75rem 0;
}

.section-light {
  background: #ffffff;
}

.section-accent {
  background: var(--color-accent);
}

.section-contact {
  background: var(--color-contact-bg);
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-intro {
  max-width: 640px;
  color: var(--color-muted);
}

.section-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ========= TWO-COLUMN LAYOUT ========= */

.two-column-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.75rem;
  align-items: center;
}

.two-column .column:first-child {
  justify-self: center;
}

.portrait {
  max-width: 260px;
  width: 100%;
  border-radius: 50%;
  display: block;
}

.image-shadow {
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

/* ========= BUTTONS ========= */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: #1bb07e;           /* green Wix-style button */
  border-color: #1bb07e;
  color: #ffffff;
}

.btn-primary:hover {
  background: #16956a;
  border-color: #16956a;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ========= CARDS / SERVICES ========= */

.card-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card img {
  width: 100%;
}

.card-body {
  padding: 1.3rem 1.6rem;
}

.card-body h3 {
  margin-top: 0;
}

/* ========= INSURANCE ========= */

.insurance-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}

.insurance-list {
  columns: 2;
  column-gap: 2.5rem;
  padding-left: 1.1rem;
}

.insurance-list li {
  margin-bottom: 0.15rem;
}

/* ========= OFFICE TEAM ========= */

#office-team .card {
  max-width: 680px;
}

/* ========= CONTACT / FORM ========= */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-address {
  margin: 1rem 0;
}

form {
  background: #ffffff;
  padding: 1.6rem 1.8rem;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #cccccc;
  font: inherit;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(20, 92, 99, 0.25);
}

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

.form-status {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ========= FOOTER ========= */

.site-footer {
  background: #111111;
  color: #eeeeee;
  font-size: 0.85rem;
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: #c1f0ff;
}

.footer-copy {
  flex-basis: 100%;
  margin-top: 0.5rem;
  color: #aaaaaa;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 960px) {
  .hero {
    padding: 5.5rem 1.25rem 6rem;
  }
}

@media (max-width: 800px) {
  .two-column-inner,
  .insurance-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .insurance-list {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 0.9rem;
    border-bottom-left-radius: 10px;
    border-left: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
    display: none;
  }

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

/* Embedded patient intake form */
.embedded-form-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.embedded-form-wrapper iframe {
  width: 100%;
  min-height: 900px; /* Adjust to match form length */
  border: none;
  background: #ffffff;
}

.embedded-form-fallback {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}
