/*
Theme Name: Hariyali
Theme URI: https://hariyali.online
Author: Hariyali Team
Description: Custom theme for Hariyali - indoor plant guides for small Indian apartments. Built from the team's Figma design.
Version: 1.0
Text Domain: hariyali
*/

:root {
  --green-900: #263829;
  --green-800: #32572c;
  --green-100: #edf0e5;
  --cream: #faf9f4;
  --muted: #70776b;
  --accent-light: #eaef9b;
  --border: #dfe3d7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green-800);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 80px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }

/* ---- Loading screen ---- */
#hariyali-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
#hariyali-loader img { width: 220px; height: auto; }
#hariyali-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---- Announcement ---- */
.announcement {
  background: var(--green-100);
  color: var(--green-800);
  text-align: center;
  font-size: 12px;
  padding: 10px 24px;
}

/* ---- Navigation ---- */
.site-header { background: var(--cream); }
.main-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.main-nav .logo img { height: 35px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--green-800); }
.nav-links a:hover { opacity: .75; }
.nav-tools { display: flex; align-items: center; gap: 24px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---- Hero ---- */
.hero {
  display: flex; gap: 64px; align-items: center;
  padding: 53px 0 48px;
}
@media (max-width: 900px) { .hero { flex-direction: column; } }
.hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .06em; color: var(--green-800); margin: 0; }
.hero-copy h1 { font-size: 56px; line-height: 1.1; font-weight: 400; margin: 0; color: var(--green-800); }
.hero-copy p.lead { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 430px; margin: 0; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 24px;
  background: var(--green-800); color: var(--cream);
  padding: 16px 24px; border-radius: 4px; font-size: 14px; font-weight: 500;
  width: fit-content; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: .9; }
.reassurance { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.reassurance .icon { width: 18px; height: 18px; color: var(--green-800); }

.hero-media { position: relative; flex: 0 0 auto; width: 100%; max-width: 640px; border-radius: 6px; overflow: hidden; }
.hero-media img { width: 100%; height: 532px; object-fit: cover; }
.hero-note {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--cream); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 4px; font-size: 12px; color: var(--green-800);
}

/* ---- Promises bar ---- */
.promises {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; padding: 36px 80px;
  flex-wrap: wrap; gap: 20px;
}
@media (max-width: 900px) { .promises { padding: 24px; justify-content: center; } }
.promise { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.promise .icon { width: 24px; height: 24px; color: var(--green-800); }

/* ---- Section heading ---- */
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-intro h2 { font-size: 34px; font-weight: 400; margin: 12px 0 0; line-height: 1.2; color: var(--green-800); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.text-link .icon { width: 20px; height: 20px; }

section.block { padding: 72px 0; }
section.block.tight-top { padding-top: 24px; }
section.alt-bg { background: var(--green-100); }

/* ---- Guide / plant grid ---- */
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card .thumb { position: relative; border-radius: 6px; overflow: hidden; height: 320px; margin-bottom: 16px; }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--cream); font-size: 10px; padding: 6px 10px; border-radius: 4px; color: var(--green-800); }
.guide-card .details { display: flex; gap: 10px; align-items: flex-start; }
.guide-card h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; color: var(--green-800); }
.guide-card .meta { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.guide-card .tag { font-size: 14px; color: var(--green-800); margin: 0; }
.go-link { flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.go-link .icon { width: 16px; height: 16px; }

/* ---- Category grid ---- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: 1fr; } }
.category-card .thumb { height: 224px; border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-card .row { display: flex; gap: 12px; align-items: center; }
.category-card h3 { font-size: 20px; font-weight: 400; margin: 0 0 8px; color: var(--green-800); }
.category-card p { font-size: 13px; color: var(--muted); margin: 0; }
.category-card .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- Brand story ---- */
.story { display: flex; gap: 80px; align-items: center; }
@media (max-width: 900px) { .story { flex-direction: column; } }
.story .photo { flex: 0 0 auto; width: 100%; max-width: 568px; height: 404px; border-radius: 6px; overflow: hidden; }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }
.story .copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.story h2 { font-size: 34px; font-weight: 400; margin: 12px 0 0; line-height: 1.2; color: var(--green-800); }
.story p.lead { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.care-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.care-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.care-list .icon { width: 18px; height: 18px; color: var(--green-800); }

/* ---- Trust row (replaces testimonials) ---- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card h3 { font-size: 17px; margin: 0 0 12px; color: var(--green-800); }
.trust-card p { font-size: 15px; line-height: 1.65; color: var(--green-900); margin: 0; }

/* ---- Newsletter ---- */
.newsletter { display: flex; gap: 80px; align-items: center; padding: 48px 0; flex-wrap: wrap; }
.newsletter-copy { flex: 1; min-width: 260px; }
.newsletter-copy h2 { font-size: 30px; font-weight: 400; margin: 0 0 12px; color: var(--green-800); }
.newsletter-copy p { font-size: 14px; color: var(--muted); margin: 0; }
.newsletter-form { flex: 0 0 auto; width: 100%; max-width: 488px; }
.email-field {
  background: var(--cream); border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; height: 52px;
}
.email-field input { border: none; background: transparent; font-size: 14px; color: var(--muted); flex: 1; outline: none; font-family: inherit; }
.email-field button {
  background: var(--green-800); color: var(--cream); border: none; border-radius: 4px;
  display: flex; align-items: center; gap: 8px; padding: 0 20px; height: 40px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.email-field .icon { width: 16px; height: 16px; }
.newsletter-note { font-size: 11px; color: var(--muted); margin: 12px 0 0; }

/* ---- Footer ---- */
.site-footer { background: var(--green-800); color: var(--cream); padding: 56px 0 24px; }
.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.65; margin: 0; }
.social-links { display: flex; gap: 16px; }
.social-links .icon { width: 20px; height: 20px; }
.footer-group { width: 220px; display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.footer-group .title { color: var(--accent-light); font-weight: 500; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 0 0 24px; }
.legal { display: flex; justify-content: space-between; font-size: 11px; flex-wrap: wrap; gap: 12px; }
.legal .policies { display: flex; gap: 24px; }

/* generic inner-page content (non-front-page) */
.content-page { padding: 72px 0; min-height: 40vh; }
.content-page h1 { font-size: 40px; color: var(--green-800); font-weight: 400; }
