/*
Theme Name: Hassaan One
Theme URI: https://hassaantanwir.com
Author: Hassaan Tanwir
Description: Minimal one-page portfolio theme for photographer Hassaan Tanwir. Streets | Portraiture | Allah Hu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hassaan-one
*/

:root {
	--bg: #0d0b09;
	--bg-soft: #14110e;
	--panel: #191512;
	--line: #2a231c;
	--text: #f0e9dd;
	--muted: #a89a86;
	--accent: #cf7b3a;
	--accent-soft: rgba(207, 123, 58, 0.14);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, sans-serif;
	--urdu: "Noto Nastaliq Urdu", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #14100b; }

/* ---------- Nav ---------- */

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px clamp(20px, 5vw, 64px);
	transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.nav.scrolled {
	background: rgba(13, 11, 9, 0.88);
	backdrop-filter: blur(14px);
	padding-top: 14px;
	padding-bottom: 14px;
	box-shadow: 0 1px 0 var(--line);
}

.nav__brand {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.nav__brand span { color: var(--accent); }

.nav__links {
	display: flex;
	gap: clamp(16px, 3vw, 36px);
	list-style: none;
}

.nav__links a {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.25s ease;
}

.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	animation: heroIn 2.2s ease both;
}

@keyframes heroIn {
	from { transform: scale(1.08); opacity: 0.4; }
	to { transform: scale(1); opacity: 1; }
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 11, 9, 0.35) 0%, rgba(13, 11, 9, 0.15) 40%, rgba(13, 11, 9, 0.92) 100%);
}

.hero__content {
	position: relative;
	z-index: 2;
	padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 9vh, 110px);
	max-width: 1100px;
}

.hero__urdu {
	font-family: var(--urdu);
	font-size: clamp(20px, 3vw, 30px);
	color: var(--accent);
	line-height: 2;
	margin-bottom: -6px;
}

.hero__title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(52px, 9vw, 118px);
	line-height: 1.02;
	letter-spacing: 0.01em;
}

.hero__tagline {
	margin-top: 22px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 38px;
	padding: 15px 30px;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease;
}

.hero__cta:hover { background: var(--accent); color: #14100b; }

/* ---------- Sections ---------- */

.section {
	padding: clamp(84px, 12vw, 150px) clamp(20px, 5vw, 64px);
}

.section--soft { background: var(--bg-soft); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

.section__label {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}

.section__title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.1;
}

.section__sub { margin-top: 16px; color: var(--muted); max-width: 560px; }

/* ---------- About ---------- */

.about {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(36px, 6vw, 88px);
	align-items: center;
}

.about__photo {
	position: relative;
}

.about__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.about__photo::after {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid var(--accent);
	z-index: -1;
}

.about__text p { color: var(--muted); margin-top: 20px; }

.about__text p strong { color: var(--text); font-weight: 500; }

.about__facts {
	display: flex;
	gap: clamp(28px, 4vw, 56px);
	margin-top: 36px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.fact__num {
	font-family: var(--serif);
	font-size: 38px;
	font-weight: 600;
	color: var(--accent);
	line-height: 1;
}

.fact__label {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 8px;
}

.about__quote {
	font-family: var(--serif);
	font-size: 24px;
	font-style: italic;
	line-height: 1.45;
	border-left: 2px solid var(--accent);
	padding-left: 22px;
	margin-top: 28px;
	color: var(--text);
}

.about__dream { margin-top: 22px; color: var(--text); }

/* ---------- Work ---------- */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.filter {
	background: none;
	border: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 10px 22px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.filter:hover { border-color: var(--accent); color: var(--text); }

.filter.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #14100b;
}

.work__grid {
	columns: 3;
	column-gap: 14px;
}

.work__item {
	position: relative;
	break-inside: avoid;
	margin-bottom: 14px;
	cursor: pointer;
	overflow: hidden;
}

.work__item img {
	width: 100%;
	transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.7s ease;
}

.work__item:hover img { transform: scale(1.05); filter: brightness(0.75); }

.work__item.hidden { display: none; }

.work-2026 {
	margin-top: clamp(48px, 7vw, 90px);
	padding-top: clamp(48px, 7vw, 90px);
	border-top: 1px solid var(--line);
}

.work__more-wrap { margin-top: 44px; }

.work__more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 30px;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	transition: background 0.3s ease, color 0.3s ease;
}

.work__more:hover { background: var(--accent); color: #14100b; }

.work__meta {
	position: absolute;
	inset: auto 0 0 0;
	padding: 44px 20px 18px;
	background: linear-gradient(180deg, transparent, rgba(13, 11, 9, 0.9));
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.4s ease;
}

.work__item:hover .work__meta { opacity: 1; transform: translateY(0); }

.work__cat {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--accent);
}

.work__title {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	margin-top: 4px;
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(9, 7, 5, 0.96);
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
	max-width: min(1100px, 90vw);
	max-height: 80vh;
	object-fit: contain;
}

.lightbox__caption {
	margin-top: 18px;
	font-family: var(--serif);
	font-size: 20px;
	color: var(--text);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
	position: absolute;
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	font-size: 18px;
	width: 48px;
	height: 48px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Pricing ---------- */

.pricing__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.price-card {
	background: var(--panel);
	border: 1px solid var(--line);
	padding: clamp(30px, 3.4vw, 46px);
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.price-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.price-card__num {
	font-family: var(--serif);
	font-size: 15px;
	color: var(--accent);
	letter-spacing: 0.2em;
}

.price-card__name {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 600;
	margin-top: 14px;
}

.price-card__desc { color: var(--muted); margin-top: 14px; flex: 1; }

.price-card__includes {
	list-style: none;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.price-card__includes li {
	color: var(--muted);
	font-size: 14px;
	padding: 5px 0 5px 24px;
	position: relative;
}

.price-card__includes li::before {
	content: "+";
	position: absolute;
	left: 0;
	color: var(--accent);
}

.price-card__btn {
	margin-top: 30px;
	align-self: flex-start;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	padding: 13px 26px;
	cursor: pointer;
	background: none;
	font-family: var(--sans);
	transition: all 0.3s ease;
}

.price-card__btn:hover { background: var(--accent); color: #14100b; }

.pricing__note {
	margin-top: 28px;
	color: var(--muted);
	font-size: 14px;
}

.pricing__note em { color: var(--accent); font-style: normal; }

/* ---------- Clients ---------- */

.clients { text-align: center; }

.clients .section__head { margin-left: auto; margin-right: auto; text-align: center; }

.clients__quote {
	font-family: var(--serif);
	font-size: clamp(24px, 3.4vw, 40px);
	font-weight: 500;
	line-height: 1.35;
	max-width: 820px;
	margin: 0 auto;
}

.clients__quote span { color: var(--accent); }

.clients__line {
	width: 64px;
	height: 1px;
	background: var(--accent);
	margin: 36px auto;
}

.clients__note { color: var(--muted); max-width: 520px; margin: 0 auto; }

.clients__btn {
	display: inline-block;
	margin-top: 34px;
	padding: 15px 32px;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.clients__btn:hover { background: var(--accent); color: #14100b; }

/* ---------- Contact ---------- */

.contact__wrap {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(36px, 6vw, 90px);
}

.contact__info p { color: var(--muted); margin-top: 18px; }

.contact__email {
	display: inline-block;
	margin-top: 26px;
	font-family: var(--serif);
	font-size: clamp(20px, 2.6vw, 28px);
	color: var(--accent);
	border-bottom: 1px solid var(--accent);
	padding-bottom: 4px;
}

.contact__socials {
	display: flex;
	gap: 22px;
	margin-top: 38px;
	list-style: none;
}

.contact__socials a {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.25s ease;
}

.contact__socials a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	display: block;
	margin-bottom: 8px;
}

.form input,
.form select,
.form textarea {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	padding: 14px 16px;
	transition: border-color 0.25s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.form textarea { min-height: 140px; resize: vertical; }

.form select { appearance: none; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form__submit {
	justify-self: start;
	background: var(--accent);
	border: 1px solid var(--accent);
	color: #14100b;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	padding: 16px 38px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.form__submit:hover { background: transparent; color: var(--accent); }

.form__notice {
	padding: 16px 20px;
	border: 1px solid var(--accent);
	background: var(--accent-soft);
	color: var(--text);
	font-size: 14px;
}

.form__notice--error { border-color: #b3452f; background: rgba(179, 69, 47, 0.12); }

/* ---------- Footer ---------- */

.footer {
	border-top: 1px solid var(--line);
	padding: 44px clamp(20px, 5vw, 64px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer__name {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
}

.footer__name span { color: var(--accent); }

.footer__tag {
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--muted);
}

.footer__copy { font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__img { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.work__grid { columns: 2; }
	.pricing__grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 820px) {
	.nav { flex-direction: column; gap: 12px; padding-top: 16px; }
	.nav.scrolled { padding-top: 12px; padding-bottom: 12px; }
	html { scroll-padding-top: 120px; }
	.about, .contact__wrap { grid-template-columns: 1fr; }
	.about__photo { max-width: 440px; }
	.form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.work__grid { columns: 1; }
	.nav__links { gap: 14px; flex-wrap: wrap; justify-content: center; }
	.nav__links a { font-size: 10px; letter-spacing: 0.16em; }
}
