/* GlucoBalance Landing Page Styles */

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

:root {
  /* Medical-wellness calm color palette */
  --background: #f9fafb;
  --foreground: #1a1d29;
  --card: #ffffff;
  --card-foreground: #1a1d29;
  --primary: #2a9d8f;
  --primary-foreground: #ffffff;
  --secondary: #e8f5f2;
  --secondary-foreground: #3d5a56;
  --muted: #f1f5f4;
  --muted-foreground: #6b7280;
  --accent: #d4ede8;
  --accent-foreground: #3d5a56;
  --border: #e5ebe9;
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.125rem;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: #238b7e;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header */
.header {
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--foreground);
}

.header .btn {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .header .btn {
    display: inline-flex;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero h1 {
  color: var(--foreground);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 540px;
}

.hero-disclaimer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-left: 2px solid rgba(42, 157, 143, 0.3);
  padding-left: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 1.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

/* Trust Section */
.trust-section {
  background-color: var(--card);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .trust-section {
    padding: 6rem 0;
  }
}

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

.cards-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(42, 157, 143, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-box svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.card-center {
  text-align: center;
}

.card-center .icon-box {
  margin: 0 auto 1.5rem;
}

/* Problem Section */
.problem-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .problem-section {
    padding: 6rem 0;
  }
}

.problem-section .container {
  max-width: 800px;
  text-align: center;
}

.problem-section p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Benefits Section */
.benefits-section {
  background-color: rgba(212, 237, 232, 0.3);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .benefits-section {
    padding: 6rem 0;
  }
}

.benefits-section .card {
  border: none;
  background-color: var(--card);
}

/* Ingredients Section */
.ingredients-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .ingredients-section {
    padding: 6rem 0;
  }
}

.ingredients-grid {
  display: grid;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ingredients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ingredient-card {
  padding: 1.5rem;
}

.ingredient-card:hover {
  border-color: rgba(42, 157, 143, 0.3);
}

.ingredient-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ingredient-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(42, 157, 143, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}

.ingredient-card h3 {
  margin-bottom: 0.25rem;
}

.ingredient-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.disclaimer-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Usage Section */
.usage-section {
  background-color: var(--card);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .usage-section {
    padding: 6rem 0;
  }
}

.usage-section .container {
  max-width: 800px;
}

.usage-section > .container > p {
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.warning-box {
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.warning-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.warning-box h4 {
  color: #92400e;
  margin-bottom: 0.25rem;
}

.warning-box p {
  font-size: 0.875rem;
  color: #a16207;
}

/* Lifestyle Section */
.lifestyle-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .lifestyle-section {
    padding: 6rem 0;
  }
}

.lifestyle-grid {
  display: grid;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.lifestyle-image img {
  border-radius: 1rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.lifestyle-content h2 {
  margin-bottom: 1.5rem;
}

.lifestyle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lifestyle-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.check-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(42, 157, 143, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.lifestyle-list span {
  font-size: 1.125rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: rgba(212, 237, 232, 0.3);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .testimonials-section {
    padding: 6rem 0;
  }
}

.testimonial-card {
  padding: 1.5rem;
  border: none;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--primary);
  color: var(--primary);
}

.testimonial-card blockquote {
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .faq-section {
    padding: 6rem 0;
  }
}

.faq-section .container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--muted-foreground);
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Section */
.cta-section {
  background-color: rgba(42, 157, 143, 0.05);
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 6rem 0;
  }
}

.cta-section .container {
  max-width: 800px;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section > .container > p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.cta-disclaimer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

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

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.mobile-cta.visible {
  display: block;
}

.mobile-cta .btn {
  width: 100%;
}

.mobile-cta p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none !important;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted-foreground);
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
