/*!
 * GEO Israel — Design System
 * Independent, closed design system. Every rule here is scoped under a
 * `.geo-` prefixed class or a small set of documented element selectors
 * (html, body, a, button resets). Nothing here is meant to be overridden
 * by, or inherit from, a plugin, page builder, or another theme.
 * See DESIGN-SYSTEM.md for the full rationale and usage guide.
 */

/* ==========================================================================
   1. Design tokens (CSS variables)
   ========================================================================== */
:root {
	/* Brand colors — from the approved GEO Israel logo concept (network/node mark) */
	--geo-navy: #0b1d33;
	--geo-navy-soft: #12294a;
	--geo-black: #1f232b;
	--geo-cyan: #00bbd6;
	--geo-cyan-soft: rgba(0, 187, 214, 0.12);
	--geo-light: #f2f5f7;
	--geo-white: #ffffff;
	--geo-border: rgba(31, 35, 43, 0.12);
	--geo-border-on-dark: rgba(255, 255, 255, 0.14);
	--geo-text: var(--geo-black);
	--geo-text-muted: rgba(31, 35, 43, 0.66);
	--geo-text-on-dark: var(--geo-white);
	--geo-text-on-dark-muted: rgba(255, 255, 255, 0.7);

	/* Typography — dual-font system: Gilroy (Latin, licensed) + Heebo (Hebrew).
	   Gilroy font files are supplied separately by the client (see
	   LOGO-BRAND-NOTES.md); until then this stack falls back gracefully. */
	--font-latin: 'Gilroy', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-hebrew: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: var(--font-hebrew);

	--text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
	--text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
	--text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	--text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
	--text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
	--text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
	--text-3xl: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);
	--text-4xl: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);
	--text-5xl: clamp(2.75rem, 2.1rem + 2.8vw, 4.25rem);

	--leading-tight: 1.2;
	--leading-normal: 1.5;
	--leading-relaxed: 1.75;

	/* Spacing scale */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--space-10: 8rem;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-full: 999px;

	--shadow-sm: 0 1px 2px rgba(11, 29, 51, 0.06);
	--shadow-md: 0 8px 24px rgba(11, 29, 51, 0.08);
	--shadow-lg: 0 20px 48px rgba(11, 29, 51, 0.14);

	--container-max: 1200px;
	--container-pad: var(--space-4);

	--transition-fast: 150ms ease;
	--transition-base: 220ms ease;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

html[dir='rtl'] {
	--font-body: var(--font-hebrew);
}

html[dir='ltr'] {
	--font-body: var(--font-latin);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--geo-text);
	background: var(--geo-white);
	overflow-x: hidden;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--space-3);
	line-height: var(--leading-tight);
	font-weight: 700;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); font-weight: 600; }
h4 { font-size: var(--text-lg); font-weight: 600; }

p {
	margin: 0 0 var(--space-4);
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Skip link — accessibility */
.geo-skip-link {
	position: absolute;
	inset-inline-start: var(--space-2);
	top: -100px;
	background: var(--geo-navy);
	color: var(--geo-white);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-sm);
	z-index: 1000;
	transition: top var(--transition-fast);
}

.geo-skip-link:focus {
	top: var(--space-2);
}

:focus-visible {
	outline: 2px solid var(--geo-cyan);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */
.geo-section {
	padding-block: var(--space-8);
}

.geo-section--tight {
	padding-block: var(--space-6);
}

.geo-section--dark {
	background: var(--geo-navy);
	color: var(--geo-text-on-dark);
}

.geo-section--light {
	background: var(--geo-light);
}

.geo-container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.geo-section-head {
	max-width: 44rem;
	margin-bottom: var(--space-6);
}

.geo-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.geo-eyebrow {
	display: inline-block;
	font-family: var(--font-latin);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--geo-cyan);
	margin-bottom: var(--space-3);
}

.geo-grid {
	display: grid;
	gap: var(--space-5);
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.geo-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.geo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.geo-grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ==========================================================================
   4. Buttons — .geo-btn system (mandatory, no ad-hoc button styling)
   ========================================================================== */
.geo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0.85em 1.6em;
	font-size: var(--text-base);
	font-weight: 600;
	border-radius: var(--radius-full);
	border: 1px solid transparent;
	transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
	white-space: nowrap;
}

.geo-btn:hover {
	transform: translateY(-1px);
}

.geo-btn-primary {
	background: var(--geo-cyan);
	color: var(--geo-navy);
}

.geo-btn-primary:hover {
	background: #00a6bf;
}

.geo-btn-secondary {
	background: var(--geo-navy);
	color: var(--geo-white);
}

.geo-btn-secondary:hover {
	background: var(--geo-navy-soft);
}

.geo-btn-outline {
	background: transparent;
	border-color: currentColor;
	color: var(--geo-navy);
}

.geo-btn-outline:hover {
	background: var(--geo-cyan-soft);
}

.geo-btn-dark {
	background: var(--geo-black);
	color: var(--geo-white);
}

.geo-btn-light {
	background: var(--geo-white);
	color: var(--geo-navy);
	border-color: var(--geo-border);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
.geo-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--geo-border);
}

.geo-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding-block: var(--space-3);
}

.geo-logo {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-latin);
	color: var(--geo-navy);
}

.geo-logo__mark {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.geo-logo__word {
	font-size: var(--text-lg);
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.geo-logo__word b {
	font-weight: 800;
}

.geo-logo__word span {
	font-weight: 400;
	color: var(--geo-black);
}

.geo-logo__tagline {
	display: block;
	font-family: var(--font-hebrew);
	font-size: 0.65rem;
	font-weight: 400;
	color: var(--geo-text-muted);
	white-space: nowrap;
}

.geo-logo img {
	max-height: 40px;
	width: auto;
}

.geo-nav {
	display: none;
}

.geo-nav ul {
	display: flex;
	align-items: center;
	gap: var(--space-5);
}

.geo-nav a {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--geo-black);
	transition: color var(--transition-fast);
}

.geo-nav a:hover {
	color: var(--geo-cyan);
}

.geo-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.geo-lang-switch ul {
	display: flex;
	gap: var(--space-2);
	border: 1px solid var(--geo-border);
	border-radius: var(--radius-full);
	padding: 2px;
}

.geo-lang-switch a {
	display: inline-block;
	padding: 0.3em 0.7em;
	font-size: var(--text-xs);
	font-weight: 700;
	border-radius: var(--radius-full);
	color: var(--geo-text-muted);
}

.geo-lang-switch a.is-current {
	background: var(--geo-navy);
	color: var(--geo-white);
}

.geo-menu-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	padding: var(--space-2);
}

.geo-menu-toggle span {
	width: 22px;
	height: 2px;
	background: var(--geo-navy);
	transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.geo-nav--mobile {
	position: fixed;
	inset: 0;
	top: 64px;
	background: var(--geo-white);
	padding: var(--space-6) var(--container-pad);
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-base), transform var(--transition-base);
	overflow-y: auto;
}

.geo-nav--mobile.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.geo-nav--mobile ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.geo-nav--mobile a {
	display: block;
	padding: var(--space-3) 0;
	font-size: var(--text-lg);
	font-weight: 600;
	border-bottom: 1px solid var(--geo-border);
}

@media (min-width: 960px) {
	.geo-nav {
		display: block;
	}
	.geo-menu-toggle {
		display: none;
	}
	.geo-nav--mobile {
		display: none;
	}
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.geo-hero {
	position: relative;
	background: var(--geo-navy);
	color: var(--geo-text-on-dark);
	overflow: hidden;
	padding-block: var(--space-8) var(--space-9);
}

.geo-hero__grid {
	display: grid;
	gap: var(--space-7);
	align-items: center;
}

@media (min-width: 960px) {
	.geo-hero__grid {
		grid-template-columns: 1.1fr 0.9fr;
	}
}

.geo-hero h1 {
	font-size: var(--text-5xl);
	margin-bottom: var(--space-4);
}

.geo-hero__subtitle {
	font-size: var(--text-lg);
	color: var(--geo-text-on-dark-muted);
	max-width: 40rem;
	margin-bottom: var(--space-6);
}

.geo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.geo-hero__visual {
	position: relative;
	display: grid;
	gap: var(--space-3);
}

.geo-hero__card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--geo-border-on-dark);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	backdrop-filter: blur(6px);
}

.geo-hero__card-title {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--geo-cyan);
	margin-bottom: var(--space-1);
}

.geo-hero__card-text {
	font-size: var(--text-sm);
	color: var(--geo-text-on-dark-muted);
	margin: 0;
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.geo-card {
	background: var(--geo-white);
	border: 1px solid var(--geo-border);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.geo-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.geo-card__icon {
	width: 40px;
	height: 40px;
	color: var(--geo-cyan);
	margin-bottom: var(--space-3);
}

.geo-card h3 {
	margin-bottom: var(--space-2);
}

.geo-card p {
	color: var(--geo-text-muted);
	margin: 0;
}

.geo-service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--geo-white);
	border: 1px solid var(--geo-border);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	box-shadow: var(--shadow-sm);
}

.geo-service-card h3 {
	margin-bottom: var(--space-2);
}

.geo-service-card p {
	color: var(--geo-text-muted);
	flex-grow: 1;
}

.geo-service-card .geo-btn {
	align-self: flex-start;
	margin-top: var(--space-3);
}

.geo-blog-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--geo-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--geo-white);
	box-shadow: var(--shadow-sm);
}

.geo-blog-card__image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.geo-blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.geo-blog-card__body {
	padding: var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.geo-blog-card__meta {
	font-size: var(--text-xs);
	color: var(--geo-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.geo-blog-card h3 {
	font-size: var(--text-lg);
	margin-bottom: 0;
}

/* ==========================================================================
   8. Forms
   ========================================================================== */
.geo-form {
	display: grid;
	gap: var(--space-4);
}

.geo-form__row {
	display: grid;
	gap: var(--space-1);
}

.geo-form label {
	font-size: var(--text-sm);
	font-weight: 600;
}

.geo-form input,
.geo-form select,
.geo-form textarea {
	font: inherit;
	font-size: var(--text-base);
	padding: 0.75em 1em;
	border: 1px solid var(--geo-border);
	border-radius: var(--radius-sm);
	background: var(--geo-white);
	color: var(--geo-text);
	width: 100%;
}

.geo-form input:focus,
.geo-form select:focus,
.geo-form textarea:focus {
	border-color: var(--geo-cyan);
}

.geo-form__hint {
	font-size: var(--text-xs);
	color: var(--geo-text-muted);
}

.geo-form fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--space-2);
}

.geo-form legend {
	font-size: var(--text-sm);
	font-weight: 600;
	margin-bottom: var(--space-1);
	padding: 0;
}

.geo-form__checkbox {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-weight: 400;
	font-size: var(--text-sm);
}

.geo-form__checkbox input {
	width: auto;
	flex-shrink: 0;
}

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.geo-cta {
	background: var(--geo-navy);
	color: var(--geo-text-on-dark);
	border-radius: var(--radius-lg);
	padding: var(--space-7) var(--space-6);
	text-align: center;
}

.geo-cta h2 {
	margin-bottom: var(--space-2);
}

.geo-cta p {
	color: var(--geo-text-on-dark-muted);
	max-width: 36rem;
	margin-inline: auto;
	margin-bottom: var(--space-5);
}

.geo-cta--final {
	margin-block: var(--space-8);
}

/* ==========================================================================
   10. FAQ accordion
   ========================================================================== */
.geo-faq__item {
	border-bottom: 1px solid var(--geo-border);
}

.geo-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4) 0;
	text-align: start;
	font-size: var(--text-lg);
	font-weight: 600;
}

.geo-faq__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	transition: transform var(--transition-base);
}

.geo-faq__question[aria-expanded='true'] .geo-faq__icon {
	transform: rotate(45deg);
}

.geo-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--transition-base);
}

.geo-faq__answer-inner {
	overflow: hidden;
}

.geo-faq__item.is-open .geo-faq__answer {
	grid-template-rows: 1fr;
}

.geo-faq__answer p {
	color: var(--geo-text-muted);
	padding-bottom: var(--space-4);
}

/* ==========================================================================
   11. Breadcrumbs (Yoast output, theme-styled wrapper only)
   ========================================================================== */
.geo-breadcrumbs {
	font-size: var(--text-xs);
	color: var(--geo-text-muted);
	padding-block: var(--space-4);
}

.geo-breadcrumbs a {
	color: var(--geo-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ==========================================================================
   12. Generator (GEO Readiness Checker)
   ========================================================================== */
.geo-generator {
	background: var(--geo-light);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
}

.geo-generator__result {
	margin-top: var(--space-5);
	padding: var(--space-5);
	border-radius: var(--radius-md);
	background: var(--geo-white);
	border: 1px solid var(--geo-border);
	display: none;
}

.geo-generator__result.is-visible {
	display: block;
}

.geo-generator__score {
	font-family: var(--font-latin);
	font-size: var(--text-4xl);
	font-weight: 800;
	color: var(--geo-cyan);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.geo-footer {
	background: var(--geo-black);
	color: var(--geo-text-on-dark);
	padding-block: var(--space-8) var(--space-5);
}

.geo-footer__grid {
	display: grid;
	gap: var(--space-6);
	margin-bottom: var(--space-6);
}

@media (min-width: 720px) {
	.geo-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
	}
}

.geo-footer__brand p {
	color: var(--geo-text-on-dark-muted);
	max-width: 26rem;
}

.geo-footer h4 {
	color: var(--geo-white);
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: var(--space-3);
}

.geo-footer ul {
	display: grid;
	gap: var(--space-2);
}

.geo-footer a {
	color: var(--geo-text-on-dark-muted);
	font-size: var(--text-sm);
}

.geo-footer a:hover {
	color: var(--geo-cyan);
}

.geo-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2);
	padding-top: var(--space-5);
	border-top: 1px solid var(--geo-border-on-dark);
	font-size: var(--text-xs);
	color: var(--geo-text-on-dark-muted);
}

/* ==========================================================================
   14. Utilities
   ========================================================================== */
.geo-text-muted { color: var(--geo-text-muted); }
.geo-text-center { text-align: center; }
.geo-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
