/* ========================================
   Rise Neuropathy Clinic — Styles
   ======================================== */

/* --- Custom Properties --- */
:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2C;
  --burgundy-light: #9A3D4E;
  --blush: #C4707A;
  --blush-light: #E8A5AD;
  --blush-pale: #FDF6F6;
  --cream: #FAF0EF;
  --warm-gray: #6B5B5B;
  --text-dark: #2D1F22;
  --text-body: #4A3538;
  --text-muted: #7A6568;
  --white: #FFFFFF;
  --off-white: #FEFCFC;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.08);
  --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.1);
  --shadow-lg: 0 8px 32px rgba(123, 45, 59, 0.12);
  --shadow-xl: 0 16px 48px rgba(123, 45, 59, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--burgundy-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--burgundy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; }

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn--primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn--outline-dark:hover {
  background: var(--burgundy);
  color: var(--white);
}

.btn--lg { padding: 18px 36px; font-size: 1.0625rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Section Layout --- */
.section { padding: 100px 0; }
.section--dark { background: var(--burgundy-dark); }
.section--light { background: var(--cream); }

.section-header { margin-bottom: 64px; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 2px;
  background: var(--blush);
}
.section-label--light { color: var(--blush-light); }
.section-label--light::before { background: var(--blush-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.7); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254, 252, 252, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}
.logo:hover { color: var(--text-dark); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}
.logo-accent { color: var(--burgundy); }

.logo--light .logo-text { color: var(--white); }
.logo--light .logo-accent { color: var(--blush-light); }

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.main-nav a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--burgundy); background: var(--blush-pale); }

.btn--nav {
  background: var(--burgundy);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}
.btn--nav:hover {
  background: var(--burgundy-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #5C1F2C 0%, #7B2D3B 30%, #9A3D4E 55%, #C4707A 80%, #E8A5AD 100%);
  padding: 120px 24px 80px;
}
.hero-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(232,165,173,0.3) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(92,31,44,0.4) 0%, transparent 60%); }
.hero-pattern { position: absolute; inset: 0; opacity: 0.5; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #F5D5D8 0%, #FFFFFF 50%, #F5D5D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrap { position: relative; }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--blush);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.about-content .lead {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-content p { color: var(--text-muted); margin-bottom: 28px; }

.about-features { list-style: none; display: grid; gap: 16px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-body);
}
.feature-icon { color: var(--burgundy); flex-shrink: 0; margin-top: 2px; }

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 112, 122, 0.2);
  border-radius: var(--radius-sm);
  color: var(--blush-light);
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* --- Conditions --- */
.conditions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.conditions-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.conditions-image img { width: 100%; height: 100%; object-fit: cover; }

.conditions-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 32px;
}
.conditions-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}
.conditions-list li svg { color: var(--burgundy); flex-shrink: 0; }

/* --- Process --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--blush-pale);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.step-connector {
  display: none;
}

/* --- FAQ --- */
.faq-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.faq-content .section-subtitle { margin-bottom: 32px; }

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--white);
  border: 1px solid rgba(123, 45, 59, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--burgundy); }
.faq-question[aria-expanded="true"] { color: var(--burgundy); }

.faq-toggle {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--blush);
}
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-sidebar { display: grid; gap: 24px; }

.faq-cta-card {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.faq-cta-icon { color: var(--blush-light); margin-bottom: 20px; }
.faq-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.faq-cta-card p { color: rgba(255,255,255,0.75); margin-bottom: 24px; font-size: 0.9375rem; }
.faq-cta-note { font-size: 0.8125rem; color: rgba(255,255,255,0.6); margin-top: 16px; }
.faq-cta-note a { color: var(--blush-light); }
.faq-cta-note a:hover { color: var(--white); }

.faq-map-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-map-card img { width: 100%; height: auto; }
.faq-map-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-body);
  border-top: 1px solid rgba(123,45,59,0.08);
}
.faq-map-label svg { color: var(--burgundy); }

/* --- Contact --- */
.contact {
  background: linear-gradient(135deg, #5C1F2C 0%, #7B2D3B 50%, #9A3D4E 100%);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232,165,173,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .contact-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details { display: grid; gap: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--blush-light);
  flex-shrink: 0;
}
.contact-detail strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.contact-detail span, .contact-detail a {
  color: var(--white);
  font-size: 1rem;
}
.contact-detail a:hover { color: var(--blush-light); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}
.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(123, 45, 59, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: all var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-privacy {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon { color: var(--burgundy); margin-bottom: 20px; }
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.form-success p { color: var(--text-muted); margin-bottom: 24px; }

/* --- Footer --- */
.footer {
  background: #1A0F12;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 16px; font-size: 0.9375rem; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; display: grid; gap: 10px; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blush-light); }
.footer address { font-style: normal; line-height: 1.7; margin-bottom: 12px; }
.footer p a { color: rgba(255,255,255,0.55); }
.footer p a:hover { color: var(--blush-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  font-size: 0.8125rem;
}
.footer-disclaimer { color: rgba(255,255,255,0.35); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 1px solid rgba(123,45,59,0.1);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .btn--nav { margin-left: 0; margin-top: 8px; text-align: center; }

  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .about-grid,
  .conditions-layout,
  .contact-grid,
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .conditions-image { order: -1; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .conditions-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }

  .contact-form-wrap { padding: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
