/* NuTree — site styles */
:root {
  --green: #2d8c24;
  --green-dark: #1f6a18;
  --forest: #12320f;
  --leaf: #a8d63a;
  --brown: #5d3e0f;
  --cream: #f6f4ec;
  --paper: #ffffff;
  --ink: #1d2419;
  --muted: #5b6455;
  --line: #e3e0d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 50, 15, .10);
  --wrap: 1180px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Open Sans", 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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--forest); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Top bar */
.topbar { background: var(--forest); color: #d9e8cf; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--leaf); }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; fill: var(--leaf); flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand img { height: 58px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--brown); text-decoration: none; font-weight: 600;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.nav a:hover { color: var(--green); background: #eef6ea; }
.nav a[aria-current="page"] { color: #fff; background: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--forest); margin: 6px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
  .nav a { border-radius: 10px; padding: 13px 14px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .topbar .wrap { justify-content: center; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  font-size: 15px; letter-spacing: .03em; cursor: pointer; transition: .2s;
  font-family: var(--font-body);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--forest); border-color: #fff; }

/* Hero slider */
.hero { position: relative; height: min(82vh, 680px); min-height: 440px; overflow: hidden; background: var(--forest); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,30,8,.78) 0%, rgba(10,30,8,.45) 50%, rgba(10,30,8,.1) 100%); pointer-events: none; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-content .eyebrow { color: var(--leaf); }
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 78px); margin-bottom: .35em; max-width: 12ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); padding: 0; overflow: hidden; cursor: pointer; background: none; opacity: .65; transition: .2s; }
.hero-dots button img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots button.active, .hero-dots button:hover { opacity: 1; border-color: var(--leaf); }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }

/* Sections */
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: #e7f0e1; }
.section--forest h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .section { padding: 64px 0; } }

.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li { position: relative; padding-left: 36px; margin-bottom: 14px; color: #3e4638; }
.benefits li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: #e5f2df url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232d8c24' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6z'/%3E%3C/svg%3E") center/15px no-repeat;
}
.lead { font-size: 19px; color: #2f372b; }

.logo-card { background: radial-gradient(circle at 50% 40%, #f0f8e8 0%, #fff 70%); border-radius: 24px; padding: clamp(20px, 5vw, 40px); box-shadow: var(--shadow); grid-template-columns: minmax(0, 1fr); }
.logo-card img { max-width: 100%; height: auto; }

/* Video */
.video-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); background: #000; }
.video-frame video { width: 100%; height: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.step figure { margin: 0; position: relative; aspect-ratio: 4/3; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.step:hover figure img { transform: scale(1.05); }
.step-num { position: absolute; top: 14px; left: 14px; background: var(--green); color: #fff; font-family: var(--font-head); font-weight: 700; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.step .body { padding: 22px 24px 26px; }
.step h3 { font-size: 21px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Why NuTree */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 24px; }
.why-item svg { width: 40px; height: 40px; fill: var(--leaf); margin-bottom: 16px; }
.why-item .label { display: flex; justify-content: space-between; font-weight: 700; color: #fff; font-size: 18px; margin-bottom: 12px; }
.why-item .label b { color: var(--leaf); }
.bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--leaf)); border-radius: 99px; transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.why.in .bar i { width: 100%; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Page banner */
.page-hero { position: relative; padding: 90px 0 80px; color: #fff; background: var(--forest) url("../img/page-banner.jpg") center/cover; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,8,.92), rgba(18,50,15,.72)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 6vw, 60px); margin: 0; letter-spacing: .02em; }
.crumbs { font-size: 14px; color: #bcd3b1; margin-top: 10px; }
.crumbs a { color: var(--leaf); text-decoration: none; }

/* Tabs */
.tabs { display: inline-flex; background: var(--cream); padding: 6px; border-radius: 999px; gap: 4px; margin-bottom: 36px; }
.tabs button { border: 0; background: none; padding: 11px 26px; border-radius: 999px; font: 700 15px var(--font-body); color: var(--brown); cursor: pointer; letter-spacing: .04em; }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(45,140,36,.3); }
.tabpanel[hidden] { display: none; }

/* Gallery */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; position: relative; break-inside: avoid; background: var(--cream); }
.gallery img { width: 100%; height: auto; transition: transform .5s, filter .3s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10,30,8,.55)); opacity: 0; transition: .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:hover::after { opacity: 1; }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.videos figure { margin: 0; }
.videos .video-frame { aspect-ratio: 9 / 12; display: grid; place-items: center; }
.videos video { width: 100%; height: 100%; object-fit: contain; }
.videos figcaption { margin-top: 10px; font-weight: 600; color: var(--brown); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,6,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--green); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #cfe0c6; font-size: 14px; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Application method */
.method-steps { display: grid; gap: 30px; }
.method-step { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.method-step img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.method-step .body { padding: 26px 30px 26px 0; }
.method-step .tag { font-family: var(--font-head); font-size: 15px; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.method-step p { font-size: 22px; font-family: var(--font-head); color: var(--forest); margin: 6px 0 0; line-height: 1.35; }
@media (max-width: 760px) { .method-step { grid-template-columns: 1fr; gap: 0; } .method-step .body { padding: 22px 24px 26px; } }

.callout { background: #f1f8ec; border-left: 5px solid var(--green); padding: 26px 30px; border-radius: 0 var(--radius) var(--radius) 0; color: #2f372b; }
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.schedule .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.schedule svg { width: 34px; height: 34px; fill: var(--green); margin-bottom: 12px; }
.schedule .card p:last-child { margin: 0; }
@media (max-width: 860px) { .schedule { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 16px var(--font-body); color: var(--ink); background: #fff; transition: .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(45,140,36,.12); }
.form textarea { min-height: 170px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.address-card { background: var(--cream); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 20px; }
.address-card h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.address-card h3 svg { width: 22px; height: 22px; fill: var(--green); }
.address-card p { margin: 0 0 .4em; }
.address-card a { text-decoration: none; font-weight: 600; }
.map { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; }

/* Footer */
.site-footer { background: #0c230a; color: #b9cdb0; padding: 56px 0 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 70px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d9e8cf; text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 14px; margin-top: 10px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
