/* ============================================
   Restoration Foot & Ankle — Redesign 2026
   Colors: White bg, Navy boxes, Royal Blue trim
   ============================================ */

:root {
  --navy:       #0D1B3E;
  --navy-light: #162548;
  --royal:      #2154B3;
  --royal-light:#4A90D9;
  --white:      #FFFFFF;
  --off-white:  #F4F7FC;
  --border:     #2154B3;
  --text-white: #FFFFFF;
  --text-light: #CBD8F0;
  --text-body:  #1A1A2E;
  --font:       'Segoe UI', Arial, Helvetica, sans-serif;
}

/* ── RESET / BASE ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--white) !important;
  font-family: var(--font);
  color: var(--text-body);
  min-height: 100vh;
}

a { color: var(--royal-light); text-decoration: none; }
a:hover { color: var(--royal); text-decoration: underline; }

/* ── HERO BANNER ── */
.target-ratio-resize {
  max-width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.target-ratio-resize:after {
  content: " ";
  display: block;
  width: 100%;
  padding-top: 28%;
}
.target-ratio-resize::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,62,0.45) 0%, rgba(13,27,62,0.15) 100%);
  z-index: 1;
}

/* ── CONTENT CARD (navy box with royal blue left border) ── */
.content-card {
  background: var(--navy);
  border-left: 5px solid var(--royal);
  border-radius: 6px;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 1020px;
  color: var(--text-white);
  box-shadow: 0 4px 24px rgba(13,27,62,0.13);
}

.content-card p,
.content-card li {
  font-size: 15pt;
  line-height: 1.7;
  color: var(--text-white);
  font-family: var(--font);
  margin-bottom: 10px;
}

.content-card h2 {
  font-size: 20pt;
  color: var(--royal-light);
  font-family: var(--font);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.content-card h3 {
  font-size: 14pt;
  color: var(--royal-light);
  font-family: var(--font);
  font-weight: 700;
  margin: 18px 0 8px;
}

.content-card a {
  color: var(--royal-light);
}
.content-card a:hover {
  color: #8ab8ee;
}

/* ── SECTION HEADING (standalone, above cards) ── */
.section-heading {
  text-align: center;
  color: var(--navy);
  font-size: 22pt;
  font-weight: 700;
  margin: 36px auto 8px;
  font-family: var(--font);
}
.section-subheading {
  text-align: center;
  color: #555;
  font-size: 13pt;
  margin-bottom: 8px;
}

/* ── CARD GRID ── */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 16px;
}
.card-grid .content-card {
  flex: 1 1 280px;
  max-width: 340px;
  margin: 0;
}

/* ── WIDE CARD GRID (2-col) ──
   Uses the same 1020px width as .content-card so the intro box above it
   and the grid boxes below share identical left/right edges. */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1020px;
  margin: 0 auto 32px;
  padding: 0 16px;
}
.card-grid-2 .content-card {
  max-width: none;
  width: 100%;
  margin: 0;
}
/* A leftover odd box spans the full row so it reads as a wide, prominent
   banner instead of floating alone at half width. */
.card-grid-2 .content-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ── PROFILE LAYOUT ── */
.profile-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  max-width: 1020px;
  margin: 32px auto;
  background: var(--navy);
  border-left: 5px solid var(--royal);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,27,62,0.13);
}
.profile-photo {
  flex: 0 0 420px;
  max-width: 420px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.profile-photo .doctor-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.diplomate-badge {
  max-height: 70px;
  width: auto;
}
.cv-button-link {
  display: block;
}
.cv-button-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--royal);
  border-radius: 4px;
}
.profile-bio {
  flex: 1 1 300px;
  padding: 32px 32px;
  color: var(--text-white);
}
.profile-bio p {
  font-size: 14pt;
  line-height: 1.7;
  color: var(--text-white);
  font-family: var(--font);
  margin-bottom: 14px;
}
.profile-bio h2 {
  color: var(--royal-light);
  font-size: 19pt;
  margin-bottom: 16px;
  font-family: var(--font);
}
.profile-bio a {
  color: var(--royal-light);
}
.profile-layout .edu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
}
.profile-layout .edu-links a {
  font-size: 11pt;
  color: var(--royal-light);
  border: 1px solid var(--royal);
  padding: 5px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.profile-layout .edu-links a:hover {
  background: var(--royal);
  color: #fff;
  text-decoration: none;
}

/* ── TABLE ── */
.rfa-table {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 24px;
  border-collapse: collapse;
}
.rfa-table th {
  background: var(--royal);
  color: #fff;
  font-size: 13pt;
  font-family: var(--font);
  padding: 10px 14px;
  text-align: left;
  letter-spacing: 0.04em;
}
.rfa-table td {
  background: var(--navy-light);
  color: var(--text-white);
  font-size: 13pt;
  font-family: var(--font);
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.rfa-table tr:last-child td { border-bottom: none; }

/* ── BUTTON STRIP (new patient forms) ── */
.btn-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 24px auto;
  max-width: 990px;
  padding: 0 16px;
}
.btn-strip a img {
  border: 3px solid var(--royal);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.btn-strip a img:hover {
  border-color: var(--royal-light);
  box-shadow: 0 4px 16px rgba(33,84,179,0.3);
}

/* ── IMAGE ROW ── */
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1060px;
  margin: 24px auto;
  padding: 0 16px;
}
.img-row img {
  flex: 1 1 280px;
  max-width: 340px;
  border-radius: 6px;
  border: 3px solid var(--royal);
  object-fit: cover;
  height: 240px;
}

/* ── CONTACT LAYOUT ── */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1020px;
  margin: 32px auto;
  padding: 0 16px;
  align-items: flex-start;
  justify-content: center;
}
.contact-info {
  flex: 1 1 300px;
  max-width: 420px;
  background: var(--navy);
  border-left: 5px solid var(--royal);
  border-radius: 6px;
  padding: 28px 28px;
  color: var(--text-white);
  box-shadow: 0 4px 24px rgba(13,27,62,0.13);
}
.contact-info p {
  font-size: 14pt;
  line-height: 1.7;
  color: var(--text-white);
  font-family: var(--font);
  margin-bottom: 10px;
}
.contact-info h2 {
  color: var(--royal-light);
  font-size: 17pt;
  margin-bottom: 16px;
  font-family: var(--font);
  font-weight: 700;
}
.contact-info a {
  color: var(--royal-light);
}
.contact-map {
  flex: 1 1 320px;
  max-width: 480px;
  border: 3px solid var(--royal);
  border-radius: 6px;
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: none;
}

/* ── FOOTER ── */
#rfa-footer {
  background: var(--navy);
  border-top: 4px solid var(--royal);
  text-align: center;
  padding: 28px 16px 20px;
  margin-top: 48px;
}
#rfa-footer img { margin-bottom: 10px; }
#rfa-footer a {
  color: var(--royal-light);
  font-family: var(--font);
  font-size: 12pt;
}
#rfa-footer a:hover { color: #fff; }
#rfa-footer .footer-links {
  color: #aac;
  font-family: var(--font);
  font-size: 12pt;
  margin-top: 4px;
}

/* ── PAYMENT FORM ── */
.payment-form-wrap {
  max-width: 600px;
  margin: 0 auto 32px;
  background: var(--navy);
  border-left: 5px solid var(--royal);
  border-radius: 6px;
  padding: 32px 36px;
  color: var(--text-white);
  box-shadow: 0 4px 24px rgba(13,27,62,0.13);
}
.payment-form-wrap label,
.payment-form-wrap p {
  font-size: 13pt;
  color: var(--royal-light);
  font-family: var(--font);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.payment-form-wrap input[type=text] {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--royal);
  border-radius: 4px;
  background: var(--navy-light);
  color: #fff;
  font-size: 13pt;
  font-family: var(--font);
  margin-bottom: 18px;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .content-card { padding: 20px 18px; margin: 16px 12px; }
  .card-grid-2 { grid-template-columns: 1fr; padding: 0 12px; }
  .card-grid-2 .content-card:last-child:nth-child(odd) { grid-column: auto; }
  .profile-photo { flex: 0 0 100%; max-width: 100%; padding: 20px 20px 24px; gap: 12px; }
  .diplomate-badge { max-height: 50px; }
  .cv-button-img { max-width: 170px; }
  .profile-layout .edu-links { gap: 8px; margin-top: 2px; }
  .profile-layout .edu-links a { font-size: 10.5pt; padding: 4px 10px; }
  .rfa-table { width: 98%; }
  .contact-map iframe { min-height: 300px; }
  .target-ratio-resize:after { padding-top: 44%; }
}
