/* ═══════════════════════════════════════════════════════════
   Harbor House – Skilled Nursing & Rehabilitation
   Color palette: Deep Navy | Seafoam Teal | Warm Cream | Gold
═══════════════════════════════════════════════════════════ */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2540;
  --teal:       #4a8fa8;
  --teal-light: #6db3cc;
  --gold:       #c9a84c;
  --cream:      #f8f5f0;
  --light-bg:   #f0f4f7;
  --text-dark:  #1c1c1c;
  --text-mid:   #4a4a4a;
  --text-light: #7a8a9a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

/* ── Utilities ──────────────────────────────────────────── */
.bg-navy       { background: var(--navy); }
.bg-light-custom { background: var(--light-bg); }
.text-teal     { color: var(--teal-light) !important; }
.text-white-70 { color: rgba(255,255,255,.7); }

.rounded-custom { border-radius: 12px; }
.shadow-custom  { box-shadow: 0 12px 40px rgba(0,0,0,.14); }

.section-padded { padding: 90px 0; }

/* ── Section Typography ─────────────────────────────────── */
.eyebrow-text {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#mainNav {
  background: transparent;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

#mainNav.nav-scrolled {
  background: var(--navy-dark);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}

.navbar-nav .nav-link {
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 12px !important;
  color: rgba(255,255,255,.85) !important;
  transition: color .2s;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('img/header.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 37, 64, .72) 0%,
    rgba(26, 58, 92, .55) 50%,
    rgba(74, 143, 168, .35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 16px 60px;
}

.hero-eyebrow {
  font-size: .82rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── CTA Buttons ────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--teal);
  border: 2px solid var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  border-radius: 4px;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-primary-custom:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 4px;
  transition: background .2s, color .2s, transform .15s;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  padding: 36px 0;
}

.stat-item {
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number i { font-size: 1.8rem; }

.stat-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* ── SERVICES ────────────────────────────────────────────── */
.service-card {
  background: var(--cream);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: transform .25s, box-shadow .25s;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,58,92,.12);
  border-top-color: var(--teal);
}

.service-icon {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .75rem;
}

.service-card p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* Clinical list */
.clinical-list {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 2.5rem;
}

.clinical-list h4 {
  color: var(--navy);
  font-size: 1.2rem;
}

.clinical-item {
  font-size: .88rem;
  color: var(--text-mid);
  padding: 6px 4px;
}

.clinical-item i {
  color: var(--teal);
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-tall { height: 420px; }
.gallery-item-half { height: 200px; }
.gallery-item:not(.gallery-item-tall):not(.gallery-item-half) { height: 220px; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15,37,64,.8));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 20px 14px 10px;
}

/* ── AMENITIES ───────────────────────────────────────────── */
.amenity-tile {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  transition: background .2s, transform .2s;
}

.amenity-tile:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.amenity-tile i {
  font-size: 1.8rem;
  color: var(--teal-light);
  display: block;
  margin-bottom: .6rem;
}

.amenity-tile span {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-img-wrap {
  position: relative;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .08;
  z-index: 0;
}

.about-img-wrap img { position: relative; z-index: 1; }

.goldseal-img {
  height: 70px;
  width: auto;
}

.accred-badge {
  font-size: .85rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: .35rem;
}

.accred-badge i { color: var(--teal); }

/* ── CAREERS BANNER ──────────────────────────────────────── */
.careers-banner {
  position: relative;
  background: url('img/nurse.jpg') center 30% / cover no-repeat;
  padding: 100px 0;
}

.careers-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,37,64,.88), rgba(26,58,92,.78));
}

.careers-banner .container { position: relative; z-index: 2; }

.careers-banner .section-title { margin-bottom: .75rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border-top: 4px solid var(--teal);
}

.contact-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.1rem;
  font-size: .95rem;
}

.contact-list li i {
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
.contact-list a:hover { color: var(--teal); }

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  min-height: 340px;
}

.map-wrapper iframe { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}

.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s;
}
.footer-social a:hover { background: var(--teal); }

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--teal-light); }

.footer-address { color: rgba(255,255,255,.45); }

.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 40px 0 24px;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}

.powered-by {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.powered-by:hover { color: var(--teal-light); }
.powered-by strong { color: rgba(255,255,255,.75); }
.powered-by i { color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .section-padded  { padding: 60px 0; }
  .stat-item       { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
  .gallery-item-tall  { height: 260px; }
  .gallery-item-half  { height: 160px; }
  .careers-banner  { padding: 70px 0; }
  .hero-title      { font-size: 2.4rem; }
}

@media (max-width: 575px) {
  .hero-content { padding-top: 130px; }
  .about-img-wrap::before { display: none; }
}
