/* =============================================================
   SS TBL — design tokens + base + header + footer
   Source of truth: Figma "TBL" (file mhfRQ5G9WeaAuBaOldbLxH)
   ============================================================= */

:root {
	--tbl-cream: #FFFEF1;
	--tbl-cream-alt: #FAF5E9;
	--tbl-ivory: #F6EEE7;
	--tbl-dark: #111111;
	--tbl-ink: #373330;
	--tbl-black: #0A0A0A;
	--tbl-brown: #6E4E37;
	--tbl-brown-soft: #A9876E;
	--tbl-gold: #D4A74A;
	--tbl-gold-light: #F4D794;
	--tbl-gold-dark: #A57C2D;
	--tbl-gold-muted: #DBC789;
	--tbl-gold-line: #D6AA4E;
	--tbl-yellow: #F6BB06;

	--tbl-font-heading: 'Playfair Display', serif;
	--tbl-font-body: 'Montserrat', sans-serif;

	--tbl-container: 1240px;
}

/* ---------- Base ---------- */

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

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--tbl-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tbl-dark);
	background: var(--tbl-cream);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tbl-font-heading);
	font-weight: 500;
	margin: 0;
}

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

a { color: inherit; text-decoration: none; }

.tbl-container {
	max-width: var(--tbl-container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---------- Buttons (shared with widgets) ---------- */

.tbl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	padding: 0 32px;
	border-radius: 99px;
	font-family: var(--tbl-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.tbl-btn--gold {
	color: var(--tbl-black);
	background: linear-gradient(90deg, #D4A74A 0%, #F4D794 25%, #D4A74A 50%, #F4D794 75%, #D4A74A 100%);
	background-size: 200% 100%;
}

.tbl-btn--gold:hover {
	background-position: 100% 0;
	box-shadow: 0 6px 18px rgba(212, 167, 74, .35);
}

.tbl-btn--outline {
	color: #1E1E1E;
	border: 1px solid #1E1E1E;
	background: transparent;
}

.tbl-btn--outline:hover {
	background: #1E1E1E;
	color: #fff;
}

/* ---------- Announcement bar ---------- */

.tbl-topbar {
	background: var(--tbl-brown);
	border-bottom: 1px solid var(--tbl-gold);
	min-height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 20px;
}

.tbl-topbar__text {
	margin: 0;
	color: #fff;
	font-size: 15px;
	line-height: 20px;
	text-align: center;
}

/* ---------- Header ---------- */

.tbl-header__main {
	background: var(--tbl-cream-alt);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
	position: relative;
	z-index: 100;
}

.tbl-header__inner {
	display: flex;
	align-items: center;
	height: 100px;
	gap: 29px;
}

.tbl-header__logo { flex: 0 0 auto; display: inline-flex; }
.tbl-header__logo img { width: 80px; height: 76px; object-fit: contain; }

.tbl-nav { flex: 1 1 auto; }

.tbl-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.tbl-nav__list li { position: relative; }

.tbl-nav__list > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 28px 15px;
	color: var(--tbl-ink);
	font-size: 15px;
	line-height: 24px;
	transition: color .2s ease;
}

.tbl-nav__list > li > a:hover { color: var(--tbl-gold-dark); }

/* dropdown caret for parents */
.tbl-nav__list > li.menu-item-has-children > a::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.tbl-nav__list > li.menu-item-has-children:hover > a::after {
	transform: rotate(225deg);
	margin-top: 4px;
}

/* dropdown panel */
.tbl-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	border-top: 2px solid var(--tbl-gold);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	z-index: 110;
}

.tbl-nav__list li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tbl-nav__list .sub-menu a {
	display: block;
	padding: 8px 20px;
	font-size: 14px;
	color: var(--tbl-ink);
}

.tbl-nav__list .sub-menu a:hover {
	color: var(--tbl-gold-dark);
	background: var(--tbl-cream);
}

.tbl-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 15px;
}

.tbl-header__actions .tbl-btn--outline { padding: 0 26px; }

/* hamburger */
.tbl-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
}

.tbl-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--tbl-ink);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Footer ---------- */

.tbl-footer {
	position: relative;
	background: var(--tbl-brown);
	color: #fff;
	font-size: 15px;
}

.tbl-footer__divider {
	height: 1px;
	max-width: 1153px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--tbl-gold-line) 15%, var(--tbl-gold-line) 85%, transparent);
	position: relative;
	top: 1px;
}

.tbl-footer__inner { padding-top: 50px; }

.tbl-footer__cols {
	display: grid;
	grid-template-columns: 1.55fr 1fr 1fr 1fr;
	gap: 20px;
	padding-bottom: 30px;
}

.tbl-footer__logo { display: inline-flex; margin-bottom: 20px; }
.tbl-footer__logo img { width: 80px; height: 76px; object-fit: contain; }

.tbl-footer__about {
	margin: 0 50px 24px 0;
	font-size: 15px;
	line-height: 26px;
	color: #fff;
}

.tbl-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 5px;
}

.tbl-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border-radius: 99px;
	background: var(--tbl-gold-dark);
	color: #fff;
	transition: background .2s ease, transform .2s ease;
}

.tbl-footer__social a:hover {
	background: var(--tbl-gold);
	transform: translateY(-2px);
}

.tbl-footer__title {
	font-family: var(--tbl-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 21px;
	color: #fff;
	margin: 12px 0 15px;
}

.tbl-footer__list,
.tbl-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbl-footer__list li { padding-bottom: 8px; }

.tbl-footer__list a {
	font-size: 15px;
	line-height: 24px;
	color: #fff;
	transition: color .2s ease;
}

.tbl-footer__list a:hover { color: var(--tbl-gold-light); }

.tbl-footer__contact li {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	line-height: 24px;
}

.tbl-footer__contact svg {
	flex: 0 0 auto;
	margin-top: 6px;
	color: var(--tbl-gold);
}

.tbl-footer__contact a:hover { color: var(--tbl-gold-light); }

.tbl-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	padding: 30px 0;
	color: var(--tbl-brown-soft);
	font-size: 14px;
	line-height: 22px;
}

.tbl-footer__bottom p { margin: 0; }

.tbl-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 25px;
}

.tbl-footer__legal a { color: var(--tbl-brown-soft); transition: color .2s ease; }
.tbl-footer__legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	.tbl-nav__list > li > a { padding: 28px 10px; }
	.tbl-header__actions .tbl-btn { padding: 0 20px; height: 44px; }
}

@media (max-width: 1024px) {
	.tbl-header__inner { height: 80px; }

	.tbl-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--tbl-cream-alt);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .1);
		padding: 10px 20px 20px;
	}

	.tbl-header.is-open .tbl-nav { display: block; }

	.tbl-nav__list { flex-direction: column; align-items: stretch; }
	.tbl-nav__list > li > a { padding: 12px 0; }

	.tbl-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		background: transparent;
		padding: 0 0 0 16px;
		display: none;
	}

	.tbl-nav__list li.is-open > .sub-menu { display: block; }

	.tbl-header__actions { margin-left: auto; }
	.tbl-header__actions .tbl-btn--outline { display: none; }

	.tbl-nav-toggle { display: flex; }

	.tbl-header.is-open .tbl-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.tbl-header.is-open .tbl-nav-toggle span:nth-child(2) { opacity: 0; }
	.tbl-header.is-open .tbl-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.tbl-footer__cols { grid-template-columns: 1fr 1fr; }
	.tbl-footer__about { margin-right: 0; }
}

@media (max-width: 600px) {
	.tbl-topbar__text { font-size: 13px; }
	.tbl-footer__cols { grid-template-columns: 1fr; }
	.tbl-footer__bottom { flex-direction: column; text-align: center; }
}
