/* =====================================================================
   EXPERIENCE ITALY — OUR PROCESS
   ---------------------------------------------------------------------
   Loaded only for the "Our Process" template. The eight steps are told
   as three photographed chapters whose grounds darken as departure
   approaches — white → greige → espresso — before the page returns to
   light for the fees and closes on ivory. The scroll has a reason, not
   just a pattern.

   The photographic page header above all of this is the plugin's shared
   component (assets/page-header.css); nothing here styles it.
   ===================================================================== */

.eip {
	background-color: #FFFFFF;
	font-family: var(--ei-sans);
	color: #5C534B;
}

.eip .ei-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.eip .ei-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---- optional intro (off by default) --------------------------------- */
.eip-head {
	background-color: var(--ei-ivory);
	text-align: center;
	padding: clamp(56px, 8vw, 104px) 24px clamp(64px, 7.5vw, 96px);
	border-bottom: 1px solid rgba(107, 97, 88, 0.16);
	position: relative;
}

/* hairline descender straddling the seam into Chapter I */
.eip-head::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 1px;
	height: clamp(48px, 5vw, 72px);
	transform: translateX(-50%);
	background: linear-gradient(to bottom, rgba(161, 92, 56, 0) 0%, var(--ei-terracotta) 100%);
	z-index: 2;
}

.eip-head__inner { max-width: 760px; margin: 0 auto; }

.eip .eip-kicker {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ei-terracotta);
	margin: 0 0 18px;
}

.eip .eip-kicker::after {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	background-color: rgba(161, 92, 56, 0.45);
	margin: 16px auto 0;
}

.eip-title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(32px, 4.2vw, 52px) !important;
	line-height: 1.12 !important;
	color: var(--ei-ink);
	margin: 0 0 24px;
}

.eip-title em { font-style: italic; font-weight: 400; color: var(--ei-terracotta); }

.eip .eip-lede { font-size: 18.5px; line-height: 1.75; margin: 0; }

/* ---- chapters -------------------------------------------------------- */
.eip-chap {
	padding: clamp(56px, 7vw, 96px) 24px clamp(56px, 7vw, 92px);
}

.eip-chap__inner { max-width: var(--ei-content-max, 1180px); margin: 0 auto; }

.eip-chap__plate {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	margin-bottom: clamp(46px, 6vw, 76px);
}

/* Chapters alternate which side the photograph sits on. */
.eip-chap--ii .eip-chap__fig { order: 2; }

.eip-chap__fig {
	position: relative;
	isolation: isolate;
	margin: 0;
}

.eip-chap__fig img {
	width: 100%;
	height: clamp(280px, 34vw, 430px);
	object-fit: cover;
	display: block;
	box-shadow: 0 30px 60px -34px rgba(43, 36, 32, 0.55);
}

/* offset terracotta keyline — the Philosophy gesture, reused. It always
   escapes away from the text column, so it mirrors on the even chapter. */
.eip-chap__fig::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(-16px, 16px);
	border: 1px solid rgba(161, 92, 56, 0.4);
	z-index: -1;
}

.eip-chap--ii .eip-chap__fig::before { transform: translate(16px, 16px); }

.eip .eip-chap__roman {
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 15px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--ei-terracotta);
	margin: 0 0 14px;
}

.eip .eip-chap__roman::after {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	background-color: rgba(161, 92, 56, 0.45);
	margin-top: 14px;
}

.eip-chap__name {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(30px, 3.6vw, 46px) !important;
	line-height: 1.14 !important;
	color: var(--ei-ink);
	margin: 0 0 18px;
}

.eip .eip-chap__blurb {
	font-size: 17px;
	line-height: 1.8;
	margin: 0;
	max-width: 46ch;
}

/* ---- steps ----------------------------------------------------------- */
.eip-steps {
	list-style: none;
	max-width: 880px;
	margin: 0 auto;
	padding: 0;
}

.eip-step {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(26px, 3.2vw, 38px) 0;
	border-top: 1px solid rgba(107, 97, 88, 0.16);
}

.eip-step:first-child { border-top: 0; padding-top: 0; }

.eip-step__num {
	font-family: var(--ei-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(44px, 4.6vw, 62px);
	line-height: 0.95;
	color: var(--ei-terracotta);
	letter-spacing: -0.02em;
	text-align: right;
	padding-top: 4px;
}

.eip-step__sub {
	display: block;
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 16px;
	color: #9A8C80;
	margin-bottom: 5px;
}

.eip-step__title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(22px, 2.2vw, 29px) !important;
	line-height: 1.2 !important;
	color: var(--ei-ink);
	margin: 0 0 12px;
}

.eip-step__body p {
	font-size: 16.5px;
	line-height: 1.8;
	margin: 0;
	max-width: 60ch;
}

.eip-step__note {
	margin-top: 16px;
	padding: 13px 20px;
	max-width: 60ch;
	border-left: 2px solid var(--ei-terracotta);
	background-color: #FAF6EF;
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 15.5px;
	line-height: 1.65;
	color: #7A6355;
}

/* ---- chapter grounds ------------------------------------------------- */
.eip-chap--i   { background-color: #FFFFFF; }
.eip-chap--ii  { background-color: #F7F5F2; }
.eip-chap--iii { background-color: var(--ei-espresso); }

/* On espresso, raw terracotta is illegible — lift it. */
.eip .eip-chap--iii .eip-chap__roman { color: var(--ei-terracotta-lift-2, #E9C3A8); }
.eip .eip-chap--iii .eip-chap__roman::after { background-color: rgba(233, 195, 168, 0.4); }
.eip-chap--iii .eip-chap__name { color: #F6EFE6; }
.eip .eip-chap--iii .eip-chap__blurb { color: rgba(246, 239, 230, 0.72); }
.eip-chap--iii .eip-chap__fig::before { border-color: rgba(233, 195, 168, 0.38); }
.eip-chap--iii .eip-step { border-top-color: rgba(246, 239, 230, 0.16); }
.eip-chap--iii .eip-step__num { color: var(--ei-terracotta-lift, #C99271); }
.eip-chap--iii .eip-step__sub { color: rgba(246, 239, 230, 0.5); }
.eip-chap--iii .eip-step__title { color: #F6EFE6; }
.eip-chap--iii .eip-step__body p { color: rgba(246, 239, 230, 0.74); }

.eip-chap--iii .eip-step__note {
	border-left-color: var(--ei-terracotta-lift, #C99271);
	background-color: rgba(246, 239, 230, 0.06);
	color: var(--ei-terracotta-lift-2, #E9C3A8);
}

/* ---- app store badges (final step) ----------------------------------- */
.eip-apps {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.eip-apps a {
	display: inline-flex;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.eip-apps a:hover { transform: translateY(-2px); opacity: 0.9; }

.eip-apps__apple { height: 46px; width: auto; display: block; }

/* Google's official badge ships with baked-in padding — oversize and
   pull the margins so it optically matches the App Store badge. */
.eip-apps__google { height: 68px; width: auto; display: block; margin: -11px; }

/* The official badges are solid black. On the espresso chapter they read
   as holes punched in the page, so give them a lit plinth that frames
   them as a deliberate element. */
.eip-chap--iii .eip-apps {
	display: inline-flex;
	padding: 12px 18px;
	background-color: rgba(246, 239, 230, 0.07);
	border: 1px solid rgba(246, 239, 230, 0.16);
	border-radius: 3px;
}

/* ---- pricing note ---------------------------------------------------- */
.eip-note-wrap {
	background-color: #FFFFFF;
	padding: clamp(64px, 8vw, 100px) 24px 0;
}

.eip-note {
	position: relative;
	isolation: isolate;
	max-width: 880px;
	margin: 0 auto;
	background-color: #FFFFFF;
	border: 1px solid rgba(107, 97, 88, 0.18);
	padding: clamp(30px, 4vw, 46px) clamp(30px, 4.5vw, 54px);
}

.eip-note::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(12px, 12px);
	border: 1px solid rgba(161, 92, 56, 0.3);
	z-index: -1;
}

.eip-note__title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: 24px !important;
	color: var(--ei-ink);
	margin: 0 0 14px;
}

.eip-note p { font-size: 16.5px; line-height: 1.8; margin: 0; }

/* ---- fees ------------------------------------------------------------ */
.eip-fees-wrap {
	background-color: #FFFFFF;
	padding: clamp(64px, 8vw, 100px) 24px clamp(64px, 8vw, 100px);
}

.eip-fees { max-width: var(--ei-content-max, 1180px); margin: 0 auto; }

.eip-fees__title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(30px, 3.4vw, 42px) !important;
	color: var(--ei-ink);
	text-align: center;
	margin: 0 0 clamp(32px, 4vw, 48px);
}

/* Equal-height cards: the three fee groups have very different line
   counts, and ragged bottoms read as an accident. */
.eip-fees__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(18px, 2.2vw, 28px);
	align-items: stretch;
}

.eip-fees__card {
	background-color: #F7F5F2;
	padding: clamp(26px, 3vw, 38px);
	border-top: 2px solid var(--ei-terracotta);
	box-shadow: 0 18px 40px -34px rgba(43, 36, 32, 0.45);
}

.eip-fees__card h3 {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: 21px !important;
	color: var(--ei-ink);
	margin: 0 0 16px;
}

.eip-fees__card ul { list-style: none; margin: 0; padding: 0; }

.eip-fees__card li {
	position: relative;
	padding: 9px 0 9px 22px;
	font-size: 15.5px;
	line-height: 1.6;
	border-top: 1px solid rgba(107, 97, 88, 0.14);
}

.eip-fees__card li:first-child { border-top: 0; }

.eip-fees__card li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 18px;
	width: 8px;
	height: 1px;
	background-color: var(--ei-terracotta);
}

/* Solid hairline, matching every other divider in the group. */
.eip-fees__rush {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(161, 92, 56, 0.4);
}

.eip-fees__rush h4 {
	font-family: var(--ei-sans) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--ei-terracotta);
	margin: 0 0 8px;
}

/* ---- closing --------------------------------------------------------- */
.eip-close {
	background-color: var(--ei-ivory);
	text-align: center;
	padding: clamp(72px, 9vw, 110px) 24px clamp(80px, 10vw, 120px);
	border-top: 1px solid rgba(107, 97, 88, 0.1);
}

.eip-close__inner { max-width: 680px; margin: 0 auto; }

/* Class selector alone loses to `.eip-close p` — keep the element in the
   selector so the script line keeps its size. */
.eip .eip-close p.eip-close__script {
	font-family: var(--ei-script);
	font-size: clamp(52px, 7vw, 84px);
	line-height: 1.1;
	color: var(--ei-terracotta);
	margin: 0 0 6px;
}

.eip-close__title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(30px, 3.6vw, 44px) !important;
	color: var(--ei-ink);
	margin: 0 0 18px;
}

.eip .eip-close__text { font-size: 17.5px; line-height: 1.75; margin: 0 0 34px; }

.eip .ei-btn {
	display: inline-block;
	font-family: var(--ei-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 20px 54px;
	border-radius: 2px;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
		transform 0.3s ease, box-shadow 0.3s ease;
}

.eip .ei-btn--dark {
	color: var(--ei-ivory);
	background-color: var(--ei-espresso);
	border: 1px solid var(--ei-espresso);
}

.eip .ei-btn--dark:hover {
	background-color: var(--ei-terracotta);
	border-color: var(--ei-terracotta);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -14px rgba(24, 19, 16, 0.45);
}

.eip .ei-btn:focus-visible {
	outline: 2px solid var(--ei-terracotta);
	outline-offset: 3px;
}

/* ---- responsive ------------------------------------------------------ */
@media (max-width: 900px) {
	.eip-chap__plate { grid-template-columns: 1fr; }
	.eip-chap--ii .eip-chap__fig { order: 0; }
	.eip-chap__fig::before,
	.eip-chap--ii .eip-chap__fig::before { transform: translate(-12px, 12px); }
}

@media (max-width: 1024px) {
	.eip-fees__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

@media (max-width: 640px) {
	.eip-step { grid-template-columns: 1fr; gap: 4px; }
	.eip-step__num { text-align: left; font-size: 46px; }
}
