/* Tenor Sans (SIL Open Font License), latin subset served locally */
@font-face {
	font-family: 'Tenor Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/tenor-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--pink: #f9ccc7;
	--pink-dark: #e9b0aa;
	/* #5c5c5c keeps body text above 4.5:1 contrast on both white and pink */
	--text: #5c5c5c;
	--text-strong: #444;
	--white: #fff;
	--container: 1200px;
	--header-h: 100px;
	--font: 'Tenor Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

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

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.66;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

h1, h2, h3 {
	margin: 0 0 .5em;
	font-weight: 400;
	line-height: 1.25;
	text-transform: uppercase;
}

h1 { font-size: 45px; }
h2 { font-size: 40px; }
h3 { font-size: 26px; text-transform: none; }

p {
	margin: 0 0 20px;
}

figure {
	margin: 0;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--white);
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

:focus-visible {
	outline: 2px solid var(--text-strong);
	outline-offset: 3px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 12px rgba(0, 0, 0, .08);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}

.logo img {
	height: 80px;
	width: auto;
}

.menu ul {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	font-size: 13px;
	letter-spacing: .5px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease;
}

.menu a:hover {
	color: var(--text-strong);
}

.menu-toggle {
	display: none;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--text);
	cursor: pointer;
}

/* Hero */
.hero img {
	width: 100%;
	max-height: calc(100vh - var(--header-h));
	object-fit: cover;
}

/* Sections */
.section {
	padding: 80px 0;
}

.section-pink {
	background: var(--pink);
}

.section-title {
	font-size: 45px;
}

.cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
}

#sobre .col-media img {
	margin: 0 auto;
}

#missao .col-media img {
	width: 100%;
}

/* Gallery */
.gallery {
	columns: 3;
	column-gap: 10px;
	margin-top: 30px;
}

.gallery a {
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
	break-inside: avoid;
	cursor: zoom-in;
}

.gallery img {
	width: 100%;
	transition: transform .4s ease;
}

.gallery a:hover img {
	transform: scale(1.04);
}

/* Testimonials */
.carousel {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	gap: 20px;
	align-items: center;
	margin-top: 30px;
}

.carousel-viewport {
	overflow: hidden;
}

.carousel-track {
	display: flex;
	align-items: flex-start;
	transition: transform .5s ease, height .3s ease;
}

.testimonial {
	flex: 0 0 100%;
	margin: 0;
	padding: 0 10px;
	text-align: center;
}

.testimonial-text p {
	font-size: 18px;
	font-style: italic;
}

.testimonial-author {
	margin-top: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.testimonial-author cite {
	display: block;
	font-size: 14px;
	font-style: normal;
	color: var(--text-strong);
}

.testimonial-author time {
	font-size: 12px;
}

.carousel-nav {
	position: sticky;
	top: calc(50vh - 28px);
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--text);
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.carousel-nav:hover {
	background: var(--text);
	color: var(--white);
}

.carousel-dots {
	display: flex;
	grid-column: 1 / -1;
	justify-content: center;
	gap: 10px;
}

/* 24px tap area around a 10px dot */
.carousel-dots {
	gap: 4px;
}

.carousel-dots button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.carousel-dots button::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 1px solid var(--text);
	border-radius: 50%;
}

.carousel-dots button[aria-current="true"]::before {
	background: var(--text);
}

/* Instagram */
.insta-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 30px;
}

.insta-grid a {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--pink);
}

.insta-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease, opacity .3s ease;
}

.insta-grid a:hover img {
	transform: scale(1.04);
	opacity: .85;
}

.insta-grid .is-video::after {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent var(--white);
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5));
}

.insta-follow {
	margin: 30px 0 0;
	text-align: center;
}

.button {
	display: inline-block;
	padding: 13px 35px;
	border: 1px solid var(--text);
	color: var(--text);
	font-size: 13px;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}

.button:hover {
	background: var(--text);
	color: var(--white);
}

/* Footer */
.site-footer {
	background: var(--pink);
	color: var(--text);
}

.footer-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
	padding-top: 70px;
	padding-bottom: 70px;
}

.footer-brand img {
	width: 100%;
	max-width: 360px;
}

.footer-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 30px;
	font-style: normal;
	font-size: 15px;
}

.footer-contact h2 {
	margin-bottom: 6px;
	font-size: 18px;
	color: var(--text-strong);
	text-transform: none;
}

.footer-contact p {
	margin: 0;
}

.footer-contact a {
	text-decoration: none;
	overflow-wrap: anywhere;
}

.footer-contact a:hover {
	text-decoration: underline;
}

.sub-footer {
	padding: 18px 0;
	border-top: 1px solid var(--pink-dark);
	font-size: 12px;
	letter-spacing: 1px;
	text-align: center;
}

/* Back to top */
.go-top {
	position: fixed;
	right: 15px;
	bottom: 15px;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgba(85, 85, 85, .75);
	color: var(--white);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s ease;
}

.go-top.show {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.go-top:hover {
	background: rgba(85, 85, 85, .95);
}

/* Lightbox */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 20, 20, .94);
}

.lightbox::backdrop {
	background: rgba(20, 20, 20, .94);
}

.lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox img {
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 80px);
	object-fit: contain;
}

.lightbox button {
	position: absolute;
	display: flex;
	padding: 10px;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
	opacity: .8;
}

.lightbox button:hover {
	opacity: 1;
}

.lightbox-close {
	top: 12px;
	right: 12px;
}

.lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.lightbox-count {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	color: var(--white);
	font-size: 13px;
	letter-spacing: 1px;
	text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
	.gallery { columns: 2; }
}

@media (max-width: 600px) {
	.insta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	:root { --header-h: 80px; }

	.logo img { height: 60px; }

	.menu-toggle { display: block; }

	.menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		box-shadow: 0 8px 12px rgba(0, 0, 0, .06);
		display: none;
	}

	.menu.open { display: block; }

	.menu ul {
		flex-direction: column;
		gap: 0;
		padding: 10px 20px 20px;
	}

	.menu a {
		display: block;
		padding: 12px 0;
	}
}

@media (max-width: 768px) {
	h1, .section-title { font-size: 32px; }
	h2 { font-size: 28px; }
	h3 { font-size: 22px; }

	.section { padding: 56px 0; }

	.cols,
	.footer-cols {
		grid-template-columns: 1fr;
	}

	#missao .col-media { order: -1; }

	#sobre .col-media img {
		width: 100%;
		max-height: 420px;
		object-fit: cover;
	}

	.carousel {
		grid-template-columns: 1fr 1fr;
		row-gap: 24px;
	}

	.carousel-viewport {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.carousel-nav { position: static; }
	.carousel-nav.prev { justify-self: end; grid-row: 2; }
	.carousel-nav.next { justify-self: start; grid-row: 2; }
	.carousel-dots { grid-row: 3; }

	.testimonial-text p { font-size: 16px; }

	.footer-brand img { margin: 0 auto; max-width: 260px; }

	.lightbox img { max-width: 100vw; }
}

@media (max-width: 480px) {
	.gallery { columns: 1; }
	.footer-contact { grid-template-columns: 1fr; }
}
