/**
 * Terrakuta — global styles & brand tokens.
 *
 * Brand DNA: TERRACOTTA #C17A5C · BLACK #111111 · EARTH #E8D9CF ·
 * OCEAN #2E5A6B · IVORY #F6F0EB · SAGE #8D9585
 * Typography: Cormorant Garamond (headlines) · Inter (body/UI)
 *
 * Brizy compiles its own styles for builder areas; this file covers
 * classic fallbacks, the classic header/footer models and villa
 * templates. Widget visuals live in the addon view.css files which are
 * always enqueued as well.
 */

:root {
	--tk-terracotta: #C17A5C;
	--tk-terracotta-deep: #A9664B;
	--tk-black: #111111;
	--tk-ivory: #F6F0EB;
	--tk-sand: #E8D9CF;
	--tk-sage: #8D9585;
	--tk-ocean: #2E5A6B;
	--tk-white: #FFFFFF;

	--tk-font-headline: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--tk-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--tk-container: 1280px;
	--tk-gutter: 48px;
	--tk-rule: 1px solid rgba(17, 17, 17, 0.12);

	--tk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
	font-family: var(--tk-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--tk-black);
	background: var(--tk-ivory);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tk-font-headline);
	font-weight: 500;
	line-height: 1.15;
	color: var(--tk-black);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
	color: var(--tk-terracotta-deep);
}

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

::selection {
	background: var(--tk-terracotta);
	color: var(--tk-ivory);
}

/* -------------------------------------------------------------------- */
/* Layout helpers (classic templates)                                   */
/* -------------------------------------------------------------------- */

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

.tk-section {
	padding: clamp(72px, 9vw, 140px) 0;
}

.tk-section--sand {
	background: var(--tk-sand);
}

.tk-section--black {
	background: var(--tk-black);
	color: var(--tk-ivory);
}

.tk-section--black h1,
.tk-section--black h2,
.tk-section--black h3 {
	color: var(--tk-ivory);
}

.tk-section__eyebrow {
	margin: 0 0 20px;
	font-family: var(--tk-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--tk-terracotta);
}

.tk-section__title {
	margin: 0 0 24px;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.tk-section__intro {
	max-width: 640px;
	margin: 0 0;
	color: rgba(17, 17, 17, 0.72);
}

/* -------------------------------------------------------------------- */
/* Classic content area                                                 */
/* -------------------------------------------------------------------- */

.tk-content {
	min-height: 40vh;
}

.tk-content .entry-content > * {
	max-width: 780px;
}

.tk-content .entry-content img {
	border-radius: 0;
}

.tk-content .alignwide {
	max-width: 1100px;
}

.tk-content .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

/* Classic blog fallbacks */
.tk-post-card {
	padding: 32px 0;
	border-bottom: var(--tk-rule);
}

.tk-post-card__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
}

.tk-post-card__meta {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(17, 17, 17, 0.5);
}

.tk-pagination {
	display: flex;
	gap: 12px;
	margin-top: 48px;
	font-family: var(--tk-font-body);
}

.tk-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(17, 17, 17, 0.2);
	font-size: 13px;
}

.tk-pagination .page-numbers.current {
	background: var(--tk-black);
	border-color: var(--tk-black);
	color: var(--tk-ivory);
}

/* -------------------------------------------------------------------- */
/* Forms (classic)                                                       */
/* -------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid rgba(17, 17, 17, 0.25);
	background: var(--tk-white);
	font-family: var(--tk-font-body);
	font-size: 0.95rem;
	color: var(--tk-black);
	transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--tk-terracotta);
	outline: none;
}

/* -------------------------------------------------------------------- */
/* Comments (classic)                                                    */
/* -------------------------------------------------------------------- */

.tk-comments {
	max-width: 780px;
	margin: 64px auto 0;
}

.tk-comments__title {
	margin-bottom: 24px;
	font-size: 1.75rem;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: 24px 0;
	border-bottom: var(--tk-rule);
}

.comment-list .children {
	padding-left: 32px;
	list-style: none;
}

.comment-author img {
	margin-right: 12px;
	border-radius: 50%;
	vertical-align: middle;
}

.comment-reply-link {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tk-terracotta);
}

/* -------------------------------------------------------------------- */
/* WordPress core classes                                               */
/* -------------------------------------------------------------------- */

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	padding: 8px 0;
	font-size: 13px;
	color: rgba(17, 17, 17, 0.55);
}

.sticky {
	position: relative;
}

.gallery-caption {
	font-size: 13px;
}

.bypostauthor {
	display: block;
}

.alignright {
	margin-left: 1.75em;
}

.alignleft {
	margin-right: 1.75em;
}

@media (max-width: 781px) {
	:root {
		--tk-gutter: 24px;
	}
}
