/*
Theme Name: Egami Construction
Theme URI: https://egamiconstruction.com
Author: Egami Construction
Description: Custom WordPress theme for Egami Construction, built from the Egami Construction Site Figma file (fileKey jdctLBOVzv6OubwkG8z9ht). Traffic signage, structures, and traffic control devices for highway/street/bridge construction in Oregon.
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: egami
*/

/* ==========================================================================
   Design tokens — from Figma
   ========================================================================== */
:root {
	--black: #000000;
	--black-soft: #1a1a1a;
	--white: #ffffff;
	--yellow: #f4bc35;
	--yellow-dark: #d9a422;
	--gray-100: #f4f4f4;
	--gray-300: #d8d8d8;
	--gray-500: #6b6b6b;
	--gray-700: #444444;
	--footer-text: #cfcfcf;
	--footer-text-dim: #8a8a8a;

	--font-heading: 'Oswald', sans-serif;
	--font-body: 'Inter', sans-serif;

	--container-max: 1440px;
	--container-pad: 80px;

	--radius: 4px;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--gray-700);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--yellow);
	color: var(--black);
	padding: 12px 20px;
	z-index: 10000;
	font-family: var(--font-heading);
	font-weight: 600;
	text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* Type scale */
.h1, .egami-h1 { font-size: 48px; letter-spacing: 0.96px; }
.h2, .egami-h2 { font-size: 38px; letter-spacing: 0.76px; }
.h3, .egami-h3 { font-size: 24px; letter-spacing: 0.48px; }
.eyebrow {
	display: block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1.68px;
	text-transform: uppercase;
	color: var(--yellow-dark);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: var(--radius);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	border: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-soft); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }

/* Placeholder image block — used until real Figma-exported images are
   uploaded. Diagonal stripe pattern, matches prior build convention. */
.egami-placeholder {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background-color: var(--gray-300);
	background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.06) 2px, transparent 2px, transparent 14px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.egami-placeholder span {
	font-family: var(--font-body);
	font-size: 11px;
	color: var(--gray-500);
	background: rgba(255,255,255,0.85);
	padding: 3px 8px;
	border-radius: 3px;
	text-align: center;
	max-width: 90%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--white);
	border-bottom: 4px solid var(--yellow);
	position: relative;
	z-index: 100;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px var(--container-pad);
	max-width: var(--container-max);
	margin: 0 auto;
}
.branding { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.branding__mark { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--black); }
.branding__mark img { width: 100%; height: 100%; object-fit: cover; }
.branding__text { display: flex; flex-direction: column; gap: 2px; text-transform: uppercase; min-width: 0; }
.branding__name, .branding__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branding__name { font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--black); }
.branding__meta { font-family: var(--font-body); font-size: 12px; color: var(--gray-500); letter-spacing: 0.96px; }

/* .nav-menu and .mobile-nav (in responsive.css) wrap bare <li> items with
   no <ul> — see the egami_nav_fallback() note in functions.php — so the
   global `ul { list-style: none }` reset doesn't reach them via tag
   selector. list-style is inherited, so setting it here on the <nav>
   itself is enough to drop the default bullet markers on those <li>s. */
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-menu a {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	color: var(--black);
}
.nav-menu a:hover { color: var(--yellow-dark); }

.header-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
/* line-height: 1 here matters more than it looks — the phone number has no
   descenders, so at the inherited body line-height (1.6) the digits sit
   noticeably above the middle of their own line box. align-items:center
   then centers the icon on that box, not on the digits themselves, so the
   icon reads as sitting too low / off-center next to the number. Tightening
   the line-height removes that extra space so both actually line up. */
.header-phone { display: flex; align-items: center; gap: 9px; font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1; color: var(--black); }
.header-phone svg { width: 19px; height: 19px; color: var(--black); stroke: var(--black); stroke-width: 2.4; flex-shrink: 0; }

/* Hidden by default — only shown (as a dropdown panel) at the ≤1024px
   breakpoint in responsive.css, and only once .is-open is toggled by JS.
   Without this base rule the <nav> falls back to the browser's default
   block/list display at every width, which is why it was showing up as
   a second, unstyled nav row under the header on desktop. */
.mobile-nav { display: none; }

.hamburger {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--black); transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero (Homepage)
   ========================================================================== */
.hero {
	background: var(--black);
	display: flex;
	align-items: stretch;
	gap: 78px;
	min-height: 661px;
}
.hero__content {
	flex: 0 0 680px;
	max-width: 680px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	align-self: center;
	padding: 40px 0 40px var(--container-pad);
}
.hero__heading { font-size: 48px; letter-spacing: 0.96px; color: var(--white); }
.hero__eyebrow { color: var(--yellow); }
.hero__text { font-family: var(--font-body); font-size: 18px; color: #e6e6e6; line-height: 1.6; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; }
.hero__badges { display: flex; gap: 40px; padding-top: 24px; flex-wrap: wrap; }
.hero__badge-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--white); margin: 0 0 2px; }
.hero__badge-sub { font-family: var(--font-body); font-size: 12.5px; color: #cfcfcf; margin: 0; }
.hero__photo { flex: 1; position: relative; min-width: 0; }
.hero__photo img, .hero__photo .egami-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Section header (centered eyebrow + h2 + optional body)
   ========================================================================== */
.section-header { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.section-header .h2 { color: var(--black); }
.section-header p.body { font-family: var(--font-body); font-size: 17px; color: var(--gray-700); }

/* ==========================================================================
   Logos band ("associated with these outstanding organizations")
   Deliberately a centered flex-wrap row (not fixed positions) so logos
   can be added/removed and it always stays centered — per the Figma note.
   ========================================================================== */
.services-section { padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.logos-band {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 48px;
	max-width: 1280px;
	margin: 0 auto;
}
.logos-band__item { display: flex; align-items: center; justify-content: center; height: 90px; }
.logos-band__item .egami-placeholder { width: 160px; height: 80px; min-height: 0; }
.logos-band__img { max-height: 90px; width: auto; object-fit: contain; }

/* ==========================================================================
   Certification badges band (About page — new)
   ========================================================================== */
.cert-band-section { background: var(--white); padding: 64px var(--container-pad) 56px; border-bottom: 1px solid var(--gray-300); }
.cert-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; max-width: 1280px; margin: 0 auto; }
.cert-band__item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 200px; }
.cert-band__pill { width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--gray-300); overflow: hidden; background: var(--white); }
.cert-band__pill .egami-placeholder { min-height: 0; }
.cert-band__img { width: 100%; height: 100%; object-fit: cover; }
.cert-band__label {
	margin-top: 12px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: var(--black-soft);
}

/* ==========================================================================
   Recently Featured (About page — new YouTube embed)
   ========================================================================== */
.featured-video-section { padding: 80px var(--container-pad); text-align: center; }
.featured-video-section .eyebrow { color: var(--yellow); }
.featured-video-section .h2 { margin-top: 6px; margin-bottom: 32px; color: var(--black-soft); }
.featured-video-wrap { max-width: 854px; margin: 0 auto; position: relative; aspect-ratio: 854 / 480; background: var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.featured-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Featured Work / Project cards
   ========================================================================== */
.featured-work { background: var(--gray-100); padding: 96px 0; }
.featured-work .section-header { margin-bottom: 48px; }
.projects-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; max-width: var(--container-max); margin: 0 auto 48px; padding: 0 var(--container-pad); }
.featured-work .btn-row { text-align: center; }

.project-card {
	position: relative;
	display: block;
	width: 380px;
	height: 380px;
	max-width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--black);
	flex-shrink: 0;
}
.project-card__photo, .project-card .egami-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card__overlay {
	/* Ramps up smoothly, then holds flat at 69% opacity from just above
	   the text zone down to the bottom edge — that flat plateau (not a
	   separate stacked box) is what darkens the title/eyebrow enough to
	   read. Because it's flat black at 0.69 for the whole lower ~40% of
	   the card, a one-line title and a two-line title both land inside
	   the plateau and get the exact same 69% behind them — no seam,
	   whatever the title length. */
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.69) 58%, rgba(0,0,0,0.69) 100%);
}
.project-card__content {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 24px;
	display: flex; flex-direction: column; gap: 4px;
}
.project-card__eyebrow { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: 1.68px; text-transform: uppercase; color: var(--yellow); }
.project-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 24px; letter-spacing: 0.48px; text-transform: uppercase; color: var(--white); line-height: 1.2; }

.project-card:hover, .project-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.28);
	outline: 3px solid var(--yellow);
	outline-offset: -3px;
}
.project-card:hover .project-card__photo, .project-card:focus-visible .project-card__photo { transform: scale(1.06); }
.project-card:hover .project-card__overlay, .project-card:focus-visible .project-card__overlay {
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.14) 38%, rgba(0,0,0,0.58) 58%, rgba(0,0,0,0.58) 100%);
}

@media (prefers-reduced-motion: reduce) {
	.project-card, .project-card__photo { transition: none !important; }
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band { background: var(--yellow); padding: 56px var(--container-pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-band .h2 { color: var(--black); }
.cta-band p { font-family: var(--font-body); font-size: 17px; color: #3b3b3b; max-width: 560px; line-height: 1.6; }

/* ==========================================================================
   Page Header Bar (interior pages)
   ========================================================================== */
.page-header-bar { background: var(--black); padding: 56px var(--container-pad); text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.page-header-bar .eyebrow { color: var(--yellow); }
.page-header-bar .h1 { color: var(--white); }

/* ==========================================================================
   About Hero
   ========================================================================== */
.about-hero { display: flex; gap: 56px; align-items: center; padding: 80px var(--container-pad); max-width: var(--container-max); margin: 0 auto; }
.about-hero__photo { flex-shrink: 0; width: 560px; height: 749px; max-width: 100%; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.14); overflow: hidden; }
.about-hero__photo img, .about-hero__photo .egami-placeholder { width: 100%; height: 100%; object-fit: cover; }
.about-hero__story { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-hero__story .eyebrow { color: var(--yellow-dark); }
.about-hero__story-text { font-family: var(--font-body); font-size: 17px; color: var(--gray-700); line-height: 1.6; white-space: pre-line; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__number { font-family: var(--font-heading); font-weight: 700; font-size: 34px; color: var(--yellow-dark); }
.stat__label { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.625px; text-transform: uppercase; color: var(--gray-500); }

/* ==========================================================================
   Contact / Request a Quote
   ========================================================================== */
.contact-section { display: flex; gap: 48px; align-items: flex-start; padding: 80px var(--container-pad); max-width: var(--container-max); margin: 0 auto; }
.contact-info-card { flex: 0 0 440px; max-width: 100%; background: var(--black); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-card .h3 { color: var(--white); }
.info-item__label { font-family: var(--font-heading); font-weight: 600; font-size: 12.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--white); margin: 0 0 2px; }
.info-item__value { font-family: var(--font-body); font-size: 15px; color: #d9d9d9; margin: 0; }

.contact-form-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-form-column .h3 { color: var(--black); }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.375px; text-transform: uppercase; color: var(--black); }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select, .form-group textarea {
	background: var(--white);
	border: 2px solid var(--gray-300);
	border-radius: var(--radius);
	padding: 14px 16px;
	font-size: 15px;
	color: var(--black);
	width: 100%;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-500); }

.form-notice { padding: 14px 18px; border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; margin-bottom: 8px; }
.form-notice--success { background: #e6f6ea; color: #1e7a3a; border: 1px solid #b6e3c2; }
.form-notice--error { background: #fdecec; color: #b3261e; border: 1px solid #f5b8b4; }

/* ==========================================================================
   Projects archive
   ========================================================================== */
.projects-section { padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 0 var(--container-pad); }
.filter-pill {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 999px;
	border: 2px solid var(--black);
	background: var(--white);
	color: var(--black);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.52px;
	text-transform: uppercase;
}
.filter-pill.is-active, .filter-pill:hover { background: var(--black); color: var(--white); }

.project-rows { display: flex; flex-direction: column; gap: 32px; width: 100%; max-width: var(--container-max); padding: 0 var(--container-pad); }
.project-row { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }

.pagination { display: flex; gap: 24px; align-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--black); }
.pagination a { color: var(--black); }
.pagination a:hover { color: var(--yellow-dark); }
.pagination .current { color: var(--yellow-dark); }

/* ==========================================================================
   Single Project
   ========================================================================== */
.project-hero { background: var(--black); padding: 56px var(--container-pad) 32px; display: flex; flex-direction: column; gap: 16px; }
.project-hero .eyebrow { color: var(--yellow); }
.project-hero .h1 { color: var(--white); }
.project-meta { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 8px; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-item__label { font-family: var(--font-heading); font-weight: 700; font-size: 12.5px; letter-spacing: 0.75px; text-transform: uppercase; color: var(--yellow); }
.meta-item__value { font-family: var(--font-body); font-size: 15px; color: var(--white); }

.featured-image-section { display: flex; justify-content: center; padding-top: 40px; width: 100%; }
/* aspect-ratio (not a fixed height) keeps the frame's proportions correct
   at any screen width — the frame used to stay a rigid 640px tall while its
   width shrank on mobile (max-width: 90%), so the box's shape no longer
   matched the photo's and the image got stretched/warped to fill it.
   object-fit: cover is the other half of the fix: it crops to fill the box
   instead of distorting the image if the two shapes ever don't match. */
.featured-image-section .frame { width: 1138px; max-width: 90%; aspect-ratio: 1138 / 640; border-radius: var(--radius); overflow: hidden; }
.featured-image-section .frame img, .featured-image-section .frame .egami-placeholder { width: 100%; height: 100%; object-fit: cover; }

.entry-content { max-width: var(--container-max); margin: 0 auto; padding: 56px var(--container-pad); display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: left; }
.entry-content > p { max-width: 1166px; font-size: 17px; line-height: 1.6; color: var(--gray-700); }

/* Gallery slider — 3 images visible at a time, horizontal, arrow-driven.
   The viewport scrolls natively (overflow-x + scroll-snap); the arrows just
   nudge scrollLeft by one item's width, so touch/trackpad swipe works too
   without any extra JS. */
.gallery-slider { display: flex; align-items: center; gap: 12px; width: 100%; }
.gallery-slider__viewport {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.gallery-slider__viewport::-webkit-scrollbar { display: none; }

.project-gallery-grid { display: flex; gap: 13px; flex-wrap: nowrap; width: 100%; }
.project-gallery-grid .gallery-item {
	flex: 0 0 calc((100% - 2 * 13px) / 3);
	scroll-snap-align: start;
	height: auto;
	aspect-ratio: 1 / 1;
	max-width: 100%;
	border-radius: var(--radius);
	overflow: hidden;
}
.project-gallery-grid .gallery-item img, .project-gallery-grid .gallery-item .egami-placeholder { width: 100%; height: 100%; object-fit: cover; }

.gallery-item__trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
}
.gallery-item__trigger img { transition: transform 0.3s ease; }
.gallery-item__trigger:hover img, .gallery-item__trigger:focus-visible img { transform: scale(1.05); }
.gallery-item__trigger:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

.gallery-slider__arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--black);
	background: var(--white);
	color: var(--black);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.gallery-slider__arrow svg { width: 20px; height: 20px; }
.gallery-slider__arrow:hover, .gallery-slider__arrow:focus-visible { background: var(--black); color: var(--white); }
.gallery-slider__arrow[hidden] { display: none; }

/* Lightbox — click a gallery image to view it enlarged, with its own
   prev/next so you can browse the whole gallery without closing it. */
.egami-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.egami-lightbox.is-open { display: flex; }
.egami-lightbox__image { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.egami-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
}
.egami-lightbox__close:hover, .egami-lightbox__close:focus-visible { background: rgba(255, 255, 255, 0.24); }
.egami-lightbox__close svg { width: 22px; height: 22px; }
.egami-lightbox__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: var(--white);
}
.egami-lightbox__arrow:hover, .egami-lightbox__arrow:focus-visible { background: rgba(255, 255, 255, 0.24); }
.egami-lightbox__arrow svg { width: 26px; height: 26px; }
.egami-lightbox__arrow--prev { left: 20px; }
.egami-lightbox__arrow--next { right: 20px; }

/* Generic page content (Privacy Policy, Page/Post template) */
.page-content { max-width: var(--container-max); margin: 0 auto; padding: 56px var(--container-pad); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.page-content .featured-image { width: 854px; max-width: 90%; height: 480px; border-radius: var(--radius); overflow: hidden; margin: 0 auto 16px; }
.page-content .featured-image img, .page-content .featured-image .egami-placeholder { width: 100%; height: 100%; object-fit: cover; }
.page-content .entry-body { max-width: 848px; font-size: 17px; line-height: 1.6; color: var(--gray-700); display: flex; flex-direction: column; gap: 20px; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 140px var(--container-pad); text-align: center; }
.error-404__code { font-family: var(--font-heading); font-weight: 700; font-size: 96px; color: var(--yellow-dark); text-transform: uppercase; }
.error-404 .h2 { color: var(--black); }
.error-404 p { font-family: var(--font-body); font-size: 17px; color: var(--gray-700); }
.error-404 .btn-row { padding-top: 12px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--black-soft); }
.footer-top {
	display: flex;
	gap: 40px;
	justify-content: center;
	flex-wrap: wrap;
	padding: 64px var(--container-pad) 40px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	max-width: var(--container-max);
	margin: 0 auto;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 180px; }
.footer-col__title { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 1.04px; text-transform: uppercase; color: var(--yellow); margin: 0; }
.footer-col a, .footer-col p { font-family: var(--font-body); font-size: 14.5px; color: var(--footer-text); margin: 0; }
.footer-col a:hover { color: var(--white); }

.footer-bottom { padding: 20px var(--container-pad); text-align: center; }
.footer-bottom p { font-family: var(--font-body); font-size: 12.5px; color: var(--footer-text-dim); margin: 0; }
.footer-bottom a { text-decoration: underline; color: var(--footer-text-dim); }

/* Comments (basic, matches theme voice) */
.comments-area { max-width: 848px; margin: 40px auto; padding: 0 var(--container-pad); }
