/* SYSHEDO – Projects module (public) */
:root {
  --sy-green: #6fab01;
  --sy-green-dark: #4f7d00;
  --sy-green-50: #f3f9e9;
  --sy-ink: #1f2933;
  --sy-muted: #5b6774;
  --sy-line: #e4e8ec;
  --sy-bg-alt: #f6f8f5;
  --sy-radius: 14px;
  --sy-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --sy-shadow-hover: 0 4px 10px rgba(16, 24, 40, .08), 0 16px 32px rgba(16, 24, 40, .12);
}
.sy-main { color: var(--sy-ink); font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
.sy-main *, .sy-main *::before, .sy-main *::after { box-sizing: border-box; }
.sy-main h1, .sy-main h2, .sy-main h3, .sy-main h4 { color: var(--sy-ink); font-family: inherit; letter-spacing: -.01em; }
.sy-main a { color: var(--sy-green-dark); }
.sy-main a:focus-visible, .sy-main button:focus-visible, .sy-main select:focus-visible, .sy-main input:focus-visible { outline: 3px solid rgba(111, 171, 1, .45); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sy-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sy-section { padding: 48px 0; }
.sy-section--alt { background: var(--sy-bg-alt); }
.sy-section-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 24px; }

/* Hero */
.sy-hero { background: linear-gradient(135deg, #2f4a00 0%, var(--sy-green-dark) 45%, var(--sy-green) 100%); color: #fff; padding: 56px 0 60px; }
.sy-hero .sy-hero__title { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 8px 0 12px; }
.sy-hero__lead { max-width: 720px; font-size: 1.1rem; opacity: .95; margin: 0; }
.sy-breadcrumb { font-size: .9rem; color: inherit; opacity: .9; }
.sy-breadcrumb a { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
.sy-breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* Impact */
.sy-impact { padding: 40px 0 8px; }
.sy-impact__title { font-size: 1.35rem; font-weight: 700; text-align: center; margin: 0 0 20px; }
.sy-impact__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sy-impact__item { background: #fff; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); padding: 18px 12px; text-align: center; box-shadow: var(--sy-shadow); }
.sy-impact__item .fa { color: var(--sy-green); font-size: 1.4rem; display: block; margin-bottom: 6px; }
.sy-impact__num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.2; color: var(--sy-ink); }
.sy-impact__label { display: block; font-size: .85rem; color: var(--sy-muted); }
.sy-impact__note { text-align: center; font-size: .8rem; color: var(--sy-muted); margin: 12px auto 0; max-width: 760px; }

/* Filters */
.sy-filters { background: #fff; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); padding: 16px; box-shadow: var(--sy-shadow); margin-bottom: 18px; }
.sy-filters__search { position: relative; margin-bottom: 12px; }
.sy-filters__search .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sy-muted); }
.sy-filters input[type=search], .sy-filters select { width: 100%; height: 46px; border: 1px solid #cfd6dd; border-radius: 10px; padding: 0 12px; font-size: .95rem; background: #fff; color: var(--sy-ink); }
.sy-filters input[type=search] { padding-left: 40px; }
.sy-filters__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto; gap: 10px; align-items: center; }
.sy-results-count { color: var(--sy-muted); font-size: .95rem; margin: 0 0 16px; }

/* Buttons */
.sy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.sy-btn--primary { background: var(--sy-green); color: #fff !important; }
.sy-btn--primary:hover { background: var(--sy-green-dark); }
.sy-btn--ghost { background: transparent; color: var(--sy-green-dark) !important; border-color: var(--sy-green); }
.sy-btn--ghost:hover { background: var(--sy-green-50); }
.sy-btn--light { background: #fff; color: var(--sy-green-dark) !important; }
.sy-btn--light:hover { background: var(--sy-green-50); }

/* Cards */
.sy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sy-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); overflow: hidden; box-shadow: var(--sy-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.sy-card:hover { transform: translateY(-4px); box-shadow: var(--sy-shadow-hover); }
.sy-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #eef2ea; overflow: hidden; }
.sy-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.sy-card:hover .sy-card__media img { transform: scale(1.04); }
.sy-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.sy-card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sy-green-dark); margin-bottom: 6px; }
.sy-main .sy-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.sy-card__title a { color: var(--sy-ink) !important; text-decoration: none; }
.sy-card__title a:hover { color: var(--sy-green-dark) !important; }
.sy-card__sub { font-size: .92rem; color: var(--sy-muted); margin: 0 0 8px; font-weight: 500; }
.sy-card__text { font-size: .93rem; color: #3e4a56; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sy-card__meta { list-style: none; padding: 0; margin: auto 0 14px; font-size: .85rem; color: var(--sy-muted); }
.sy-card__meta li { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.sy-card__meta .fa { color: var(--sy-green); width: 14px; text-align: center; }
.sy-card__more { font-weight: 700; font-size: .92rem; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.sy-card__more .fa { transition: transform .2s; }
.sy-card__more:hover .fa { transform: translateX(3px); }

/* Badges */
.sy-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.sy-badge--inline { position: static; box-shadow: none; }
.sy-badge--completed { color: #3d6b00; background: #e3f4d6; }
.sy-badge--ongoing { color: #1d4ed8; background: #dbeafe; }
.sy-badge--upcoming { color: #92400e; background: #fef3c7; }
.sy-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sy-green-50); color: var(--sy-green-dark) !important; font-size: .8rem; font-weight: 700; text-decoration: none !important; }

/* Pagination */
.sy-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.sy-pagination a, .sy-pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--sy-line); text-decoration: none !important; color: var(--sy-ink) !important; font-weight: 600; }
.sy-pagination a:hover { border-color: var(--sy-green); color: var(--sy-green-dark) !important; }
.sy-pagination .is-current { background: var(--sy-green); border-color: var(--sy-green); color: #fff !important; }

/* Empty state */
.sy-empty-state { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed #cfd6dd; border-radius: var(--sy-radius); }
.sy-empty-state .fa { font-size: 2.6rem; color: var(--sy-green); margin-bottom: 12px; }
.sy-empty-state h1, .sy-empty-state h2 { font-size: 1.4rem; margin: 0 0 8px; }
.sy-empty-state p { color: var(--sy-muted); margin: 0 0 18px; }

/* CTA */
.sy-cta { background: var(--sy-green-dark); color: #fff; padding: 36px 0; }
.sy-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sy-cta h2 { color: #fff !important; font-size: 1.4rem; margin: 0 0 4px; }
.sy-cta p { margin: 0; opacity: .92; }

/* Project detail */
.sy-preview-bar { background: #fff3cd; color: #664d03; padding: 10px 20px; text-align: center; font-size: .95rem; border-bottom: 1px solid #ffe69c; }
.sy-preview-bar--live { background: #e3f4d6; color: #2f5200; border-color: #c7e6ad; }
.sy-preview-bar a { font-weight: 700; margin-left: 8px; color: inherit; text-decoration: underline; }
.sy-project__header { background: linear-gradient(180deg, var(--sy-bg-alt), #fff); padding: 32px 0 24px; }
.sy-project__header .sy-breadcrumb { color: var(--sy-muted); }
.sy-project__tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 10px; }
.sy-main .sy-project__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.2; margin: 0 0 8px; max-width: 900px; }
.sy-project__subtitle { font-size: 1.2rem; color: var(--sy-muted); margin: 0 0 12px; max-width: 860px; }
.sy-project__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--sy-muted); font-size: .95rem; }
.sy-project__meta .fa { color: var(--sy-green); margin-right: 4px; }
.sy-project__hero { margin: 0 0 36px; border-radius: var(--sy-radius); overflow: hidden; background: #eef2ea; box-shadow: var(--sy-shadow); }
.sy-project__hero img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.sy-project__hero img.is-placeholder { aspect-ratio: 16 / 7; object-fit: cover; }
.sy-project__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sy-project__aside { position: sticky; top: 110px; }
.sy-info { background: #fff; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); padding: 22px; box-shadow: var(--sy-shadow); }
.sy-main .sy-info__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--sy-green); }
.sy-info__logo { display: block; max-width: 160px; max-height: 70px; object-fit: contain; margin: 0 0 14px; }
.sy-info dl { margin: 0; }
.sy-info__row { padding: 10px 0; border-bottom: 1px solid var(--sy-line); }
.sy-info__row:last-child { border-bottom: 0; padding-bottom: 0; }
.sy-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sy-muted); font-weight: 700; }
.sy-info dt .fa { color: var(--sy-green); width: 16px; }
.sy-info dd { margin: 2px 0 0 22px; font-weight: 600; }
.sy-prose { font-size: 1.05rem; line-height: 1.8; color: #2b3640; margin-bottom: 28px; overflow-wrap: break-word; }
.sy-prose--lead { font-size: 1.15rem; color: var(--sy-ink); }
.sy-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 1.6em 0 .6em; }
.sy-prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.4em 0 .5em; }
.sy-prose h4, .sy-prose h5 { font-size: 1.08rem; font-weight: 700; margin: 1.2em 0 .4em; }
.sy-prose p { margin: 0 0 1em; }
.sy-prose ul, .sy-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.sy-prose ul { list-style: disc; }
.sy-prose ol { list-style: decimal; }
.sy-prose li { margin-bottom: .4em; }
.sy-prose blockquote { border-left: 4px solid var(--sy-green); background: var(--sy-green-50); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; font-style: italic; }
.sy-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.sy-prose th, .sy-prose td { border: 1px solid var(--sy-line); padding: 8px 12px; text-align: left; }
.sy-prose th { background: var(--sy-bg-alt); }
.sy-prose a { text-decoration: underline; }
.sy-gallery { margin: 12px 0 8px; }
.sy-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sy-gallery__item { margin: 0; }
.sy-gallery__item a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #eef2ea; cursor: zoom-in; }
.sy-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sy-gallery__item a:hover img { transform: scale(1.05); }
.sy-gallery__item figcaption { font-size: .88rem; color: var(--sy-muted); margin-top: 6px; }
.sy-project__back { margin: 36px 0 48px; }

/* Lightbox */
.sy-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 14, 18, .94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.sy-lightbox[hidden] { display: none; }
.sy-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.sy-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.sy-lightbox figcaption { color: #e5e7eb; margin-top: 12px; text-align: center; font-size: .95rem; max-width: 800px; }
.sy-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sy-lightbox button:hover, .sy-lightbox button:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #fff; }
.sy-lightbox__close { top: 14px; right: 14px; }
.sy-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sy-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.sy-lightbox__count { position: absolute; top: 24px; left: 20px; color: #cbd5e1; font-size: .9rem; }

/* Home featured section */
.sy-home-projects { padding: 64px 0; background: var(--sy-bg-alt); }
.sy-home-projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sy-home-projects__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0; }
.sy-home-projects__head p { margin: 4px 0 0; color: var(--sy-muted); }

/* Animation (respect reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .sy-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .sy-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sy-card, .sy-card__media img, .sy-gallery__item img { transition: none !important; }
}

/* Responsive */
@media (max-width: 1100px) {
  .sy-impact__grid { grid-template-columns: repeat(3, 1fr); }
  .sy-filters__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .sy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sy-project__layout { grid-template-columns: 1fr; gap: 24px; }
  .sy-project__aside { position: static; order: -1; }
  .sy-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sy-container { padding: 0 16px; }
  .sy-section { padding: 32px 0; }
  .sy-hero { padding: 36px 0 40px; }
  .sy-grid { grid-template-columns: 1fr; }
  .sy-impact__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sy-impact__num { font-size: 1.5rem; }
  .sy-filters__row { grid-template-columns: 1fr 1fr; }
  .sy-filters__row .sy-btn { width: 100%; }
  .sy-gallery__grid { gap: 10px; }
  .sy-prose { font-size: 1rem; }
  .sy-lightbox { padding: 56px 8px; }
  .sy-lightbox__prev, .sy-lightbox__next { top: auto; bottom: 14px; transform: none; }
  .sy-cta__inner { flex-direction: column; align-items: flex-start; }
}
