/* ==========================================================================
   Ecomsultings theme
   ========================================================================== */

:root {
	--paper: #f4f6f5;
	--surface: #ffffff;
	--ink: #14232a;
	--ink-soft: #4a5b61;
	--green: #0f6b5b;
	--green-deep: #0a4f43;
	--green-tint: #e2efeb;
	--amber: #f0a23b;
	--line: #d5dcda;

	--font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.625rem;
	--step-3: 2.25rem;
	--step-4: clamp(2.5rem, 5.4vw, 4.25rem);

	--wrap: 1180px;
	--narrow: 720px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(4rem, 9vw, 7.5rem);
	--radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Buttons ------------------------------------------------------------------ */

.button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font: 600 var(--step-0)/1 var(--font-body);
	background: var(--green); color: #fff;
	border: 2px solid var(--green); border-radius: var(--radius);
	padding: 0.95rem 1.4rem; text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); }
.button--small { font-size: var(--step--1); padding: 0.65rem 1rem; }

/* Header ------------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(244, 246, 245, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1.5rem; }

.brand__name {
	display: inline-flex; align-items: center; gap: 0.55rem;
	font: 800 1.35rem/1 var(--font-head); letter-spacing: -0.03em;
	color: var(--ink); text-decoration: none;
}
.brand__mark {
	width: 1.35rem; height: 1.35rem; border-radius: 4px; background: var(--green); position: relative; flex: none;
}
.brand__mark::after {
	content: ""; position: absolute; left: 22%; right: 22%; bottom: 26%; height: 3px;
	border-radius: 0 0 6px 6px; background: var(--amber);
}
.brand__name--light { color: #fff; }
.custom-logo { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav .menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.site-nav .menu a:hover,
.site-nav .current-menu-item > a { color: var(--green); }
.site-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 1rem;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 1rem var(--gutter) 1.5rem; display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: 0.75rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
}

/* Hero --------------------------------------------------------------------- */

.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { max-width: 14ch; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 36em; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The "desk": founder card plus marketplace switcher */
.desk {
	background: var(--ink); color: #fff;
	border-radius: 14px; padding: 1.5rem;
	box-shadow: 14px 14px 0 var(--green-tint);
}
.desk__founder { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.desk__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--amber); }
.desk__photo--initials {
	display: grid; place-items: center; background: var(--green);
	font: 700 1.3rem/1 var(--font-head); color: #fff;
}
.desk__name { font: 700 var(--step-1)/1.2 var(--font-head); margin: 0; }
.desk__role { margin: 0.2rem 0 0; color: rgba(255,255,255,0.7); font-size: var(--step--1); }

.market { margin-top: 1.25rem; }
.market__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; background: rgba(255,255,255,0.08); border-radius: 8px; padding: 0.3rem; }
.market__tab {
	display: flex; align-items: center; justify-content: center; gap: 0.5rem;
	font: 600 var(--step--1)/1 var(--font-body); color: rgba(255,255,255,0.75);
	background: transparent; border: 0; border-radius: 6px; padding: 0.75rem 0.5rem; cursor: pointer;
}
.market__tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.market__flag { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.market__tab[aria-selected="true"] .market__flag { background: var(--amber); opacity: 1; }
.market__panel { padding: 1.25rem 0.25rem 0.25rem; }
.market__title { font: 700 var(--step-2)/1.15 var(--font-head); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.market__panel ul { list-style: none; margin: 0; padding: 0; }
.market__panel li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-top: 1px dashed rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); }
.market__panel li::before {
	content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.7rem; height: 0.4rem;
	border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg);
}
.market__panel:not([hidden]) { animation: panel-in 0.25s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.desk { box-shadow: 8px 8px 0 var(--green-tint); }
}

/* Sections ----------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head p { color: var(--ink-soft); font-size: var(--step-1); }

/* Services: a ruled two-column list, not a card grid */
.section--services { background: var(--surface); border-block: 1px solid var(--line); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.service { padding: 1.75rem 0; border-top: 2px solid var(--ink); }
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--ink-soft); margin: 0; max-width: 34em; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 1.4rem; left: 1.4rem; right: 1.4rem; height: 2px; background: var(--line); }
.step { counter-increment: step; position: relative; }
.step::before {
	content: counter(step); display: grid; place-items: center;
	width: 2.8rem; height: 2.8rem; border-radius: 50%;
	background: var(--paper); border: 2px solid var(--green); color: var(--green);
	font: 700 var(--step-1)/1 var(--font-head); margin-bottom: 1.25rem; position: relative;
}
.step:first-child::before { background: var(--green); color: #fff; }
.step p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps::before { top: 1.4rem; bottom: 1.4rem; left: 1.4rem; right: auto; width: 2px; height: auto; }
	.step { display: grid; grid-template-columns: 2.8rem 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
	.step::before { grid-row: span 2; margin: 0; }
}

/* About */
.section--about { background: var(--green-tint); }
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--amber); border-radius: 10px; }
.about__photo { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.about__photo--empty { background: var(--ink); }
.about__copy p { max-width: 36em; font-size: var(--step-1); line-height: 1.6; }
.about__place,
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.text-link--light { color: #fff; }
.about__place { color: var(--ink-soft); font-size: var(--step-0) !important; margin-right: 1.5rem; }
.text-link { font-weight: 600; }
@media (max-width: 760px) {
	.about { grid-template-columns: 1fr; }
	.about__media { max-width: 320px; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
	list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
	font: 600 var(--step-1)/1.35 var(--font-head); letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: ""; position: absolute; right: 0.4rem; top: 1.6rem; width: 0.6rem; height: 0.6rem;
	border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.faq__item p { color: var(--ink-soft); padding-right: 2.5rem; max-width: 40em; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.section--contact { background: var(--ink); color: #fff; }
.section--contact a { color: #fff; }
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__intro p { color: rgba(255,255,255,0.78); font-size: var(--step-1); max-width: 30em; }

.contact-form { background: var(--surface); color: var(--ink); border-radius: 12px; padding: clamp(1.5rem, 4vw, 2.25rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field label,
.field legend { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.4rem; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field--choice { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.field--choice legend { width: 100%; }
.field--choice label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; font-size: var(--step-0); margin: 0.3rem 0 0; }
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
	width: 100%; font: inherit; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 0.8rem 0.9rem;
}
input:focus,
textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
input[type="radio"] { accent-color: var(--green); width: 1.05rem; height: 1.05rem; }
.hp { position: absolute; left: -9999px; }
.form-notice { padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form-notice--success { background: var(--green-tint); color: var(--green-deep); }
.form-notice--error { background: #fdecea; color: #8a1f13; }
@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Footer ------------------------------------------------------------------- */

.site-footer { background: #0d181d; color: rgba(255,255,255,0.75); padding: 3.5rem 0 2rem; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer__brand p { margin-top: 0.75rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.55rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.site-footer__legal p { margin: 0; }

/* Plain pages (e.g. privacy policy) -------------------------------------- */

.single { padding-bottom: var(--section); }
.single__head { padding-top: clamp(3rem, 7vw, 5rem); }
.single__head h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.single__image { margin: 2rem auto 2.5rem; }
.single__image img { border-radius: 10px; width: 100%; }

.entry-content { font-size: 1.125rem; line-height: 1.7; }
.entry-content > * { max-width: var(--narrow); }
.entry-content h2 { font-size: var(--step-2); margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 2em 0; padding-left: 1.25rem; border-left: 4px solid var(--amber); font-size: var(--step-1); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--step--1); display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content img { border-radius: 8px; }

/* 404 */
.notfound__code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--green-tint); -webkit-text-stroke: 2px var(--green); margin: 0 0 1rem; }
