/* ============================================================
   GAINESVILLE HEALTH & REHABILITATION CENTER
   styles.css — Shared Styles
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --steel:        #8A9BB0;
  --steel-light:  #b0bfcf;
  --steel-dark:   #6a7f96;
  --charcoal:     #1a1e24;
  --charcoal-mid: #252b34;
  --charcoal-light:#2f3640;
  --grey:         #9aa0a8;
  --grey-light:   #e8eaed;
  --grey-soft:    #f4f5f7;
  --white:        #ffffff;
  --text-dark:    #1a1e24;
  --text-mid:     #4a5260;
  --text-light:   #7a8290;

  --font-serif:   'Cormorant Garamond', serif;
  --font-sans:    'Jost', sans-serif;

  --nav-height:   72px;
  --max-width:    1200px;
  --section-pad:  6rem 2rem;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { transition: color 0.25s; }

/* ── Typography ─────────────────────────────────────────────── */
.serif { font-family: var(--font-serif); }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--steel);
  flex-shrink: 0;
}
.section-label.light { color: var(--steel-light); }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--white); }
.section-title.center { text-align: center; }

.section-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-weight: 300;
  max-width: 640px;
}
.section-body.center { margin: 0 auto; text-align: center; }

.divider {
  width: 40px;
  height: 1px;
  background: var(--steel);
  margin: 2rem 0;
}

/* ── Layout ─────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: var(--section-pad);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.two-col-wide {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: var(--steel);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  font-family: var(--font-sans);
}
.btn-primary:hover {
  background: var(--steel-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138,155,176,0.25);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--steel-light);
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(138,155,176,0.4);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  font-family: var(--font-sans);
}
.btn-outline:hover {
  border-color: var(--steel);
  background: rgba(138,155,176,0.08);
  color: var(--steel-light);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  font-family: var(--font-sans);
}
.btn-dark:hover { background: var(--charcoal-light); color: var(--white); }

.btn-sm {
  padding: 0.7rem 1.8rem;
  font-size: 0.75rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,30,36,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138,155,176,0.15);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(13,17,23,0.99); }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--steel-light);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.nav-logo span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--grey);
  font-family: var(--font-sans);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--steel);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--steel-light); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--steel);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--steel-dark); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--steel-light);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(13,17,23,0.98);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 999;
  border-bottom: 1px solid rgba(138,155,176,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--steel-light); }
.mobile-menu .mobile-cta { color: var(--steel-light); }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(138,155,176,0.07) 0%, transparent 70%),
    linear-gradient(135deg, #0d1117 0%, #1a1e24 60%, #1f2530 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.page-title em { font-style: normal; color: var(--steel-light); }
.page-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  max-width: 500px;
  font-weight: 300;
  line-height: 1.7;
}

.breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--steel-light); }

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--steel);
  padding: 3rem 2rem;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--grey-soft);
  padding: 5rem 2rem;
  text-align: center;
}

/* ── Info Box (sidebar) ─────────────────────────────────────── */
.info-box {
  background: var(--charcoal-mid);
  padding: 2.5rem;
  color: var(--white);
}
.info-box h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--steel-light);
  margin-bottom: 1.5rem;
}
.info-item { margin-bottom: 1rem; }
.info-item label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 0.3rem;
}
.info-item span { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.info-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.info-item a:hover { color: var(--steel-light); }
.info-divider { height: 1px; background: rgba(138,155,176,0.15); margin: 1.5rem 0; }

/* ── Forms (shared) ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--charcoal-light);
  border: 1px solid rgba(138,155,176,0.2);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.25s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--steel); }
.form-group select option { background: var(--charcoal); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.btn-submit {
  width: 100%;
  background: var(--steel);
  color: var(--white);
  border: none;
  padding: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--steel-dark); }

.form-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

.success-msg {
  display: none;
  background: rgba(138,155,176,0.1);
  border: 1px solid rgba(138,155,176,0.3);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.success-msg p { color: var(--steel-light); font-size: 0.95rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #0d1117;
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 1rem;
}
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--steel-light); }
.footer-col address {
  font-style: normal;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer-col address a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col address a:hover { color: var(--steel-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .two-col,
  .two-col-wide { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-pad: 4rem 1.25rem; }
}
