/* Kahena Gallerani — site
   Paleta da marca: #f4f3ef #f1f1f1 #f0eeec #e8e6da #d4cec2 */

.kg-site {
	--papel: #f4f3ef;
	--nevoa: #f0eeec;
	--linho: #e8e6da;
	--pedra: #d4cec2;
	--grafite: #2f2b26;
	--sepia: #665d51;
	--umbra: #3d352c;
	--serif: "Gilda Display", "Cormorant Garamond", Georgia, serif;
	--sans: "Helvetica Now Display", "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--px: clamp(20px, 5vw, 72px);
	--py: clamp(72px, 10vw, 136px);
	--header: 76px;
	--line: 1px solid var(--pedra);

	background: var(--papel);
	color: var(--grafite);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.kg-canvas { margin: 0; background: #f4f3ef; }
html:has(.kg-site) { scroll-behavior: smooth; scroll-padding-top: var(--header, 76px); }

.kg-site *, .kg-site *::before, .kg-site *::after { box-sizing: border-box; }
.kg-site :where(img) { display: block; max-width: 100%; height: auto; }
.kg-site :where(h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd) { margin: 0; padding: 0; }
.kg-site :where(ul, ol) { list-style: none; }
.kg-site :where(a) { color: inherit; }
.kg-site :focus-visible { outline: 2px solid var(--grafite); outline-offset: 3px; }
.kg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kg-hp { position: absolute; left: -9999px; }

/* ---------- Tipografia ---------- */
.kg-site .kg-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.005em; margin-bottom: 24px; }
.kg-site .kg-h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; margin-bottom: 18px; }
.kg-site .kg-h4 { font-family: var(--sans); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 48px 0 12px; }
.kg-site .kg-body { font-size: 1.0625rem; line-height: 1.7; color: var(--sepia); max-width: 34em; }
.kg-site .kg-body + .kg-body { margin-top: 16px; }

/* ---------- Botões e links ---------- */
.kg-site .kg-btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--grafite); color: var(--papel); border: 1px solid var(--grafite);
	font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
	padding: 18px 30px; text-decoration: none; cursor: pointer; border-radius: 0;
	transition: background-color .2s, color .2s;
}
.kg-site .kg-btn:hover { background: var(--umbra); border-color: var(--umbra); color: var(--papel); }
.kg-site .kg-btn--small { padding: 12px 18px; }
.kg-site .kg-btn--outline { background: transparent; color: var(--grafite); }
.kg-site .kg-btn--outline:hover { background: var(--grafite); color: var(--papel); }
.kg-site .kg-link {
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--grafite);
	font: 400 0.9375rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.kg-site .kg-link:hover { text-decoration-thickness: 2px; }
.kg-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Cabeçalho ---------- */
.kg-header {
	position: sticky; top: 0; z-index: 50; height: var(--header);
	display: flex; align-items: center; justify-content: flex-start; gap: 24px;
	padding: 0 var(--px); background: var(--papel); border-bottom: var(--line);
}
.kg-header .kg-brand { margin-right: auto; }
.kg-nav { order: 2; }
.kg-langs { order: 3; display: flex; align-items: center; gap: 2px; font-size: 0.75rem; letter-spacing: 0.08em; }
.kg-site .kg-langs a { text-decoration: none; color: var(--sepia); padding: 8px 6px; line-height: 1; }
.kg-site .kg-langs a:hover { color: var(--grafite); }
.kg-site .kg-langs a[aria-current="true"] { color: var(--grafite); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.admin-bar .kg-header { top: 32px; }
.kg-header--static { position: relative; top: 0 !important; }
.kg-site .kg-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.kg-brand__name { font-family: var(--serif); font-size: 1.375rem; letter-spacing: 0.01em; }
.kg-brand__sub { font-size: 0.6875rem; letter-spacing: 0.28em; color: var(--sepia); margin-top: 4px; }
.kg-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.kg-nav a:not(.kg-btn) { font-size: 0.875rem; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.kg-nav a:not(.kg-btn):hover { border-bottom-color: currentColor; }
.kg-menu-btn { display: none; }

/* ---------- Abertura ---------- */
.kg-hero {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	min-height: calc(100svh - var(--header));
}
.kg-hero__text { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--py) var(--px) clamp(48px, 7vw, 96px); }
.kg-site .kg-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 28px; }
.kg-hero__title span { display: block; }
.kg-hero__title span + span { color: var(--sepia); }
.kg-hero__lead { font-size: 1.125rem; color: var(--sepia); max-width: 30em; }
.kg-hero__media { position: relative; overflow: hidden; background: var(--linho); }
.kg-site .kg-hero__media > img,
.kg-site .kg-split__media > img,
.kg-site .kg-carousel__img > img {
	position: absolute !important; inset: 0 !important;
	width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
	object-fit: cover; margin: 0 !important;
}

/* ---------- Design online ---------- */
.kg-intro { padding: var(--py) var(--px); background: var(--linho); text-align: center; }
.kg-intro .kg-h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.kg-intro .kg-body { max-width: 38em; margin: 0 auto; }
.kg-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px clamp(40px, 7vw, 112px); margin-top: clamp(48px, 6vw, 80px); }
.kg-fact dt { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.375rem); line-height: 1.1; }
.kg-fact dd { font-size: 0.875rem; color: var(--sepia); margin-top: 8px; }

/* ---------- Blocos divididos (foto + texto) ---------- */
.kg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.kg-split__media { position: relative; min-height: 560px; background: var(--linho); overflow: hidden; }
.kg-split__text { padding: var(--py) var(--px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.kg-split--reverse .kg-split__media { order: 2; }
.kg-split__media--sticky { position: sticky; top: var(--header); height: calc(100svh - var(--header)); min-height: 0; align-self: start; }

.kg-sobre .kg-body { margin-bottom: 20px; }
.kg-story { max-width: 34em; color: var(--sepia); font-size: 1.0625rem; line-height: 1.75; margin-bottom: 20px; }
.kg-story p + p { margin-top: 16px; }
.kg-story:not([hidden]) { animation: kg-open .35s ease-out; }
@keyframes kg-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.kg-site .kg-quote { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.35; margin-top: 40px; max-width: 22em; }
.kg-signature { width: 180px; margin-top: 24px; opacity: .9; }

/* ---------- Palavra grande ---------- */
.kg-site .kg-bigword { padding: var(--py) var(--px) clamp(32px, 4vw, 56px); margin: 0; font-weight: inherit; }
.kg-bigword__letters {
	display: flex; flex-wrap: wrap; gap: 0 0.34em;
	font-family: var(--sans); font-weight: 300; text-transform: uppercase;
	font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1; color: var(--grafite);
}
.kg-bigword__gap { flex: 0 0 0.3em; }

/* ---------- Serviços ---------- */
.kg-split--flush .kg-split__text { justify-content: flex-start; }
.kg-servicos { background: var(--linho); }
.kg-site .kg-split__text .kg-bigword { padding: 0; margin: 0 0 clamp(32px, 4vw, 56px); }
.kg-offers { margin-top: 40px; display: grid; gap: 32px; }
.kg-offer__name { display: block; font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.kg-offer__price { display: block; font-size: 0.9375rem; font-weight: 500; margin: 6px 0 8px; }
.kg-offer p { color: var(--sepia); max-width: 36em; }
.kg-meta { margin-top: 32px; font-size: 0.9375rem; }
.kg-meta span { color: var(--sepia); margin-right: 8px; }
.kg-accordion { width: 100%; max-width: 40em; margin-top: 8px; }
.kg-accordion details { border-bottom: var(--line); }
.kg-accordion summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 0; cursor: pointer; list-style: none;
	font-family: var(--serif); font-size: 1.1875rem;
}
.kg-accordion summary::-webkit-details-marker { display: none; }
.kg-accordion summary::after { content: ""; flex: 0 0 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 100% no-repeat; transition: transform .25s; }
.kg-accordion details[open] summary::after { transform: rotate(45deg); }
.kg-accordion details p { padding: 0 40px 22px 0; color: var(--sepia); max-width: 38em; }
.kg-note { margin-top: 24px; font-size: 0.875rem; color: var(--sepia); max-width: 40em; }
.kg-note + .kg-note { margin-top: 8px; }

/* ---------- Processo ---------- */
.kg-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 48px; counter-reset: none; }
.kg-processo { background: var(--papel); }
.kg-step { }
.kg-step__n { display: block; font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--sepia); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.kg-site .kg-step__t { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin-bottom: 10px; }
.kg-step p { color: var(--sepia); font-size: 0.9375rem; }

/* ---------- Projetos (carrossel) ---------- */
.kg-projetos { background: var(--linho); padding-bottom: var(--py); }
.kg-projetos__intro { padding: 0 var(--px); margin-bottom: 40px; }
.kg-carousel__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 0 var(--px); scroll-padding: 0 var(--px); scrollbar-width: none; overscroll-behavior-x: contain;
}
.kg-carousel__track::-webkit-scrollbar { display: none; }
.kg-carousel__slide { flex: 0 0 clamp(280px, 38vw, 620px); scroll-snap-align: start; }
.kg-site .kg-carousel__img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 0; background: var(--linho); cursor: zoom-in; overflow: hidden; }
.kg-carousel__slide figcaption { font-size: 0.875rem; padding-top: 12px; }
.kg-carousel__slide figcaption span { color: var(--sepia); }
.kg-carousel__nav { display: flex; gap: 28px; padding: 28px var(--px) 0; }
.kg-site .kg-carousel__nav button { background: none; border: 0; padding: 4px 0; color: var(--grafite); font: 400 0.875rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Depoimentos ---------- */
.kg-depo { background: var(--umbra); color: var(--papel); padding: var(--py) var(--px); }
.kg-site .kg-depo__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.15; margin-bottom: clamp(40px, 5vw, 64px); }
.kg-depo__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); align-items: start; }
.kg-site .kg-depo__card blockquote { font-family: var(--sans); font-size: 1rem; line-height: 1.75; }
.kg-depo__card figcaption { margin-top: 24px; font-size: 0.8125rem; }
.kg-depo__card figcaption strong { display: block; font-weight: 500; font-size: 0.875rem; }
.kg-depo__card figcaption span { color: var(--pedra); }
.kg-site .kg-depo :focus-visible { outline-color: var(--papel); }

/* ---------- Cursos e Shop (em breve) ---------- */
.kg-soon { background: var(--papel); }
.kg-soon__badge {
	display: inline-block; margin-bottom: 20px; padding: 7px 14px;
	border: 1px solid var(--grafite); border-radius: 999px;
	font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.kg-soon .kg-btn { margin-top: 32px; }

/* ---------- Guia gratuito ---------- */
.kg-guia { background: var(--linho); padding: var(--py) var(--px); }
.kg-guia__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; max-width: 1180px; margin: 0 auto; }
.kg-guia__cover img { width: 100%; max-width: 380px; margin-left: auto; border: 1px solid rgba(47, 43, 38, .35); }
.kg-guia__kicker { font-size: 0.9375rem; color: var(--sepia); margin-bottom: 16px; max-width: 26em; }
.kg-guia--page { min-height: calc(100svh - var(--header)); display: flex; align-items: center; }
.kg-guia--page .kg-guia__inner { width: 100%; }

/* ---------- Formulários ---------- */
.kg-form { width: 100%; max-width: 520px; margin-top: 32px; }
.kg-form .kg-h4 { margin-top: 0; }
.kg-contato .kg-form { margin-top: 56px; }
.kg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kg-site .kg-field { display: block; margin-bottom: 20px; }
.kg-field span { display: block; font-size: 0.8125rem; color: var(--sepia); margin-bottom: 4px; }
.kg-site .kg-field input, .kg-site .kg-field textarea {
	width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--grafite); border-radius: 0;
	padding: 10px 0; font: 400 1rem/1.5 var(--sans); color: var(--grafite); box-shadow: none;
}
.kg-site .kg-field textarea { resize: vertical; min-height: 96px; }
.kg-site .kg-field input:focus, .kg-site .kg-field textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 9px; }
.kg-form .kg-btn { margin-top: 8px; }
.kg-form__note { font-size: 0.8125rem; color: var(--sepia); margin-top: 14px; }
.kg-alert { padding: 12px 16px; margin-bottom: 20px; font-size: 0.9375rem; background: #f6e7e3; color: #7a2e21; }
.kg-alert--ok { background: #e6ece2; color: #2f4a2a; }

/* ---------- Contato ---------- */
.kg-social { margin-top: clamp(56px, 7vw, 88px); }
.kg-site .kg-channels__title { margin: 0 0 18px; }
.kg-channels { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 40px; font-size: 0.9375rem; }
.kg-site .kg-channels a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.kg-channels a span { border-bottom: 1px solid transparent; }
.kg-channels a:hover span { border-bottom-color: currentColor; }
.kg-icon { flex: 0 0 auto; display: block; }
.kg-contato .kg-btn { margin-top: 8px; }

/* ---------- Página de download ---------- */
.kg-thanks { min-height: calc(100svh - var(--header)); }
.kg-thanks .kg-btn { margin-top: 8px; }
.kg-thanks .kg-link { margin-top: 32px; }

/* ---------- Rodapé ---------- */
.kg-footer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 40px; padding: 64px var(--px) 36px; font-size: 0.875rem; background: var(--pedra); color: var(--grafite); }
.kg-footer .kg-footer__brand p, .kg-footer .kg-footer__legal { color: #4a4238; }
.kg-footer__brand p { color: var(--sepia); margin-top: 10px; max-width: 26em; }
.kg-footer__links { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.kg-footer__icons { display: flex; gap: 6px; }
.kg-site .kg-footer__icons a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(47, 43, 38, .35); border-radius: 50%; transition: background-color .2s, color .2s; }
.kg-site .kg-footer__icons a:hover { background: var(--grafite); color: var(--pedra); }
.kg-footer__icons .kg-icon { width: 18px; height: 18px; }
.kg-footer__links a { text-decoration: none; border-bottom: 1px solid transparent; }
.kg-footer__links a:hover { border-bottom-color: currentColor; }
.kg-footer__legal { grid-column: 1 / -1; padding-top: 24px; color: var(--sepia); font-size: 0.8125rem; }

/* ---------- Lightbox ---------- */
.kg-lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(30, 27, 23, .94); color: var(--papel); }
.kg-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kg-lightbox::backdrop { background: transparent; }
.kg-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.kg-lightbox__caption { margin-top: 16px; font-size: 0.875rem; }
.kg-site .kg-lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--papel); font: 400 0.875rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Responsivo ---------- */
/* Menu compacto em notebooks */
.kg-nav a, .kg-brand__name, .kg-brand__sub, .kg-langs a, .kg-header .kg-btn { white-space: nowrap; }
@media (max-width: 1400px) {
	.kg-site { --px: clamp(20px, 3vw, 40px); }
	.kg-header { gap: 16px; }
	.kg-nav { gap: 14px; }
	.kg-nav a:not(.kg-btn) { font-size: 0.8125rem; }
	.kg-site .kg-header .kg-btn--small { padding: 11px 14px; letter-spacing: 0.08em; }
	.kg-brand__name { font-size: 1.25rem; }
}

/* Menu de celular (☰) em telas menores */
@media (max-width: 1200px) {
	.kg-site { --header: 68px; }
	.kg-langs { order: 2; }
	.kg-menu-btn { order: 3; display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; }
	.kg-menu-btn__bar { display: block; height: 1px; background: var(--grafite); transition: transform .25s; }
	.kg-menu-btn[aria-expanded="true"] .kg-bar-a { transform: translateY(4px) rotate(45deg); }
	.kg-menu-btn[aria-expanded="true"] .kg-bar-b { transform: translateY(-4px) rotate(-45deg); }
	.kg-nav {
		position: fixed; inset: var(--header) 0 0 0; background: var(--papel);
		flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--px);
		visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; overflow-y: auto;
	}
	.admin-bar .kg-nav { top: calc(var(--header) + 46px); }
	.kg-nav.is-open { visibility: visible; opacity: 1; }
	.kg-nav a:not(.kg-btn) { font-family: var(--serif); font-size: 1.75rem; padding: 12px 0; width: 100%; border-bottom: var(--line); }
	.kg-nav .kg-btn { margin-top: 32px; }

}


@media (max-width: 960px) {
	.kg-hero { grid-template-columns: 1fr; min-height: 0; }
	.kg-hero__media { order: -1; aspect-ratio: 4 / 3; }
	.kg-hero__text { border-right: 0; padding-top: 48px; }
	.kg-split { grid-template-columns: 1fr; }
	.kg-split__media, .kg-split--reverse .kg-split__media { order: 0; min-height: 0; aspect-ratio: 4 / 5; max-height: 80svh; }
	.kg-split__media--sticky { position: relative; top: 0; height: auto; }
	.kg-servicos .kg-split__media { aspect-ratio: 4 / 3; }
	.kg-carousel__slide { flex-basis: 80vw; }
	.kg-depo__list {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
		margin: 0 calc(var(--px) * -1); padding: 0 var(--px); scroll-padding: 0 var(--px); scrollbar-width: none;
	}
	.kg-depo__list::-webkit-scrollbar { display: none; }
	.kg-depo__card { flex: 0 0 82vw; scroll-snap-align: start; background: rgba(244, 243, 239, .06); padding: 28px 24px; }
	.kg-guia__inner { grid-template-columns: 1fr; }
	.kg-guia__cover img { margin: 0; max-width: 260px; }
}

@media (max-width: 600px) {
	.kg-steps { grid-template-columns: 1fr; gap: 32px; }
	.kg-form__row { grid-template-columns: 1fr; gap: 0; }
	.kg-footer { grid-template-columns: 1fr; }
	.kg-channels { grid-template-columns: 1fr; }
	.kg-site .kg-btn { width: 100%; }
	.kg-actions { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	html:has(.kg-site) { scroll-behavior: auto; }
	.kg-site *, .kg-site *::before, .kg-site *::after { animation: none !important; transition: none !important; }
}
.kg-thanks .kg-body { margin-bottom: 32px; }
