/*
Theme Name: Tatinotabi
Theme URI: https://tatinotabi.com/
Author: Tatinotabi
Description: Tema editorial personalizado para a Tatinotabi, com conteúdos e imagens editáveis pelo personalizador do WordPress.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: tatinotabi
*/

:root {
	--paper: #f4f1e9;
	--white: #fcfaf5;
	--ink: #161512;
	--red: #b92c22;
	--gold: #a98b53;
	--muted: #9d998e;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 120px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Arial, sans-serif;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	padding: .8rem 1rem;
	background: var(--white);
	color: var(--ink);
}

.site-header {
	height: 108px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(22, 21, 18, .22);
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	padding: 0 4.5vw;
	background: rgba(244, 241, 233, .96);
	backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font: 700 .78rem/1 Arial, sans-serif;
	letter-spacing: .25em;
}

.brand-mark {
	width: 38px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	background: var(--red);
	color: white;
	font: 400 1.35rem/1 serif;
}

.brand-official { flex: 0 0 auto; gap: 12px; letter-spacing: 0; }
.brand-official .logo-symbol { width: auto; height: 58px; }
.brand-official .logo-wordmark { width: 70px; height: auto; }

.primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(1.4rem, 3vw, 3.4rem);
	font-size: .69rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.primary-navigation a { display: block; padding: 12px 0; }
.primary-navigation .nav-contact > a,
.primary-navigation li:last-child > a { border-bottom: 1px solid var(--red); }

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle > span[aria-hidden] {
	display: block;
	width: 100%;
	height: 1px;
	margin: 7px 0;
	background: var(--ink);
	transition: transform .25s ease;
}

.menu-toggle[aria-expanded="true"] > span[aria-hidden]:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span[aria-hidden]:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.hero {
	min-height: 100svh;
	padding: 108px 4.5vw 3rem;
	position: relative;
	overflow: hidden;
}

.hero-grid {
	min-height: calc(100svh - 155px);
	display: grid;
	grid-template-columns: 47% 53%;
	align-items: center;
}

.hero-copy { padding: 3rem 4vw 3rem 2vw; position: relative; z-index: 1; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 2.4rem;
	font-size: .68rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.eyebrow span { color: var(--red); font: 400 1rem/1 serif; letter-spacing: .12em; }

h1 {
	margin: 0;
	font: 400 clamp(3.7rem, 6.3vw, 7rem)/.96 Georgia, "Times New Roman", serif;
	letter-spacing: -.055em;
}

.hero-intro {
	max-width: 460px;
	margin: 2.7rem 0 2.25rem 7vw;
	font: 400 clamp(1rem, 1.3vw, 1.25rem)/1.7 Georgia, serif;
}

.text-link {
	display: inline-flex;
	gap: 1rem;
	align-items: center;
	margin-left: 7vw;
	padding-bottom: 8px;
	border-bottom: 1px solid;
	font-size: .7rem;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.text-link span { color: var(--red); font-size: 1rem; }

.hero-image-wrap { height: min(72vh, 800px); position: relative; background: #d6c8b5; }
.hero-image-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(135deg, rgba(185, 44, 34, .1), transparent 45%);
	pointer-events: none;
}

.hero-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 48%;
	filter: saturate(.72) contrast(1.03);
}

.vertical-caption {
	position: absolute;
	right: -2.6rem;
	top: 2rem;
	writing-mode: vertical-rl;
	color: var(--red);
	font: 400 .72rem/1.2 serif;
	letter-spacing: .45em;
}

.section-label {
	font-size: .58rem;
	letter-spacing: .2em;
	writing-mode: vertical-rl;
	display: flex;
	gap: 18px;
	align-items: center;
}

.section-label span { color: var(--red); }
.section-label.light { color: #ddd7cb; }

.about { padding: 10rem 6vw; position: relative; }
.about > .section-label { position: absolute; left: 2.2vw; top: 10rem; }
.about-statement { max-width: 1100px; margin: 0 auto 9rem; position: relative; }
.about-statement h2 {
	margin: 0;
	font: 400 clamp(2.6rem, 5vw, 5.5rem)/1.1 Georgia, serif;
	letter-spacing: -.045em;
}

.red-stamp {
	position: absolute;
	right: 0;
	top: -4.5rem;
	width: 72px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: 2px solid var(--red);
	color: var(--red);
	font: 2rem serif;
	transform: rotate(7deg);
	opacity: .82;
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(280px, 42%) 1fr;
	gap: clamp(4rem, 9vw, 10rem);
	max-width: 1100px;
	margin: auto;
	align-items: start;
}

.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: saturate(.72); }
.about-image > span {
	position: absolute;
	left: -2rem;
	bottom: 0;
	background: var(--red);
	color: white;
	padding: 1.2rem;
	font-size: .57rem;
	line-height: 1.6;
	letter-spacing: .15em;
}

.about-copy { padding-top: 3rem; }
.about-copy > p:not(.eyebrow) { font: 1.04rem/1.8 Georgia, serif; margin: 0 0 1.4rem; }
.about-copy > p:first-of-type:not(.eyebrow) { font-size: 1.35rem; }

.services {
	background: #151411;
	color: var(--white);
	padding: 10rem 6vw 11rem;
	position: relative;
	overflow: hidden;
}

.services > .section-label { position: absolute; left: 2.2vw; top: 10rem; }
.services-head {
	max-width: 1180px;
	margin: auto;
	display: grid;
	grid-template-columns: 1.45fr .62fr;
	gap: 6rem;
	align-items: end;
	position: relative;
	z-index: 1;
}

.services-head h2,
.contact h2 {
	font: 400 clamp(3.5rem, 7vw, 7rem)/.9 Georgia, serif;
	letter-spacing: -.06em;
	margin: 0;
}

.services-head > p { font: 1.06rem/1.75 Georgia, serif; color: #bbb5aa; margin: 0 0 .5rem; }
.services .eyebrow { color: #ded8cc; }
.services-list {
	max-width: 1180px;
	margin: 9rem auto 0;
	display: flex;
	flex-direction: column;
	gap: 9rem;
	position: relative;
	z-index: 1;
}

.service {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
	gap: clamp(3rem, 7vw, 8rem);
	align-items: center;
	scroll-margin-top: 8rem;
	position: relative;
	isolation: isolate;
}

.service.is-reverse { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.service.is-reverse .service-image { order: 2; }
.service.is-reverse .service-copy { order: 1; }
.service-image {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #2b2924;
	box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
	border-radius: 15px;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.78) contrast(1.02);
	transition: transform .7s ease;
}

.service:hover .service-image img { transform: scale(1.025); }
.service-image,
.service-copy { position: relative; z-index: 1; }
.service-copy,
.service.is-reverse .service-copy { padding: 1rem 0; }
.service h3 {
	font: 400 clamp(2.8rem, 5vw, 5rem)/.92 Georgia, serif;
	letter-spacing: -.05em;
	margin: 0 0 2rem;
}

.service p { color: #c8c2b7; font: 1rem/1.8 Arial, sans-serif; margin: 0 0 2.2rem; max-width: 500px; }
.service a {
	display: inline-flex;
	align-items: center;
	font-size: .62rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	border: 1px solid rgba(252, 250, 245, .55);
	padding: 1rem 1.2rem;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.service a span { color: var(--red); margin-left: 1rem; }
.service a:hover,
.service a:focus-visible { background: var(--red); border-color: var(--red); color: white; }

.testimonials { padding: 10rem 6vw; position: relative; }
.testimonials > .section-label { position: absolute; left: 2.2vw; top: 10rem; }
.testimonials > .eyebrow { max-width: 1100px; margin: 0 auto 4rem; }
.quote-grid {
	max-width: 1100px;
	margin: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid #bbb5a9;
}

.quote-grid figure { margin: 0; padding: 2.8rem clamp(1.5rem, 3vw, 3rem); border-right: 1px solid #bbb5a9; }
.quote-grid figure:last-child { border-right: 0; }
.quote-mark { color: var(--red); font: 4rem/1 Georgia, serif; }
.quote-grid blockquote { margin: 1rem 0 3rem; font: 1.05rem/1.65 Georgia, serif; }
.quote-grid figcaption { display: flex; gap: 1rem; align-items: center; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.quote-grid figcaption span { color: var(--gold); }

.contact {
	background: var(--red);
	color: white;
	padding: 9rem 6vw;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8vw;
	position: relative;
}

.contact > .section-label { position: absolute; left: 2.2vw; top: 9rem; }
.contact > .section-label span,
.contact-title .eyebrow span { color: var(--ink); }
.contact-title > p:last-child { font: 1.1rem/1.65 Georgia, serif; max-width: 460px; margin-top: 3rem; }
.contact-panel { background: var(--paper); color: var(--ink); padding: clamp(2rem, 4vw, 4.5rem); }
.contact-direct {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 1rem;
	border-bottom: 1px solid #c9c3b8;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
}

.contact-direct p { font-size: .55rem; letter-spacing: .17em; margin: 0; }
.contact-direct a { font: 1rem Georgia, serif; overflow-wrap: anywhere; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label { display: flex; flex-direction: column; gap: .6rem; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
label:nth-last-of-type(1) { grid-column: 1/-1; }
input,
textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid #aaa397;
	background: transparent;
	padding: .7rem 0;
	font: 1rem Georgia, serif;
	border-radius: 0;
	outline: none;
}

textarea { resize: vertical; }
input:focus,
textarea:focus { border-color: var(--red); }
button[type="submit"] {
	grid-column: 1/-1;
	justify-self: start;
	border: 0;
	background: var(--ink);
	color: white;
	padding: 1rem 1.4rem;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}

button[type="submit"] span { color: var(--red); margin-left: 1rem; }
.form-honeypot { position: absolute; left: -9999px; }
.form-notice { grid-column: 1/-1; margin: 0 0 1.5rem; padding: 1rem; font: .9rem/1.5 Arial, sans-serif; }
.form-notice.is-success { border-left: 3px solid #39744b; background: #e7f2e9; }
.form-notice.is-error { border-left: 3px solid var(--red); background: #f8e5e2; }

.site-footer {
	background: var(--ink);
	color: #e9e4d9;
	padding: 2.2rem 4.5vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-footer p { font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: #8f8a81; }
.anchor-alias { position: absolute; top: 0; left: 0; pointer-events: none; }

.content-page { min-height: 70vh; max-width: 900px; margin: 0 auto; padding: 10rem 1.5rem 6rem; }
.content-page h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 3rem; }
.entry-content { font: 1.05rem/1.8 Georgia, serif; }

@media (max-width: 940px) {
	html { scroll-padding-top: 94px; }
	.site-header { height: 82px; padding: 0 1.25rem; }
	.admin-bar .site-header { top: 46px; }
	.brand-official { gap: 10px; }
	.brand-official .logo-symbol { height: 48px; }
	.brand-official .logo-wordmark { width: 58px; }
	.menu-toggle { display: block; position: relative; z-index: 2; }
	.primary-navigation {
		display: none;
		position: fixed;
		inset: 82px 0 0;
		background: var(--paper);
		padding: 3rem 1.25rem;
		overflow-y: auto;
	}
	.admin-bar .primary-navigation { top: 128px; }
	.primary-navigation[data-open="true"] { display: block; }
	.primary-navigation ul { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; font-size: 1rem; }
	.primary-navigation a { padding: .85rem 0; }
	.hero { padding: 82px 1.25rem 2rem; }
	.hero-grid { display: flex; flex-direction: column; min-height: auto; }
	.hero-copy { padding: 4.5rem 0 3.2rem; width: 100%; }
	h1 { font-size: clamp(3.35rem, 16.5vw, 5.2rem); line-height: .98; }
	.eyebrow { margin-bottom: 1.7rem; }
	.hero-intro,
	.text-link { margin-left: 10vw; }
	.hero-image-wrap { height: 66vh; width: 100%; }
	.vertical-caption { right: .7rem; color: white; text-shadow: 0 1px 5px #000; }
	.section-label { display: none; }
	.about,
	.services,
	.testimonials { padding: 6rem 1.25rem; }
	.about-statement { margin-bottom: 5rem; }
	.about-statement h2 { font-size: 2.5rem; }
	.red-stamp { width: 52px; top: -3.5rem; }
	.about-grid { grid-template-columns: 1fr; gap: 2rem; }
	.about-image > span { left: -.5rem; }
	.about-copy { padding-top: 1rem; }
	.services-head { grid-template-columns: 1fr; gap: 2rem; }
	.services-head h2,
	.contact h2 { font-size: 3.8rem; }
	.services-list { margin-top: 5rem; gap: 6rem; }
	.service,
	.service.is-reverse { grid-template-columns: 1fr; gap: 2rem; }
	.service.is-reverse .service-image,
	.service.is-reverse .service-copy { order: initial; }
	.service-image { aspect-ratio: 4/3; }
	.service-copy,
	.service.is-reverse .service-copy { padding: 0; }
	.service h3 { font-size: 3.2rem; margin-bottom: 1.4rem; }
	.quote-grid { grid-template-columns: 1fr; }
	.quote-grid figure { border-right: 0; border-bottom: 1px solid #bbb5a9; padding: 2.3rem .5rem; }
	.contact { grid-template-columns: 1fr; padding: 6rem 1.25rem; gap: 3rem; }
	.contact-panel { padding: 2rem 1.25rem; }
	.contact-direct { grid-template-columns: 1fr; }
	.contact-direct a { margin-bottom: 1rem; }
	form { grid-template-columns: 1fr; }
	label:nth-last-of-type(1),
	button[type="submit"] { grid-column: 1; }
	.site-footer { padding: 2rem 1.25rem; align-items: flex-start; gap: 2rem; flex-direction: column; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.service-image img,
	.menu-toggle > span[aria-hidden] { transition: none; }
}
