/* The home page (front-page.php). Colours only from colors.css. */

.home-main { overflow-x: clip; padding-bottom: 80px; } /* some white between the last panel and the footer (user, 2026-09-29) */

/* ---- the banner: framed to the site's width, the three advantages on the photo ---- */
.home-hero {
	position: relative; overflow: hidden;
	width: min(var(--sc-frame), 100% - 32px); margin: 18px auto 72px;
	height: min(52vh, 440px); min-height: 360px; border-radius: 12px;
}
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 28, 23, .6), rgba(20, 28, 23, .3) 30%, rgba(20, 28, 23, .08) 60%, rgba(20, 28, 23, .05)); }
.home-hero-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 16px 150px; text-align: center; color: #fff; }
.home-hero-text h1 { margin: 0 0 10px; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .45); } /* same shadow as .home-feat (user, 2026-09-30) */
.home-hero-text p { margin: 0; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .4); }
.home-feats { position: absolute; inset: auto 0 0 0; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; padding: 0 16px 34px; color: #fff; }
.home-feat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.home-feat-ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: 2px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.home-feat-ic svg { width: 22px; height: 22px; }
/* a shadow under the words, so they read on a light photo too (user, 2026-09-29) */
.home-feat h3 { margin: 0 0 2px; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .4); }
.home-feat p { margin: 0; color: #fff; font-size: .92rem; line-height: 1.5; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .4); }
@media (max-width: 900px) {
	.home-hero { height: auto; min-height: 560px; }
	/* the tall phone box shows only a slice of the wide banner: the left slice, where every banner has its plants
	   (the middle is only sea) — user, 2026-09-30 */
	.home-hero-img { object-position: 8% 50%; }
	.home-hero-text { padding-bottom: 260px; }
	.home-feats { grid-template-columns: 1fr; gap: 14px; padding-bottom: 22px; }
}
@media (max-width: 600px) {
	.home-hero { width: calc(100% - 24px); margin-top: 12px; }
	.home-hero-img { object-position: 50% 50%; } /* the phone file is already the left slice (front-page.php) */
	.home-hero-text h1 span { display: block; } /* "עולם / הסוקולנטים / והקקטוסים", a word per line (user, 2026-09-30) */
	.home-hero-text p { display: none; } /* phones: the headline alone (user, 2026-09-30) */
	.home-hero-text { justify-content: flex-start; padding-top: 40px; } /* the headline near the top of the photo (user) */
}

/* ---- sections ---- */
.home-sec { position: relative; isolation: isolate; padding: 120px 16px; }
.home-in { max-width: min(940px, 100%); margin: 0 auto; }
.home-in.is-wide { max-width: min(1400px, 100%); }
.home-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.home-head h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.15; }
.home-head p { margin: 12px 0 0; color: var(--sc-c-muted); font-size: 1.2rem; line-height: 1.6; }
.home-more { margin-top: 44px; text-align: center; }
.home-more.is-top { margin: -8px 0 44px; }
@media (max-width: 900px) { .home-sec { padding: 80px 16px; } }

/* the colour panels: the colour is drawn by ::before, which starts at the banner's width (the same calc as
   .home-hero) with its corners, and opens to the full width as --p goes 0 → 1 (home.js) */
.home-panel.is-a { --panel: var(--sc-c-band-a); }
.home-panel.is-b { --panel: var(--sc-c-band-b); }
.home-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--panel);
	--side: calc((100% - min(var(--sc-frame), 100% - 32px)) / 2);
	clip-path: inset(0 calc((1 - var(--p, 0)) * var(--side)) round calc((1 - var(--p, 0)) * 12px));
}
@media (max-width: 600px) { .home-panel::before { --side: 12px; } }
.home-panel .home-head p { color: color-mix(in srgb, var(--sc-c-ink) 72%, var(--panel)); }
/* buttons on a colour panel: white, so they don't melt into it (the hover stays the site's green) */
.home-panel { --sc-btn-bg: var(--sc-c-card); --sc-btn-fg: var(--sc-c-ink); }
.dark-mode .home-panel { --sc-btn-bg: var(--sc-c-soft); }

/* ---- the month in the garden ---- */
.home-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.home-tips li { line-height: 1.65; }
.home-tips li::before { counter-increment: tip; content: counter(tip); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%; background: var(--sc-c-card); color: var(--sc-c-primary); font-weight: 700; font-size: .9rem; }
.home-tips a { color: var(--sc-c-primary); font-weight: 600; }
.dark-mode .home-tips li::before { background: var(--sc-c-soft); } /* dark: the card colour = the panel colour */
@media (max-width: 900px) { .home-tips { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .home-tips { grid-template-columns: 1fr; } }
.home-bloom { margin-top: 56px; }
.home-sep { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 420px; margin: 0 auto 80px; color: var(--sc-c-accent); }
.home-sep::before, .home-sep::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--sc-c-ink) 22%, transparent); }
.home-bloom > h3 { margin: 0 0 32px; text-align: center; font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.15; }
.home-panel .sc-card h3 { color: #F6F3E9; } /* the names on the photos stay light */

/* ---- plants from the catalog: the Pinterest layout, the photos fitting into each other (the plugin deals them into
   columns, two full rows; user 2026-09-29: "as before") ---- */

/* ---- the members' plants ---- */
.home-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.home-photo { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--sc-r-photo); }
.home-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.home-photo:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .home-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .home-photos > :nth-child(n+4) { display: none; } }

/* ---- identify a plant ---- */
.home-id { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.home-id .home-head { margin: 0 0 24px; max-width: none; text-align: start; }
.home-steps { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.home-steps li { display: flex; gap: 10px; align-items: center; color: color-mix(in srgb, var(--sc-c-ink) 80%, var(--panel, var(--sc-c-bg))); }
.home-steps b { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sc-c-soft); color: var(--sc-c-ink); font-size: .9rem; box-shadow: 0 0 0 2px var(--sc-c-card); }
.home-id .sc-btn svg { vertical-align: -4px; }
.home-phone { position: relative; max-width: 380px; margin: 0 auto; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: 0 30px 60px var(--sc-c-shadow); }
.home-phone img { width: 100%; height: 100%; object-fit: cover; }
.home-result { position: absolute; inset: auto 16px 16px 16px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--sc-c-card) 95%, transparent); color: var(--sc-c-text); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.home-result small { color: var(--sc-c-muted); }
.home-result strong { display: block; color: var(--sc-c-ink); font-size: 1.1rem; }
.home-result span { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sc-c-accent); color: #fff; font-size: .82rem; font-weight: 700; }
@media (max-width: 900px) { .home-id { grid-template-columns: 1fr; } }
