/* =========================================================
   CÂY CẢNH HÀ THỦY – KHÔNG GIAN XANH
   CSS viết tay, mobile-first, không phụ thuộc thư viện ngoài
   ========================================================= */
:root {
  --green-900: #0f3d22;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --lime: #bef264;
  --zalo: #0068ff;
  --zalo-dark: #0052cc;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 76px; /* chừa chỗ thanh nút dưới đáy mobile */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  font: 800 16px/1.2 var(--font);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-zalo { background: var(--zalo); color: #fff; box-shadow: 0 6px 18px rgba(0, 104, 255, .35); }
.btn-zalo:hover { background: var(--zalo-dark); }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-light { background: #fff; color: var(--green-800); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }

.zalo-badge {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  color: var(--zalo);
  font: 900 10px/1 var(--font);
  letter-spacing: -.3px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand > span:last-child { min-width: 0; overflow: hidden; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  display: grid; place-items: center;
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-name { font-weight: 900; font-size: 17px; color: var(--green-800); white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; max-width: 100%; vertical-align: top; }
.header-actions { display: flex; gap: 8px; flex: none; }
.header .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; border-radius: 12px; box-shadow: none; }
.header-phone { display: none; }

/* ---------- Hero ---------- */
.hero-wrap { padding: 14px 0 8px; }
.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--green-800), var(--green-900));
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
}
.hero-media {
  order: -1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 65%;
  display: block;
}
.hero-content { padding: 22px 18px 26px; }
.hero-tag {
  display: inline-block; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px; font-weight: 700;
}
.hero h1 { font-size: clamp(28px, 7vw, 44px); font-weight: 900; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sub { margin-top: 10px; font-size: 16px; max-width: 520px; opacity: .95; }
.hero-actions { display: grid; gap: 10px; margin-top: 20px; max-width: 460px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; font-weight: 700; opacity: .95; }
.hero-trust span::before { content: "✓ "; color: var(--lime); }

/* ---------- Section chung ---------- */
.section { padding: 48px 0; content-visibility: auto; contain-intrinsic-size: auto 680px; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 22px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px; }
.section-head h2 { font-size: clamp(24px, 6vw, 34px); font-weight: 900; color: var(--green-900); }
.section-head p { margin-top: 8px; color: var(--muted); max-width: 640px; }

/* ---------- Thẻ 3 loại cỏ ---------- */
.grass-list { display: grid; gap: 18px; }
.grass-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.grass-main { position: relative; aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.grass-main img { width: 100%; height: 100%; object-fit: cover; }
.grass-label {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(15, 61, 34, .88); color: #fff;
  padding: 6px 12px; border-radius: 10px; font-weight: 900; font-size: 18px;
}
.grass-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.grass-thumbs button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; border-radius: 10px; cursor: zoom-in; background: var(--line); }
.grass-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.grass-body { padding: 14px 16px 18px; }
.grass-body p { color: var(--muted); margin-bottom: 14px; }
.grass-body .btn { width: 100%; }

/* ---------- Lưới ảnh ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; cursor: zoom-in; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
  color: #fff; font-weight: 800; font-size: 14px;
}
.gallery-cta { margin-top: 18px; display: flex; justify-content: center; }

/* ---------- Lưới sân vườn hoàn thiện ---------- */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.showcase .tile { aspect-ratio: 4 / 3; }
@media (min-width: 640px) {
  .showcase { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (min-width: 900px) {
  .showcase { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ---------- Dải ảnh vườn (cuộn ngang + nút bấm + kéo chuột) ---------- */
.strip-wrap { position: relative; }
.strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none; cursor: grab; user-select: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip .tile { flex: 0 0 72%; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.strip-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95); color: var(--green-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  font-size: 26px; font-weight: 900; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.strip-btn:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.strip-prev { left: 6px; }
.strip-next { right: 6px; }

/* ---------- 3 bước ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-600); color: #fff; font-weight: 900; font-size: 18px;
  display: grid; place-items: center;
}
.step h3 { font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.step b { color: var(--text); }
.steps-cta { margin-top: 18px; display: grid; gap: 10px; }

/* ---------- Form để lại số Zalo ---------- */
.lead-box {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff; border-radius: 24px; padding: 24px 18px; box-shadow: var(--shadow);
}
.lead-box h2 { font-size: clamp(22px, 6vw, 30px); font-weight: 900; }
.lead-box > p { margin-top: 8px; opacity: .9; }
.lead-form { margin-top: 18px; display: grid; gap: 12px; }
.lead-form label { font-weight: 800; font-size: 14px; }
.input {
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 2px solid transparent; border-radius: 14px;
  font: 800 20px/1.2 var(--font); color: var(--text); background: #fff;
}
.input:focus { outline: none; border-color: var(--lime); }
.input::placeholder { font-weight: 600; font-size: 16px; color: #a8a29e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: #fff;
  font: 700 14px/1 var(--font);
}
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--green-900); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; opacity: .8; text-align: center; }
.form-msg { display: none; padding: 14px; border-radius: 14px; font-weight: 700; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--green-50); color: var(--green-800); }
.form-msg.err { background: #fef2f2; color: #991b1b; }
.form-msg .btn { margin-top: 10px; width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #d1fae5; padding: 32px 0 28px; font-size: 15px; }
.footer-name { font-weight: 900; font-size: 18px; color: #fff; margin-bottom: 6px; }
.footer p + p { margin-top: 4px; }
.footer a { color: var(--lime); font-weight: 800; }

/* ---------- Thanh nút dưới đáy (mobile) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.bottom-bar .btn { min-height: 54px; font-size: 16px; padding: 8px 10px; }
.btn-call { background: var(--green-50); color: var(--green-800); border: 1.5px solid var(--green-100); }

/* ---------- Xem ảnh phóng to ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  flex-direction: column; background: rgba(0, 0, 0, .94); color: #fff;
}
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 10px; }
.lb-cap { font-weight: 800; font-size: 16px; }
.lb-close, .lb-nav {
  border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14);
  width: 44px; height: 44px; border-radius: 12px; font-size: 22px; line-height: 1;
}
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-bottom { padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); }
.lb-bottom .btn { width: 100%; max-width: 480px; margin: 0 auto; display: flex; }

/* ---------- Tablet & Desktop ---------- */
@media (min-width: 640px) {
  .grass-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .strip .tile { flex-basis: 40%; }
  .hero-actions { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .steps-cta { grid-template-columns: 1fr 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .lead-box { padding: 36px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .header-phone { display: inline-flex; }
  .section { padding: 72px 0; }
  .hero-wrap { padding: 24px 0 12px; }
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .hero-media { order: 0; aspect-ratio: auto; height: 100%; min-height: 440px; }
  .hero-bg { object-position: center 65%; }
  .hero-content { padding: 48px 44px; }
  .grass-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .strip .tile { flex-basis: 24%; }
  .lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
  .lead-wrap .lead-side img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
  .float-zalo { display: flex; }
}

.lead-side { display: none; }
@media (min-width: 900px) { .lead-side { display: block; } }

/* Nút Zalo nổi cho desktop */
.float-zalo {
  display: none; position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--zalo); color: #fff; align-items: center; justify-content: center;
  font: 900 15px/1 var(--font); box-shadow: 0 8px 24px rgba(0, 104, 255, .4);
  transition: transform .15s ease;
}
.float-zalo:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
