/* GreenArch Suite — frontend styles
 * Mirrors the design handoff (assets/styles.css): tokens, the surveyor's-frame
 * motif, the --lime-amount toggle via [data-lime]. Widget-only pieces (slider,
 * archive, letters, lightbox) are added at the end.
 * All directional rules use logical properties for RTL. */

:root {
	--lime: #6DC809;
	--forest: #166835;
	--ink: #1C2420;
	--stone: #5F6B64;
	--mist: #F2F5F1;
	--paper: #FFFFFF;
	--line: #E2E8E2;
	--header-h: 72px;
	--container: 1280px;
}

/* ---- theme button reset ----
 * Some themes style every <button>/[type=button] globally (e.g. a #c36 border).
 * Neutralize that on our controls so chips, slider nav, letters and lightbox
 * buttons inherit only our styles. Scoped to our classes to avoid side effects. */
.chip,
.ga-tslider-nav button,
.ga-letter,
.ga-lightbox button,
.ga-load-more,
.ga-pg-video {
	border-radius: 0;
	color: inherit;
	font: inherit;
	white-space: normal;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
}
.chip:focus,
.ga-tslider-nav button:focus,
.ga-letter:focus,
.ga-lightbox button:focus { outline: none; }

/* ---- shared primitives ---- */
.greenarch-scope, .elementor-widget-greenarch-domains,
.elementor-widget-greenarch-featured-projects,
.elementor-widget-greenarch-clients-home,
.elementor-widget-greenarch-clients-archive,
.elementor-widget-greenarch-testimonials,
.elementor-widget-greenarch-projects-archive,
.elementor-widget-greenarch-letters,
.elementor-widget-greenarch-footer-cta,
.elementor-widget-greenarch-eyebrow {
	font-family: "Noto Sans Hebrew", system-ui, sans-serif;
	color: var(--ink);
}

.h2 { font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--forest); margin: 0; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 700; color: var(--forest);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--lime); flex: none; }

.section-head { margin-bottom: 36px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
	padding: 13px 22px; border: 1px solid transparent; border-radius: 0;
	transition: background .2s, color .2s, border-color .2s;
}
.btn--sm { padding: 9px 18px; font-size: 15px; }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--forest); color: #fff; }
.btn--secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--secondary:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn .arr { line-height: 1; }

[data-lime="low"] .btn--primary { background: var(--forest); color: #fff; }
[data-lime="low"] .btn--primary:hover { background: var(--ink); }

/* ---- placeholder media block ---- */
.ph { display: block; background: var(--mist) center/cover no-repeat; }

/* ---- category tiles (3.1) ---- */
.cat-tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 24px; }
.cat-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.cat-tile .ph { position: absolute; inset: 0; transition: transform .7s ease-out; }
.cat-tile:hover .ph { transform: scale(1.04); }
.cat-tile-grad { position: absolute; inset-inline: 0; bottom: 0; height: 60%; z-index: 1; background: linear-gradient(to top, rgba(13,46,26,.85), transparent); }
.cat-tile-name {
	position: absolute; bottom: 0; inset-inline: 0; z-index: 2; color: #fff;
	padding: 20px 24px; font-size: 21px; font-weight: 700;
	display: flex; justify-content: space-between; align-items: center;
}
.cat-tile-name .arr { font-size: 18px; opacity: 0; transform: translateX(6px); transition: all .25s ease; }
.cat-tile:hover .arr { opacity: 1; transform: none; }

/* ---- project cards (3.2, 3.7) ---- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pgrid .pcard--wide { grid-column: span 2; }
.pcard { display: block; position: relative; text-decoration: none; color: inherit; }
.pcard-media { display: block; aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.pcard-media .ph,
.pcard-media img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease-out; }
.pcard:hover .pcard-media .ph,
.pcard:hover .pcard-media img { transform: scale(1.03); }
/* surveyor's frame */
.pcard-media::before {
	content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none;
	border: 1px solid var(--forest); opacity: 0; transition: opacity .2s ease;
}
.pcard-media::after {
	content: ""; position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
	width: 8px; height: 8px; background: var(--lime); opacity: 0; transition: opacity .2s ease;
}
.pcard:hover .pcard-media::before, .pcard:hover .pcard-media::after { opacity: 1; }
.pcard-body { display: block; padding-top: 14px; }
.pcard .h3 { display: block; transition: color .2s ease; }
.pcard:hover .h3 { color: var(--forest); }
.pcard-meta { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--stone); }
.video-badge {
	position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px;
	width: 34px; height: 34px; display: grid; place-items: center;
	background: rgba(12,24,16,.55); color: #fff; font-size: 13px;
}

.pcard:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- client logo wall (3.3, 3.8) ---- */
.logo-wall { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-cell {
	background: var(--paper); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
	padding: 16px; filter: grayscale(1); transition: filter .25s; text-decoration: none;
}
.logo-cell:hover { filter: none; }
.logo-cell .ph--logo { background: none; width: 100%; height: 100%; object-fit: contain; }
.ph--logo-text { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; font-weight: 700; color: var(--stone); }

.ga-clients-archive { display: grid; gap: 56px; }
.ga-client-group-title { font-size: 18px; font-weight: 700; color: var(--forest); margin: 0 0 18px; }

/* ---- testimonials (3.4) ---- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tcard { position: relative; background: var(--paper); border: 1px solid var(--line); padding: 40px 36px 32px; height: 100%; }
.tcard::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--forest); opacity: .25; pointer-events: none; }
.tcard::after { content: ""; position: absolute; top: 8px; inset-inline-start: 8px; width: 8px; height: 8px; background: var(--lime); }
.tcard blockquote { margin: 0 0 20px; font-size: 17px; line-height: 1.75; height: 215px; overflow: hidden; }
.tcard blockquote::before { content: "\05F4"; color: var(--lime); font-size: 30px; font-weight: 700; display: block; line-height: 1; margin-bottom: 8px; }
[data-lime="low"] .tcard blockquote::before { color: var(--forest); }
.tcard .who { font-size: 14px; }
.tcard .who strong { display: block; color: var(--ink); }
.tcard .who span { color: var(--stone); }
.tcard .who-link { display: inline-block; margin-top: 8px; color: var(--forest); font-weight: 700; text-decoration: none; }
.tcard .who-link:hover { text-decoration: underline; }

/* slider mechanics */
.ga-tslider { position: relative; overflow: hidden; }
.ga-tslider-track { display: flex; gap: 32px; will-change: transform; }
.ga-tslider-track.is-stepping { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.ga-tslider-track.tgrid { grid-template-columns: none; }
.ga-tslide { flex: 0 0 calc((100% - 64px) / 3); }
.ga-tslider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.ga-tslider-nav button {
	width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper);
	font-size: 18px; cursor: pointer; color: var(--forest); transition: border-color .2s, background .2s, color .2s;
}
.ga-tslider-nav button:hover { border-color: var(--forest); background: var(--forest); color: #fff; }

/* ---- archive filter + loader (3.7) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
	font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; border-radius: 0 !important;
	padding: 10px 20px; border: 1px solid var(--line) !important; background: var(--paper); color: var(--ink);
	transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.active { background: var(--lime); border-color: var(--lime) !important; color: var(--ink); font-weight: 700; }
[data-lime="low"] .chip.active { background: var(--forest); border-color: var(--forest) !important; color: #fff; }

.ga-grid { min-height: 120px; transition: opacity .2s; }
.ga-grid.is-loading { opacity: .45; }
.ga-archive-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.ga-loader { display: flex; align-items: center; gap: 10px; color: var(--stone); font-weight: 500; }
.ga-spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: ga-spin .8s linear infinite; }
@keyframes ga-spin { to { transform: rotate(360deg); } }
.ga-empty { grid-column: 1 / -1; color: var(--stone); padding: 40px 0; }
.ga-sentinel { display: block; width: 100%; height: 1px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ga-skip-link:focus {
	position: static; width: auto; height: auto; clip: auto; margin: 0 0 16px;
	display: inline-block; padding: 8px 16px; background: var(--forest); color: #fff;
}

/* ---- scanned letters + lightbox (3.9) ---- */
.ga-letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ga-letter {
	position: relative; display: block; width: 100%; cursor: zoom-in; font: inherit;
	border: 0; padding: 14px; background: var(--mist); text-align: center;
}
.ga-letter-inner { display: block; position: relative; }
.ga-letter-ph { position: absolute; inset: 0; background-color: #fff; }
.ga-letter::before { content: ""; position: absolute; inset: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ga-letter:hover::before { opacity: .4; }
.ga-letter-meta { display: block; padding-top: 10px; padding-bottom: 10px; text-align: center; font-weight: 700; color: var(--ink); }
.ga-letter:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
/* Elementor global button reset on the letter button */
button.ga-letter, button.ga-letter:hover, button.ga-letter:focus {
	background-color: var(--e-global-color-4759ea5) !important;
	border: 1px solid var(--e-global-color-f948b46) !important;
	border-radius: 0 !important;
}

.ga-lightbox {
	position: fixed; inset: 0; z-index: 9999; display: none;
	background: rgba(28,36,32,.94); align-items: center; justify-content: center;
}
.ga-lightbox.is-open { display: flex; }
.ga-lb-stage { display: flex; align-items: center; justify-content: center; max-width: 90vw; max-height: 86vh; }
.ga-lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.ga-lb-video { display: none; width: min(90vw, 1280px); aspect-ratio: 16 / 9; }
.ga-lb-video iframe { width: 100%; height: 100%; border: 0; }
.ga-lightbox button {
	position: absolute; background: none; border: none; color: #fff; cursor: pointer;
	font-size: 32px; line-height: 1; padding: 12px;
}
.ga-lb-close { top: 16px; inset-inline-end: 16px; }
.ga-lb-prev { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.ga-lb-next { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.ga-lb-count { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }

/* ---- single project widgets (6.1–6.5) ---- */
.ga-ptype-chip {
	display: inline-block; padding: 6px 16px; background: var(--lime); color: var(--ink);
	font-size: 14px; font-weight: 700; text-decoration: none;
}
[data-lime="low"] .ga-ptype-chip { background: var(--forest); color: #fff; }
a.ga-ptype-chip:hover { background: var(--forest); color: #fff; }

.ga-psidebar { background: var(--mist); padding: 32px 28px; position: relative; }
.ga-psidebar.is-sticky { position: sticky; top: calc(var(--header-h, 72px) + 24px); }
.ga-psidebar::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--forest); opacity: .18; pointer-events: none; }
.ga-ps-title { font-size: 18px; font-weight: 700; color: var(--forest); margin: 0 0 18px; }
.ga-ps-list { margin: 0; }
.ga-ps-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ga-ps-row:last-child { border-bottom: 0; }
.ga-ps-row dt { color: var(--stone); font-size: 14px; font-weight: 500; margin: 0; }
.ga-ps-row dd { margin: 0; font-weight: 700; font-size: 15px; text-align: start; }
.ga-ps-svc-wrap { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ga-ps-svc-label { display: block; color: var(--stone); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.ga-ps-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ga-ps-services li { font-size: 13px; font-weight: 700; color: var(--forest); border: 1px solid var(--forest); padding: 5px 12px; }

/* gallery — full width, justified; quality tiers size the cells */
.ga-pgallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; width: 100%; }
.ga-pg-item { position: relative; display: block; overflow: hidden; grid-column: span 4; aspect-ratio: 4 / 3; background: var(--mist); }
.ga-pg-item img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease-out; }
.ga-pg-item img.emoji { max-height: 30px !important; }
.ga-pg-item:hover img { transform: scale(1.04); }
/* A = larger cells, C = smaller, capped width */
.ga-q-a .ga-pg-item:nth-child(6n+1) { grid-column: span 8; aspect-ratio: 16 / 9; }
.ga-q-a .ga-pg-item:nth-child(6n+4) { grid-column: span 8; aspect-ratio: 16 / 9; }
.ga-q-b .ga-pg-item { grid-column: span 4; }
.ga-q-c .ga-pg-item { grid-column: span 3; aspect-ratio: 1 / 1; }
.ga-pg-video .ga-pg-ph { position: absolute; inset: 0; background: var(--forest) center/cover no-repeat; }
.ga-pg-play {
	position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
	color: #fff; font-size: 26px; background: rgba(12,24,16,.35); transition: background .2s;
}
.ga-pg-video:hover .ga-pg-play { background: rgba(12,24,16,.5); }

.ga-pplan { }
.ga-pplan-blocks { display: grid; gap: 28px; }
.ga-pplan-bt { font-size: 18px; font-weight: 700; color: var(--forest); margin: 0 0 8px; position: relative; padding-inline-start: 18px; }
.ga-pplan-bt::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 8px; height: 8px; background: var(--lime); }
.ga-pplan-body { line-height: 1.8; }
.ga-pplan-body p { margin: 0 0 12px; }

.ga-similar { }
.pgrid--similar { margin-top: 8px; }

/* ---- project bullets (5.1) ---- */
.ga-bullets {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 12px 32px;
}
.ga-bullet { position: relative; padding-inline-start: 22px; line-height: 1.6; font-size: 16px; }
.ga-bullet::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .55em;
	width: 9px; height: 9px; background: var(--lime);
}
[data-lime="low"] .ga-bullet::before { background: var(--forest); }

/* ---- services (5.2) ---- */
.ga-services-title { margin-bottom: 24px; }
.ga-services-list {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 14px 32px;
}
.ga-service { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.ga-svc-ico { flex: none; margin-top: 2px; color: var(--lime); }
[data-lime="low"] .ga-svc-ico { color: var(--forest); }

/* ---- FAQ (5.4) ---- */
.ga-faq-head { margin-bottom: 28px; }
.ga-faq-sub { margin: 10px 0 0; color: var(--stone); font-size: 16px; }
.ga-faq-list { border-top: 1px solid var(--line); }
.ga-faq-item { border-bottom: 1px solid var(--line); }
.ga-faq-q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: none; border: 0; border-radius: 0; cursor: pointer; font: inherit; font-weight: 700;
	color: var(--ink); text-align: start; padding: 20px 0; font-size: 17px;
}
.ga-faq-q:hover { color: var(--forest); }
.ga-faq-ico { position: relative; flex: none; width: 16px; height: 16px; }
.ga-faq-ico::before, .ga-faq-ico::after { content: ""; position: absolute; background: var(--forest); transition: opacity .2s; }
.ga-faq-ico::before { inset-inline: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.ga-faq-ico::after { inset-block: 0; inset-inline-start: 50%; width: 2px; transform: translateX(-50%); }
.ga-faq-item.is-open .ga-faq-ico::after { opacity: 0; }
.ga-faq-a { padding: 0 0 22px; color: var(--stone); line-height: 1.8; font-size: 16px; }
.ga-faq-a p { margin: 0 0 12px; }
.ga-faq-a p:last-child { margin-bottom: 0; }

/* ---- plan PDF block (2.1) ---- */
.plan-block.ga-planpdf {
	position: relative; border: 1px solid var(--line); padding: 36px; margin-top: 56px;
	display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.plan-block.ga-planpdf::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--forest); opacity: .25; pointer-events: none; }
.plan-block.ga-planpdf::after { content: ""; position: absolute; top: 8px; inset-inline-start: 8px; width: 8px; height: 8px; background: var(--lime); transform: translate(4px,-4px); }
.ga-planpdf-thumb { width: 180px; height: 130px; flex: none; background: var(--mist); display: grid; place-items: center; }
.ga-planpdf-ico { font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--forest); }
.ga-planpdf-body { flex: 1; min-width: 240px; }
.ga-planpdf-body .h3 { color: var(--ink); }

.ga-pdf-overlay {
	position: fixed; inset: 0; z-index: 9999; display: none;
	background: rgba(28,36,32,.94); align-items: center; justify-content: center; padding: 24px;
}
.ga-pdf-overlay.is-open { display: flex; }
.ga-pdf-frame { width: min(1100px, 95vw); height: 90vh; background: #fff; }
.ga-pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.ga-pdf-close { position: absolute; top: 16px; inset-inline-end: 16px; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 12px; }

.cta-strip { background: var(--forest); color: #fff; }
.cta-strip .container { max-width: var(--container); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-strip .h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); margin: 8px 0 0; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
	.cat-tiles { grid-template-columns: repeat(2, 1fr); }
	.pgrid { grid-template-columns: repeat(2, 1fr); }
	.tgrid { grid-template-columns: repeat(2, 1fr); }
	.ga-tslide { flex-basis: calc((100% - 32px) / 2); }
	.logo-wall { grid-template-columns: repeat(4, 1fr); }
	.ga-letters { grid-template-columns: repeat(3, 1fr); }
	.ga-q-a .ga-pg-item, .ga-q-b .ga-pg-item { grid-column: span 6; }
	.ga-q-a .ga-pg-item:nth-child(6n+1), .ga-q-a .ga-pg-item:nth-child(6n+4) { grid-column: span 12; }
	.ga-q-c .ga-pg-item { grid-column: span 4; }
	.ga-psidebar.is-sticky { position: static; }
}
@media (max-width: 640px) {
	.h2 { font-size: 28px; }
	.cat-tiles, .pgrid, .tgrid { grid-template-columns: 1fr; }
	.pgrid .pcard--wide { grid-column: span 1; }
	.ga-tslide { flex-basis: 100%; }
	.tcard blockquote { height: auto; }
	.logo-wall { grid-template-columns: repeat(2, 1fr); }
	.ga-letters { grid-template-columns: repeat(2, 1fr); }
	.ga-pgallery .ga-pg-item,
	.ga-q-a .ga-pg-item, .ga-q-b .ga-pg-item, .ga-q-c .ga-pg-item { grid-column: span 6; aspect-ratio: 4 / 3; }
	.ga-q-a .ga-pg-item:nth-child(6n+1), .ga-q-a .ga-pg-item:nth-child(6n+4) { grid-column: span 12; }
	.ga-bullets, .ga-services-list { grid-template-columns: 1fr; }
	.cta-strip .container { flex-direction: column; align-items: flex-start; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.ga-tslider-track { transition: none; }
	.cat-tile .ph, .pcard-media .ph, .pcard-media img { transition: none; }
	.ga-spinner { animation-duration: 2s; }
}
