/*
 * Golden Twist Theme Base Styles — Hostinger & Elementor 3.x Hardened
 */

:root {
	--gt-cream: #FDF8EE;
	--gt-cream-soft: #F8EEDB;
	--gt-border-warm: #EAD8B8;
	--gt-choco: #3B1E0E;
	--gt-choco-deep: #2A1409;
	--gt-gold: #D99316;
	--gt-gold-bright: #F4C44E;
	--gt-gold-deep: #B5740D;
	--gt-text: #3A2416;
	--gt-muted: #6C513E;
	--gt-white: #FFFFFF;
	--gt-font-display: 'Playfair Display', Georgia, serif;
	--gt-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body.gt-site-body {
	margin: 0;
	padding: 0;
	background-color: var(--gt-cream);
	color: var(--gt-text);
	font-family: var(--gt-font-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

body.gt-site-body a:not([class*="gt-btn"]):not(.gt-floating-wa):not(.gt-nav-cta-btn):not(.gt-wa-review-link) {
	color: var(--gt-gold-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.gt-site-body a:not([class*="gt-btn"]):not(.gt-floating-wa):not(.gt-nav-cta-btn):not(.gt-wa-review-link):hover {
	color: var(--gt-choco);
}

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

.gt-main-content {
	position: relative;
	z-index: 1;
	overflow-x: clip;
}

.gt-container {
	width: min(1240px, 92vw);
	margin-inline: auto;
}

/* Focus Accessibility */
:focus-visible {
	outline: 3px solid var(--gt-gold);
	outline-offset: 3px;
}

.gt-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	background: var(--gt-choco);
	color: var(--gt-white);
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

/* Scroll Progress Indicator */
.gt-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: linear-gradient(90deg, var(--gt-gold-deep), var(--gt-gold-bright), var(--gt-gold));
	z-index: 9950;
	transition: width 0.08s linear;
	pointer-events: none;
}

/* Sticky Header — Disabled inside Elementor Editor so edit handles never get obscured */
body:not(.elementor-editor-active) .elementor-location-header,
body:not(.elementor-editor-active) .gt-sticky-header-root,
body:not(.elementor-editor-active) .gt-fallback-header {
	position: sticky;
	top: 0;
	z-index: 900;
	transition: background-color 0.28s ease, box-shadow 0.28s ease, backdrop-filter 0.28s ease;
}

body.admin-bar:not(.elementor-editor-active) .elementor-location-header,
body.admin-bar:not(.elementor-editor-active) .gt-sticky-header-root,
body.admin-bar:not(.elementor-editor-active) .gt-fallback-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar:not(.elementor-editor-active) .elementor-location-header,
	body.admin-bar:not(.elementor-editor-active) .gt-sticky-header-root,
	body.admin-bar:not(.elementor-editor-active) .gt-fallback-header {
		top: 0;
	}
}

body:not(.elementor-editor-active).gt-is-scrolled .elementor-location-header,
body:not(.elementor-editor-active).gt-is-scrolled .gt-sticky-header-root,
body:not(.elementor-editor-active).gt-is-scrolled .gt-fallback-header {
	background-color: rgba(253, 248, 238, 0.96) !important;
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px rgba(59, 30, 14, 0.09);
}

/* Fallback Header */
.gt-fallback-header {
	background: var(--gt-cream);
	border-bottom: 1px solid rgba(217, 147, 22, 0.25);
	padding: 10px 0;
}

.gt-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.gt-brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--gt-choco);
}

.gt-brand-link img {
	max-height: 54px;
	width: auto;
}

.gt-brand-divider {
	width: 1px;
	height: 32px;
	background: rgba(59, 30, 14, 0.25);
}

.gt-brand-descriptor {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.25;
	max-width: 110px;
}

.gt-fallback-nav {
	display: flex;
	align-items: center;
	gap: 20px;
}

.gt-nav-list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 18px;
}

.gt-nav-list a {
	color: var(--gt-choco);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.gt-header-cta,
.gt-btn-gold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gt-gold-bright) 0%, var(--gt-gold) 100%);
	color: var(--gt-choco-deep) !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(217, 147, 22, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gt-header-cta {
	background: var(--gt-choco);
	color: var(--gt-white) !important;
	box-shadow: 0 4px 14px rgba(59, 30, 14, 0.22);
}

.gt-btn-gold:hover,
.gt-header-cta:hover {
	transform: translateY(-2px);
}

.gt-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border-radius: 999px;
	border: 1.5px solid var(--gt-choco);
	color: var(--gt-choco) !important;
	background: transparent;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.gt-btn-outline:hover {
	background: var(--gt-choco);
	color: var(--gt-white) !important;
}

.gt-mobile-toggle {
	display: none;
	background: none;
	border: 1px solid var(--gt-border-warm);
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}

.gt-mobile-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--gt-choco);
}

/* Editorial Typography */
.gt-editorial-title {
	font-family: var(--gt-font-display);
	font-size: clamp(1.95rem, 3.8vw, 3.35rem);
	line-height: 1.12;
	color: var(--gt-choco);
	margin: 0 0 14px;
}

.gt-editorial-title em {
	font-style: italic;
	color: #C98A18;
}

.gt-lead {
	font-size: 1.06rem;
	color: var(--gt-muted);
	max-width: 640px;
}

/* 404 & Search */
.gt-404-section,
.gt-search-hero {
	padding: 72px 0 48px;
	background: radial-gradient(circle at top right, #FFF9EC 0%, var(--gt-cream) 70%);
}

.gt-404-box {
	text-align: center;
	padding: 56px 28px;
	background: var(--gt-white);
	border: 1px solid var(--gt-border-warm);
	border-radius: 24px;
	box-shadow: 0 18px 46px rgba(59, 30, 14, 0.08);
}

.gt-404-box .gt-lead {
	margin-inline: auto;
}

.gt-404-badge {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--gt-cream-soft);
	color: var(--gt-gold-deep);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.gt-404-actions,
.gt-quick-pill-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 26px;
}

.gt-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--gt-muted);
	margin-bottom: 12px;
}

.gt-crumb a {
	color: var(--gt-choco);
	text-decoration: none;
	font-weight: 600;
}

.gt-search-bar-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 640px;
	margin-top: 20px;
}

.gt-search-bar-form input {
	flex: 1 1 260px;
	padding: 13px 20px;
	border-radius: 999px;
	border: 1.5px solid var(--gt-border-warm);
	background: var(--gt-white);
	font-family: var(--gt-font-body);
	font-size: 15px;
	color: var(--gt-choco);
}

.gt-search-results-section {
	padding: 36px 0 80px;
}

.gt-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 20px;
}

.gt-search-card,
.gt-no-results-box {
	background: var(--gt-white);
	border: 1px solid var(--gt-border-warm);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(59, 30, 14, 0.05);
}

.gt-search-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gt-gold-deep);
	background: var(--gt-cream-soft);
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.gt-search-card h2 {
	font-family: var(--gt-font-display);
	font-size: 1.3rem;
	margin: 0 0 8px;
}

.gt-search-card h2 a {
	color: var(--gt-choco);
	text-decoration: none;
}

.gt-card-link {
	color: var(--gt-gold-deep);
	font-weight: 700;
	text-decoration: none;
}

/* Back to top button */
.gt-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 86px;
	z-index: 965;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1.5px solid rgba(217, 147, 22, 0.65);
	background: var(--gt-choco);
	color: var(--gt-gold-bright);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(59, 30, 14, 0.25);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.gt-back-to-top[hidden] {
	display: none;
}

.gt-back-to-top:hover {
	transform: translateY(-3px);
}

.gt-fallback-footer {
	background: var(--gt-choco);
	color: var(--gt-cream);
	padding: 28px 0;
	text-align: center;
}

@media (max-width: 960px) {
	.gt-mobile-toggle {
		display: flex;
	}
	.gt-fallback-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--gt-cream);
		padding: 20px;
		flex-direction: column;
		align-items: flex-start;
		border-bottom: 1px solid var(--gt-border-warm);
	}
	.gt-fallback-nav.is-open {
		display: flex;
	}
	.gt-nav-list {
		flex-direction: column;
		width: 100%;
	}
}

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