/* =========================================================
   DairyCare.Dusuq — Global stylesheet
   Brand colours: dairy green + warm gold + cream
   ========================================================= */

:root {
  --green-900: #133b22;
  --green-700: #1f6b3b;
  --green-500: #2e9c5a;
  --green-100: #e7f5ec;
  --gold-500: #f0b400;
  --gold-100: #fff6dc;
  --cream:    #fffdf6;
  --ink-900:  #11221a;
  --ink-700:  #2c3a30;
  --ink-500:  #5b6a60;
  --line:     #e3e8e2;
  --white:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 34, 26, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 34, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 34, 26, 0.12);
  --radius:   14px;
  --radius-lg: 22px;
  --max:      1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--ink-700); }
a  { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }
img { max-width: 100%; display: block; }

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

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: var(--ink-900);
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid; place-items: center; color: white; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-700); font-weight: 500; font-size: 0.95rem;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--green-700); }
.nav-cta {
  background: var(--green-700); color: white !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--green-900); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink-900); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--ink-900);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; right: 0; left: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all .2s ease;
  }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 80% 0%, var(--gold-100) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, var(--green-100) 0%, transparent 50%),
    var(--cream);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  color: var(--ink-700); font-weight: 500; box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(46,156,90,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,156,90,.18); }
  50%      { box-shadow: 0 0 0 9px rgba(46,156,90,.04); }
}

.hero h1 .accent { color: var(--green-700); }
.hero p.lead {
  font-size: 1.15rem; max-width: 560px; color: var(--ink-700);
}

.early-form {
  background: white; padding: 28px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  margin-top: 24px;
}
.early-form h3 { margin-bottom: 6px; }
.early-form .sub { font-size: .92rem; color: var(--ink-500); margin-bottom: 18px; }
.field {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; background: var(--cream);
  transition: border-color .15s ease, background .15s ease;
}
.field:focus-within { border-color: var(--green-500); background: white; }
.field .icon { color: var(--ink-500); flex-shrink: 0; }
.field input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 1rem; color: var(--ink-900); font-family: inherit;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-700); color: white; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  width: 100%; font-family: inherit;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-900); transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); }
.btn-gold:hover { background: #d99c00; }
.form-note {
  font-size: .8rem; color: var(--ink-500); margin-top: 12px; text-align: center;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px;
  color: var(--ink-700); font-size: .92rem;
}
.trust div { display: flex; align-items: center; gap: 8px; }
.trust .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; flex-shrink: 0;
}

/* ---------- Hero illustration card ---------- */
.hero-card {
  position: relative; aspect-ratio: 4/4.4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-500), var(--green-900));
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(240,180,0,.25) 0%, transparent 35%);
}
.hero-card-inner {
  position: relative; z-index: 1; padding: 36px;
  display: flex; flex-direction: column; height: 100%; color: white;
}
.hero-stat {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 18px; margin-bottom: 12px;
}
.hero-stat .lbl { font-size: .8rem; opacity: .8; }
.hero-stat .val { font-size: 1.6rem; font-weight: 700; font-family: 'Poppins'; }
.hero-stat .delta { font-size: .85rem; color: var(--gold-100); }
.hero-card-spacer { flex: 1; }
.hero-card-quote {
  font-size: .95rem; font-style: italic; opacity: .85;
  border-left: 2px solid var(--gold-500); padding-left: 14px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: var(--green-700); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  background: white; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- Why / split section ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.list-checks { list-style: none; padding: 0; margin: 24px 0 0; }
.list-checks li {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-checks li:last-child { border-bottom: 0; }
.list-checks .ck {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-700); color: white;
  display: grid; place-items: center;
}
.list-checks h4 { margin: 0 0 4px; font-size: 1rem; }
.list-checks p  { margin: 0; font-size: .92rem; color: var(--ink-500); }

.image-card {
  background: linear-gradient(135deg, var(--gold-100), var(--green-100));
  border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid var(--line); aspect-ratio: 1/1;
  display: grid; place-items: center;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold-500) 0%, transparent 8%),
    radial-gradient(circle at 70% 60%, var(--green-500) 0%, transparent 10%),
    linear-gradient(135deg, var(--gold-100), var(--green-100));
  position: relative; overflow: hidden;
}
.image-card svg { width: 70%; height: auto; opacity: .9; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: white; padding: 64px 32px; border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,180,0,.28) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(46,156,90,.35) 0%, transparent 30%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 28px; }

/* ---------- Blog ---------- */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.post-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-100), var(--gold-100));
  display: grid; place-items: center; color: var(--green-700);
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: .82rem; color: var(--ink-500); margin-bottom: 10px; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink-900); }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p { font-size: .92rem; flex: 1; }
.post-tag {
  display: inline-block; background: var(--green-100); color: var(--green-700);
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500;
}

/* ---------- Article (single post) ---------- */
.article {
  max-width: 760px; margin: 0 auto; padding: 60px 24px;
}
.article header { margin-bottom: 40px; text-align: center; }
.article header .post-meta { justify-content: center; }
.article h1 { margin-bottom: 16px; }
.article-content {
  font-size: 1.08rem; color: var(--ink-700);
}
.article-content h2 { margin: 1.6em 0 .6em; }
.article-content h3 { margin: 1.4em 0 .5em; }
.article-content blockquote {
  border-left: 3px solid var(--green-500);
  padding: 6px 22px; margin: 1.5em 0; color: var(--ink-700);
  background: var(--green-100); border-radius: 0 8px 8px 0;
}
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li { margin-bottom: .4em; }
.article-content code {
  background: var(--green-100); padding: 2px 6px; border-radius: 4px;
  font-family: Menlo, monospace; font-size: .92em;
}

/* ---------- Forms (about/contact pages) ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: white; padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-form .field { margin-bottom: 16px; }
.contact-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px; font-family: inherit; font-size: 1rem;
  min-height: 140px; resize: vertical; outline: none; background: var(--cream);
  color: var(--ink-900);
}
.contact-form textarea:focus { border-color: var(--green-500); background: white; }

.contact-info { padding-top: 8px; }
.info-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.info-item .icon-tile {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center;
}
.info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.info-item p, .info-item a { margin: 0; font-size: .95rem; color: var(--ink-700); }

.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px;
  background: white; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-700);
  transition: all .2s ease;
}
.socials a:hover {
  background: var(--green-700); color: white; border-color: var(--green-700);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900); color: rgba(255,255,255,.75);
  padding: 64px 0 32px; margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .logo { color: white; }
.footer h4 { color: white; font-size: .9rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: .85rem;
}
.footer-bottom .socials a {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}
.footer-bottom .socials a:hover { background: var(--gold-500); color: var(--ink-900); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px);
  background: var(--ink-900); color: white; padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; font-size: .95rem;
  transition: transform .3s ease;
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { background: var(--green-700); }
.toast.error   { background: #b3261e; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.bg-green-soft { background: var(--green-100); }
.bg-cream { background: var(--cream); }
.divider { height: 1px; background: var(--line); margin: 60px 0; }
