/* Bayanan Medical Clinic — Landing Page Styles */

:root {
  --brand-dark:       #1F4A30;
  --brand-primary:    #2F7A50;
  --brand-mid:        #448B6C;
  --brand-light-bg:   #EAF7EF;
  --brand-pill-bg:    #C9F1DD;
  --text-muted-green: #7A9A8A;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  color: #222;
}

/* Fixed navbar offset */
body.has-fixed-navbar {
  padding-top: 50px;
}

@media (min-width: 992px) {
  body.has-fixed-navbar {
    padding-top: 82px;
  }
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

/* Navbar */
.navbar {
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px);
}

.navbar-logo {
  height: 40px;
  width: auto;
}

@media (min-width: 992px) {
  .navbar-logo {
    height: 52px;
  }
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.6rem);
  color: #2b2b2b;
  line-height: 1.1;
}

.navbar-brand-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: #8a8a8a;
  display: block;
}

.navbar .nav-link {
  color: #444;
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.25rem);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand-primary);
}

.btn-signin {
  border: 1px solid var(--brand-mid);
  color: #333;
  border-radius: 50px;
  padding: .4rem 1.2rem;
  font-weight: 600;
  background: #fff;
  transition: all .2s ease;
  display: inline-block;
}

.btn-signin:hover {
  background: var(--brand-light-bg);
  border-color: var(--brand-primary);
  transform: scale(1.05);
}

.navbar .navbar-nav .nav-link,
.navbar .btn-signin {
  position: relative;
}

/* Keep the desktop header compact by showing navigation labels in tooltips. */
@media (min-width: 992px) {
  .navbar .navbar-nav .nav-link {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  .navbar .navbar-nav .nav-link .nav-label,
  .navbar .btn-signin .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .navbar .navbar-nav .nav-link .nav-icon,
  .navbar .btn-signin .nav-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    line-height: 0;
  }

  .navbar .navbar-nav .nav-link .nav-icon svg,
  .navbar .btn-signin .nav-icon svg {
    width: 100%;
    height: 100%;
  }

  .navbar .navbar-nav .nav-link::before,
  .navbar .btn-signin::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 2px);
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 80;
    margin-top: 8px;
  }

  .navbar .navbar-nav .nav-link:hover::before,
  .navbar .navbar-nav .nav-link:focus-visible::before,
  .navbar .btn-signin:hover::before,
  .navbar .btn-signin:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 6px);
  }

  .navbar .btn-signin {
    width: 40px !important;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar .btn-signin .nav-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  .navbar .btn-signin .nav-icon svg {
    width: 100%;
    height: 100%;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  padding-top: 1rem;
}

.hero-pill {
  color: #1F4A30;
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  font-weight: 600;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1F4A30;
  display: inline-block;
  flex-shrink: 0;
}

.hero-heading {
  font-weight: 600;
  font-size: clamp(2rem, 1.2rem + 3vw, 5rem);
  color: #1a1a1a;
  line-height: 1.1;
}

.hero-heading em {
  font-style: italic;
  color: var(--brand-primary);
  font-weight: 600;
}

.hero-copy {
  color: var(--text-muted-green);
  font-size: clamp(.95rem, 0.85rem + 0.4vw, 1.35rem);
  max-width: 42ch;
}

.btn-brand {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50px;
  padding: clamp(.55rem, .4rem + .4vw, .9rem) clamp(1rem, .8rem + .8vw, 2rem);
  font-weight: 700;
  font-size: clamp(.85rem, .8rem + .2vw, 1.15rem);
  border: 1px solid var(--brand-primary);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-brand:hover {
  background: #26643f;
  color: #fff;
  transform: scale(1.05);
}

.btn-brand img {
  width: clamp(16px, 1.1vw, 24px);
  height: clamp(16px, 1.1vw, 24px);
  margin-right: .5rem;
}

.btn-outline-brand {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid var(--brand-mid);
  border-radius: 50px;
  padding: .45rem clamp(1rem, .8rem + .8vw, 2rem) .45rem .45rem;
  font-weight: 700;
  font-size: clamp(.85rem, .8rem + .2vw, 1.15rem);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-outline-brand:hover {
  background: var(--brand-light-bg);
  transform: scale(1.05);
}

.btn-outline-brand img {
  width: clamp(28px, 1.8vw, 38px);
  height: clamp(28px, 1.8vw, 38px);
  margin-right: .5rem;
}

/* Mobile Photo Container */
.hero-photo-col {
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}


.hero-photo-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(108, 219, 171, 0.45) 0%, rgba(54, 70, 49, 0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Desktop Hero Viewport Layout */
@media (min-width: 992px) {
  .hero-section {
    height: calc(100vh - 82px - 75px);
    max-height: calc(100vh - 82px - 75px);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-section > .container-fluid,
  .hero-section .row {
    height: 100%;
    align-items: center;
  }

  .hero-content {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .hero-heading {
    font-size: clamp(1.8rem, 1rem + 2.2vw, 3.2rem) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-copy {
    font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.05rem) !important;
    margin-bottom: 1rem !important;
  }

  .hero-photo-col {
    height: 100% !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }

  .hero-photo {
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

.hero-photo-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, #6CDBAB 0%, #364631 100%);
  opacity: 0.25;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Stats bar */
.stats-bar {
  background: var(--brand-mid);
  color: #fff;
  padding: 1rem 0;
}

.stats-bar .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.5rem);
  font-weight: 600;
}

.stats-bar .stat-label {
  font-size: clamp(.72rem, .65rem + .25vw, .95rem);
  opacity: .9;
}

@media (min-width: 992px) {
  .stats-bar {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }

  .stats-bar .stat-num {
    font-size: clamp(1.2rem, 1rem + 0.8vw, 2rem);
    line-height: 1.1;
  }

  .stats-bar .stat-label {
    font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.85rem);
  }
}

/*  Services */
.section-pill {
  color: #1F4A30;
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
}

.section-heading {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.2rem);
  font-weight: 600;
  color: #1a1a1a;
}

.section-heading em {
  font-style: italic;
  color: var(--brand-primary);
}

.section-sub {
  color: var(--text-muted-green);
  font-size: clamp(.95rem, 0.85rem + 0.3vw, 1.25rem);
  max-width: 40rem;
}

.service-card {
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  padding: clamp(1.2rem, 1rem + 1vw, 2.5rem);
  height: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,.02);
  transition: box-shadow .2s ease, transform .2s ease;
  background: #fff;
}

.service-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.service-icon-wrap {
  width: clamp(44px, 3vw, 64px);
  height: clamp(44px, 3vw, 64px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon-wrap img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.service-card h3 {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.75rem);
  font-weight: 600;
  margin-bottom: .4rem;
}

.service-card p {
  color: #777;
  font-size: clamp(.88rem, .8rem + .25vw, 1.05rem);
  margin-bottom: 0;
  line-height: 1.45;
}

.icon-bg-green { background: #E1F3E8; }
.icon-bg-amber { background: #FBEED9; }
.icon-bg-blue  { background: #E2EDFB; }
.icon-bg-pink  { background: #FBE3EA; }

/* How it works  */
.how-section {
  background: linear-gradient(135deg, #16351F 0%, var(--brand-mid) 100%);
  color: #fff;
  scroll-margin-top: 6rem;
}

@media (min-width: 992px) {
  .how-section { scroll-margin-top: 7rem; }
}

.how-pill {
  font-size: clamp(0.95rem, 1vw, 1.15rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #ffffff;
  padding: 0;
}

.how-pill img {
  width: 15px;
  height: 15px;
}

.how-heading {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.2rem);
  font-weight: 500;
}

.how-heading em {
  font-style: italic;
}

.how-copy {
  color: #d7e6dd;
  font-size: clamp(.95rem, 0.85rem + 0.3vw, 1.25rem);
}

/* Mobile Side-by-Side Horizontal Step layout */
.step-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.step-circle {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 2px;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.4rem);
  margin-bottom: .25rem;
  font-weight: 600;
}

.step-copy {
  color: #d7e6dd;
  font-size: clamp(.85rem, .8rem + .2vw, 1.05rem);
  margin: 0;
  line-height: 1.4;
}

/* Desktop Stacked Step layout */
@media (min-width: 768px) {
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-circle {
    width: clamp(54px, 4vw, 80px);
    height: clamp(54px, 4vw, 80px);
    min-width: auto;
    font-size: clamp(1.2rem, 1vw + .8rem, 1.8rem);
    margin: 0 auto 1rem auto;
  }

  .step-copy {
    max-width: 32ch;
    margin: 0 auto;
  }
}

/* Footer  */
footer {
  background: #132A1B;
  color: #cfe0d6;
}

footer .footer-logo-wrap img {
  width: 32px;
  height: 32px;
}

footer .footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
}

footer .footer-description {
  max-width: 22rem;
  font-size: .9rem;
}

footer h5 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

footer a {
  color: #cfe0d6;
  text-decoration: none;
  display: block;
  margin-bottom: .4rem;
  font-size: .88rem;
  transition: color .2s ease;
}

footer a:hover {
  color: #fff;
}

footer .text-light-green {
  color: #9fb3a8;
  font-size: .85rem;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: #9fb3a8;
}