/*
 * School of Tango brand layer (loaded after style.css on every page).
 *
 * style.css is the Argentina Tango stylesheet with School of Tango design
 * tokens (colours, fonts, radii). This file holds the rules tokens cannot
 * express: the new masthead, the heading scale for Fraunces, rounded
 * buttons and cards, and the warm cream ground.
 */

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
:root {
	--masthead-row: 76px;
	/* The trust bar takes the slot of the old "Tango Experience" strip, so
	   every page hero that pads down by --masthead-h still clears it. */
	--header-promo-h: 36px;
	--sot-gutter: max(clamp(16px, 3.4vw, 44px), env(safe-area-inset-left, 0px));
}

@media (max-width: 1279px) {
	:root {
		--header-promo-h: 36px;
	}
}

body {
	background: var(--color-cream);
	color: var(--color-text);
}

html:has(> body.home) {
	background-color: var(--color-cream);
}

/* Fraunces has a much larger x-height than Cormorant, so the scale steps
   down and the weight drops to 400-500. */
h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.012em;
	font-weight: 500;
	font-optical-sizing: auto;
}

h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; font-weight: 400; }
h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; font-weight: 400; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

h1 em, h2 em {
	font-style: italic;
	color: var(--color-accent);
}

.page-hero-title {
	font-size: clamp(38px, 4.8vw, 66px);
	letter-spacing: -0.02em;
}

.section-eyebrow {
	color: var(--color-accent);
	font-weight: 700;
	letter-spacing: 0.16em;
	font-size: 12px;
}

a {
	color: var(--color-primary);
}

/* Rounded, pill-shaped buttons in sentence case (the old theme used square,
   tracked uppercase buttons). */
.btn {
	border-radius: var(--radius-pill);
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 28px;
}

.btn-small {
	padding: 8px 16px;
	font-size: 13px;
}

.btn-large {
	padding: 16px 32px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
input[type="password"],
select,
textarea {
	border-radius: 12px;
}

/* Photos and cards: rounded corners are the clearest visual break from the
   square-cornered Argentina Tango look. */
.package-card,
.teacher-card,
.post-card,
.experience-card,
.category-column,
.compare-card,
.testimonial-card,
.hotel-card,
.team-card,
.service-card,
.tier-card,
.planning-trip-item,
.screen-reel-frame,
.hood-card {
	border-radius: var(--radius-md);
	overflow: hidden;
}

.wp-block-image img,
.entry-content img,
.page-content img {
	border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   Masthead: trust bar + logo | menu | actions
   --------------------------------------------------------------------- */
.sot-trust {
	height: var(--header-promo-h);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px 30px;
	padding: 0 16px;
	background: var(--color-navy);
	color: #f4ece2;
	font-size: 13px;
	font-weight: 500;
	overflow: hidden;
	white-space: nowrap;
}

.sot-trust i {
	color: var(--color-sun);
	font-size: 11px;
	margin-right: 4px;
}

.header-promo {
	display: none !important;
}

.site-header-inner.sot-header-inner {
	max-width: 1360px;
	min-height: var(--masthead-row);
	padding: 0 var(--sot-gutter);
	padding-bottom: 0;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "brand menu tools";
	column-gap: 20px;
}

.sot-header .site-branding {
	grid-area: brand;
	justify-self: start;
	padding: 0;
}

.sot-header .header-cta {
	grid-area: tools;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
	white-space: nowrap;
}

.sot-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--color-heading);
	white-space: nowrap;
	text-decoration: none;
}

.sot-logo:hover,
.sot-logo:focus {
	opacity: 1;
	color: var(--color-heading);
}

.sot-logo .sot-mark {
	flex: none;
}

.sot-header .custom-logo {
	max-height: 52px;
	width: auto;
}

.sot-nav {
	grid-area: menu;
	justify-self: center;
}

.sot-menu {
	display: flex;
	gap: 2px;
	white-space: nowrap;
}

.sot-menu > li {
	position: relative;
}

.sot-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 13px;
	border-radius: var(--radius-pill);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--color-heading);
}

.sot-menu > li > a i {
	font-size: 9px;
}

.sot-menu > li > a:hover,
.sot-menu > li:focus-within > a {
	background: var(--color-cream);
	opacity: 1;
}

.sot-mega {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	width: min(940px, 92vw);
	transform: translate(-40%, 6px);
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 30px 60px -30px rgba(42, 36, 32, 0.35);
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px 24px;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 20;
}

.sot-mega::before {
	/* Bridges the gap between the menu link and the panel so the hover
	   doesn't drop while the pointer crosses it. */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 14px;
}

.sot-has-mega:hover .sot-mega,
.sot-has-mega:focus-within .sot-mega {
	opacity: 1;
	visibility: visible;
	transform: translate(-40%, 0);
}

.sot-mega-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 500;
	color: var(--color-heading);
	margin-bottom: 6px;
}

.sot-mega ul {
	display: grid;
	gap: 3px;
	font-size: 13.5px;
}

.sot-mega ul a {
	color: var(--color-muted);
}

.sot-mega a:hover {
	color: var(--color-accent);
	opacity: 1;
}

.sot-expert {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-muted);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 1px;
}

.sot-expert:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
	opacity: 1;
}

.sot-header .header-enquire.sot-plan {
	padding: 10px 22px;
	font-size: 14px;
}

/* The full-screen overlay menu is the phone/tablet menu now. */
.sot-header .main-navigation {
	display: none;
}

@media (max-width: 1180px) {
	.sot-nav,
	.sot-expert {
		display: none;
	}

	.sot-header .main-navigation {
		display: block;
	}

	.site-header-inner.sot-header-inner {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "brand tools";
	}
}

@media (max-width: 640px) {
	.sot-trust span + span {
		display: none;
	}

	.sot-header .sot-plan,
	.sot-header .lang-switcher {
		display: none;
	}

	.sot-logo {
		font-size: 20px;
	}
}

/* Inner pages: the masthead floats over the photo hero (as before), with
   the trust bar staying solid on top. */
.has-overlay-header .site-header:not(.is-scrolled) .sot-logo,
.has-overlay-header .site-header:not(.is-scrolled) .sot-menu > li > a,
.has-overlay-header .site-header:not(.is-scrolled) .sot-expert {
	color: var(--color-white);
}

.has-overlay-header .site-header:not(.is-scrolled) .sot-expert {
	border-bottom-color: rgba(255, 255, 255, 0.4);
}

.has-overlay-header .site-header:not(.is-scrolled) .sot-menu > li > a:hover,
.has-overlay-header .site-header:not(.is-scrolled) .sot-menu > li:focus-within > a {
	background: rgba(255, 255, 255, 0.14);
}

.has-overlay-header .site-header:not(.is-scrolled) .header-enquire.sot-plan {
	background: var(--color-cta);
	border-color: var(--color-cta);
	color: var(--color-cta-text);
}

.has-overlay-header .site-header:not(.is-scrolled) .sot-mega a {
	color: var(--color-muted);
}

.has-overlay-header .site-header:not(.is-scrolled) .sot-mega .sot-mega-title {
	color: var(--color-heading);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer-logo-box .sot-logo {
	color: #f4ece2;
	font-size: 26px;
}

.site-footer .footer-tagline {
	max-width: 34ch;
}

/* ---------------------------------------------------------------------
   Dark mode
   --------------------------------------------------------------------- */
[data-theme="dark"] body {
	background: var(--dm-bg);
}

[data-theme="dark"] .sot-logo,
[data-theme="dark"] .sot-menu > li > a,
[data-theme="dark"] .sot-mega-title {
	color: var(--dm-heading);
}

[data-theme="dark"] .sot-mega {
	background: var(--dm-surface);
	border-color: var(--color-border);
}

[data-theme="dark"] .sot-menu > li > a:hover,
[data-theme="dark"] .sot-menu > li:focus-within > a {
	background: rgba(255, 255, 255, 0.06);
}
