/*
Theme Name: Estella Couture
Theme URI: https://estella-couture-style.lovable.app
Author: Estella Couture
Description: A luxury haute couture theme with a Collections post type, Atelier, About and Contact page templates, and a Customizer for every image and text on the home page.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: estella
*/

:root {
	--ivory: #fbfaf9;
	--noir: #141414;
	--secondary: #f2f1ee;
	--muted: #e5e2dc;
	--muted-fg: #666666;
	--champagne: #d5c5a9;
	--champagne-dark: #af9569;
	--gold: #d9a21b;
	--font-display: "Playfair Display", Georgia, serif;
	--font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
	--shadow-elegant: 0 4px 30px rgba(0, 0, 0, .08);
	--shadow-dramatic: 0 20px 60px rgba(0, 0, 0, .12);
	--container: 1280px;
	--header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--noir);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
a:hover { color: var(--champagne-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1.25em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute; left: -9999px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; }
.section { padding: 7rem 0; }
.section--alt { background: var(--secondary); }
.section--dark { background: var(--noir); color: var(--ivory); }
.text-center { text-align: center; }

/* Type helpers */
.eyebrow {
	display: block;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 400;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--champagne-dark);
	margin-bottom: 1.25rem;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--champagne); }
.section-title { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted-fg); }

/* Buttons */
.btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 400;
	letter-spacing: .25em;
	text-transform: uppercase;
	border: 1px solid var(--noir);
	background: transparent;
	color: var(--noir);
	cursor: pointer;
	transition: background .4s, color .4s, border-color .4s;
}
.btn:hover { background: var(--noir); color: var(--ivory); }
.btn--light { border-color: var(--ivory); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--noir); }
.btn--gold { background: var(--champagne); border-color: var(--champagne); color: var(--noir); }
.btn--gold:hover { background: transparent; color: var(--champagne); }

/* Header */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--header-h);
	display: flex; align-items: center;
	background: rgba(251, 250, 249, .95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--muted);
	transition: background .4s, border-color .4s, color .4s;
}
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo {
	font-family: var(--font-display);
	font-size: 1.6rem;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.custom-logo { max-height: 48px; width: auto; }
.main-nav ul { display: flex; gap: 2.75rem; }
.main-nav a {
	font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 400;
	position: relative; padding: .5rem 0;
}
.main-nav a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
	background: currentColor; transition: width .4s;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s, opacity .3s; }

/* Transparent header over the home hero */
.has-hero .site-header:not(.is-scrolled) {
	background: transparent; border-color: transparent; backdrop-filter: none; color: var(--ivory);
}
.site-main { padding-top: var(--header-h); }
.has-hero .site-main { padding-top: 0; }

/* Hero */
.hero {
	position: relative; min-height: 100vh;
	display: flex; align-items: center; justify-content: center; text-align: center;
	background-size: cover; background-position: center;
	color: var(--ivory);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,20,20,.55), rgba(20,20,20,.35) 50%, rgba(20,20,20,.6)); }
.hero__inner { position: relative; max-width: 800px; padding: 8rem 1.5rem 5rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); margin-bottom: .4em; }
.hero__tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 1rem; }
.hero__text { max-width: 560px; margin: 0 auto 2.5rem; color: rgba(251,250,249,.85); }

/* Page hero (inner pages) */
.page-hero {
	position: relative; padding: 9rem 0 6rem; text-align: center;
	background: var(--noir) center/cover no-repeat; color: var(--ivory);
}
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.55); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0; }
.page-hero p { max-width: 560px; margin: 1.25rem auto 0; color: rgba(251,250,249,.8); }

/* Collections grid */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.collection-card { display: block; }
.collection-card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--secondary); }
.collection-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.collection-card:hover .collection-card__img img { transform: scale(1.06); }
.collection-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,20,20,.45), transparent 50%); opacity: 0; transition: opacity .5s; }
.collection-card:hover .collection-card__img::after { opacity: 1; }
.collection-card__body { padding-top: 1.25rem; }
.collection-card h3 { font-size: 1.6rem; margin-bottom: .25rem; }
.collection-card p { color: var(--muted-fg); margin: 0; font-size: .95rem; }
.section-cta { text-align: center; margin-top: 4rem; }

/* Story & stats */
.story { display: grid; grid-template-columns: 1fr; gap: 4rem; }
.story__text { max-width: 760px; margin: 0 auto; text-align: center; }
.story__text p { color: var(--muted-fg); font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; padding-top: 4rem; border-top: 1px solid var(--muted); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.5rem); color: var(--champagne-dark); line-height: 1; }
.stat__label { display: block; margin-top: .75rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-fg); }

/* Atelier steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin: 4rem 0; }
.step { text-align: center; }
.step__num { font-family: var(--font-display); font-size: 3.5rem; color: var(--champagne); line-height: 1; display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.5rem; }
.step p { color: rgba(251,250,249,.7); }
.section:not(.section--dark) .step p { color: var(--muted-fg); }
.section:not(.section--dark) .step__num { color: var(--champagne-dark); }

/* Content */
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content img { margin: 2rem auto; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content .alignwide { max-width: var(--container); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; }
.contact-info h3 { font-size: 1.5rem; }
.contact-info dl { margin: 2rem 0 0; }
.contact-info dt { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--champagne-dark); margin-top: 1.5rem; }
.contact-info dd { margin: .25rem 0 0; }
.form-row { margin-bottom: 1.5rem; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.estella-form label { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .5rem; }
.estella-form input[type=text], .estella-form input[type=email], .estella-form input[type=tel],
.estella-form select, .estella-form textarea {
	width: 100%; padding: .9rem 1rem; font: inherit; color: inherit;
	background: transparent; border: 1px solid var(--muted); border-radius: 0; transition: border-color .3s;
}
.estella-form input:focus, .estella-form select:focus, .estella-form textarea:focus { outline: 0; border-color: var(--champagne-dark); }
.estella-form .hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; margin-bottom: 2rem; border: 1px solid var(--champagne-dark); background: var(--secondary); }
.notice--error { border-color: #b3261e; }

/* Footer */
.site-footer { background: var(--noir); color: rgba(251,250,249,.75); padding: 5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory); display: block; margin-bottom: 1rem; }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.25rem; font-weight: 400; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a:hover { color: var(--champagne); }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(251,250,249,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.social-links { display: flex; gap: 1.5rem; }

/* Pagination / single */
.pagination { text-align: center; margin-top: 4rem; }
.pagination .page-numbers { display: inline-block; padding: .5rem .9rem; }
.pagination .current { color: var(--champagne-dark); }
.post-nav { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.single-feature { max-width: 900px; margin: 0 auto 4rem; }
.single-feature img { width: 100%; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 960px) {
	.collection-grid { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.split, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--ivory); color: var(--noir); border-bottom: 1px solid var(--muted);
		display: none; padding: 1.5rem;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 600px) {
	.section { padding: 4.5rem 0; }
	.collection-grid, .steps, .footer-grid, .form-row--2 { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
}
