/* Revive Medical — clean stylesheet */

:root {
  --blue: #0a4da3;
  --pink: #a84589;
  --text: #393939;
  --gray: #6b6b6b;
  --border: #e2e2e2;
}

* { box-sizing: border-box; }

html {
  font-size: 115%; /* bump overall type scale up 15% */
}

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 20px;
}

.logo img { height: 60px; }

.topbar-info {
  display: flex;
  gap: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item .icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.info-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---------- Nav ---------- */

.navbar {
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-menu a {
  display: block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--blue);
  border-radius: 3px;
}

.nav-menu a.active,
.nav-menu a:hover {
  background: var(--pink);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero img {
  width: 100%;
  height: clamp(220px, 40vw, 480px);
  object-fit: cover;
}

/* ---------- About + Appointment ---------- */

.intro {
  padding: 0 20px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-box {
  background: var(--blue);
  color: #fff;
  padding: 50px 40px;
  border-radius: 4px;
  text-align: center;
}

.about-box h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.about-box h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--pink);
  margin: 14px auto 0;
}

.about-box p {
  margin: 18px 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.appointment-card {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.appointment-card h2 {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 1.8rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.field label .req { color: var(--pink); }

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.9rem;
}

.field textarea { resize: vertical; min-height: 90px; }

.appointment-card .btn {
  width: 100%;
  text-align: center;
  background: var(--blue);
}

/* ---------- Products ---------- */

.products {
  text-align: center;
  padding: 70px 20px;
}

.products h2 {
  color: var(--blue);
  font-size: 2rem;
  margin: 0 0 12px;
}

.products h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--pink);
  margin: 14px auto 0;
}

.products-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.product-card h3 {
  margin: 0;
  color: var(--pink);
  font-size: 1rem;
}

/* ---------- Inner page header (About / Products / Contact) ---------- */

.page-header {
  position: relative;
  background: linear-gradient(rgba(10, 77, 163, 0.82), rgba(10, 77, 163, 0.82)),
    url("../images/orthopedic-services.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fff;
  opacity: 0.85;
}

.breadcrumb a:hover { opacity: 1; }

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.breadcrumb .current { font-weight: 700; }

/* Section eyebrow / heading with pink underline, reused across inner pages */

.eyebrow {
  display: block;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.section-heading {
  color: var(--blue);
  font-size: 2rem;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 16px;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--pink);
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- About page ---------- */

.about-lead {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 20px;
  text-align: center;
}

.about-lead p { margin-top: 20px; }

.about-columns {
  max-width: 1140px;
  margin: 60px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.about-banner {
  margin: 60px auto 0;
  max-width: 1140px;
  padding: 0 20px 70px;
}

.about-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Products page ---------- */

.product-detail { padding: 60px 0; }

.product-detail:nth-child(even) { background: #f7f8fa; }

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.product-detail h4 {
  color: var(--pink);
  margin: 24px 0 10px;
  font-size: 1.05rem;
}

.product-detail p { margin: 0 0 14px; }

.product-detail ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.product-detail li { margin-bottom: 6px; }

.product-detail img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ---------- Contact page ---------- */

.contact-section { padding: 70px 20px; }

.contact-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info > p { margin: 0 0 30px; }

.contact-info h3 {
  color: var(--blue);
  margin: 0 0 18px;
}

.reach-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reach-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.reach-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reach-list a:hover { color: var(--pink); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 22px 20px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .intro { margin-top: 20px; }
  .about-columns { grid-template-columns: 1fr; gap: 30px; }
  .product-detail .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

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

  .nav-menu a { padding: 14px 20px; }

  .topbar-info { gap: 20px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
}
