/* ===========================================================
   NS Gardens
   The logo is the sky & horizon. The page is the ground that
   grows out of its lawn — descending into deeper garden shade
   and dark earth. Everything flows from the logo.
   =========================================================== */

:root {
  /* Greens & earth, sampled from the logo's lawn and hedges */
  --ground:      #34512c;   /* lawn green the logo fades into */
  --green:       #2e4827;
  --green-deep:  #243a20;
  --shade:       #1c2f1c;
  --earth:       #14241a;

  /* Warm accents from the sunset, used sparingly */
  --gold:        #f3c46a;
  --gold-soft:   #ffe2a8;
  --ember:       #e08a3c;

  --cream:       #f7efe0;
  --muted:       #cfd9c2;   /* soft sage text */
  --line:        rgba(255, 252, 244, 0.14);

  --radius: 16px;
  --maxw:   1120px;
  --shadow: 0 20px 50px rgba(8, 16, 8, 0.38);
  --panel:  0 14px 40px rgba(8, 16, 8, 0.30);
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;

  /* The ground: continues from the logo's lawn down into earth */
  background:
    linear-gradient(180deg,
      #34512c 0%,     /* lawn green — matches logo foreground */
      #2f4a28 12%,
      #294122 30%,
      #243a20 48%,
      #1f331e 66%,
      #1a2c1b 83%,
      #14241a 100%    /* dark earth (footer) */
    );
}

/* faint sunset warmth spilling down over the top of the ground */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(240, 170, 90, 0.12), transparent 68%);
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: clamp(60px, 9vw, 116px) 0; position: relative; z-index: 2; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem;
  font-weight: 600; color: var(--gold); margin-bottom: 14px;
}
.section__head { max-width: 640px; margin-bottom: 50px; }
.section__sub { color: var(--muted); margin-top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  padding: 13px 27px; border-radius: 999px; border: none; color: #2a1a0c;
  background: linear-gradient(135deg, #ffd27e, #e89a44);
  box-shadow: 0 10px 24px rgba(225, 150, 60, 0.28);
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 14px 30px rgba(225, 150, 60, 0.4); }
.btn--ghost {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 215, 0.4);
}
.btn--ghost:hover { background: rgba(255, 248, 235, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255,240,215,0.7); }
.btn--small { padding: 9px 19px; font-size: 0.86rem; }
.btn--block { width: 100%; padding: 15px; font-size: 1rem; }

/* ===========================================================
   Navigation — transparent over the logo, solid after scroll
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(15, 12, 8, 0.42), rgba(15, 12, 8, 0));
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.is-scrolled {
  background: rgba(22, 35, 23, 0.82); backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; }
.brand__word {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.18rem; color: var(--cream);
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease;
}
.nav.is-scrolled .brand__word { opacity: 1; transform: none; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: 0.95rem; }
.nav__links a { color: var(--cream); opacity: .9; transition: opacity .2s, color .2s; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.nav__links a:hover { opacity: 1; color: var(--gold-soft); }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav__toggle span { width: 26px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s; }

/* ===========================================================
   Hero — the logo is the header
   =========================================================== */
.hero { position: relative; z-index: 2; margin-top: -66px; /* logo runs under the transparent nav */ }
.hero__banner { position: relative; width: 100%; line-height: 0; }
.hero__logo {
  width: 100%; max-height: 92vh; object-fit: cover; object-position: center 45%; display: block;
}
/* soften the very bottom edge of the logo into the ground */
.hero__banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22%;
  background: linear-gradient(180deg, transparent, var(--ground));
  pointer-events: none;
}

/* live grass sprouting from the logo's lawn into the page */
.hero__seam {
  position: relative; z-index: 3; margin-top: -34px; height: 50px;
  display: flex; align-items: flex-end;
}
.hero__content {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: 6px 0 clamp(40px, 7vw, 84px);
}
.hero__content h1 { color: #fff; }
.hero__lead { font-size: clamp(1.04rem, 1.9vw, 1.22rem); color: var(--muted); margin: 20px auto 0; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; justify-content: center; }

/* ===========================================================
   Swaying grass (shared: hero seam + footer)
   =========================================================== */
.grass {
  width: 100%; height: 50px; display: flex; align-items: flex-end; justify-content: space-around;
}
.grass span {
  width: 8px; height: 40px; transform-origin: bottom center;
  background: linear-gradient(180deg, #4e7f3a, var(--ground));
  border-radius: 50% 50% 0 0 / 92% 92% 0 0;
  animation: sway 4s ease-in-out infinite;
}
.grass span:nth-child(even) { height: 50px; animation-duration: 5s; }
.grass span:nth-child(3n)   { height: 33px; animation-duration: 3.4s; }
.grass span:nth-child(odd)  { animation-delay: -1.3s; }
.grass span:nth-child(3n+1) { animation-delay: -0.7s; }
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(5deg); }
}
.grass--dark span { background: linear-gradient(180deg, #2f5230, #10261a); }

/* ===========================================================
   Drifting fireflies / pollen (subtle, lower garden)
   =========================================================== */
.fireflies { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.firefly {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #fff3cc, #f2c873 60%, transparent 72%);
  box-shadow: 0 0 7px 1px rgba(245, 205, 120, 0.45);
  opacity: 0; animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: .6; }
  50%  { transform: translateY(-48vh) translateX(20px); }
  88%  { opacity: .5; }
  100% { transform: translateY(-96vh) translateX(-14px); opacity: 0; }
}

/* ===========================================================
   About
   =========================================================== */
.about { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__body h2 { color: #fff; margin-top: 4px; }
.about__body p { color: var(--muted); margin-top: 16px; }
.about__body strong { color: var(--gold-soft); font-weight: 600; }

.frame {
  position: relative; border-radius: var(--radius); padding: 8px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.placeholder rect { fill: rgba(255,255,255,0.08); }
.placeholder text { fill: var(--muted); font-family: "Inter", sans-serif; font-size: 21px; font-weight: 500; text-anchor: middle; dominant-baseline: middle; }
.placeholder--tall { border-radius: 10px; width: 100%; }

.ticklist { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.ticklist li { position: relative; padding-left: 30px; font-weight: 500; color: var(--cream); }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(243, 196, 106, 0.16); color: var(--gold);
  border: 1px solid rgba(243, 196, 106, 0.45);
  font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
}

/* ===========================================================
   Service cards
   =========================================================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  box-shadow: var(--panel);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); border-color: rgba(243,196,106,0.35); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  margin-bottom: 16px; color: var(--gold);
  background: rgba(243, 196, 106, 0.12); border: 1px solid rgba(243, 196, 106, 0.25);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { color: #fff; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===========================================================
   Gallery
   =========================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); box-shadow: var(--panel);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery__item .placeholder { width: 100%; aspect-ratio: 1; }
.gallery__item figcaption {
  padding: 13px 17px; font-size: 0.93rem; font-weight: 500; color: var(--cream);
}

/* ===========================================================
   Contact
   =========================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 64px); align-items: start; }
.contact__intro h2 { color: #fff; }
.contact__intro p { color: var(--muted); margin-top: 14px; }
.contact__details { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact__details li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--cream); }
.contact__ico { width: 20px; text-align: center; }
.contact__details a:hover { color: var(--gold-soft); text-decoration: underline; }

.contact__form {
  padding: 30px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); box-shadow: var(--panel);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.87rem; font-weight: 600; margin-bottom: 7px; color: #fff; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; color: #fff;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.16);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247,239,224,0.45); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,0.11);
  box-shadow: 0 0 0 3px rgba(243,196,106,0.16);
}
.field textarea { resize: vertical; }
.form__note { text-align: center; font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.form__note a { color: var(--gold-soft); font-weight: 600; }

/* ===========================================================
   Footer
   =========================================================== */
.footer { position: relative; z-index: 2; padding: 84px 0 38px; color: var(--cream); }
.footer__grass { position: absolute; top: -46px; left: 0; right: 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer__logo { height: 54px; width: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.socials { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: 0.95rem; }
.socials a { color: var(--gold-soft); opacity: .9; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer__copy { width: 100%; font-size: 0.84rem; color: var(--muted); margin-top: 10px; opacity: .85; }

/* ===========================================================
   Scroll-reveal
   =========================================================== */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 18px; position: absolute;
    top: 66px; left: 0; right: 0; padding: 22px 24px;
    background: rgba(22, 35, 23, 0.96); backdrop-filter: blur(12px);
    margin-left: 0; box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 440px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cards, .gallery { grid-template-columns: 1fr; }
  .hero__logo { max-height: none; }
}

/* ===========================================================
   Respect reduced-motion preferences
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .firefly { display: none; }
}
