/* Freeport Family Dental — site styles
   Palette taken from the practice logo: navy #002B7B, gold #C8A24E.
   No external requests: fonts are system stacks, all assets are local. */

:root {
  --navy: #002b7b;
  --navy-deep: #001a4d;
  --navy-line: rgba(200, 162, 78, 0.35);
  --gold: #c8a24e;
  --gold-light: #e6cf8a;
  --gold-dark: #8c6a22;
  --cream: #f4efe4;
  --cream-line: #e0d5bc;
  --on-navy: #f4efe4;
  --on-navy-muted: #c3d0ea;
  --on-navy-faint: #8fa6d4;
  --on-cream: #33405c;
  --white: #ffffff;

  --display: Baskerville, "Hoefler Text", Constantia, Cambria, Georgia,
    "Times New Roman", serif;
  --body: Corbel, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 44px);
  --band-y: clamp(48px, 7vw, 78px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover,
a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: var(--navy);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- utility bar + header ---------- */

.utility-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(200, 162, 78, 0.22);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.utility-bar a {
  color: var(--on-navy-muted);
}

.utility-bar a:hover,
.utility-bar a:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.utility-item,
.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.utility-note {
  color: var(--gold-light);
}

.utility-phone {
  color: var(--white);
  font-size: 14px;
}

.site-header {
  border-bottom: 1px solid var(--navy-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 18px;
}

.site-header__logo img {
  width: 240px;
  max-width: 55vw;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.site-nav a {
  color: var(--on-navy-muted);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 12px 20px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  min-height: 44px;
  white-space: nowrap;
}

.btn-call:hover,
.btn-call:focus-visible {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
}

.btn-call:hover svg,
.btn-call:focus-visible svg {
  stroke: var(--navy);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 52%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(0, 26, 77, 0.96) 0%,
      rgba(0, 30, 90, 0.9) 32%,
      rgba(0, 38, 112, 0.58) 62%,
      rgba(0, 43, 123, 0.26) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 26, 77, 0.4) 0%,
      rgba(0, 26, 77, 0) 30%,
      rgba(0, 26, 77, 0.52) 100%
    );
}

.hero__inner {
  padding-top: clamp(56px, 9vw, 92px);
  padding-bottom: clamp(52px, 8vw, 84px);
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 19px);
  color: #e4ebf8;
  max-width: 30em;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.rule {
  width: 96px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 26px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--navy);
  padding: 17px 30px;
  font-size: 17px;
  font-weight: 700;
  min-height: 52px;
  border: 1px solid var(--gold);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  font-weight: 400;
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--ghost:hover svg,
.btn--ghost:focus-visible svg {
  stroke: var(--white);
}

/* ---------- page head (inner pages) ---------- */

.page-head {
  padding-top: clamp(44px, 6vw, 66px);
  padding-bottom: clamp(40px, 5vw, 58px);
}

.page-head h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 26px;
  max-width: 16em;
}

.page-head__lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--on-navy-muted);
  max-width: 36em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--on-navy-faint);
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.breadcrumb li::after {
  content: "/";
  color: var(--gold);
  margin-left: 10px;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--on-navy-faint);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold-light);
}

/* ---------- bands ---------- */

.band {
  padding-top: var(--band-y);
  padding-bottom: var(--band-y);
}

.band--cream {
  background: var(--cream);
  color: var(--on-cream);
}

.band--cream h2,
.band--cream h3 {
  color: var(--navy);
}

.band--cream a {
  color: var(--gold-dark);
}

.band--cream a:hover,
.band--cream a:focus-visible {
  color: var(--navy);
}

.band__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--white);
}

.band--cream .band__title {
  color: var(--navy);
}

.band__lead {
  font-size: 17px;
  color: var(--on-navy-faint);
  max-width: 40em;
  margin-bottom: 34px;
}

.band--cream .band__lead {
  color: #6b7590;
}

.band__title + .grid,
.band__title + .steps,
.band__title + .rows,
.band__title + .checklist {
  margin-top: 34px;
}

/* ---------- grids ---------- */

.grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 18px;
}

.card__head h2,
.card__head h3 {
  font-family: var(--body);
  font-size: 13.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.card p {
  font-size: 16.5px;
}

/* ---------- numbered steps ---------- */

.steps {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--gold);
  padding-top: 20px;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--body);
  font-size: 13.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.band--cream .step h3 {
  color: var(--navy);
}

.step p {
  font-size: 16.5px;
  color: var(--on-navy-muted);
}

.band--cream .step p {
  color: var(--on-cream);
}

/* ---------- definition rows ---------- */

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  padding: 22px 0;
  border-bottom: 1px solid var(--navy-line);
  align-items: baseline;
}

.band--cream .row {
  border-bottom-color: var(--cream-line);
}

.row:last-child {
  border-bottom: 0;
}

.row__term {
  flex: 0 0 240px;
  font-family: var(--display);
  font-size: clamp(21px, 2.4vw, 25px);
  color: var(--white);
}

.band--cream .row__term {
  color: var(--navy);
}

.row__desc {
  flex: 1 1 auto;
  font-size: 16.5px;
  color: var(--on-navy-muted);
}

.band--cream .row__desc {
  color: var(--on-cream);
}

a.row:hover .row__term,
a.row:focus-visible .row__term {
  color: var(--gold-light);
}

.band--cream a.row:hover .row__term,
.band--cream a.row:focus-visible .row__term {
  color: var(--gold-dark);
}

a.row {
  text-decoration: none;
}

a.row:hover,
a.row:focus-visible {
  text-decoration: none;
}

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 46em;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
}

.checklist svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

.footnote {
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--on-navy-faint);
  max-width: 46em;
}

.band--cream .footnote {
  color: #6b7590;
}

/* ---------- prose ---------- */

.prose {
  max-width: 40em;
  font-size: 17.5px;
}

.prose--split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: none;
  align-items: start;
}

.prose--split h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.14;
}

/* ---------- doctor / team ---------- */

.person {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.person__photo {
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--white);
}

.person__name {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.person__meta {
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 26px;
}

.band--navy .person__meta {
  color: var(--gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}

.team-member__avatar {
  aspect-ratio: 1 / 1;
  background: #e7dfcc;
  border: 1px solid var(--cream-line);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.team-member__name {
  font-family: var(--display);
  font-size: 23px;
  color: var(--navy);
  margin-bottom: 2px;
}

.team-member__role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---------- quotes ---------- */

.quote-lead {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.quote-lead blockquote {
  margin: 20px 0 20px;
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.28;
  color: var(--navy);
  max-width: 20em;
}

.band--navy .quote-lead blockquote {
  color: var(--white);
}

.quote {
  border-top: 1px solid var(--cream-line);
  padding-top: 22px;
}

.band--navy .quote {
  border-top-color: var(--navy-line);
}

.quote blockquote {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--on-cream);
}

.band--navy .quote blockquote {
  color: var(--on-navy-muted);
}

.cite {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-style: normal;
}

.band--navy .cite {
  color: var(--gold);
}

/* ---------- hours + contact ---------- */

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
}

.hours th,
.hours td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--navy-line);
  font-weight: 400;
}

.band--cream .hours th,
.band--cream .hours td {
  border-bottom-color: var(--cream-line);
}

.hours th {
  color: var(--on-navy-muted);
}

.band--cream .hours th {
  color: var(--on-cream);
}

.hours td {
  text-align: right;
  color: var(--white);
}

.band--cream .hours td {
  color: var(--navy);
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours .closed {
  color: var(--on-navy-faint);
}

.hours .note {
  color: var(--on-navy-faint);
  font-size: 0.86em;
}

.panel {
  border: 1px solid var(--navy-line);
  padding: clamp(22px, 3vw, 30px);
}

.panel__label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.phone-xl {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.phone-xl:hover,
.phone-xl:focus-visible {
  color: var(--gold-light);
  text-decoration: none;
}

.map-embed {
  width: 100%;
  min-height: 340px;
  border: 1px solid var(--navy-line);
  display: block;
}

/* ---------- forms list ---------- */

.form-list {
  display: flex;
  flex-direction: column;
}

.form-link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--cream-line);
  color: var(--navy);
}

.form-link:last-child {
  border-bottom: 0;
}

.form-link:hover,
.form-link:focus-visible {
  text-decoration: none;
}

.form-link__name {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 3px;
}

.form-link:hover .form-link__name,
.form-link:focus-visible .form-link__name {
  color: var(--gold-dark);
}

.form-link__note {
  font-size: 15.5px;
  color: #6b7590;
}

.form-link__type {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  flex: 0 0 auto;
}

/* ---------- cta strip ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: var(--band-y);
  padding-bottom: var(--band-y);
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 14px;
}

.cta p {
  color: var(--on-navy-muted);
  max-width: 32em;
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: clamp(40px, 5vw, 58px);
  padding-bottom: 36px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  padding-top: 44px;
}

.site-footer__label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.site-footer a {
  color: var(--on-navy-muted);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
  font-size: 16px;
}

.site-footer address {
  font-style: normal;
  color: var(--on-navy-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--on-navy-faint);
}

.colophon a {
  color: var(--on-navy-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prose--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 15px;
  }
  .site-nav a {
    font-size: 13.5px;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 860px) {
  .utility-address,
  .utility-note {
    display: none;
  }

  .utility-bar__inner {
    justify-content: flex-end;
  }

  .utility-phone {
    min-height: 44px;
    font-size: 15px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 0 20px;
    padding-top: 4px;
  }

  .site-nav a {
    padding: 11px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
  }

  .hero__media img {
    object-position: 62% 55%;
  }

  .hero__media::after {
    background: linear-gradient(
      175deg,
      rgba(0, 26, 77, 0.82) 0%,
      rgba(0, 30, 90, 0.9) 45%,
      rgba(0, 26, 77, 0.96) 100%
    );
  }

  .hero__inner {
    max-width: none;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  .person__photo {
    max-width: 340px;
  }

  .row {
    flex-direction: column;
    gap: 6px;
  }

  .row__term {
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

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

  .btn,
  .btn-call {
    width: 100%;
    justify-content: center;
  }

  .actions {
    gap: 12px;
  }

  .form-link {
    flex-wrap: wrap;
    gap: 14px;
  }

  .form-link__type {
    margin-left: 0;
  }
}

/* ---------- print ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-nav,
  .btn,
  .btn-call,
  .cta,
  .map-embed,
  .skip-link {
    display: none !important;
  }

  .band,
  .band--cream,
  .band--navy {
    background: #fff !important;
    color: #000 !important;
    padding: 12pt 0;
  }

  h1,
  h2,
  h3,
  .row__term,
  .hours td {
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
