/* ============================================
   PRC Integrated Care Services
   Color scheme derived from logo:
     Purple: #3b1c63  (primary)
     Gold:   #cf9520  (accent)
     Light:  #f5f3f0  (background)
     Dark:   #1a1025  (text/footer)
   ============================================ */

:root {
  --purple:        #3b1c63;
  --purple-light:  #5a2d94;
  --purple-dark:   #2a1348;
  --gold:          #cf9520;
  --gold-light:    #e0b040;
  --gold-dark:     #a87810;
  --cream:         #f5f3f0;
  --white:         #ffffff;
  --dark:          #1a1025;
  --gray:          #6b6570;
  --gray-light:    #e8e4ea;
  --radius:        12px;
  --radius-lg:     24px;
  --shadow:        0 4px 20px rgba(26, 16, 37, 0.08);
  --shadow-lg:     0 8px 40px rgba(26, 16, 37, 0.12);
  --shadow-purple: 0 8px 30px rgba(59, 28, 99, 0.25);
  --transition:   0.3s ease;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--cream);
  overflow-x: hidden;
}

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--purple);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1rem; color: var(--gray); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 12px;
}

.gold-eyebrow { color: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(59, 28, 99, 0.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(207, 149, 32, 0.3);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(207, 149, 32, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 243, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  height: 52px;
  width: auto;
  transition: height var(--transition);
}
.site-header.scrolled .logo { height: 44px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:not(.nav-cta):hover { color: var(--purple); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90, 45, 148, 0.4), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(207, 149, 32, 0.25), transparent 60%),
    linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-dark) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.02) 80px,
      rgba(255, 255, 255, 0.02) 81px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
}

.hero-logo {
  max-width: 320px;
  width: 80%;
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ STATS ============ */
.stats {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-top: 8px;
}

/* ============ SECTION HEADER ============ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-title {
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============ SERVICES ============ */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid transparent;
  scroll-margin-top: 80px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ CALLOUT ============ */
.callout {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 149, 32, 0.15), transparent 70%);
}

.callout-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.callout-text .eyebrow { color: var(--gold-light); }
.callout-text h2 { color: var(--white); }
.callout-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.callout-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.callout-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.callout-circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(207, 149, 32, 0.3);
}

.callout-circle-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  line-height: 1.5;
}

/* ============ ABOUT ============ */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content .section-title { margin-bottom: 20px; }
.about-content p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.85;
}
.about-content strong { color: var(--purple); }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.value-item {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 4px solid var(--gold);
  transition: all var(--transition);
}

.value-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.value-item h4 {
  color: var(--purple);
  margin-bottom: 8px;
}

.value-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============ CONTACT ============ */
.contact {
  padding: 100px 0;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.contact-item h4 {
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  transition: all var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 28, 99, 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  max-width: 240px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--gold);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-mission h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-mission p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; z-index: 1001; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .callout-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .callout-text .eyebrow,
  .callout-text h2,
  .callout-text p { text-align: center; }
  .callout-buttons { justify-content: center; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

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

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}