/* CMSSM · home.css — homepage după macheta clientului, 2026-11-11.
   Bleumarinul brandului (#151a36) + auriu, titluri Source Serif 4, text Schibsted Grotesk.
   Se încarcă doar pe index (meta "head" din _build/pages/index.html). Clase h-*. */

.home {
  --gold: #c9a15b;
  --gold-light: #e6cb94;
  --gold-on-dark: #dcc28a;   /* text auriu pe bleumarin: 9.6:1 */
  --gold-ink: #7d5c20;       /* text auriu pe alb: 6.0:1 */
  --gold-tint: #f3ead8;
  --h-ground: #f5f5f2;
  --h-navy-2: #1d2a52;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --h-radius: 14px;
  --color-link: var(--navy-900);
  background: var(--paper);
}
.home main section { margin-top: 0; }
.home main .wrap { max-width: 1280px; }

/* ---------- butoane și elemente comune ---------- */
.h-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 8px; font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) linear, color var(--dur-fast) linear, box-shadow var(--dur-fast) linear; }
.h-btn .ph { transition: transform var(--dur-base) var(--ease-out); }
.h-btn:hover .ph-arrow-right { transform: translateX(4px); }
.h-btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: 0 6px 18px -8px rgba(201,161,91,.7); }
.h-btn--gold:hover { color: var(--navy-900); box-shadow: 0 10px 24px -8px rgba(201,161,91,.9); }
.h-btn--line { border: 1px solid rgba(255,255,255,.85); color: #fff; }
.h-btn--line:hover { background: #fff; color: var(--navy-900); }
.h-btn--line-dark { border: 1px solid var(--navy-900); color: var(--navy-900); min-height: 46px; padding: 0 20px; }
.h-btn--line-dark:hover { background: var(--navy-900); color: #fff; }

.h-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.015em; color: var(--navy-900); }
.h-title::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--gold); }
.h-title--bar::after { display: none; }
.h-title--bar::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 22px; background: var(--gold); }
.h-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.h-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 0.6em; color: var(--navy-900); font-weight: var(--weight-semibold); text-decoration: none; }
.h-more .ph { color: var(--gold); transition: transform var(--dur-base) var(--ease-out); }
.h-more:hover { color: var(--navy-900); text-decoration: underline; text-underline-offset: 0.3em; }
.h-more:hover .ph { transform: translateX(4px); }
.h-more--gold { color: var(--gold-ink); }
.h-more--gold:hover { color: var(--gold-ink); }

.h-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: var(--weight-semibold); letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold-tint); color: var(--gold-ink); }
.h-date { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.h-date .ph { font-size: 1.125rem; }

/* ---------- hero ---------- */
.h-hero { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-900) 40%, var(--h-navy-2) 100%); color: #fff; }
.h-hero__pic { position: absolute; z-index: -1; inset: 0; }
.h-hero__pic img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.6); }
.h-hero__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,26,54,.55), rgba(21,26,54,.92)); }
.h-hero__inner { padding-block: clamp(56px, 9vw, 120px); }
.h-eyebrow { font-size: 0.8125rem; font-weight: var(--weight-semibold); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-on-dark); }
.h-hero h1 { margin-top: 20px; max-width: 18ch; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.h-hero__sub { margin-top: 24px; max-width: 46ch; font-size: var(--text-large); line-height: 1.55; color: #dfe3f0; }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 36px; }

@media (min-width: 900px) {
  .h-hero { min-height: clamp(480px, 62vh, 640px); display: flex; align-items: center; }
  .h-hero__inner { width: 100%; }
  .h-hero__pic { left: auto; width: 54%; }
  .h-hero__pic img { opacity: 1; filter: saturate(.75) contrast(1.05); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .h-hero__pic::after { background: linear-gradient(90deg, var(--navy-900) 0%, rgba(21,26,54,.35) 40%, rgba(29,42,82,.25) 100%); }
  /* arcul auriu din machetă: marginea unui cerc mare peste poză */
  .h-hero__pic::before { content: ""; position: absolute; z-index: 1; top: -30%; left: 6%; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(220,194,138,.7); }
}

/* hero cu următorul eveniment (apare automat cât există un eveniment viitor): text în stânga, afișul în dreapta */
.h-hero__title { margin-top: 20px; max-width: 16ch; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.h-hero__title a { color: inherit; text-decoration: none; }
.h-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.h-hero--ev .h-hero__sub { margin-top: 18px; font-family: var(--font-serif); font-style: italic; color: var(--gold-on-dark); }
.h-hero__facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 1.0625rem; color: #fff; }
.h-hero__facts li { display: flex; align-items: center; gap: 10px; }
.h-hero__facts .ph { flex: none; font-size: 1.375rem; color: var(--gold-on-dark); }
.h-hero--ev .h-feat__when { margin-top: 22px; align-items: baseline; }
.h-hero--ev .h-actions { margin-top: 30px; }
.h-hero__poster { position: relative; display: block; width: fit-content; max-width: min(100%, 420px); margin-top: 44px; overflow: hidden; border-radius: var(--h-radius); background: var(--h-navy-2); box-shadow: 0 0 0 1px rgba(220,194,138,.55), 0 30px 60px -28px rgba(0,0,0,.75); }
/* afișul se vede întreg, oricare i-ar fi proporția */
.h-hero__poster img { display: block; width: auto; max-width: 100%; height: auto; transition: transform var(--dur-slow, 600ms) var(--ease-out); }
.h-hero__poster:hover img { transform: scale(1.02); }
@media (min-width: 900px) {
  .h-hero--ev { min-height: clamp(560px, 70vh, 700px); }
  .h-hero--ev .h-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 88px); padding-block: clamp(48px, 6vw, 80px); }
  .h-hero__poster { max-width: min(44vw, 560px); margin-top: 0; }
  .h-hero__poster img { max-height: clamp(460px, 76vh, 720px); }
  /* arcul auriu din machetă, acum în spatele afișului */
  .h-hero--ev::before { content: ""; position: absolute; z-index: -1; top: -34%; right: -30%; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(220,194,138,.55); background: radial-gradient(closest-side, rgba(29,42,82,.9), rgba(29,42,82,0)); }
}
@media (prefers-reduced-motion: reduce) { .h-hero__poster img { transition: none; } }

/* ---------- intrări rapide ---------- */
.h-quick { background: var(--paper); border-bottom: 1px solid #e6e6e1; }
.h-quick ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.h-quick li { border-top: 1px solid #ecece7; }
.h-quick li:nth-child(odd) { border-right: 1px solid #ecece7; }
.h-quick li:nth-child(-n+2) { border-top: 0; }
.h-quick a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px 12px; color: var(--navy-900); text-decoration: none; transition: background var(--dur-fast) linear; }
.h-quick a:hover { background: var(--h-ground); }
.h-quick .ph { flex: none; font-size: 2.25rem; color: var(--navy-900); }
.h-quick span { display: grid; gap: 2px; font-size: var(--text-small); color: var(--ink-soft); line-height: 1.35; }
.h-quick b { font-size: 1rem; font-weight: var(--weight-semibold); color: var(--navy-900); }
@media (max-width: 599px) {
  .h-quick ul { grid-template-columns: 1fr; padding-inline: 0; }
  .h-quick li:nth-child(n) { border: 0; border-top: 1px solid #ecece7; }
  .h-quick li:first-child { border-top: 0; }
  .h-quick a { padding-inline: var(--page-margin); }
}
@media (min-width: 1000px) {
  .h-quick ul { grid-template-columns: repeat(4, 1fr); }
  .h-quick li, .h-quick li:nth-child(odd) { border: 0; }
  .h-quick li:nth-child(n+2) { border-left: 1px solid #ecece7; }
  .h-quick a { justify-content: center; padding: 30px 20px; }
}

/* ---------- evenimente ---------- */
.h-events { background: var(--h-ground); padding-block: clamp(56px, 7vw, 104px); }
.h-events__grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .h-events__grid { grid-template-columns: 1fr 1fr; } .h-feat { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .h-events__grid { grid-template-columns: 2.3fr 1fr 1fr; } .h-feat { grid-column: auto; } }
/* fără cardul mare (evenimentul următor e în hero): carduri egale */
@media (min-width: 1000px) { .h-events__grid--cards { grid-template-columns: repeat(3, 1fr); } }
.h-events__grid--cards .h-card__pic img { object-position: center top; }

.h-feat { display: grid; overflow: hidden; border-radius: var(--h-radius); background: linear-gradient(135deg, var(--navy-900), var(--h-navy-2)); color: #fff; box-shadow: 0 18px 40px -24px rgba(21,26,54,.6); }
.h-feat__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.h-feat__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform var(--dur-slow, 600ms) var(--ease-out); }
.h-feat:hover .h-feat__pic img { transform: scale(1.03); }
.h-feat__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 2.6vw, 40px); }
.h-feat .h-tag { background: transparent; border: 1px solid var(--gold); color: var(--gold-on-dark); }
.h-feat h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.01em; }
.h-feat h3 a { color: #fff; text-decoration: none; }
.h-feat h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.h-feat__meta { color: #c9cee0; }
.h-feat__meta b { color: #fff; }
.h-feat__when { display: flex; align-items: center; gap: 10px; color: var(--gold-on-dark); font-weight: var(--weight-semibold); }
.h-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s var(--ease-inout) infinite; }
.h-feat .h-btn { margin-top: 8px; }
@media (min-width: 600px) {
  .h-feat { grid-template-columns: 42% 1fr; }
  .h-feat__pic { aspect-ratio: auto; height: 100%; clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
  .h-feat__body { justify-content: center; padding-left: clamp(8px, 1vw, 16px); }
}

.h-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--h-radius); background: var(--paper); box-shadow: 0 1px 0 rgba(21,26,54,.04), 0 14px 30px -22px rgba(21,26,54,.35); }
.h-card__pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.h-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow, 600ms) var(--ease-out); }
.h-card:hover .h-card__pic img { transform: scale(1.04); }
.h-card__pic--plate img { object-fit: contain; padding: 10px 14px; }
.h-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 26px; color: var(--navy-900); }
.h-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; line-height: 1.15; }
.h-card h3 a { color: inherit; text-decoration: none; }
.h-card h3 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.h-card .h-btn { margin-top: auto; }

/* ---------- despre colegiu ---------- */
.h-about { position: relative; isolation: isolate; overflow: clip; background: var(--paper); }
.h-about__pic { height: 280px; overflow: hidden; }
.h-about__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.h-about__mark { position: absolute; z-index: -1; right: -40px; bottom: -40px; font-size: clamp(220px, 26vw, 380px); color: var(--gold); opacity: .12; }
.h-about__inner { padding-block: 8px clamp(56px, 7vw, 104px); }
.h-about__text { max-width: 560px; }
.h-about__text p { margin-top: 18px; font-size: var(--text-large); line-height: 1.6; color: #2e3247; }
.h-about__text .h-about__hours { font-size: 1rem; color: var(--ink-soft); }
.h-about .h-more { margin-top: 26px; }
@media (min-width: 900px) {
  .h-about { min-height: clamp(420px, 40vw, 560px); display: flex; align-items: center; }
  .h-about__pic { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 52%; height: auto; }
  .h-about__pic img { -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent); mask-image: linear-gradient(90deg, #000 45%, transparent); }
  .h-about__inner { width: 100%; display: flex; justify-content: flex-end; padding-block: clamp(56px, 7vw, 104px); }
  .h-about__text { width: 46%; }
}

/* ---------- anunțuri și documente în noua paletă ---------- */
.h-news { background: var(--h-ground); padding-block: clamp(56px, 7vw, 104px); }
.home .news a { background: var(--paper); }
.home .news a:hover { background: var(--gold-tint); }
.home .news__date { background: var(--navy-900); color: var(--gold-on-dark); }
.home .news__date--all { background: var(--gold); color: var(--navy-900); }
.h-docs { padding-top: clamp(56px, 7vw, 104px); }
.home .foot { margin-top: clamp(56px, 7vw, 104px); }

@media (prefers-reduced-motion: reduce) {
  .h-dot { animation: none; }
  .h-feat__pic img, .h-card__pic img { transition: none; }
}
