/* ========================================
   Center for Cardiovascular Medicine
   Custom Styles — Classic & Elegant
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', system-ui, sans-serif;
  color: #19385c;
  background: #faf8f4;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #0a1726;
  box-shadow: 0 2px 20px rgba(10,23,38,0.3);
  transition: background 0.3s ease;
}
.header-line {
  height: 3px;
  background: linear-gradient(90deg, #C8A45C 0%, #e8d09a 50%, #C8A45C 100%);
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 72px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8d6e8;
  transition: color 0.25s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #C8A45C;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #C8A45C; }
.nav-link:hover::after { width: 100%; }

/* Gold Button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C8A45C;
  color: #0a1726;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 6px;
  border: 2px solid #C8A45C;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: #b8904a;
  border-color: #b8904a;
  color: #0a1726;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,164,92,0.4);
}
.btn-gold.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* Outline Light Button */
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #eaf0f7;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: 6px;
  border: 2px solid rgba(200,164,92,0.6);
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: rgba(200,164,92,0.15);
  border-color: #C8A45C;
  color: #f2e6c4;
}
.btn-outline-light.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* Mobile Toggle */
#menu-toggle { background: none; border: none; cursor: pointer; color: #eaf0f7; padding: 8px; }

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #0a1726;
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: #c8d6e8;
  padding: 10px 0;
  border-bottom: 1px solid rgba(200,214,232,0.1);
  transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: #C8A45C; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('https://images.pexels.com/photos/16051950/pexels-photo-16051950.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  background-color: #0f2137;
  padding: 120px 6px 80px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,23,38,0.92) 0%,
    rgba(15,33,55,0.85) 50%,
    rgba(10,23,38,0.90) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,164,92,0.15);
  border: 1px solid rgba(200,164,92,0.4);
  color: #e8d09a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 22px;
}
.hero-headline em {
  font-style: italic;
  color: #e8d09a;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #c8d6e8;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a3b8d4;
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(200,164,92,0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Section Base ---------- */
section { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C8A45C;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: #0f2137;
  margin-bottom: 18px;
}
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #C8A45C, #e8d09a);
  border-radius: 2px;
  margin-top: 20px;
}
.lead-text {
  font-size: 1.125rem;
  color: #244a76;
  line-height: 1.85;
}

/* ---------- About ---------- */
.section-about { background: #faf8f4; }
.stats-row {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat-item {
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 20px 24px;
  flex: 1;
  min-width: 140px;
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f2137;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: #7d9abf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.about-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,33,55,0.15);
}
.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 3px solid #C8A45C;
  border-radius: 16px;
  z-index: -1;
}

/* ---------- Services ---------- */
.section-services { background: #ffffff; }
.service-card {
  background: #faf8f4;
  border: 1px solid #e8e4dc;
  border-radius: 14px;
  padding: 36px 28px;
  transition: all 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15,33,55,0.1);
  border-color: rgba(200,164,92,0.4);
}
.service-icon {
  width: 64px; height: 64px;
  background: rgba(200,164,92,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}
.service-card:hover .service-icon { background: rgba(200,164,92,0.22); }
.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f2137;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.95rem;
  color: #355f91;
  line-height: 1.75;
}

/* ---------- Patients ---------- */
.section-patients { background: #f0ebe0; }
.patient-card {
  background: #ffffff;
  border: 1px solid #e0d9cc;
  border-radius: 12px;
  overflow: hidden;
}
.patient-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #0f2137;
}
.patient-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}
.patient-card-body {
  padding: 18px 24px;
  font-size: 0.95rem;
  color: #244a76;
  line-height: 1.8;
}
.patients-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,33,55,0.15);
  margin-bottom: 24px;
}
.patients-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.patients-accent {
  position: absolute;
  top: -16px; left: -16px;
  width: 100px; height: 100px;
  border: 3px solid #C8A45C;
  border-radius: 12px;
  z-index: -1;
}
.emergency-banner {
  display: flex;
  gap: 16px;
  background: #b84040;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
}
.emergency-title {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.emergency-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.92;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 96px 0;
  background:
    url('https://images.pexels.com/photos/8533080/pexels-photo-8533080.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=600') center center / cover no-repeat;
  background-color: #0f2137;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,23,38,0.93) 0%, rgba(15,33,55,0.88) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 1.1rem;
  color: #c8d6e8;
  line-height: 1.8;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Contact ---------- */
.section-contact { background: #ffffff; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(200,164,92,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d9abf;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 1rem;
  color: #19385c;
  line-height: 1.6;
}
.map-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15,33,55,0.1);
  border: 1px solid #e0d9cc;
}

/* Contact Form */
.contact-form-wrap {
  background: #faf8f4;
  border: 1px solid #e8e4dc;
  border-radius: 16px;
  padding: 40px 36px;
}
.contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f2137;
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 0.95rem;
  color: #355f91;
  margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #19385c;
  letter-spacing: 0.02em;
}
.required { color: #b84040; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #19385c;
  background: #ffffff;
  border: 1.5px solid #d4cec0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #C8A45C;
  box-shadow: 0 0 0 3px rgba(200,164,92,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a3b8d4; }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  align-self: flex-start;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eaf5ee;
  border: 1px solid #b8d8c0;
  border-radius: 10px;
  padding: 16px 20px;
  color: #1a5c38;
  font-size: 0.95rem;
  margin-top: 8px;
}
.form-success strong { color: #1a7a4a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1726;
  color: #a3b8d4;
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(200,214,232,0.1);
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}
.footer-tagline {
  font-size: 0.875rem;
  color: #7d9abf;
  margin-top: 6px;
  line-height: 1.6;
}
.footer-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C8A45C;
  margin-bottom: 16px;
}
.footer-nav nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.9rem;
  color: #a3b8d4;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #e8d09a; }
.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #567cac;
}
.footer-disclaimer {
  font-size: 0.75rem !important;
  color: #355f91 !important;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: #C8A45C;
  color: #0a1726;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,164,92,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #b8904a;
  transform: translateY(-2px);
}

/* ---------- Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .about-accent, .patients-accent { display: none; }
  .emergency-banner { flex-direction: column; gap: 8px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .btn-submit { align-self: stretch; justify-content: center; }
}
@media (max-width: 479px) {
  .stats-row { flex-direction: column; }
  .hero-trust { flex-direction: column; align-items: center; }
}
