/* ==========================================================================
   Home page styles
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #eef7f5 0%, #dcefe9 100%);
  padding-block: clamp(50px, 7vw, 100px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-heading);
  color: var(--rfa-deep);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  color: var(--rfa-ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(23, 63, 56, 0.18);
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
}

/* ---------- TRUST BADGES ---------- */
.trust-badges {
  padding-block: 26px;
  background: #fff;
  border-bottom: 1px solid var(--rfa-border);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rfa-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.badge-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .badge {
    font-size: 0.85rem;
    padding: 10px 14px;
    text-align: left;
  }
}

/* ---------- WELCOME ---------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.welcome-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px var(--rfa-shadow-soft);
}
.welcome-text .eyebrow {
  font-family: var(--font-heading);
  color: var(--rfa-mid);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  margin-bottom: 18px;
}
.welcome-text p { color: var(--rfa-ink-soft); }
.welcome-text strong { color: var(--rfa-deep); }
@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   APPOINTMENT FORM
   ========================================================================== */
.form-card {
  max-width: 780px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px var(--rfa-shadow-soft);
  overflow: hidden;
  border: 1px solid var(--rfa-border);
}
.form-card-header {
  background: #fff;
  text-align: center;
  padding: 32px 24px 18px;
  border-bottom: 1px solid #e5e5e5;
}
.form-card-header h2 {
  font-family: var(--font-heading);
  color: #002855;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.form-card-header p {
  font-family: var(--font-body);
  color: #0066cc;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 500;
  margin: 0;
}
.form-card-body {
  padding: 22px 22px 26px;
}
.form-group {
  margin-bottom: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-row--three {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-row .form-group {
  margin-bottom: 0;
}
.form-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #1a1a1a;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control::placeholder {
  color: #666;
  opacity: 1;
}
.form-control:focus {
  outline: none;
  border-color: #002855;
  box-shadow: 0 0 0 2px rgba(0, 40, 85, 0.12);
}
.form-control--tall {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.form-submit {
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
}
.btn-submit {
  background: #E30613;
  color: #fff;
  border: 2px solid #E30613;
  border-radius: 2px;
  padding: 12px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.btn-submit:hover {
  background: #b90511;
  border-color: #b90511;
  transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  background: #999;
  border-color: #999;
  cursor: not-allowed;
  transform: none;
}
.form-authorization {
  border: 2px solid #1a1a1a;
  border-radius: 2px;
  padding: 14px 18px;
  background: #fff;
}
.authorization-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  color: #1a1a1a;
  cursor: pointer;
  font-weight: 500;
}
.authorization-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #002855;
  flex-shrink: 0;
}
.authorization-note {
  margin: 8px 0 0 28px;
  font-size: 0.9rem;
  color: #0066cc;
  font-style: italic;
}
.authorization-note strong {
  color: #002855;
  font-style: normal;
}
@media (max-width: 640px) {
  .form-card-body { padding: 16px 14px 20px; }
  .form-card-header { padding: 24px 16px 14px; }
  .form-row,
  .form-row--three {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-control {
    padding: 14px 14px;
    font-size: 0.95rem;
  }
  .form-control--tall { min-height: 80px; }
  .btn-submit {
    width: 100%;
    padding: 14px 24px;
  }
  .authorization-note { margin-left: 0; }
}

/* ==========================================================================
   SPECIALTIES — 6 per row (2 rows of 6 = 12 total)
   Images always fully visible (no cropping) at every screen size
   ========================================================================== */
.section-heading {
  text-align: center;
  margin: 0 0 10px;
}
.section-lede {
  text-align: center;
  color: var(--rfa-ink-soft);
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Grid container — bulletproof */
.specialties .specialty-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
}

.specialty-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rfa-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  color: var(--rfa-deep);
}
.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px var(--rfa-shadow-soft);
  border-color: var(--rfa-light);
  color: var(--rfa-primary);
}

/* Image panel — image scales to fit, never cropped */
.specialty-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--rfa-mint);
  padding: 8px;
}

.specialty-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  padding: 10px 8px;
  color: inherit;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablet — 3 per row */
@media (max-width: 1024px) {
  .specialties .specialty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .specialty-card img { height: 140px; padding: 10px; }
  .specialty-card h3 { font-size: 0.86rem; }
}

/* Small tablet — 2 per row */
@media (max-width: 700px) {
  .specialties .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  .specialty-card img { height: 130px; padding: 10px; }
  .specialty-card h3 { font-size: 0.82rem; padding: 10px 6px; min-height: 46px; }
}

/* Mobile — still 2 per row */
@media (max-width: 420px) {
  .specialties .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
  .specialty-card img { height: 110px; padding: 8px; }
  .specialty-card h3 { font-size: 0.76rem; padding: 8px 6px; min-height: 42px; }
}

/* ==========================================================================
   LIGHTBOX (opens when a specialty is clicked)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rfa-mint);
  color: var(--rfa-deep);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-close:hover {
  background: var(--rfa-light);
  color: #fff;
  transform: scale(1.05);
}
.lightbox-title {
  font-family: var(--font-heading);
  color: var(--rfa-deep);
  font-size: 1.3rem;
  text-align: center;
  margin: 4px 0 16px;
}
.lightbox-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: auto;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--rfa-mint);
  padding: 12px;
  margin-bottom: 18px;
  min-height: 200px;
}
.lightbox-image {
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}
.lightbox-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox-content { padding: 18px; max-height: 94vh; }
  .lightbox-title { font-size: 1.1rem; margin-bottom: 12px; }
  .lightbox-image { max-height: 50vh; }
  .lightbox-actions .btn { flex: 1; min-width: 130px; }
}

/* ==========================================================================
   CTA STRIP
   ========================================================================== */
.cta-strip {
  background: linear-gradient(120deg, var(--rfa-deep), var(--rfa-primary));
  color: #fff;
  padding-block: 50px;
}
.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-strip h3 {
  color: #fff;
  font-family: var(--font-heading);
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 560px;
}
@media (max-width: 600px) {
  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }
}