/*
Theme Name: ielena editorial
Theme URI: https://ielena.com
Author: Elena Eghtesadi
Description: Light editorial design for ielena.com. Child theme of "ielena": the parent keeps the facts, SEO, structured data, security, contact form, calculator and rates; this theme changes only the look, the header, the footer and the home page.
Template: ielena
Version: 2.3.2
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ielena-editorial
*/

/* ---------- Tokens: light ground, black ink, one green-grey accent ---------- */
:root {
	--bg: #FFFFFF; --bg-2: #F4F4F2; --bg-3: #E9E9E6; --line: #DCDCD8; --line-2: #767676;
	--text: #111111; --muted: #333333; --dim: #555555;
	--accent: #2F4A46; --accent-2: #111111; --on-accent: #FFFFFF;
	--ok: #1C6B47; --err: #A12626;
	--font-head: Marcellus, Georgia, 'Times New Roman', serif;
	--radius: 0px;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.2vw, 68px); letter-spacing: .02em; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3, .h3 { font-size: 23px; font-weight: 400; }
em { color: var(--accent); }
a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.eyebrow { letter-spacing: .2em; color: var(--accent); }
.lead { color: var(--muted); }
mark.todo, .prose mark { background: #FFF3C4; color: #111111; outline: 1px dashed #8A6D00; }
.progress span { background: var(--text); }

/* ---------- Header: brand + four links ---------- */
.site-header { background: rgba(255,255,255,.94); border-bottom-color: var(--line); }
.site-header .wrap { min-height: 76px; max-width: 1360px; }
.brand { font-weight: 400; font-size: 20px; letter-spacing: .18em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.primary-nav .menu { gap: 38px; }
.primary-nav .menu a { color: var(--text); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 14px 0; }
.primary-nav .menu a::after { background: var(--text); bottom: 8px; }
.menu-toggle { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; min-height: 44px; }
@media (max-width: 860px) {
	.primary-nav { inset: 76px 0 0 0; }
	.primary-nav .menu a { font-size: 17px; padding: 20px 0; }
}
/* Home: the header sits on the hero photo until you scroll */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
.home .site-header .brand, .home .site-header .primary-nav .menu a, .home .site-header .menu-toggle { color: #FFFFFF; }
.home .site-header .menu-toggle { border-color: #FFFFFF; }
.home .site-header .primary-nav .menu a::after { background: #FFFFFF; }
.home .site-header.scrolled { background: rgba(255,255,255,.96); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.home .site-header.scrolled .brand, .home .site-header.scrolled .primary-nav .menu a, .home .site-header.scrolled .menu-toggle { color: var(--text); }
.home .site-header.scrolled .menu-toggle { border-color: var(--line-2); }
.home .site-header.scrolled .primary-nav .menu a::after { background: var(--text); }
@media (max-width: 860px) {
	.home .site-header .primary-nav .menu a { color: var(--text); }
}

/* ---------- Buttons: square, uppercase ---------- */
.btn { border-radius: 0; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding: 18px 30px; min-height: 52px; text-decoration: none; }
.btn-primary { background: var(--text); color: #FFFFFF; border-color: var(--text); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #FFFFFF; border-color: var(--text); }
.more { text-decoration: none; letter-spacing: .04em; }

/* ---------- Home hero: full-bleed photo or film ---------- */
.ed-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; background: #1B1B1B; color: #FFFFFF; overflow: hidden; }
.ed-hero-media, .ed-hero-media img, .ed-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; margin: 0; }
.ed-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 48%, rgba(0,0,0,.08) 100%); pointer-events: none; }
.ed-hero .wrap { position: relative; z-index: 2; width: 100%; max-width: 1360px; padding-top: 150px; padding-bottom: clamp(56px, 9vh, 110px); }
.ed-hero h1 { color: #FFFFFF; font-size: clamp(42px, 6.4vw, 92px); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; max-width: 12ch; }
.ed-hero .ed-sub { font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; color: #FFFFFF; }
.ed-hero .ed-lead { font-size: 19px; max-width: 520px; color: #FFFFFF; margin: 0 0 34px; }
.ed-hero .btn { border-color: #FFFFFF; color: #FFFFFF; background: transparent; min-width: 210px; text-align: center; }
.ed-hero .btn:hover { background: #FFFFFF; color: #111111; }
.ed-play { position: absolute; z-index: 3; right: var(--gutter); bottom: 28px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: rgba(0,0,0,.45); color: #FFFFFF; border: 1px solid #FFFFFF; font: 500 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.ed-play:hover { background: #FFFFFF; color: #111111; }
@media (max-width: 700px) {
	.ed-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 35%, rgba(0,0,0,.72) 100%); }
	.ed-hero .btn { min-width: 0; flex: 1 1 100%; }
	.ed-play { top: 92px; bottom: auto; }
}

/* ---------- Home: meet Elena ---------- */
.ed-meet .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ed-meet figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.ed-meet figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 800px) { .ed-meet .wrap { grid-template-columns: 1fr; } }

/* ---------- Home: Buy and Sell photo tiles ---------- */
.ed-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 4px; }
.ed-tile { position: relative; min-height: clamp(420px, 46vw, 640px); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(24px, 4vw, 48px); color: #FFFFFF; background: #3F4745; text-decoration: none; overflow: hidden; }
.ed-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1.2s var(--ease); }
.ed-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.70) 100%); }
.ed-tile > span { position: relative; z-index: 2; }
.ed-tile .t { font-family: var(--font-head); font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.ed-tile .d { max-width: 420px; font-size: 16px; }
.ed-tile .g { margin-top: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.ed-tile:hover { color: #FFFFFF; }
.ed-tile:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .ed-tiles { grid-template-columns: 1fr; } }

/* ---------- Home: fact band ---------- */
.ed-band { background: #111111; color: #FFFFFF; margin-top: 4px; }
.ed-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; padding-top: 84px; padding-bottom: 84px; text-align: center; }
.ed-band b { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(48px, 5vw, 64px); line-height: 1; margin-bottom: 10px; }
.ed-band span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
@media (max-width: 700px) { .ed-band .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; } }

/* ---------- Home: areas + film ---------- */
.ed-areas { text-align: center; }
.ed-areas .wrap { max-width: 1000px; }
.ed-areas .list { color: var(--muted); max-width: 760px; margin: 0 auto 40px; }
.ed-film { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.ed-film img, .ed-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-film .ed-play { right: 20px; bottom: 20px; top: auto; }

/* ---------- Home: work with Elena ---------- */
.ed-work { background: var(--bg-2); }
.ed-work .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ed-work figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); position: sticky; top: 100px; }
.ed-work figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .ed-work .wrap { grid-template-columns: 1fr; } .ed-work figure { position: static; aspect-ratio: 4 / 3; } }

/* ---------- Inner pages ---------- */
.ed-banner { margin: 0; height: clamp(220px, 34vw, 460px); overflow: hidden; background: var(--bg-3); }
.ed-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero { padding: 72px 0 56px; }
.hero-media, .portrait, .gallery figure, .article-img, .card-img { border-radius: 0; }
.cta { background: #111111; color: #FFFFFF; border-top: 0; text-align: center; }
.cta h2 { color: #FFFFFF; margin-left: auto; margin-right: auto; letter-spacing: .01em; font-size: clamp(30px, 4vw, 52px); }
.cta p { color: #E6E6E6; }
.cta .actions { justify-content: center; }
.cta .btn-primary { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
.cta .btn-primary:hover { background: transparent; color: #FFFFFF; }
.cta .btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.cta .btn-ghost:hover { background: #FFFFFF; color: #111111; }
.card { background: #FFFFFF; text-decoration: none; }
.card.static { background: #FFFFFF; }
.section.alt .card { background: #FFFFFF; }
.cards.bordered .card { background: var(--bg-2); }
.cards.bordered a.card:hover { background: var(--bg-3); }
.tool .eyebrow { color: var(--accent); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { background: #FFFFFF; border-radius: 0; color: var(--text); }
label { color: var(--muted); }
[data-motion=pulse] .pulse-card { box-shadow: 0 0 0 0 rgba(47,74,70,.45); }

/* ---------- Footer ---------- */
.site-footer { background: #111111; color: #D2D2D2; border-top: 0; padding: 72px 0 40px; }
.site-footer a { color: #FFFFFF; text-decoration: none; display: inline-block; padding: 11px 0; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer li { margin-bottom: 0; }
.foot-name { color: #FFFFFF; font-family: var(--font-head); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.foot-grid { grid-template-columns: 2fr 1fr; }
.legal { color: #BDBDBD; }

/* ---------- Motion: calmer than the parent, still one style per page ---------- */
[data-motion] .reveal { transition-duration: .6s; }
@media (prefers-reduced-motion: reduce) { .ed-tile img { transition: none; } }

/* ---------- v2.1: three portrait tiles, gallery, recent sales, story ---------- */
.ed-tiles { grid-template-columns: repeat(3, 1fr); }
.ed-tile { min-height: 0; aspect-ratio: 3 / 4; }
.ed-tile img { object-position: 50% 12%; }
@media (max-width: 900px) { .ed-tiles { grid-template-columns: 1fr; } .ed-tile { aspect-ratio: 4 / 5; } }
.ed-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 4px; margin-top: 4px; }
.ed-gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.ed-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.2s var(--ease); }
.ed-gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .ed-gallery { grid-template-columns: repeat(2, 1fr); } }
.ed-sold { background: var(--bg-2); text-align: center; }
.ed-sold ul { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 1100px; }
.ed-sold li { background: #FFFFFF; padding: 36px 20px; }
.ed-sold li b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.ed-sold li span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 800px) { .ed-sold ul { grid-template-columns: 1fr; } }
.ed-story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ed-story.flip .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.ed-story.flip figure { order: -1; }
.ed-story figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.ed-story figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.ed-story figure:empty { display: none; }
@media (max-width: 800px) { .ed-story .wrap, .ed-story.flip .wrap { grid-template-columns: 1fr; } .ed-story.flip figure { order: 0; } }
.ed-about-hero { position: relative; }
.ed-about-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ed-about-hero figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.ed-about-hero figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
@media (max-width: 800px) { .ed-about-hero .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ed-gallery img { transition: none; } }


/* ---------- v2.3.1: every page except Meet Elena shares the homepage menu (centred logo, Buy, Sell | Meet Elena, Work With Elena) ---------- */
.nh-cta a { border: 1px solid currentColor; padding: 14px 20px !important; }
.nh-cta a::after { display: none; }
.nh1-header { background: rgba(255,255,255,.96); }
.nh1-header .brand { display: inline-flex; align-items: center; }
.nh1-header .brand img { height: 58px; width: auto; display: block; }
@media (min-width: 861px) {
	.nh1-header .wrap { display: grid; grid-template-columns: auto auto 1fr auto 1fr auto auto; column-gap: 38px; align-items: center; min-height: 96px; }
	.nh1-header .primary-nav, .nh1-header .primary-nav .menu { display: contents; }
	.nh1-header .brand { grid-column: 4; grid-row: 1; }
	.nh1-header .menu li:nth-child(1) { grid-column: 1; grid-row: 1; }
	.nh1-header .menu li:nth-child(2) { grid-column: 2; grid-row: 1; }
	.nh1-header .menu li:nth-child(3) { grid-column: 6; grid-row: 1; }
	.nh1-header .menu li:nth-child(4) { grid-column: 7; grid-row: 1; }
}
@media (max-width: 860px) { .nh1-header .brand img { height: 44px; } .nh-cta a { border: 0; padding: 20px 0 !important; } }
