/* Nutri Health Life - Main Stylesheet */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--secondary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--secondary) !important;
  white-space: nowrap;
  line-height: 1;
}

.navbar-brand img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: inline-block;
  white-space: nowrap;
}

.navbar-brand .brand-text span {
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: var(--secondary) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-soft {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-soft:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #f8fafc 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
}

.hero-img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-sm { padding: 3rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards */
.card-custom {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.card-custom .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.card-custom:hover .icon-wrap {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.card-custom h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-custom p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Service card with image */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card .body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

/* Testimonial */
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  position: relative;
}

.testimonial .quote {
  font-size: 2.5rem;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial p {
  color: var(--secondary);
  font-style: italic;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonial .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 12px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  padding: 1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

.accordion-body { color: var(--muted); }

/* Blog card */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card .body {
  padding: 1.5rem;
}

.blog-card .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.blog-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-section h2 { font-weight: 800; }

.cta-section p { opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }

/* Footer */
footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--primary); }

footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}

footer .brand img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

footer .social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin-right: 0.5rem;
  transition: all 0.2s;
}

footer .social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Contact */
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: all 0.3s;
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.contact-info-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Form */
.form-control, .form-select {
  border-radius: 10px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(16,185,129,0.15);
}

/* Newsletter box */
.newsletter-box {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
}

/* Blog post content */
.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content h2, .post-content h3 {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  color: #334155;
  margin-bottom: 1.25rem;
}

.post-content ul {
  color: #334155;
  margin-bottom: 1.25rem;
}

.post-hero {
  border-radius: 20px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* Utilities */
.text-primary-custom { color: var(--primary) !important; }
.bg-soft { background: var(--primary-light); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */
@media (max-width: 991px) {
  .hero { padding: 3rem 0 2rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 576px) {
  .navbar-brand { font-size: 1.15rem; }
  .navbar-brand img { height: 36px; width: 36px; }
}
