/* ===== YoCare Component Styles ===== */

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-icon { font-size: 1.4rem; }
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.logo-highlight { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-body);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Nav Sub-menu (Services dropdown) */
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: white;
  min-width: 200px;
  padding: 10px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 1001;
}
.nav-sub a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: 0;
}
.nav-sub a:hover,
.nav-sub a.active {
  background: var(--bg-warm);
  color: var(--primary);
}
.nav-sub a::after { display: none; }
.nav-arrow {
  font-size: 0.7rem;
  margin-left: 3px;
  opacity: 0.6;
  transition: transform 0.2s;
}
/* Desktop hover */
@media (min-width: 769px) {
  .nav-item-has-sub {
    position: relative;
  }
  .nav-item-has-sub:hover .nav-sub {
    display: block;
  }
  .nav-item-has-sub:hover .nav-arrow {
    transform: rotate(180deg);
  }
}
.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.active { transform: translateY(0); }
  /* Mobile sub-menu: always show when nav is open */
  .nav-sub {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    padding: 8px 0 0 16px;
    min-width: auto;
    background: transparent;
  }
  .nav-sub a {
    font-size: 0.88rem;
    padding: 6px 12px;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #FDF0EC 50%, var(--bg-cream) 100%);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,90,63,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244,162,97,0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(250,175,126,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-family: var(--font-heading);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Trust Bar */
.trust-bar {
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}
.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-stats { gap: 28px; }
  .stat strong { font-size: 1.5rem; }
  .trust-items { gap: 20px; font-size: 0.82rem; }
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.service-card h3 {
  margin-bottom: 12px;
  color: var(--primary-dark);
}
.service-card p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.feature-list {
  margin-bottom: 20px;
}
.feature-list li {
  padding: 6px 0;
  color: var(--text-body);
  font-size: 0.93rem;
}
.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-link:hover {
  gap: 8px;
}

/* Why Cards */
.text-center { text-align: center; }
.why-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}
.why-card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
}
.why-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding-top: 52px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .step-arrow { display: none; }
  .step { min-width: 160px; }
}

/* Testimonials */
.testimonial-stars {
  color: var(--warm-yellow);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.98rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.testimonial-author span {
  font-size: 0.83rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.cta-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-box h2 {
  color: white;
  margin-bottom: 16px;
}
.cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: white;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.social-links {
  display: flex;
  gap: 14px;
}
.social-links a {
  font-size: 1.3rem;
  transition: transform 0.2s;
}
.social-links a:hover { transform: scale(1.15); }

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  padding: 5px 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* Page header for inner pages */
.page-header {
  padding: 130px 0 56px;
  background: linear-gradient(135deg, var(--bg-warm), #FDF0EC);
  text-align: center;
}
.page-header h1 {
  margin-bottom: 12px;
}
.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* Text utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* Pricing-specific */
.price-tag {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
}
.price-tag small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}
.popular-badge {
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
