/* ==========================================================
   Green Gardens: main stylesheet
   ========================================================== */

:root {
	--c-ink: #11231e;
	--c-text: #162c25;
	--c-muted: #405a52;
	--c-bg: #ffffff;
	--c-tint: #f0f4f3;
	--c-line: #d9e1df;
	--c-accent: #2d5b4e;        /* the green from the Green Gardens logo */
	--c-accent-dark: #204037;
	--c-light: #ffffff;

	--font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Playfair Display", "Noto Serif JP", Georgia, serif;

	--header-h: 72px;
	--radius: 14px;
	--container: 1160px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--c-ink); line-height: 1.3; font-weight: 500; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 780px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 14px 34px;
	border: 1px solid var(--c-accent);
	border-radius: 999px;
	background: var(--c-accent);
	color: #fff;
	font-size: 14px;
	letter-spacing: .06em;
	transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: transparent; color: var(--c-accent); }
.btn--small { padding: 8px 22px; }
.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	padding: 0 clamp(16px, 3vw, 40px);
	color: #fff;
	transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid {
	background: rgba(255, 255, 255, .96);
	color: var(--c-ink);
	box-shadow: 0 1px 0 var(--c-line);
	backdrop-filter: blur(8px);
}
.site-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .04em; }

.site-nav__list { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav__list a { position: relative; padding: 4px 0; }
.site-nav__list a:not(.btn)::after {
	content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: center;
	transition: transform .3s var(--ease);
}
.site-nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.site-header:not(.is-solid) .btn--small { border-color: #fff; background: transparent; color: #fff; }
.site-header:not(.is-solid) .btn--small:hover { background: #fff; color: var(--c-accent); }

.menu-toggle {
	display: none; align-items: center; gap: 10px;
	background: none; border: 0; color: inherit; font: inherit; font-size: 12px; letter-spacing: .15em; cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 6px; width: 26px; }
.menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-open .menu-toggle__bars i:first-child { transform: translateY(3.75px) rotate(20deg); }
.menu-open .menu-toggle__bars i:last-child { transform: translateY(-3.75px) rotate(-20deg); }

@media (max-width: 1240px) {
	.menu-toggle { display: inline-flex; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; background: var(--c-accent-dark); color: #fff;
		display: grid; place-items: center;
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.menu-open .site-nav { opacity: 1; visibility: visible; }
	.menu-open .site-header, .menu-open .site-header.is-solid { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
	.site-nav__list { flex-direction: column; gap: 22px; font-size: 20px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; display: grid; align-items: end;
	color: #fff; overflow: hidden; background: var(--c-accent-dark);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 22, .35), rgba(10, 28, 22, .78)); }
.hero__inner { position: relative; width: min(100% - 40px, var(--container)); margin: 0 auto; padding: 0 0 12vh; }
.hero__eyebrow { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; }
.hero__title { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 6vw, 72px); margin-bottom: 20px; }
.hero__text { max-width: 520px; opacity: .9; }
.hero__scroll {
	position: absolute; right: 28px; bottom: 28px; writing-mode: vertical-rl;
	font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll::after {
	content: ""; display: block; width: 1px; height: 54px; margin: 10px auto 0; background: #fff;
	animation: scrollLine 2s var(--ease) infinite; transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gallery-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 700px) {
	.gallery-strip { grid-template-columns: repeat(2, 1fr); }
	.gallery-strip img:nth-child(n+5) { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section--tint { background: var(--c-tint); }
.section__label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 14px; }
.section__label--light { color: rgba(255, 255, 255, .8); }
.section__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 4vw, 44px); margin-bottom: 36px; }
.section__title--light { color: #fff; }

/* Message */
.message__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.message__body p { margin-bottom: 28px; }
.message__image img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 800px) { .message__grid { grid-template-columns: 1fr; } }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 44px; }
.service-card { background: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(17, 35, 30, .07); }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card ul { margin-top: 22px; display: grid; gap: 14px; }
.service-card li { padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 15px; }
.service-card li strong { display: block; color: var(--c-ink); font-weight: 600; }
@media (max-width: 800px) { .services__grid { grid-template-columns: 1fr; } }

/* Features */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 70px; }
.feature-card { display: block; padding: 32px; border: 1px solid var(--c-line); border-radius: var(--radius); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--c-accent); box-shadow: 0 16px 36px rgba(45, 91, 78, .16); }
.feature-card__num { font-family: var(--font-serif); font-size: 40px; color: var(--c-accent); display: block; margin-bottom: 8px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.features__subtitle { font-size: 20px; margin-bottom: 26px; }
@media (max-width: 800px) { .features__grid { grid-template-columns: 1fr; } }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.counter { padding-top: 18px; border-top: 2px solid var(--c-accent); }
.counter__value { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--c-ink); margin-bottom: 10px; }
.counter__value small { font-family: var(--font-sans); font-size: 14px; margin-left: 6px; color: var(--c-muted); }
.counter__label { font-size: 14px; color: var(--c-muted); }
@media (max-width: 900px) { .counters { grid-template-columns: repeat(2, 1fr); } }

/* Marquee */
.partners .section__title { margin-bottom: 44px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 20px; padding-right: 20px; }
.marquee__logo {
	display: grid; place-items: center; width: 180px; height: 80px;
	background: #fff; border: 1px solid var(--c-line); border-radius: 10px;
	font-size: 13px; letter-spacing: .15em; color: var(--c-muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Works */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-block; padding: 8px 18px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 13px; transition: all .25s var(--ease); }
.chip:hover, .chip.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.filter { margin-bottom: 8px; }
.filter__label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 10px; }
.filter .chips { margin-bottom: 22px; }

.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.work-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(17, 35, 30, .08); transition: transform .35s var(--ease); }
.work-card:hover { transform: translateY(-6px); }
.work-card__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.06); }
.work-card__body { padding: 22px; }
.work-card__body h3 { font-size: 18px; margin-bottom: 8px; }
.work-card__body p { font-size: 14px; color: var(--c-muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li, .tags a { display: inline-block; padding: 3px 12px; background: var(--c-tint); border-radius: 999px; font-size: 12px; color: var(--c-muted); }
@media (max-width: 1000px) { .works__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .works__grid { grid-template-columns: 1fr; } }

/* News */
.news__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.news__list li { border-bottom: 1px solid var(--c-line); }
.news__list a { display: flex; gap: 28px; padding: 20px 0; transition: padding-inline-start .3s var(--ease), color .3s var(--ease); }
.news__list a:hover { padding-inline-start: 12px; color: var(--c-accent); }
.news__list time { flex: none; color: var(--c-muted); font-size: 14px; }
@media (max-width: 800px) {
	.news__grid { grid-template-columns: 1fr; gap: 24px; }
	.news__list a { flex-direction: column; gap: 4px; }
}

/* Recruit */
.recruit {
	padding: clamp(80px, 12vw, 150px) 0; color: #fff;
	background: linear-gradient(rgba(32, 64, 55, .86), rgba(32, 64, 55, .86)), url("../images/banners/banner-3.webp") center / cover no-repeat;
}
.recruit__inner p { max-width: 520px; margin-bottom: 32px; opacity: .9; }

/* CTA */
.cta { padding: 0; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; transform: translateY(-1px); }
.cta__card { padding: 48px 40px; background: var(--c-tint); border: 1px solid var(--c-line); transition: background .3s var(--ease); }
.cta__card:hover { background: #e3ebe8; }
.cta__card h3 { font-size: 24px; margin-bottom: 10px; }
.cta__card p { margin-bottom: 22px; color: var(--c-muted); font-size: 15px; }
@media (max-width: 700px) { .cta__grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--c-accent-dark); color: rgba(255, 255, 255, .8); padding: 64px 0 28px; font-size: 14px; }
.site-footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__logo { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer__list { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.site-footer__list a:hover { color: #fff; }
.site-footer__copy { text-align: center; margin: 48px 0 0; font-size: 12px; opacity: .6; }

/* ---------- Inner pages ---------- */
.page-head { padding: calc(var(--header-h) + 60px) 0 50px; background: var(--c-accent); color: #fff; }
.page-head .section__label, .page-head .section__label a { color: rgba(255, 255, 255, .8); }
.page-head__title { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 5vw, 52px); margin-bottom: 0; }
.entry > * + * { margin-top: 1.2em; }
.entry img { border-radius: var(--radius); }
.single-work__img { margin-bottom: 36px; }
.single-work__img img { width: 100%; border-radius: var(--radius); }
.news__list--page { margin-bottom: 40px; }

/* Pagination */
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 8px; }
.pagination .page-numbers.current { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.marquee__track, .hero__scroll::after { animation: none; }
}
