/* ============================================
   BiteSafe Website — style.css
   Palette: Sage #556B4E / Bronze #D4A373
   ============================================ */

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

:root {
  --sage:       #556B4E;
  --sage-light: #7DA370;
  --sage-bg:    #f4f7f3;
  --bronze:     #D4A373;
  --bronze-light:#e8c9a8;
  --danger:     #D9534F;
  --warning:    #F0AD4E;
  --text:       #1a2e1a;
  --text-sec:   #5a6e5a;
  --bg:         #ffffff;
  --bg-alt:     #f8faf7;
  --border:     #e2e8de;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 2px 12px rgba(85,107,78,.08);
  --shadow-lg:  0 8px 32px rgba(85,107,78,.12);
  --max-w:      1120px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

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

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

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--sage);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--sage), var(--sage-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--sage); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--sage);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--sage-light); transform: translateY(-1px); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--sage-bg) 0%, var(--bg) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--sage);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

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

.hero p {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 540px;
  margin: 0 auto 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--sage);
  color: #fff;
}
.btn-primary:hover { background: var(--sage-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--sage);
  border: 2px solid var(--sage);
}
.btn-outline:hover { background: var(--sage); color: #fff; }

.app-store-badge { height: 52px; border-radius: 8px; }

.hero-image {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-mockup {
  max-width: 320px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Features ---------- */
.features {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sage-bg);
  color: var(--sage);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-icon.sage   { background: rgba(85,107,78,.1);  color: var(--sage); }
.feature-icon.bronze { background: rgba(212,163,115,.15); color: var(--bronze); }
.feature-icon.danger { background: rgba(217,83,79,.1);  color: var(--danger); }
.feature-icon.warning{ background: rgba(240,173,78,.12); color: var(--warning); }

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-sec);
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 80px 0;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--sage);
  background: linear-gradient(180deg, rgba(85,107,78,.03), transparent);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--sage);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--sage);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-sec);
}

.pricing-period {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--sage);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-sec);
  opacity: .5;
}

.pricing-features li.disabled::before {
  content: "\2717";
  color: var(--text-sec);
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-light) 100%);
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 28px;
}

.btn-white {
  background: #fff;
  color: var(--sage);
}
.btn-white:hover { background: var(--sage-bg); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 24px;
  background: var(--text);
  color: rgba(255,255,255,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 16px;
}

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

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ---------- Legal Pages ---------- */
.legal {
  padding: 60px 0 80px;
  max-width: 740px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--sage);
}

.legal p, .legal ul {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sec);
  margin-bottom: 16px;
}

.legal ul {
  padding-left: 20px;
}

.legal ul li {
  margin-bottom: 6px;
}

/* ---------- Support Page ---------- */
.support-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--sage-bg);
}

.support-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-hero p {
  color: var(--text-sec);
  font-size: 16px;
}

.support-content {
  padding: 48px 0 80px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.support-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.support-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 16px;
}

.support-card a.btn { font-size: 14px; padding: 10px 20px; }

/* ---------- FAQ Page ---------- */
.faq {
  padding: 60px 0 80px;
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
}

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

.faq-chevron {
  font-size: 18px;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--text-sec);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-sec);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ---------- Blog Page ---------- */
.blog {
  padding: 60px 0 80px;
}

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

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--sage-bg), rgba(212,163,115,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-body {
  padding: 20px;
}

.blog-date {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.blog-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-body p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
}

.blog-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Mobile menu open */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-header h2 { font-size: 24px; }
}
