/* ============================================================
   ISOLIERGLAS ONLINE — main.css
   Base + buttons + header + hero + footer + generic pages
   Phase 1 styles only. Subsequent phases append new CSS files
   that declare main.css as a dependency.
   ============================================================ */

/* ============================================================
   1. BASE / RESET
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
	font-family: var(--ig-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ig-text);
	background: var(--ig-paper);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Accessibility: skip-link */
.ig-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	padding: 12px 18px;
	background: var(--ig-ink);
	color: var(--ig-brass);
	font-weight: 600;
	z-index: 10000;
}
.ig-skip-link:focus {
	left: 12px;
	top: 12px;
	outline: 2px solid var(--ig-brass);
}

/* Screen-reader-only — visually hidden but available to assistive tech */
.ig-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============================================================
   2. BUTTONS
   ============================================================ */
.ig-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	font-family: var(--ig-font);
	font-weight: 600;
	font-size: 15px;
	border-radius: var(--ig-r-md);
	border: 1.5px solid transparent;
	transition: background var(--ig-t-fast), color var(--ig-t-fast),
				border-color var(--ig-t-fast), transform var(--ig-t-fast);
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
}

.ig-btn:focus-visible {
	outline: 2px solid var(--ig-brass);
	outline-offset: 3px;
}

.ig-btn-primary {
	background: var(--ig-ink);
	color: var(--ig-on-ink);
}
.ig-btn-primary:hover {
	background: var(--ig-ink-soft);
	transform: translateY(-1px);
}

.ig-btn-secondary {
	background: transparent;
	color: var(--ig-ink);
	border-color: var(--ig-ink-line);
}
.ig-btn-secondary:hover {
	border-color: var(--ig-ink);
	background: var(--ig-paper-2);
}

/* ============================================================
   3. BRAND MARK
   Three vertical bars (white / brass / white) reused in header + footer
   ============================================================ */
.ig-brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}
.ig-brand-mark span {
	width: 4px;
	height: 22px;
	background: rgba(240, 238, 233, 0.85);
	border-radius: 1px;
}
.ig-brand-mark span:nth-child(2) {
	width: 8px;
	background: var(--ig-brass);
}
.ig-brand-mark span:nth-child(3) {
	width: 4px;
}

.ig-brand-text {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
	color: var(--ig-on-ink);
}
.ig-brand-text em {
	font-style: normal;
	color: var(--ig-brass);
	font-weight: 600;
}

/* ============================================================
   4. HEADER — sticky anthracite bar
   ============================================================ */
.ig-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ig-ink);
	color: var(--ig-on-ink);
	border-bottom: 1px solid var(--ig-on-ink-line);
}

.ig-header-inner {
	max-width: var(--ig-max);
	margin: 0 auto;
	padding: 0 32px;
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.ig-logo img {
	max-height: 46px;
	width: auto;
}

.ig-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Nav */
.ig-nav { display: flex; }
.ig-nav-menu {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	font-size: 14px;
	font-weight: 500;
}
.ig-nav-menu a {
	color: var(--ig-on-ink-soft);
	transition: color var(--ig-t-fast);
	position: relative;
	padding: 4px 0;
}
.ig-nav-menu a:hover,
.ig-nav-menu .current-menu-item > a {
	color: var(--ig-brass);
}

/* Right cluster */
.ig-header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ig-header-meta {
	display: flex;
	align-items: center;
	font-size: 12px;
	font-family: var(--ig-font-mono);
	color: var(--ig-on-ink-muted);
}
.ig-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ig-success);
	box-shadow: 0 0 0 3px rgba(116, 207, 140, 0.18);
	display: inline-block;
	margin-right: 8px;
}

.ig-header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	background: var(--ig-brass);
	color: var(--ig-ink);
	font-weight: 600;
	font-size: 14px;
	border-radius: var(--ig-r-md);
	transition: background var(--ig-t-fast), transform var(--ig-t-fast);
}
.ig-header-cta:hover {
	background: var(--ig-brass-hover);
	transform: translateY(-1px);
}
.ig-header-cta:focus-visible {
	outline: 2px solid var(--ig-on-ink);
	outline-offset: 2px;
}

/* Mobile menu toggle (hidden on desktop) */
.ig-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--ig-on-ink-line);
	border-radius: var(--ig-r-sm);
	padding: 0;
}
.ig-menu-toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--ig-on-ink);
	margin: 0 auto;
	transition: transform var(--ig-t-fast), opacity var(--ig-t-fast);
}
.ig-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}
.ig-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.ig-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.ig-mobile-nav {
	position: fixed;
	inset: 76px 0 0 0;
	background: var(--ig-ink);
	z-index: 99;
	transform: translateX(100%);
	transition: transform var(--ig-t-base);
	overflow-y: auto;
	visibility: hidden;
}
.ig-mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}
.ig-mobile-nav-inner {
	padding: 40px 28px;
}
.ig-mobile-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ig-mobile-menu a {
	display: block;
	padding: 16px 12px;
	font-size: 20px;
	font-weight: 600;
	color: var(--ig-on-ink);
	border-bottom: 1px solid var(--ig-on-ink-line);
	transition: color var(--ig-t-fast);
}
.ig-mobile-menu a:hover {
	color: var(--ig-brass);
}
.ig-mobile-cta {
	display: block;
	margin-top: 32px;
	padding: 18px 24px;
	text-align: center;
	background: var(--ig-brass);
	color: var(--ig-ink);
	font-weight: 700;
	font-size: 16px;
	border-radius: var(--ig-r-md);
}

/* ============================================================
   5. MAIN CONTAINER
   ============================================================ */
.ig-main {
	min-height: calc(100vh - 76px);
}

/* ============================================================
   6. HERO
   ============================================================ */
.ig-hero {
	padding: 80px 32px 60px;
	max-width: var(--ig-max);
	margin: 0 auto;
	position: relative;
}
.ig-hero::before {
	content: "";
	position: absolute;
	top: 40px;
	right: -120px;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle at center, var(--ig-brass-soft) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.ig-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 80px;
	align-items: center;
	position: relative;
	z-index: 1;
}

/* --- Hero text column ---------------------------------------- */
.ig-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ig-font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ig-brass-deep);
	font-weight: 500;
	margin-bottom: 28px;
}
.ig-hero-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--ig-brass);
}

.ig-hero-title {
	font-size: clamp(2.4rem, 4.6vw, 4.2rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: var(--ig-ink);
	margin-bottom: 28px;
}
.ig-hero-title em {
	font-style: normal;
	display: block;
	font-weight: 300;
	color: var(--ig-text-muted);
}
.ig-hero-title .ig-underline-mark {
	background-image: linear-gradient(transparent 70%, var(--ig-brass-soft) 70%);
	padding: 0 4px;
	color: var(--ig-ink);
	font-weight: 400;
}

.ig-hero-sub {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ig-text-muted);
	max-width: 520px;
	margin-bottom: 36px;
}

.ig-hero-cta {
	display: flex;
	gap: 14px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

/* Hero spec strip (4 cells) */
.ig-hero-specs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	list-style: none;
	border-top: 1px solid var(--ig-ink-line);
	padding-top: 24px;
}
.ig-hero-spec {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-right: 16px;
	border-right: 1px solid var(--ig-ink-line);
}
.ig-hero-spec:last-child { border-right: none; }
.ig-hero-spec:first-child { padding-left: 0; }
.ig-hero-spec:not(:first-child) { padding-left: 16px; }

.ig-hero-spec-label {
	font-family: var(--ig-font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ig-text-subtle);
	font-weight: 500;
}
.ig-hero-spec-value {
	font-size: 20px;
	font-weight: 600;
	color: var(--ig-ink);
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
}
.ig-hero-spec-value small {
	font-family: var(--ig-font-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--ig-text-muted);
	letter-spacing: 0;
}

/* --- Hero visual column -------------------------------------- */
.ig-hero-visual {
	position: relative;
}

.ig-hero-photo {
	position: relative;
	border-radius: var(--ig-r-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--ig-paper-2);
	box-shadow: var(--ig-sh-lg);
}
.ig-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ig-hero-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--ig-text-subtle);
	font-family: var(--ig-font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-align: center;
	padding: 24px;
}

.ig-hero-photo-badge {
	position: absolute;
	left: 22px;
	bottom: 22px;
	background: rgba(26, 29, 35, 0.86);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: var(--ig-r-md);
	padding: 14px 18px;
	color: var(--ig-on-ink);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ig-badge-eyebrow {
	font-family: var(--ig-font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ig-brass);
	font-weight: 500;
}
.ig-badge-code {
	font-family: var(--ig-font-mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ig-hero-visual-foot {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	margin-top: 18px;
	padding: 22px 24px;
	background: var(--ig-card);
	border: 1px solid var(--ig-ink-line);
	border-radius: var(--ig-r-md);
	box-shadow: var(--ig-sh-sm);
}
.ig-kpi {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 12px;
	border-right: 1px solid var(--ig-ink-line);
}
.ig-kpi:last-child { border-right: none; }
.ig-kpi:first-child { padding-left: 0; }

.ig-kpi-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--ig-ink);
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	line-height: 1.1;
}
.ig-kpi-value small {
	font-family: var(--ig-font-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--ig-text-muted);
	letter-spacing: 0;
}
.ig-kpi-label {
	font-family: var(--ig-font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ig-text-subtle);
	font-weight: 500;
}
.ig-kpi-label sub {
	font-size: 9px;
}

/* ============================================================
   7. GENERIC PAGES (page.php, index.php)
   ============================================================ */
.ig-page {
	padding: 80px 32px;
	max-width: 880px;
	margin: 0 auto;
}
.ig-page-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ig-ink-line);
}
.ig-page-title {
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 700;
	color: var(--ig-ink);
	letter-spacing: -0.025em;
	line-height: 1.1;
}
.ig-page-title a { color: inherit; }
.ig-page-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--ig-text);
}
.ig-page-content > * + * {
	margin-top: 1em;
}
.ig-page-content h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ig-ink);
	letter-spacing: -0.02em;
	margin-top: 1.6em;
}
.ig-page-content h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--ig-ink);
	margin-top: 1.4em;
}
.ig-page-content a {
	color: var(--ig-brass-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Search form */
.ig-search-form {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}
.ig-search-field {
	flex: 1;
	min-width: 200px;
	padding: 14px 16px;
	font-family: var(--ig-font);
	font-size: 15px;
	color: var(--ig-ink);
	background: var(--ig-card);
	border: 1.5px solid var(--ig-ink-line);
	border-radius: var(--ig-r-md);
	outline: none;
}
.ig-search-field:focus { border-color: var(--ig-brass); }

/* ============================================================
   8. FOOTER
   ============================================================ */
.ig-footer {
	background: var(--ig-ink);
	color: var(--ig-on-ink-soft);
	padding: 80px 32px 0;
	margin-top: 80px;
}
.ig-footer-inner {
	max-width: var(--ig-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 60px;
	padding-bottom: 60px;
}

.ig-footer-brand-col {
	max-width: 360px;
}
.ig-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}
.ig-footer-tagline {
	font-size: 14px;
	line-height: 1.65;
	color: var(--ig-on-ink-muted);
}

.ig-footer-col h4 {
	font-family: var(--ig-font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ig-brass);
	font-weight: 600;
	margin-bottom: 20px;
}

.ig-footer-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ig-footer-menu a {
	font-size: 14px;
	color: var(--ig-on-ink-soft);
	transition: color var(--ig-t-fast);
}
.ig-footer-menu a:hover {
	color: var(--ig-brass);
}

.ig-footer-bottom {
	max-width: var(--ig-max);
	margin: 0 auto;
	padding: 24px 0;
	border-top: 1px solid var(--ig-on-ink-line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	font-family: var(--ig-font-mono);
	color: var(--ig-on-ink-muted);
}

/* ============================================================
   9. RESPONSIVE — tablet 1024px, mobile 640px
   ============================================================ */
@media (max-width: 1024px) {
	.ig-header-inner { padding: 0 24px; }
	.ig-hero { padding: 60px 24px 50px; }
	.ig-hero-grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}
	.ig-hero::before {
		display: none;
	}
	.ig-hero-photo { aspect-ratio: 16 / 10; max-width: 720px; }
	.ig-hero-visual-foot { max-width: 720px; }
	.ig-footer { padding: 60px 24px 0; }
	.ig-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
	.ig-footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.ig-header-inner { padding: 0 18px; gap: 12px; height: 68px; }
	.ig-nav { display: none; }
	.ig-header-meta { display: none; }
	.ig-header-cta { display: none; }
	.ig-menu-toggle { display: flex; }
	.ig-mobile-nav { inset: 68px 0 0 0; }

	.ig-hero { padding: 50px 20px 40px; }
	.ig-hero-grid { gap: 40px; }
	.ig-hero-specs {
		grid-template-columns: 1fr 1fr;
		gap: 20px 0;
	}
	.ig-hero-spec:nth-child(2) { border-right: none; }
	.ig-hero-spec:nth-child(3) { padding-left: 0; }
	.ig-hero-cta .ig-btn { width: 100%; justify-content: center; }
	.ig-hero-photo { aspect-ratio: 4 / 3; }
	.ig-hero-visual-foot { padding: 18px 16px; }
	.ig-kpi { padding: 0 8px; }
	.ig-kpi-value { font-size: 20px; }

	.ig-footer { padding: 50px 20px 0; }
	.ig-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
	.ig-footer-brand-col { grid-column: auto; }
	.ig-footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
