/* =============================================
   BinDoctors — Global Styles
   Colors: Emerald green, cream, gold, dark ink
   Fonts: Anton (headers), Fraunces (accents), Manrope (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,wght@0,400;0,600;1,400&family=Manrope:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --green: #1a6b3c;
  --green-dark: #0f4526;
  --green-light: #2d9e5f;
  --cream: #f7f3ea;
  --cream-dark: #ede8d9;
  --gold: #c9a227;
  --gold-light: #e8c04a;
  --ink: #1a1a1a;
  --ink-mid: #3d3d3d;
  --ink-light: #6b6b6b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.14);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.accent { font-family: 'Fraunces', serif; font-weight: 400; }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--dark { background: var(--green-dark); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--cream { background: var(--cream-dark); }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-light); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn--outline-white { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn--outline-white:hover { background: var(--white); color: var(--ink); }
.btn--lg { padding: 1.1rem 2.6rem; font-size: 1.1rem; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 1.5rem; max-width: 1100px; margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.nav__logo img { height: 48px; width: auto; }
.nav__logo-text { font-family: 'Anton', sans-serif; font-size: 1.4rem; color: var(--green); letter-spacing: 0.05em; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-mid); transition: color 0.15s; }
.nav__links a:hover, .nav__links a.active { color: var(--green); }
.nav__cta { margin-left: 1rem; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.2rem; border-bottom: 2px solid var(--cream-dark); box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #2d9e5f 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__inner { display: flex; align-items: center; gap: 3rem; }
.hero__content { flex: 1; }
.hero__eyebrow { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--gold-light); margin-bottom: 1rem; }
.hero__title { font-family: 'Anton', sans-serif; font-size: clamp(2.8rem, 5vw, 4.5rem); color: var(--white); margin-bottom: 1.2rem; line-height: 1.05; }
.hero__title span { color: var(--gold-light); }
.hero__sub { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 520px; margin-bottom: 2rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__img { flex: 0 0 380px; display: flex; align-items: center; justify-content: center; }
.hero__img img { border-radius: var(--radius); box-shadow: var(--shadow-md); max-height: 340px; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__btns { justify-content: center; }
  .hero__img { flex: none; width: 100%; max-width: 340px; }
  .hero__sub { margin: 0 auto 2rem; }
}

/* --- Trust Badges --- */
.badges { background: var(--white); padding: 2rem 0; border-bottom: 1px solid var(--cream-dark); }
.badges__inner { display: flex; flex-wrap: nowrap; justify-content: center; gap: 2rem 3rem; align-items: center; }
@media (max-width: 600px) { .badges__inner { flex-wrap: wrap; gap: 1.25rem 2rem; } }
.badge { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-mid); }
.badge__icon { width: 32px; height: 32px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge__icon svg { width: 16px; height: 16px; fill: var(--white); }

/* --- Services Grid --- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--green);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon { font-size: 2.4rem; margin-bottom: 1rem; }
.service-card__title { font-family: 'Anton', sans-serif; font-size: 1.3rem; color: var(--green); margin-bottom: 0.5rem; }
.service-card__desc { font-size: 0.95rem; color: var(--ink-mid); }

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 1rem; }
.section-header__eyebrow { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.section-header__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.section-header__sub { font-size: 1.05rem; color: var(--ink-light); max-width: 580px; margin: 0 auto; }

/* --- Pricing --- */
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pricing-card {
  background: var(--white); border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: var(--shadow); text-align: center; position: relative;
  border: 2px solid transparent; transition: border 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured { border-color: var(--gold); }
.pricing-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: 0.8rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 50px; white-space: nowrap; }
.pricing-card__name { font-family: 'Anton', sans-serif; font-size: 1.5rem; color: var(--green); margin-bottom: 0.5rem; }
.pricing-card__price { font-family: 'Anton', sans-serif; font-size: 3rem; color: var(--ink); margin-bottom: 0.2rem; }
.pricing-card__price span { font-size: 1.2rem; }
.pricing-card__freq { font-size: 0.9rem; color: var(--ink-light); margin-bottom: 1.5rem; }
.pricing-card__features { text-align: left; margin-bottom: 2rem; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.95rem; padding: 0.35rem 0; color: var(--ink-mid); }
.pricing-card__features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* --- Giveback --- */
.giveback { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.giveback__text h2 { color: var(--cream); margin-bottom: 1rem; }
.giveback__text p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 1.5rem; }
.giveback__stat { font-family: 'Anton', sans-serif; font-size: 3.5rem; color: var(--gold-light); }
.giveback__stat-label { font-family: 'Fraunces', serif; font-size: 1.1rem; color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .giveback { grid-template-columns: 1fr; }
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 4rem 0; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--ink); margin-bottom: 0.75rem; }
.cta-banner p { font-size: 1.1rem; color: var(--ink-mid); margin-bottom: 2rem; }

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer__brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 260px; }
.footer__col h4 { font-family: 'Anton', sans-serif; font-size: 1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0.05em; }
.footer__col a { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer__col a:hover { color: var(--gold-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
.footer__logo { height: 40px; width: auto; filter: brightness(0) invert(1); }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink-mid); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 2px solid var(--cream-dark); border-radius: var(--radius);
  font-family: 'Manrope', sans-serif; font-size: 1rem;
  background: var(--white); color: var(--ink);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* --- Alert / Toast --- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 1rem; }
.alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white); padding: 4rem 0 3.5rem; text-align: center;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto; }
