/* Homepage "cinema" look: continues the dark, large-type language of the
   opening scroll scenes through the rest of the page. Scoped to main.hm-home. */

main.hm-home {
 color-scheme: dark;

 --star-green: #4CD980;
 --star-red: #FF6B6B;
 --star-yellow: #F0C040;
 --star-blue: #6BA3E8;
 --ds-dark: #4A8FD4;

 --bg: #070B14;
 --bg2: #0A101C;
 --bg3: #0D1524;
 --surface: #111A2B;
 --surface-alt: #162238;
 --text: #F4F1EA;
 --muted: #A3AEC2;
 --glass: rgba(10, 16, 28, 0.92);
 --glass-strong: #111A2B;
 --border: rgba(255, 255, 255, 0.1);
 --border-hover: rgba(107, 163, 232, 0.4);
 --hover: rgba(76, 217, 128, 0.08);

 --tint-green: rgba(76, 217, 128, 0.12);
 --tint-red: rgba(255, 107, 107, 0.1);
 --tint-yellow: rgba(240, 192, 64, 0.12);
 --tint-blue: rgba(107, 163, 232, 0.12);

 --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
 --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
 --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
 --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);

 --r: 6px;

 background: var(--bg);
 color: var(--text);
}

/* Rhythm: more air, no striped dividers */
main.hm-home > section:not(#hero):not(.hm-siege):not(.siege-strip) {
 padding-block: clamp(84px, 13vh, 150px);
}
main.hm-home .divider { display: none; }
main.hm-home .init-spotlight { background: var(--bg); }

/* Siege strip in the dark palette */
main.hm-home .siege-strip {
 background: #14080B;
 border-color: rgba(255, 107, 107, 0.28);
}
main.hm-home .siege-strip__text { color: #F0A0A0; }
main.hm-home .siege-strip__tag {
 background: rgba(255, 107, 107, 0.12);
 border-color: rgba(255, 107, 107, 0.32);
 color: #FF9B9B;
}

/* Type scale */
main.hm-home .section-title {
 font-size: clamp(2.3rem, 6.2vw, 4.6rem);
 font-weight: 900;
 line-height: 1.14;
 letter-spacing: -0.02em;
 margin-bottom: 1.1rem;
}
main.hm-home .section-desc {
 font-size: clamp(1.02rem, 1.5vw, 1.2rem);
 max-width: 720px;
 margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

/* Eyebrows: a short five-colour rule instead of a pill */
main.hm-home .tag,
main.hm-home .init-spotlight__eyebrow {
 display: flex;
 align-items: center;
 gap: 0.8rem;
 width: fit-content;
 max-width: none;
 padding: 0;
 border: 0;
 border-radius: 0;
 background: none;
 box-shadow: none;
 font-size: 0.86rem;
 font-weight: 700;
 letter-spacing: 0.08em;
 color: var(--muted);
 margin-bottom: 1.1rem;
}
main.hm-home .tag::before,
main.hm-home .init-spotlight__eyebrow::before {
 content: "";
 flex: none;
 width: 44px;
 height: 3px;
 border-radius: 2px;
 background: var(--star-stripe);
}

/* Spotlight cards: large image panels */
main.hm-home .hero-cards { gap: clamp(1rem, 2vw, 1.4rem); }
main.hm-home .init-card {
 aspect-ratio: 5 / 4;
 border-radius: var(--r);
 box-shadow: none;
}
main.hm-home .init-card__overlay {
 padding: clamp(1.2rem, 3vw, 2.2rem);
 background: linear-gradient(to top, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.4) 46%, rgba(7, 11, 20, 0) 76%);
}
main.hm-home .init-card__title {
 font-size: clamp(1.35rem, 2.8vw, 2.2rem);
 font-weight: 900;
 line-height: 1.2;
}

/* Initiative cards: image-led, no box */
main.hm-home .init-feature {
 border: 0;
 border-radius: 0;
 background: none;
 box-shadow: none;
 overflow: visible;
}
main.hm-home .init-feature__media {
 aspect-ratio: 4 / 3;
 border-radius: var(--r);
 background: var(--surface);
}
main.hm-home .init-feature__body { padding: 1.1rem 0 0; }
main.hm-home .init-feature__title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
main.hm-home .init-feature__desc { font-size: 0.98rem; }

/* Numbers: a black band with very large figures */
main.hm-home .stats-section { background: #05070C; }
main.hm-home .stats-grid {
 max-width: 1100px;
 gap: clamp(1.6rem, 4vw, 3.5rem);
 margin-top: clamp(2.4rem, 6vw, 4.5rem);
}
main.hm-home .stat-counter {
 padding: 0;
 border: 0;
 border-radius: 0;
 background: none;
 box-shadow: none;
 overflow: visible;
}
main.hm-home .stat-counter::before,
main.hm-home .stat-counter::after { display: none; }
main.hm-home .stat-number {
 font-family: var(--font-head);
 font-size: clamp(4rem, 11vw, 9rem);
 letter-spacing: -0.04em;
 margin-bottom: 0.9rem;
}
main.hm-home .stat-label {
 font-size: clamp(1rem, 1.6vw, 1.25rem);
 font-weight: 600;
 padding-top: 0.9rem;
 border-top: 1px solid var(--border);
}

/* Cards elsewhere on the page */
main.hm-home .arm-card { padding: clamp(1.6rem, 3.4vw, 2.6rem); }

@media (max-width: 640px) {
 main.hm-home .init-card { aspect-ratio: 4 / 5; }
}
main.hm-home .init-spotlight__eyebrow { margin-inline: 0; }

/* Hero text is there from the first frame: no fade on the title */
main.hm-home #hero .stag {
 opacity: 1;
 transform: none;
 transition: none;
}

/* "What you will find here": six doors into the site */
main.hm-home > section.hm-explore { padding-block: clamp(64px, 10vh, 120px); }
.explore-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.explore-card {
 --c: var(--star-blue);
 position: relative;
 display: grid;
 grid-template-columns: auto 1fr auto;
 grid-template-rows: auto auto;
 column-gap: 1rem;
 row-gap: 0.3rem;
 align-items: center;
 padding: clamp(1.2rem, 2.4vw, 1.7rem);
 border-radius: var(--r);
 border: 1px solid var(--border);
 border-top: 3px solid var(--c);
 background: var(--surface);
 color: var(--text);
 text-decoration: none;
 transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.explore-card--green { --c: var(--star-green); }
.explore-card--red { --c: var(--star-red); }
.explore-card--yellow { --c: var(--star-yellow); }
.explore-card--blue { --c: var(--star-blue); }
.explore-card--white { --c: #F7F4EE; }
.explore-card__icon {
 grid-row: 1 / span 2;
 width: 40px;
 height: 40px;
 padding: 8px;
 border-radius: 50%;
 background: color-mix(in srgb, var(--c) 14%, transparent);
 fill: none;
 stroke: var(--c);
 stroke-width: 1.7;
 stroke-linecap: round;
 stroke-linejoin: round;
 box-sizing: content-box;
}
.explore-card__title {
 font-family: var(--font-head);
 font-size: clamp(1.1rem, 1.7vw, 1.3rem);
 font-weight: 800;
 line-height: 1.3;
}
.explore-card__text {
 grid-column: 2;
 font-size: 0.92rem;
 line-height: 1.6;
 color: var(--muted);
}
.explore-card__arrow {
 grid-column: 3;
 grid-row: 1 / span 2;
 font-size: 1.2rem;
 color: var(--c);
 transition: transform 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
 .explore-card:hover { background: var(--surface-alt); border-color: var(--border-hover); border-top-color: var(--c); transform: translateY(-3px); }
 html[dir="rtl"] .explore-card:hover .explore-card__arrow { transform: translateX(-4px); }
 html[dir="ltr"] .explore-card:hover .explore-card__arrow { transform: translateX(4px); }
}
.explore-card:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
@media (max-width: 900px) {
 .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
 .explore-grid { grid-template-columns: 1fr; gap: 0.6rem; }
 .explore-card { padding: 0.95rem 1rem; column-gap: 0.85rem; }
 .explore-card__icon { width: 30px; height: 30px; padding: 7px; }
 .explore-card__text { font-size: 0.86rem; }
}

/* About: the three values as a quiet row under the two arms */
main.hm-home .hm-values { margin-top: clamp(1.6rem, 4vw, 2.6rem); gap: clamp(0.8rem, 2vw, 1.2rem); }
main.hm-home .hm-values .tr-item {
 box-shadow: none;
 background: transparent;
 padding: 1.2rem 1.3rem;
}
main.hm-home .hm-values .tr-icon { display: none; }
main.hm-home .hm-values .tr-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 0.35rem; }
main.hm-home .hm-values .tr-desc { color: var(--muted); font-size: 0.9rem; }
.hm-more { text-align: center; margin-top: 1.8rem; }
@media (max-width: 600px) {
 main.hm-home .hm-values .tr-item { flex: 1 1 100%; padding: 0.9rem 1rem; }
}

/* Inner pages that share the homepage look (about, activities, initiatives,
   Druze Spirit, Voice of Druze): their heading is there at once, and the
   section rhythm is a little tighter than on the homepage */
main.hm-page .page-hero .stag {
 opacity: 1;
 transform: none;
 transition: none;
}
main.hm-home.hm-page > section:not(#hero):not(.hm-siege):not(.siege-strip) { padding-block: clamp(64px, 10vh, 110px); }
main.hm-page .section-title { font-size: clamp(2rem, 5vw, 3.6rem); }

/* Druze in Israel: same cards, not links */
main.hm-home > section.hm-israel { background: linear-gradient(180deg, var(--bg) 0, var(--bg3) 100%); }
.hm-israel .section-desc { max-width: 760px; }
.explore-card--static { grid-template-columns: auto 1fr; cursor: default; }
@media (hover: hover) and (pointer: fine) {
 .explore-card--static:hover { transform: none; background: var(--surface); border-color: var(--border); border-top-color: var(--c); }
}

/* featured card on top of the explore grid */
.explore-card--wide { grid-column: 1 / -1; }
.explore-card--wide .explore-card__title { font-size: 1.25em; }
