/* ============================================================
   RIVERSTONE UROLOGY — SHARED STYLESHEET v2
   Aesthetic: Boutique Premium · Clean & Light
   Palette: Warm whites, deep navy, soft sage/teal
   Typography: Instrument Serif (display) + Outfit (body)
   ============================================================ */

:root {
  --navy: #1B2B4B;
  --navy-light: #2A3D63;
  --sage: #7BA69E;
  --sage-deep: #5B8A82;
  --sage-light: #E8F0ED;
  --sage-pale: #F2F7F5;
  --cream: #FAFAF7;
  --cream-warm: #F5F3EE;
  --white: #FFFFFF;
  --text: #2A2A2A;
  --text-light: #6B6B6B;
  --text-muted: #9A9A9A;
  --border: #E5E2DC;
  --border-light: #F0EDE7;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --max-width: 1320px;
  --nav-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utility Bar */
.utility-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: relative;
  z-index: 100;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.utility-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.25s;
}
.utility-links a:hover { color: #fff; }
.utility-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 500;
}
.utility-phone svg { width: 14px; height: 14px; }

/* Navigation */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(27,43,75,0.08); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--sage-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--sage-deep); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--navy-light) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,43,75,0.25);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

/* Sections */
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-sage { background: var(--sage-pale); }
.section-navy { background: var(--navy); color: #fff; }

.section-header { margin-bottom: var(--space-xl); }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--space-sm);
}
.section-navy .section-label { color: var(--sage); }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-navy .section-title { color: #fff; }
.section-title em { font-style: italic; color: var(--sage-deep); }
.section-navy .section-title em { color: var(--sage); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 300;
  max-width: 600px;
  margin-top: var(--space-sm);
  line-height: 1.65;
}
.section-navy .section-subtitle { color: rgba(255,255,255,0.65); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sage);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,138,130,0.3);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.3s;
}
.btn-outline-dark:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: var(--sage-pale);
}

/* Page Hero (for inner pages) */
.page-hero {
  background: var(--navy);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(123,166,158,0.08);
  border-radius: 50%;
}
.page-hero .section-label { color: var(--sage); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.page-hero h1 em { font-style: italic; color: var(--sage); }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 560px;
  margin-top: var(--space-sm);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb span { margin: 0 0.4rem; }

/* Content area for inner pages */
.page-content {
  padding: var(--space-xl) 0;
}
.page-content .content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.content-main h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.2;
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin: var(--space-md) 0 var(--space-xs);
}
.content-main p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}
.content-main ul {
  list-style: none;
  margin: var(--space-sm) 0 var(--space-md);
}
.content-main ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.content-main ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.content-main img {
  border-radius: 10px;
  margin: var(--space-md) 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.sidebar-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}
.sidebar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin: var(--space-sm) 0;
}
.sidebar-phone svg { width: 20px; height: 20px; color: var(--sage); }
.sidebar-links {
  list-style: none;
}
.sidebar-links li {
  border-bottom: 1px solid var(--border-light);
}
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.25s;
}
.sidebar-links a:hover { color: var(--sage-deep); }
.sidebar-links a svg { width: 14px; height: 14px; color: var(--sage); }
.sidebar-links a.active { color: var(--sage-deep); font-weight: 600; }

/* CTA Band */
.cta-band {
  background: var(--sage-deep);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-sm);
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  position: relative;
}
.cta-band .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--sage-deep);
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 2.5rem;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}
.cta-band .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-band .btn-white svg { width: 20px; height: 20px; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-xl);
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.55);
  max-width: 300px;
}
.footer-brand img { height: 44px; filter: brightness(0) invert(1); }
.footer h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Touch Target Sizing - Ensure all interactive elements are at least 44x44px */
button, a, .nav-links a, .sidebar-links a, .btn-primary, .btn-outline-dark {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-content .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Navigation mobile collapse */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 30px rgba(27,43,75,0.1);
    gap: 0.5rem;
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }

  /* Utility bar stacking on mobile */
  .utility-bar .container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-align: center;
  }
  .utility-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .utility-phone {
    justify-content: center;
    font-size: 0.9rem;
  }

  /* Typography scaling for mobile */
  .section-title {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
  }
  .page-hero h1 {
    font-size: clamp(1.8rem, 3vw, 3.4rem);
  }

  /* Spacing adjustments */
  .section { padding: var(--space-lg) 0; }
  .container { padding: 0 1.5rem; }

  /* Footer and grids */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { margin-bottom: var(--space-md); }
  .footer h4 { margin-bottom: var(--space-sm); }

  /* CTA Band button sizing */
  .cta-band h2 {
    font-size: clamp(1.4rem, 2.5vw, 2.6rem);
  }
  .cta-band .btn-white {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Button responsive sizes */
  .btn-primary, .btn-outline-dark {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: auto;
  }

  /* Sidebar full width on mobile */
  .sidebar {
    margin-top: var(--space-lg);
  }
  .sidebar-card {
    padding: 1.5rem;
  }

  /* Ensure no horizontal overflow */
  img { max-width: 100%; height: auto; }
  table { width: 100%; overflow-x: auto; }
}

@media (max-width: 480px) {
  /* Extra small screen adjustments */
  .container { padding: 0 1rem; }

  /* Hero section very compact */
  .page-hero {
    padding: var(--space-lg) 0 var(--space-md);
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 2.2vw, 3rem);
  }

  /* Section titles on small screens */
  .section-title {
    font-size: clamp(1.3rem, 2vw, 2.5rem);
  }

  /* Reduce button width constraints */
  .btn-primary, .btn-outline-dark, .cta-band .btn-white {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* Text sizing */
  .page-hero-sub, .section-subtitle {
    font-size: 0.95rem;
  }

  /* Minimal padding on sections */
  .section { padding: var(--space-md) 0; }
  .section-sm { padding: var(--space-lg) 0; }

  /* Footer link spacing */
  .footer-links li { margin-bottom: 0.5rem; }
  .utility-links { gap: 0.5rem; }

  /* Sidebar card padding */
  .sidebar-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

/* ============================================================
   STICKY MOBILE CTA BAR (shared across all pages)
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--navy);
  padding: 0.6rem 0.75rem;
  box-shadow: 0 -4px 20px rgba(27,43,75,0.25);
  border-top: 1px solid rgba(123,166,158,0.2);
}
.mobile-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.mobile-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  transition: background 0.2s;
  min-height: 44px;
  justify-content: center;
}
.mobile-cta-btn:hover,
.mobile-cta-btn:active {
  background: rgba(123,166,158,0.2);
}
.mobile-cta-btn svg {
  width: 20px;
  height: 20px;
  color: var(--sage);
}
.mobile-cta-btn span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 72px; }
}

/* Background textures for sections */
.section-cream {
  position: relative;
}
.section-cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(123,166,158,0.03) 40px,
    rgba(123,166,158,0.03) 41px
  );
  pointer-events: none;
  z-index: 0;
}
.section-cream > .container {
  position: relative;
  z-index: 1;
}


/* ============================================================
   Accessibility fallbacks
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
