/* The Office of Dr. Vance Pegado — family medicine clinic */

:root {
  --color-bg: #f7f7f6;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #4a4a4a;
  --color-accent: #f97316;
  --color-accent-hover: #ea580c;
  --color-accent-soft: #ffedd5;
  --color-border: #e5e5e5;
  --header-bg: #000000;
  --header-border: #262626;
  --font-header: "DM Sans", system-ui, sans-serif;
  --font-content: var(--font-header);
  --shadow-sm: 0 1px 3px rgba(28, 40, 36, 0.08);
  --shadow-md: 0 8px 30px rgba(28, 40, 36, 0.1);
  --radius: 12px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-content);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-content);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Header (dark bar matches logo artwork; DM Sans only in header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  font-family: var(--font-header);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  height: 138px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .logo-img {
    height: 96px;
  }
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  justify-content: flex-end;
}

.nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

.nav a.nav-cta[aria-current="page"] {
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.6);
}

.nav a {
  font-weight: 500;
  font-size: 1.125rem;
  color: #a3a3a3;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.nav a.nav-cta {
  color: #fff !important;
}

.nav a.nav-cta:hover {
  color: #fff !important;
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.menu-toggle:hover {
  background: #262626;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.menu-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #e5e5e5;
  margin: 0 auto;
}

.mobile-nav {
  border-top: 1px solid var(--header-border);
  background: #0a0a0a;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.25rem;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  font-size: 1.125rem;
  color: #d4d4d4;
  text-decoration: none;
  border-bottom: 1px solid var(--header-border);
}

.mobile-nav li:last-child a {
  border-bottom: none;
}

.mobile-nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

.mobile-nav a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--color-accent-soft) 0%, var(--color-bg) 45%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-content);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.container.narrow {
  max-width: 38rem;
}

.section-intro {
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-alt .card {
  background: var(--color-bg);
}

.card h3 {
  color: var(--color-accent);
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 0.5rem;
}

.two-col h3 {
  font-size: 1.1rem;
}

/* Contact */
.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-block h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 0.65rem;
}

.contact-block address {
  font-style: normal;
}

.fine-print {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 42rem;
}

/* Inner page hero */
.page-hero {
  background: linear-gradient(160deg, var(--color-accent-soft) 0%, var(--color-bg) 55%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page-hero h1 {
  margin-bottom: 0.65rem;
}

.page-hero-lead {
  margin-bottom: 0;
  max-width: 40rem;
}

/* Home CTA band */
.cta-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band-inner h2 {
  margin-bottom: 0.35rem;
}

.cta-band-lead {
  margin-bottom: 0;
}

/* Team */
.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 180px;
  border-radius: 8px;
  background: var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.team-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-content);
  margin: 0 0 0.75rem;
}

/* Insurance & portal lists */
.insurance-list,
.portal-features {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.insurance-list li,
.portal-features li {
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--color-muted);
  font-size: 0.95em;
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  max-width: 32rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.req {
  font-weight: 500;
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-content);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  border: none;
  cursor: pointer;
}

.form-banner {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  font-size: 0.9em;
  background: var(--color-accent-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
