/* ============================================================
   Laligurans Nursery — design tokens
   Narrative: canopy at dawn (hero) -> terraced beds (product
   sections) -> grove at dusk (contact). One recurring signature:
   a stepped terrace edge, echoing Nepal's hillside terracing.
   ============================================================ */
:root {
  --ivory: #faf9f4;
  --pine: #16281c;
  --pine-soft: #24392a;
  --bloom: #e8405f;
  --bloom-deep: #c22e49;
  --bloom-tint: #fbdee2;
  --ink: #16281c;
  --ink-soft: #5c6455;
  --line: #e2e0d2;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; color: var(--pine); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bloom);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--bloom); display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
  font-style: italic;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--bloom); }
.nav-menu .btn { margin-left: 4px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--pine);
  font-size: 1.6rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu.open { display: flex; }
}

/* ---------- Hero: forest canopy at dawn ---------- */
.hero {
  background: var(--pine);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0 0;
}
.hero-topo {
  position: absolute; inset: 0;
  opacity: 0.16;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 90px;
}
.hero .eyebrow { color: #cddbc4; }
.hero .eyebrow::after { background: var(--bloom); }
.hero h1 {
  color: #fff;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero p {
  color: #c7d1bd;
  max-width: 460px;
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark { width: 100%; max-width: 280px; justify-self: end; }

.terrace { display: block; width: 100%; height: 46px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 160px; justify-self: start; opacity: 0.5; }
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--bloom); color: #fff; }
.btn-primary:hover { background: var(--bloom-deep); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; }

/* ---------- Page banner: lightweight hero for inner pages ---------- */
.page-banner {
  background: var(--pine);
  color: #fff;
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.page-banner .container { position: relative; padding-bottom: 50px; }
.page-banner .eyebrow { color: #cddbc4; }
.page-banner .eyebrow::after { background: var(--bloom); }
.page-banner h1 {
  color: #fff;
  font-style: italic;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 8px;
}
.page-banner p { color: #c7d1bd; max-width: 520px; }

/* ---------- Category tiles (Home page) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tile {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-3px); border-color: var(--bloom); }
.tile-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bloom-deep);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.tile h3 { font-style: italic; font-size: 1.3rem; margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0; }
.tile-arrow { color: var(--bloom-deep); font-weight: 600; font-size: 0.85rem; margin-top: 14px; display: inline-block; }

/* ---------- Featured strip (Home page) ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.section { padding: 84px 0; }
.section-head { max-width: 600px; margin-bottom: 40px; }
.section-head h2 { font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-grid h2 { font-style: italic; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.about-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.about-facts li { padding-left: 20px; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.about-facts li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--bloom); border-radius: 50%;
}
.about-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pine-soft), var(--pine));
  position: relative;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Product grid: clean editorial cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.card {
  background: transparent;
  display: flex;
  flex-direction: column;
}
.card-img {
  aspect-ratio: 4/3;
  background: var(--line) center/cover no-repeat;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}
.card-img > div { width: 100%; height: 100%; background: inherit; transition: transform 0.35s ease; }
.card:hover .card-img { transform: none; }
.card:hover .card-img > div { transform: scale(1.04); }
.card-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pine);
  background: rgba(250,249,244,0.9);
  padding: 4px 9px;
}
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.08rem; font-style: italic; margin-bottom: 6px; }
.card-desc { color: var(--ink-soft); font-size: 0.88rem; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 10px;
}
.price { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.btn-buy {
  color: var(--bloom-deep);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-buy::after { content: " →"; transition: margin 0.15s ease; }
.btn-buy:hover::after { margin-left: 3px; }

.empty-state {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-style: italic;
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line);
}

/* ---------- Contact: grove at dusk ---------- */
.contact-section { background: var(--pine); color: #fff; }
.contact-section .eyebrow { color: #cddbc4; }
.contact-section .eyebrow::after { background: var(--bloom); }
.contact-section h2 { color: #fff; font-style: italic; }
.contact-section .section-head p { color: #c7d1bd; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-row {
  display: flex;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: baseline;
}
.contact-row:first-child { border-top: 1px solid rgba(255,255,255,0.12); }
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fac91;
  width: 96px;
  flex-shrink: 0;
}
.contact-row a, .contact-row span.value { text-decoration: none; color: #fff; font-weight: 600; }
.contact-row a:hover { color: var(--bloom); }
.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  filter: grayscale(0.3) brightness(0.92);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine);
  color: #8d9a7f;
  padding: 26px 28px 40px;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  z-index: 60;
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-pulse 2.6s ease-in-out infinite; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 22px rgba(0,0,0,0.28), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Admin (kept minimal, unchanged priority) ---------- */
.admin-wrap { max-width: 720px; margin: 60px auto; padding: 0 24px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 80px; }
.admin-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.admin-row:last-child { border-bottom: none; }
.link-btn { background: none; border: none; color: var(--bloom-deep); font-weight: 600; cursor: pointer; }
.msg { font-size: 0.85rem; margin-top: 10px; }
.msg.error { color: var(--bloom-deep); }
.msg.ok { color: var(--pine-soft); }
