/*
Theme Name: Imperial Valley Pharmacy
Theme URI: https://ivpharmacy.maloremi.com/
Author: Maloremi LLC
Author URI: https://maloremi.com/
Description: Bespoke editorial community pharmacy theme for Imperial Valley Pharmacy (El Centro, CA) — crisp white, cool clinical slate, #151064 navy, and storefront red.
Version: 2.0.1
Text Domain: imperial-valley-pharmacy
*/

:root {
	--navy: #151064;
	--navy-deep: #0D0942;
	--red: #C82333;
	--red-dark: #A11B28;
	--paper: #F4F6FA;
	--white: #FFFFFF;
	--rule: #DCE2EE;
	--ink: #161622;
	--muted: #525466;
	--serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* Bilingual toggle (EN default) */
[data-es] { display: inline; }
html.is-es .t-en, html:not(.is-es) .t-es { display: none !important; }
html.is-es .lang__en, html:not(.is-es) .lang__es { display: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9999; background: var(--red); color: #FFFFFF; padding: 10px 16px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Thin #151064 Navy Demo Strip */
.demobar {
	background: var(--navy);
	color: #ECEEFF;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .01em;
	padding: 8px 0;
	text-align: center;
}

/* Crisp Architectural White Header (Original untouched ivp-logo.png sits natively!) */
.top {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--rule);
}
.top__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 50px; width: auto; display: block; }
.foot__logo { display: inline-block; margin-bottom: 16px; }
.foot__logoimg { width: 205px; height: auto; display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }
.nav__end { display: flex; align-items: center; gap: 12px; }

.lang {
	white-space: nowrap;
	flex-shrink: 0;
	background: transparent;
	color: var(--navy);
	border: 1px solid var(--rule);
	border-radius: 4px;
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	cursor: pointer;
}
.lang:hover { border-color: var(--navy); }

/* Refined Architectural Buttons (crisp 4px radius — not bubbly SaaS pills) */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 4px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
	flex-shrink: 0;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #FFFFFF; }
.btn--primary:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #FFFFFF; }

/* Mobile hamburger */
.navbtn {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	border: 1px solid var(--rule);
	background: var(--paper);
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.navbtn__bars, .navbtn__bars::before, .navbtn__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--navy);
	position: relative;
	transition: transform .2s ease, background .2s ease;
}
.navbtn__bars::before, .navbtn__bars::after { content: ''; position: absolute; left: 0; }
.navbtn__bars::before { top: -6px; }
.navbtn__bars::after { top: 6px; }
.nav-open .navbtn__bars { background: transparent; }
.nav-open .navbtn__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .navbtn__bars::after { top: 0; transform: rotate(-45deg); }

/* Editorial Typography */
.ekicker {
	margin: 0 0 14px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
}
.ekicker--light { color: #F5B4BA; }
.eh2 {
	margin: 0 0 16px;
	font-family: var(--serif);
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.015em;
	color: var(--navy);
}
.ebody { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.ebody--lg { font-size: 17px; color: var(--ink); line-height: 1.75; }
.elink { display: inline-flex; font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; }
.elink:hover { color: var(--navy); }
.emuted { color: var(--muted); font-weight: 500; font-size: 13px; }

/* 1. EDITORIAL MAGAZINE HERO */
.ehero {
	background: var(--white);
	padding: 46px 0 64px;
}
.ehero__top {
	display: grid;
	grid-template-columns: 1.25fr .75fr;
	gap: 44px;
	align-items: end;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 32px;
}
.ehero h1 {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(44px, 5.4vw, 70px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -.02em;
	color: var(--navy);
}
.ehero h1 em {
	font-style: italic;
	font-weight: 500;
	color: var(--red);
}
.ehero__sub {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
}
.ehero__lead {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--muted);
	line-height: 1.6;
}
.ebtns { display: flex; flex-wrap: wrap; gap: 12px; }

.ehero__stage { position: relative; }
.ehero__photo { margin: 0; overflow: hidden; }
.ehero__photo img {
	width: 100%;
	height: 540px;
	object-fit: cover;
	object-position: center 22%;
	display: block;
}
.ehero__bar {
	background: var(--navy);
	color: #FFFFFF;
	display: grid;
	grid-template-columns: 1.15fr 1.25fr .75fr 1.05fr;
	border-top: 3px solid var(--red);
}
.ehero__cell {
	padding: 20px 24px;
	border-right: 1px solid rgba(255, 255, 255, .14);
}
.ehero__cell:last-child { border-right: 0; }
.ehero__cell b {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #C7CBEF;
	margin-bottom: 4px;
}
.ehero__cell a, .ehero__cell span { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.ehero__cell--hl { background: var(--red); }
.ehero__cell--hl b { color: #FDECEE; }

/* Sections */
.esec { padding: 88px 0; }
.esec--paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.esec--white { background: var(--white); }

.ehead {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--navy);
	margin-bottom: 12px;
	flex-wrap: wrap;
}

/* 2. HAIRLINE-RULED ACTION LEDGER */
.eledger {
	display: grid;
	grid-template-columns: .78fr 1.22fr;
	gap: 64px;
	align-items: start;
}
.eledger__intro { position: sticky; top: 108px; }
.ecall {
	display: inline-flex;
	flex-direction: column;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	margin-top: 6px;
}
.ecall span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ecall strong { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); margin-top: 2px; }
.ecall:hover strong { color: var(--red); }

.eledger__rows { border-top: 2px solid var(--navy); }
.erow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 28px 4px;
	border-bottom: 1px solid var(--rule);
	transition: padding-left .16s ease, border-color .16s ease;
}
.erow:hover { padding-left: 12px; border-bottom-color: var(--red); }
.erow h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); }
.erow p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 52ch; }
.erow__go { font-size: 24px; font-weight: 500; color: var(--red); flex-shrink: 0; }

/* 3. TWO-COLUMN ARCHITECTURAL SERVICES DIRECTORY */
.edir {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 56px;
}
.edir__item {
	padding: 26px 0;
	border-bottom: 1px solid var(--rule);
}
.edir__item h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); }
.edir__item p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* 4. FULL-BLEED #151064 NAVY TYPOGRAPHIC MANIFESTO */
.emanifesto { background: var(--navy); color: #FFFFFF; padding: 92px 0; }
.emanifesto__in { max-width: 900px; margin-inline: auto; text-align: center; }
.emanifesto__rule { display: block; width: 52px; height: 3px; background: var(--red); margin: 0 auto 24px; }
.emanifesto blockquote {
	margin: 0 0 34px;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(26px, 3.1vw, 38px);
	line-height: 1.35;
	color: #FFFFFF;
}
.emanifesto__foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: #C7CBEF;
}

/* 5. NEWSLETTER */
.enews { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.enews__form { background: var(--white); border: 1px solid var(--rule); padding: 28px; }
.enews__row { display: flex; gap: 10px; }
.enews__row input { flex: 1; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink); }
.enews__row input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }

/* INNER PAGES */
.epagehead { background: var(--navy); color: #FFFFFF; padding: 64px 0 54px; }
.epagehead h1 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1.08; }
.epagehead__lead { margin: 0; max-width: 64ch; color: #D8DCFA; font-size: 16.5px; }

.esvc-list { border-top: 2px solid var(--navy); }
.esvc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--rule);
}
.esvc-row h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.esvc-row p { margin: 0; color: var(--muted); max-width: 66ch; }
.enote { margin: 28px 0 0; font-size: 13.5px; color: var(--muted); }

/* About */
.eabout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.efacts { margin: 26px 0 0; border-top: 2px solid var(--navy); }
.efacts > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.efacts dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.efacts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.efacts dd a:hover { color: var(--red); }
.eabout__flyer { margin: 0; background: var(--white); border: 1px solid var(--rule); padding: 16px; }
.eabout__flyer figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Forms */
.eforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.eform { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.eform h2 { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.eform__sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.eform label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.eform input { padding: 11px 13px; border: 1px solid var(--rule); border-radius: 4px; background: var(--white); color: var(--ink); }
.eform input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.eform__priv { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.eform__priv a { color: var(--navy); font-weight: 700; }
.eform__priv a:hover { color: var(--red); }
.eform__ok { display: none; margin: 4px 0 0; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 700; }
.eform.is-sent .eform__ok, .enews__form.is-sent .eform__ok { display: block; }

/* Visit */
.evisit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.evisit__card { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 30px; }
.evisit__logo { width: 215px; height: auto; margin-bottom: 18px; }
.evisit__card .ebtns { margin-top: 22px; }

/* Privacy */
.epriv { max-width: 760px; }
.epriv h2 { margin: 28px 0 8px; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.epriv h2:first-child { margin-top: 0; }
.epriv p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }

/* Footer */
.foot { background: var(--white); color: var(--muted); padding: 64px 0 28px; border-top: 3px solid var(--navy); }
.foot__grid { display: grid; grid-template-columns: 1.35fr .8fr 1fr 1.25fr; gap: 36px; padding-bottom: 40px; }
.foot__tag { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); max-width: 34ch; }
.foot__delivery { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--red); }
.foot__col h3 { margin: 0 0 12px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--navy); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink); }
.foot__col a:hover { color: var(--red); }
.foot__bar { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }

/* Bottom Privacy Consent Banner */
.consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: var(--white);
	border-top: 3px solid var(--navy);
	box-shadow: 0 -10px 30px rgba(21, 16, 100, .14);
	padding: 16px 0;
}
.consent__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.consent__copy strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.consent__copy p { margin: 0; font-size: 13px; color: var(--muted); max-width: 72ch; }
.consent__copy a { color: var(--red); font-weight: 700; }
.consent__btns { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 960px) {
	.navbtn { display: inline-flex; }
	.nav {
		display: none;
		position: fixed;
		inset: 84px 0 0 0;
		background: var(--white);
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
		gap: 24px;
		z-index: 99;
		overflow-y: auto;
	}
	.nav-open .nav { display: flex; }
	.nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
	.nav a { font-size: 18px; }
	.ehero__top, .ehero__bar, .eledger, .edir, .enews, .eabout, .eforms, .evisit, .foot__grid { grid-template-columns: 1fr; }
	.ehero__photo img { height: 320px; }
	.ehero__cell { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.eledger__intro { position: static; }
	.esvc-row { flex-direction: column; align-items: flex-start; }
	.enews__row { flex-direction: column; }
}
