/*
Theme Name: Diyansh Albums
Theme URI: https://diyansh.in
Author: Diyansh
Author URI: https://diyansh.in
Description: A romantic, bilingual (English and Hindi) theme for Diyansh, a photo album studio in Gwalior. Albums for weddings, anniversaries and birthdays, plus frames, mugs and canvas prints. No WooCommerce needed: customers enquire by WhatsApp, phone or email.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diyansh
Tags: photography, one-column, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
	--wine: #4A1530;
	--wine-deep: #2E0C1E;
	--rose: #A63D5A;
	--rose-soft: #E3A2B2;
	--blush: #F7E3E4;
	--petal: #FDF6F5;
	--gold: #B58A4B;
	--gold-light: #E2C48B;
	--ink: #2B1220;
	--muted: #6B5360;
	--white: #fff;
	--wa: #168C46;
	--serif: 'Cormorant Garamond', 'Tiro Devanagari Hindi', Georgia, 'Times New Roman', serif;
	--sans: 'Hind', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
	--wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--petal);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rose); text-underline-offset: .2em; }
a:hover { color: var(--wine); }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--wine);
	margin: 0 0 .6em;
}
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.hi { font-family: 'Tiro Devanagari Hindi', var(--sans); font-weight: 400; line-height: 1.6; }

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--wine); color: var(--petal); padding: .7rem 1rem; z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.7rem; border: 1px solid transparent; border-radius: 2px;
	font: 500 1rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--wine); color: var(--petal); }
.btn--primary:hover { background: var(--rose); color: var(--white); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: rgba(253, 246, 245, .12); color: inherit; }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #0f6e36; color: var(--white); }
.btn--small { padding: .55rem 1.2rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(253, 246, 245, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(74, 21, 48, .12);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand__name {
	font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: .03em;
	color: var(--wine); text-decoration: none;
}
.brand .custom-logo { max-height: 3.2rem; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.menu { display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu .current-menu-item > a { color: var(--wine); border-color: var(--gold); }
.menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-toggle {
	display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
	background: none; border: 1px solid rgba(74, 21, 48, .3); border-radius: 2px; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 1.25rem; height: 2px; background: var(--wine); position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- Hero: the album cover ---------- */
.hero {
	background:
		radial-gradient(60rem 32rem at 85% 5%, rgba(166, 61, 90, .5), transparent 60%),
		radial-gradient(40rem 30rem at 0% 100%, rgba(226, 196, 139, .12), transparent 60%),
		var(--wine);
	color: var(--petal);
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
	overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__title { color: var(--petal); font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; margin-bottom: .35em; }
.hero__hi { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--rose-soft); margin: 0 0 1.5rem; }
.hero__text { max-width: 34rem; color: rgba(253, 246, 245, .88); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .btn--primary { background: var(--gold-light); color: var(--wine-deep); }
.hero .btn--primary:hover { background: var(--petal); color: var(--wine-deep); }

.album { position: relative; perspective: 1600px; justify-self: center; width: min(100%, 24rem); padding-bottom: 3rem; }
.album__cover {
	position: relative; z-index: 1; aspect-ratio: 4 / 5;
	background: linear-gradient(150deg, #6B2243 0%, #3C1027 100%);
	border-radius: 3px 12px 12px 3px;
	transform-origin: left center;
	transform: rotateY(-9deg) rotateX(2deg);
	box-shadow: 0 2.5rem 3.5rem -1.5rem rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(226, 196, 139, .15);
	animation: album-in 1.3s cubic-bezier(.2, .7, .2, 1) both;
}
.album__cover::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; border-radius: 3px 0 0 3px;
	background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .07) 55%, rgba(0, 0, 0, .25));
}
.album__cover::after { content: ""; position: absolute; inset: 4% 0 4% 11.5%; width: 0; border-left: 2px dotted rgba(226, 196, 139, .55); }
.album__frame {
	position: absolute; inset: 9% 8% 9% 17%; border: 1px solid var(--gold-light);
	display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.album__frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(226, 196, 139, .45); pointer-events: none; z-index: 2; }
.album__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album__plate { position: relative; z-index: 1; }
.album__name { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--gold-light); line-height: 1; letter-spacing: .04em; }
.album__name-hi { display: block; color: var(--gold-light); opacity: .9; font-size: 1.15rem; margin-top: .5rem; }
.album--photo .album__plate {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 2rem .5rem 1.1rem;
	background: linear-gradient(0deg, rgba(46, 12, 30, .88), transparent);
}
.album--photo .album__name { font-size: 1.8rem; }
.album__ribbon {
	position: absolute; z-index: 0; bottom: 0; right: 16%; width: .95rem; height: 3.4rem; background: var(--rose);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
@keyframes album-in {
	from { opacity: 0; transform: rotateY(-40deg) translateX(1.5rem); }
	to { opacity: 1; transform: rotateY(-9deg) rotateX(2deg); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.album__cover { animation: none; }
	* { transition: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--blush { background: var(--blush); }
.section--wine { background: var(--wine); color: rgba(253, 246, 245, .9); }
.section--wine h2, .section--wine h3 { color: var(--petal); }
.section-head { max-width: 42rem; margin-bottom: 2.75rem; }
.section-head h2 { margin-bottom: .2em; }
.section-hi { display: block; font-size: 1.3rem; color: var(--rose); }
.section--wine .section-hi { color: var(--rose-soft); }
.card-hi { display: block; font-size: 1rem; color: var(--rose); margin: -.2rem 0 .5rem; }
.section--wine .card-hi { color: var(--rose-soft); }
.section-more { margin: 3rem 0 0; text-align: center; }
.admin-note { margin-top: 2rem; padding: .8rem 1rem; background: var(--white); border-left: 3px solid var(--gold); font-size: .95rem; color: var(--muted); }
.text-link { font-weight: 500; }

/* Filters */
.filter { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.filter button, .filter a {
	background: none; border: 0; border-bottom: 2px solid transparent; font: inherit;
	color: var(--muted); padding: .3rem 0; cursor: pointer; text-decoration: none;
}
.filter button:hover, .filter a:hover { color: var(--wine); }
.filter [aria-pressed="true"], .filter .is-current { color: var(--wine); border-color: var(--gold); font-weight: 600; }

/* Album cards: a small book with a spine */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2.5rem 1.75rem; }
.album-card {
	position: relative; background: var(--white); border-left: .75rem solid var(--wine);
	box-shadow: 0 1.25rem 1.5rem -1.25rem rgba(46, 12, 30, .45); transition: transform .25s;
}
.album-card:hover { transform: translateY(-4px); }
.album-card__link { display: block; color: inherit; text-decoration: none; }
.album-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; }
.album-card__media img { width: 100%; height: 100%; object-fit: cover; }
.album-card__media::after { content: ""; position: absolute; inset: .6rem; border: 1px solid rgba(255, 255, 255, .8); pointer-events: none; }
.album-card__body { padding: 1rem 1.15rem 1.3rem; }
.album-card__meta { margin: 0 0 .15rem; color: var(--rose); font-size: .95rem; }
.album-card__title { font-size: 1.65rem; margin: 0; }
.album-card__text { color: var(--muted); margin: .5rem 0 .75rem; }
.album-card__price { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.album-card.is-addon { border-left-width: 0; border-top: .4rem solid var(--rose-soft); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--blush), var(--rose-soft)); color: var(--wine); }
.ph .icon { width: 3rem; height: 3rem; opacity: .45; }

/* Add-ons */
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4rem; margin: 0; padding: 0; list-style: none; }
.addon { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem 0; border-top: 1px solid rgba(74, 21, 48, .2); }
.addon__media { position: relative; flex: 0 0 5.5rem; width: 5.5rem; aspect-ratio: 1; border: 1px solid var(--gold); background: var(--white); overflow: hidden; }
.addon__media img { width: 100%; height: 100%; object-fit: cover; }
.addon__body h3 { margin: 0 0 .15rem; font-size: 1.75rem; }
.addon__body h3 a { color: inherit; text-decoration: none; }
.addon__body p { margin: 0 0 .4rem; color: var(--muted); }
.addon__price { color: var(--rose); font-weight: 500; }

/* Steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; border-top: 1px solid var(--gold-light); padding-top: 1.1rem; }
.step::before { content: counter(step); display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--rose-soft); margin-bottom: .4rem; }
.step h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.step p { margin: 0; color: rgba(253, 246, 245, .8); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.quote { margin: 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); }
.quote p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--wine); }
.quote cite { font-style: normal; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact__lead { margin-top: 1.25rem; max-width: 30rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .6rem; }
.contact-list--icons { margin-top: 1.5rem; }
.contact-list--icons li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-list--icons .icon { flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; margin-top: .25rem; color: var(--rose); }
.form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: .4rem solid var(--wine); box-shadow: 0 1.5rem 2rem -1.5rem rgba(46, 12, 30, .4); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form label { display: block; font-weight: 500; font-size: .98rem; margin-bottom: .3rem; }
.form input, .form select, .form textarea, .search-form input {
	width: 100%; font: inherit; color: var(--ink); background: var(--petal);
	padding: .7rem .85rem; border: 1px solid rgba(74, 21, 48, .35); border-radius: 2px;
}
.form input:focus, .form select:focus, .form textarea:focus, .search-form input:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: var(--rose); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.notice { padding: .8rem 1rem; margin-bottom: 1.25rem; border-left: 3px solid; }
.notice--ok { background: #EAF6EE; border-color: var(--wa); color: #0d4a25; }
.notice--error { background: #FBE9EC; border-color: var(--rose); color: #6b1428; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--blush); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.75rem); border-bottom: 1px solid rgba(74, 21, 48, .1); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.page-hero__text { margin: .6rem 0 0; color: var(--muted); max-width: 40rem; }
.entry-content { max-width: 46rem; margin-inline: auto; line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 1.4rem; color: var(--wine); }
.entry-content .alignwide { max-width: 72rem; margin-inline: auto; }
.entry-content .alignfull { max-width: none; }
.entry-content figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .4rem; }
.entry-image { max-width: 60rem; margin: 0 auto 2.5rem; }
.empty { text-align: center; max-width: 34rem; margin-inline: auto; }
.search-form { display: flex; gap: .6rem; max-width: 28rem; margin-top: 1.25rem; }
.empty .search-form { margin-inline: auto; margin-bottom: 1.5rem; }
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.page-numbers { padding: .4rem .9rem; border: 1px solid rgba(74, 21, 48, .25); text-decoration: none; color: var(--wine); }
.page-numbers.current { background: var(--wine); color: var(--petal); border-color: var(--wine); }

.product__grid { display: grid; grid-template-columns: minmax(0, 26rem) 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; margin-bottom: 3rem; }
.product__media { position: relative; aspect-ratio: 4 / 5; border-left: .9rem solid var(--wine); background: var(--blush); box-shadow: 0 1.5rem 2rem -1.5rem rgba(46, 12, 30, .5); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.product__lead { font-size: 1.2rem; color: var(--muted); }
.product__price { font-family: var(--serif); font-size: 1.8rem; color: var(--rose); }

.comments { max-width: 46rem; margin: 3rem auto 0; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { margin-bottom: 1.5rem; }
.comment-list .avatar { float: left; margin-right: .9rem; border-radius: 50%; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid rgba(74, 21, 48, .35); background: var(--white);
}
.comment-form input[type="submit"] { background: var(--wine); color: var(--petal); border: 0; padding: .85rem 1.7rem; font: 500 1rem var(--sans); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-deep); color: rgba(253, 246, 245, .82); padding-top: 4rem; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--petal); margin-bottom: .3rem; }
.footer-hi { display: block; color: var(--rose-soft); }
.footer-title { font-size: 1.5rem; color: var(--petal); }
.footer-menu { list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-menu li { margin-bottom: .4rem; }
.footer-base { margin-top: 3rem; padding: 1.4rem 0 2rem; border-top: 1px solid rgba(226, 196, 139, .25); font-size: .95rem; }
.footer-base p { margin: 0; }

.wa-float {
	position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 3.5rem; height: 3.5rem;
	display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: var(--white);
	box-shadow: 0 .6rem 1.2rem rgba(0, 0, 0, .3);
}
.wa-float:hover { background: #0f6e36; color: var(--white); }
.wa-float .icon { width: 1.7rem; height: 1.7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.hero__grid, .contact, .product__grid { grid-template-columns: 1fr; }
	.album { width: min(100%, 18rem); margin-top: 1rem; }
	.addons { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.product__media { max-width: 22rem; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start;
		gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: var(--petal); border-bottom: 1px solid rgba(74, 21, 48, .15);
	}
	.site-header.is-open .primary-nav { display: flex; }
	.menu { flex-direction: column; align-items: flex-start; gap: .25rem; width: 100%; }
	.menu a { display: block; padding: .55rem 0; }
}
@media (max-width: 560px) {
	.steps, .field-row { grid-template-columns: 1fr; }
	.form__actions .btn { width: 100%; }
	.hero__actions .btn { width: 100%; }
}
