/*
 * PHARAON Project Network
 *
 * Every selector is namespaced under .phpn so nothing here can reach an
 * Elementor widget, the Renvo theme or WooCommerce. Typography is inherited on
 * purpose: no font-family is declared anywhere in this file, so the Elementor
 * global fonts and the Renvo scale continue to apply.
 */

.phpn {
	--phpn-blue: #273791;
	--phpn-blue-deep: #1B2568;
	--phpn-orange: #F5901F;
	--phpn-ink: #16203F;
	--phpn-body: #55607D;
	--phpn-line: #E2E6F0;
	--phpn-bg: #F6F8FC;
	--phpn-radius: 16px;
	box-sizing: border-box;
	color: var(--phpn-ink);
}
.phpn *, .phpn *::before, .phpn *::after { box-sizing: border-box; }

.phpn-section-head {
	margin: 0 0 22px;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--phpn-ink);
}

.phpn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--phpn-line);
	border-radius: 10px;
	background: #fff;
	color: var(--phpn-blue);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.phpn-btn:hover { border-color: var(--phpn-blue); }
.phpn-btn:focus-visible { outline: 3px solid var(--phpn-orange); outline-offset: 2px; }
.phpn-btn--primary { background: var(--phpn-blue); border-color: var(--phpn-blue); color: #fff; }
.phpn-btn--primary:hover { background: var(--phpn-blue-deep); }
.phpn-btn--ghost { background: transparent; }
.phpn-btn--small { min-height: 38px; padding: 0 14px; font-size: 13.5px; }

/* ------------------------------------------------------------------ cards */

.phpn-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.phpn-card { min-width: 0; }
.phpn-card__link {
	display: block;
	border-radius: var(--phpn-radius);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--phpn-line);
	text-decoration: none;
	color: inherit;
	transition: transform .25s ease, box-shadow .25s ease;
}
.phpn-card__link:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(22, 32, 63, .12); }
.phpn-card__link:focus-visible { outline: 3px solid var(--phpn-orange); outline-offset: 3px; }
.phpn-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--phpn-bg); }
.phpn-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phpn-card__placeholder { display: block; width: 100%; height: 100%; background: var(--phpn-bg); }
.phpn-card__body { display: block; padding: 18px 20px 22px; }
.phpn-card__title { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
.phpn-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; color: var(--phpn-body); }
.phpn-card__type { color: var(--phpn-orange); font-weight: 600; }

.phpn-empty { padding: 34px 0; color: var(--phpn-body); }

/* ----------------------------------------------------------------- filter */

.phpn-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.phpn-filter__item {
	display: inline-flex; align-items: center; min-height: 40px;
	padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--phpn-line); background: #fff;
	color: var(--phpn-body); font-size: 14px; font-weight: 600; text-decoration: none;
}
.phpn-filter__item.is-active { background: var(--phpn-blue); border-color: var(--phpn-blue); color: #fff; }
.phpn-filter__item:focus-visible { outline: 3px solid var(--phpn-orange); outline-offset: 2px; }

.phpn-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.phpn-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; min-height: 42px; padding: 0 12px;
	border: 1px solid var(--phpn-line); border-radius: 10px;
	background: #fff; color: var(--phpn-body); text-decoration: none; font-weight: 600;
}
.phpn-pagination .page-numbers.current { background: var(--phpn-blue); border-color: var(--phpn-blue); color: #fff; }

/* ----------------------------------------------------------- single project */

.phpn-single { max-width: 1200px; margin: 0 auto; padding: 48px 20px 72px; }
.phpn-hero__title { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.phpn-hero__loc { margin: 0 0 26px; font-size: 16px; color: var(--phpn-orange); font-weight: 600; }
.phpn-hero__media { border-radius: var(--phpn-radius); overflow: hidden; background: var(--phpn-bg); }
.phpn-hero__img { display: block; width: 100%; height: auto; }

.phpn-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 46px; margin-top: 46px; }
.phpn-overview__text { color: var(--phpn-body); font-size: 16.5px; line-height: 1.75; }
.phpn-overview__text p { margin: 0 0 16px; }

.phpn-details {
	align-self: start;
	padding: 26px 26px 22px;
	background: var(--phpn-bg);
	border: 1px solid var(--phpn-line);
	border-radius: var(--phpn-radius);
}
.phpn-details__head { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.phpn-details__list { margin: 0; }
.phpn-details__row { padding: 12px 0; border-top: 1px solid var(--phpn-line); }
.phpn-details__row:first-child { border-top: 0; padding-top: 0; }
.phpn-details dt { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--phpn-body); }
.phpn-details dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--phpn-ink); }
.phpn-details dd a { color: var(--phpn-blue); }
.phpn-details__products { margin: 0; padding: 0; list-style: none; }
.phpn-details__products li { margin: 0 0 4px; }
.phpn-details__dealer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--phpn-line); }
.phpn-details__dealer-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--phpn-body); }
.phpn-details__dealer-name { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 700; }

.phpn-gallery, .phpn-related, .phpn-cta { margin-top: 56px; }
.phpn-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.phpn-gallery__item {
	padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0;
	border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
}
.phpn-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phpn-gallery__item:focus-visible { outline: 3px solid var(--phpn-orange); outline-offset: 3px; }

.phpn-cta {
	padding: 42px 30px;
	text-align: center;
	background: var(--phpn-blue);
	border-radius: var(--phpn-radius);
	color: #fff;
}
.phpn-cta__title { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: #fff; }
.phpn-cta__text { margin: 0 0 22px; color: rgba(255, 255, 255, .86); }
.phpn-cta .phpn-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- archive */

.phpn-archive { max-width: 1200px; margin: 0 auto; padding: 48px 20px 72px; }
.phpn-archive__title { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.phpn-archive__lead { margin: 0 0 34px; max-width: 62ch; color: var(--phpn-body); font-size: 16.5px; }

/* ----------------------------------------------------------------- slider */

.phpn-slider { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.phpn-slider__viewport { overflow: hidden; border-radius: var(--phpn-radius); }
.phpn-slider__track { display: flex; transition: transform .5s cubic-bezier(.22, .68, .32, 1); }
.phpn-slide { flex: 0 0 100%; min-width: 0; }
.phpn-slide__link { display: block; position: relative; text-decoration: none; color: #fff; }
.phpn-slide__media { display: block; aspect-ratio: 16 / 9; background: var(--phpn-bg); }
.phpn-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phpn-slide__body {
	position: absolute; inset: auto 0 0 0; padding: 60px 30px 26px;
	background: linear-gradient(180deg, rgba(8, 13, 36, 0) 0%, rgba(8, 13, 36, .9) 60%);
}
.phpn-slide__type { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--phpn-orange); }
.phpn-slide__title { display: block; margin-top: 6px; font-size: clamp(19px, 2.2vw, 27px); font-weight: 700; }
.phpn-slide__loc { display: block; margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.phpn-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
	background: rgba(8, 13, 36, .45); color: #fff; cursor: pointer; z-index: 3;
}
.phpn-slider__nav svg { width: 20px; height: 20px; }
.phpn-slider__prev { left: 32px; }
.phpn-slider__next { right: 32px; }
.phpn-slider__nav:focus-visible { outline: 3px solid var(--phpn-orange); outline-offset: 2px; }
.phpn-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.phpn-slider__dots button {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
	background: var(--phpn-line); cursor: pointer;
}
.phpn-slider__dots button[aria-selected="true"] { background: var(--phpn-orange); transform: scale(1.3); }
.phpn-slider__cta { margin-top: 24px; text-align: center; }

/* -------------------------------------------------------------- lightbox */

.phpn-lightbox {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 4vh 4vw; background: rgba(5, 9, 26, .93);
}
.phpn-lightbox img { max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 8px; }
.phpn-lightbox__close {
	position: absolute; top: 18px; right: 18px; width: 48px; height: 48px;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer;
}
body.phpn-lock { overflow: hidden; }

/* ------------------------------------------------------------- dashboard */

.phpn-dash { max-width: 1100px; margin: 0 auto; padding: 44px 20px 72px; }
.phpn-dash__head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.phpn-dash__title { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.phpn-dash__welcome { margin: 6px 0 0; color: var(--phpn-body); }
.phpn-dash__sub { margin: 34px 0 16px; font-size: 20px; font-weight: 700; }
.phpn-dash__lead, .phpn-dash__hint { color: var(--phpn-body); }

.phpn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phpn-stat {
	padding: 20px 22px; background: var(--phpn-bg);
	border: 1px solid var(--phpn-line); border-radius: var(--phpn-radius);
}
.phpn-stat__n { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--phpn-blue); }
.phpn-stat__l { display: block; margin-top: 4px; font-size: 13.5px; color: var(--phpn-body); }

.phpn-table { border: 1px solid var(--phpn-line); border-radius: var(--phpn-radius); overflow: hidden; background: #fff; }
.phpn-table__head, .phpn-table__row {
	display: grid; grid-template-columns: minmax(0, 2.4fr) 150px 120px 140px;
	gap: 14px; align-items: center; padding: 14px 18px;
}
.phpn-table__head { background: var(--phpn-bg); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--phpn-body); }
.phpn-table__row { border-top: 1px solid var(--phpn-line); }
.phpn-table__name { font-weight: 600; min-width: 0; }
.phpn-table__date { color: var(--phpn-body); font-size: 14px; }
.phpn-table__act { text-align: right; }
.phpn-muted { color: var(--phpn-body); font-size: 13.5px; }

.phpn-note { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 400; color: #9A5B00; }

.phpn-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.phpn-badge--publish { background: #E8F5EC; color: #16663A; }
.phpn-badge--pending { background: #EEF1F8; color: var(--phpn-blue); }
.phpn-badge--draft { background: #F1F2F4; color: #55607D; }
.phpn-badge--returned { background: #FFF4E2; color: #9A5B00; }

.phpn-notice { padding: 13px 16px; border-radius: 10px; margin: 0 0 20px; font-size: 15px; }
.phpn-notice--ok { background: #E8F5EC; color: #16663A; }
.phpn-notice--warn { background: #FFF4E2; color: #9A5B00; }
.phpn-notice--error { background: #FCF0F1; color: #A4262C; }

/* ------------------------------------------------------------------ form */

.phpn-form { background: #fff; border: 1px solid var(--phpn-line); border-radius: var(--phpn-radius); padding: 26px; }
.phpn-field { margin: 0 0 20px; }
.phpn-field > label, .phpn-field legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.phpn-req { color: #A4262C; }
.phpn-hint { margin: 0 0 10px; font-size: 13.5px; color: var(--phpn-body); }
.phpn-form input[type="text"], .phpn-form select, .phpn-form textarea {
	width: 100%; min-height: 46px; padding: 10px 13px;
	border: 1px solid var(--phpn-line); border-radius: 10px; background: #fff;
	font: inherit; font-size: 15px; color: var(--phpn-ink);
}
.phpn-form textarea { min-height: 150px; resize: vertical; }
.phpn-form input:focus-visible, .phpn-form select:focus-visible, .phpn-form textarea:focus-visible {
	outline: 3px solid var(--phpn-orange); outline-offset: 1px; border-color: var(--phpn-blue);
}
.phpn-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.phpn-field--products { border: 0; padding: 0; margin: 0 0 20px; }
.phpn-products {
	max-height: 210px; overflow-y: auto; padding: 12px 14px;
	border: 1px solid var(--phpn-line); border-radius: 10px; background: var(--phpn-bg);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px;
}
.phpn-check { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14.5px; }

.phpn-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.phpn-upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.phpn-upload__status { font-size: 13.5px; color: var(--phpn-body); }
.phpn-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.phpn-thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--phpn-bg); }
.phpn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phpn-thumb__cover {
	position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px;
	background: var(--phpn-orange); color: #fff; font-size: 11px; font-weight: 700;
}
.phpn-thumb__x {
	position: absolute; top: 5px; right: 5px; width: 26px; height: 26px;
	border: 0; border-radius: 50%; background: rgba(8, 13, 36, .7); color: #fff;
	font-size: 16px; line-height: 1; cursor: pointer;
}

.phpn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.phpn-danger { margin-top: 22px; }
.phpn-link-danger { border: 0; background: none; color: #A4262C; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px 0; }

#phpn-login p { margin: 0 0 14px; }
#phpn-login input[type="text"], #phpn-login input[type="password"] {
	width: 100%; min-height: 46px; padding: 10px 13px;
	border: 1px solid var(--phpn-line); border-radius: 10px; font: inherit;
}
/* wp_login_form() emits core's 13px "remember me" checkbox; give it and its
   label a thumb-sized hit area without restyling the control itself */
#phpn-login .login-remember { display: flex; align-items: center; min-height: 44px; }
#phpn-login .login-remember label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
#phpn-login input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }

#phpn-login .button, #phpn-login input[type="submit"] {
	min-height: 46px; padding: 0 24px; border: 0; border-radius: 10px;
	background: var(--phpn-blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.phpn-dash--login { max-width: 460px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
	.phpn-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.phpn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.phpn-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.phpn-slider__prev { left: 26px; }
	.phpn-slider__next { right: 26px; }
}
@media (max-width: 767px) {
	.phpn-cards, .phpn-gallery__grid, .phpn-row, .phpn-products { grid-template-columns: minmax(0, 1fr); }
	.phpn-stats { grid-template-columns: minmax(0, 1fr); }
	.phpn-single, .phpn-archive, .phpn-dash { padding-left: 16px; padding-right: 16px; }
	.phpn-table__head { display: none; }
	.phpn-table__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.phpn-table__act { text-align: left; }
	.phpn-dash__head { flex-direction: column; align-items: flex-start; }
	.phpn-actions .phpn-btn { flex: 1 1 100%; }
	.phpn-slider__nav { width: 42px; height: 42px; }
	.phpn-slider__prev { left: 22px; }
	.phpn-slider__next { right: 22px; }
	.phpn-cta { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.phpn * { transition: none !important; animation: none !important; }
	.phpn-card__link:hover { transform: none; }
}
