/* =========================================================================
   Sisticola African Safaris, brand design layer
   Inspired by the sisticola bird and open African grassland: light, warm,
   golden, and unhurried. Refinements only, colors and fonts are set in
   Theme Settings and arrive as :root tokens (--green, --gold, --cream, --ink,
   --sand …). We reuse those tokens here so a Theme Settings change still
   restyles everything. Scoped to .sisticola-brand so nothing leaks to the
   shared parent theme.
   ========================================================================= */

.sisticola-brand {
	/* A couple of brand-local tokens layered on the parent palette. */
	--sis-radius: 14px;              /* soft, premium card corners */
	--sis-eyebrow-track: .18em;      /* airy, grassland-light spacing */
	--sis-hairline: color-mix(in srgb, var(--gold) 55%, transparent);
}

/* ---- Typographic polish: unhurried, editorial headings ------------------ */
.sisticola-brand .display-title,
.sisticola-brand h1,
.sisticola-brand h2 {
	letter-spacing: -0.015em;
	line-height: 1.12;
}

.sisticola-brand p {
	line-height: 1.85;
}

/* ---- Eyebrows: a fine golden rule, like a horizon line ------------------ */
.sisticola-brand .eyebrow {
	letter-spacing: var(--sis-eyebrow-track);
	text-transform: uppercase;
	font-size: 0.78rem;
}
.sisticola-brand .eyebrow:not(.on-dark)::after {
	content: "";
	display: block;
	width: 34px;
	height: 2px;
	margin-top: 8px;
	background: var(--sis-hairline);
	border-radius: 2px;
}
.sisticola-brand .eyebrow.centered::after {
	margin-left: auto;
	margin-right: auto;
}

/* ---- Cards: softer corners + a warmer, lighter lift --------------------- */
.sisticola-brand .card,
.sisticola-brand .rounded-2xl {
	border-radius: var(--sis-radius);
}
.sisticola-brand .card {
	border-color: color-mix(in srgb, var(--sand) 80%, transparent);
	transition: transform .35s ease, box-shadow .35s ease;
}
.sisticola-brand .card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

/* ---- Buttons: calm, confident, grassland-gold --------------------------- */
.sisticola-brand .btn {
	letter-spacing: .01em;
}
.sisticola-brand .btn-gold {
	box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--gold) 70%, transparent);
}
.sisticola-brand .btn-gold:hover {
	transform: translateY(-2px);
}

/* ---- Hero: a touch more warmth and air ---------------------------------- */
.sisticola-brand .att-home-hero-pattern .display-title {
	text-shadow: 0 2px 30px rgba(0, 0, 0, .28);
}

/* ---- Section rhythm: a little more breathing room ----------------------- */
.sisticola-brand .section {
	padding-top: clamp(3.5rem, 6vw, 6rem);
	padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

/* ---- Links: gold underline that grows on hover -------------------------- */
.sisticola-brand .link-gold {
	background-image: linear-gradient(var(--gold), var(--gold));
	background-size: 0% 1.5px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s ease;
}
.sisticola-brand .link-gold:hover {
	background-size: 100% 1.5px;
}

/* ---- Header logo: size the square Sisticola mark by HEIGHT ---------------
   The parent theme caps the header logo at 44px tall and sets a fixed width
   (from Theme Settings). A square 500x500 mark then renders ~44px inside a
   wide box. Size it by height with width:auto so a square logo reads well and
   stays tight. Header bar is 74px, so 56px is safe. Higher specificity +
   !important beat the parent's inline <style id="att-header-logo-size">, so the
   "Header Logo Width" setting is not needed for this square logo. */
.sisticola-brand .site-header .container-x {
	height: auto !important;       /* grow the 74px bar so the logo has room */
	min-height: 88px !important;
}
.sisticola-brand .att-header-logo-custom {
	width: auto !important;        /* wide (2.3:1) logo, size by height */
	height: 60px !important;
	max-height: 60px !important;
}
@media (max-width: 640px) {
	.sisticola-brand .site-header .container-x { min-height: 66px !important; }
	.sisticola-brand .att-header-logo-custom {
		height: 44px !important;
		max-height: 44px !important;
	}
}

/* ---- Footer logo: the footer is cream (design_2), so the dark brand logo
   reads as-is, no reversal needed. Just cap the size. */
.sisticola-brand .att-footer-logo-custom {
	max-height: 64px !important;
}

/* =======================================================================
   Audio Guide, floating lower-left play/pause button (Sisticola only)
   Unique sis-audio- classes; loaded site-wide, but the markup only exists
   when an Audio Guide URL is set (see child functions.php). Just a mic icon
   and label; one click plays, another pauses.
   ===================================================================== */
.sis-audio-fab {
	position: fixed;
	left: 0;
	top: 72%;                    /* lower third of the viewport, left edge */
	transform: translateY(-50%);
	z-index: 55;                 /* above header (50), below mobile menu (60) */
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1rem 0.7rem 0.85rem;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--green, #984d00);
	color: var(--cream, #faf6ec);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 14px 34px -14px rgba(20, 10, 0, 0.7);
	transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.sis-audio-fab:hover,
.sis-audio-fab:focus-visible {
	background: var(--ink, #220a00);
	transform: translateY(-50%) translateX(3px);
	box-shadow: 0 18px 40px -14px rgba(20, 10, 0, 0.8);
}
.sis-audio-fab:focus-visible { outline: 2px solid var(--gold, #fcb630); outline-offset: 2px; }
.sis-audio-fab.is-playing { background: var(--ink, #220a00); }   /* subtle "now playing" cue */
.sis-audio-fab__icon { display: inline-flex; color: var(--gold, #fcb630); }
.sis-audio-fab__icon svg { width: 1.15rem; height: 1.15rem; }
.sis-audio-fab__label { white-space: nowrap; }

@media (max-width: 640px) {
	.sis-audio-fab { padding: 0.65rem 0.7rem; }
	.sis-audio-fab__label {                      /* icon-only on small screens */
		position: absolute;
		width: 1px; height: 1px;
		margin: -1px; padding: 0; border: 0;
		overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sis-audio-fab { transition: none; }
	.sis-audio-fab:hover,
	.sis-audio-fab:focus-visible { transform: translateY(-50%); }
}


/* =======================================================================
   Premium polish, squared buttons + refined typography
   ===================================================================== */
.sisticola-brand .btn,
.sisticola-brand .sis-btn,
.sisticola-brand .att-btn,
.sisticola-brand button.wp-element-button,
.sisticola-brand input[type="submit"],
.sisticola-brand .wp-block-button__link { border-radius: 0 !important; }

/* Premium type rendering (Fraunces display + Inter body are self-hosted) */
.sisticola-brand {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
.sisticola-brand h1,
.sisticola-brand h2,
.sisticola-brand h3,
.sisticola-brand .sis-display,
.sisticola-brand .sis-hero__title,
.sisticola-brand .sis-about-hero__title,
.sisticola-brand .sis-cta__title,
.sisticola-brand .att-display {
	font-optical-sizing: auto;
	font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1;
	letter-spacing: -0.018em;
}

/* =======================================================================
   Softened, harmonised palette (keeps the brand identity, calms the warmth)
   Overrides the att-core :root color tokens on the body so both the parent
   theme and the sis-* tokens pick them up. Does NOT change Theme Settings.
   ===================================================================== */
.sisticola-brand {
	--gold: #dba84b;      /* muted, refined gold (was the brighter #fcb630) */
	--ink: #241610;       /* slightly warmer, less harsh dark (was #220a00) */
	--ink-soft: #4a3a2f;  /* softer body ink for secondary text */
	--sand: #e4dfd4;      /* a touch warmer, lighter neutral */
	/* Expose the sis-* design tokens site-wide so sis-* components (e.g. the
	   package cards) work on any page, not just the .sis-main templates. */
	--sis-gold: var(--gold);
	--sis-green: var(--green, #984d00);
	--sis-ink: var(--ink);
	--sis-cream: var(--cream, #faf6ec);
	--sis-sand: var(--sand);
	--sis-r: 14px;
	--sis-shadow: 0 30px 70px -46px rgba(34, 10, 0, .5);
	--sis-shadow-hover: 0 44px 100px -46px rgba(34, 10, 0, .62);
}

/* Package cards (sis-tcard), homepage design, available site-wide so every
   package listing (Safaris, All Tours, taxonomies, related) matches the home. */
.sisticola-brand .sis-tcard { position: relative; display: block; border-radius: var(--sis-r); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--sis-shadow); text-decoration: none; isolation: isolate; }
.sisticola-brand .sis-tcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.sisticola-brand .sis-tcard:hover .sis-tcard__img { transform: scale(1.06); }
.sisticola-brand .sis-tcard__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,10,0,.16) 0%, rgba(34,10,0,0) 28%, rgba(34,10,0,.42) 58%, rgba(34,10,0,.9) 100%); }
.sisticola-brand .sis-tcard__badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: var(--sis-gold); color: var(--sis-ink); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .38rem .7rem; max-width: calc(100% - 1.8rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sisticola-brand .sis-tcard__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.3rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; color: #fff; }
.sisticola-brand .sis-tcard__loc { display: inline-flex; align-items: center; gap: .34rem; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--sis-gold); }
.sisticola-brand .sis-tcard__loc svg { width: .95em; height: .95em; flex: 0 0 auto; }
.sisticola-brand .sis-tcard__title { font-family: var(--font-heading, "Fraunces", serif); font-weight: 500; font-size: 1.28rem; line-height: 1.16; }
.sisticola-brand .sis-tcard__route { font-size: .84rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.sisticola-brand .sis-tcard__foot { margin-top: .55rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .24); display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.sisticola-brand .sis-tcard__dur { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sisticola-brand .sis-tcard__price { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.sisticola-brand .sis-tcard__price b { font-family: var(--font-heading, serif); font-weight: 600; font-size: 1.12rem; color: var(--sis-gold); letter-spacing: 0; }

/* Shared CTA band: restyled as a dark photo band in sisticola-pages.css (child 4.0.0). */

/* Contact method cards: keep long email addresses tidy in their card (no lone dangling character). */
.sisticola-brand a[href^="mailto:"] .font-serif { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }

/* Single accommodation hero with no cleared photography: a deep brand panel
   rather than a stock landscape or an illustration. The property name (h1)
   sits on top of it. Mirrors the same rule on the Absolutely Kili build. */
.att-accom-hero--noimg {
	background:
		linear-gradient(160deg,
			color-mix(in srgb, var(--green, #984d00) 88%, var(--ink)) 0%,
			color-mix(in srgb, var(--ink) 92%, var(--green, #984d00)) 100%);
}

/* =========================================================================
   ACCOMMODATION CARDS WITHOUT PHOTOGRAPHY
   -------------------------------------------------------------------------
   Properties whose own photography has not been cleared show their name on a
   plain panel rather than a stand-in photograph. A licensed landscape sitting
   where the lodge photo belongs still reads as "this is the lodge"; a named
   panel reads as "no picture yet", which is what is actually true.

   The Absolutely Kili build marks these panels with a small peak glyph. That
   is its logo, not ours, so this one carries a hairline rule instead.
   ========================================================================= */
.att-accom-card__media--noimg { background: var(--sis-cream, #faf6ec); }

.att-accom-card__noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	text-align: center;
	background:
		linear-gradient(180deg,
			color-mix(in srgb, var(--cream, #faf6ec) 92%, var(--ink)) 0%,
			color-mix(in srgb, var(--cream, #faf6ec) 80%, var(--ink)) 100%);
	border-bottom: 1px solid var(--sis-hairline);
}
.att-accom-card__noimg > span {
	font-family: var(--font-heading, "Fraunces", Georgia, serif);
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
	font-style: italic;
	line-height: 1.25;
	color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.att-accom-card__noimg::before {
	content: "";
	position: absolute;
	top: 1.05rem;
	left: 50%;
	transform: translateX(-50%);
	width: 2.2rem;
	height: 1px;
	background: var(--sis-hairline);
}
