/*
 * WordPress-only overrides for the v2 design.
 * stylesheet.css stays a verbatim copy of html-v2/css/stylesheet.css; anything
 * WordPress needs on top of it goes here (loaded last on v2 pages).
 */

/* Interim font fix (2026-11-10, user decision; see TODO-GO-LIVE.md): the Aeroport *trial* fonts
   have letters, comma and full stop only. Characters they lack (digits, ? & ! quotes, dashes, …,
   currency, ...) use the matching local Inter weight instead of a system font. Same family name +
   unicode-range limited to the glyphs each trial font is missing, so Aeroport keeps every glyph it
   has, and every rule that uses Aeroport gets it. REMOVE these three rules when the licensed
   Aeroport fonts are installed (otherwise Inter would replace their digits/punctuation). */
@font-face {
	font-family: 'Aeroport Regular';
	src: url('fonts/Inter-Regular.ttf') format('truetype');
	font-display: swap;
	unicode-range: U+0021-002B, U+002D, U+002F-0040, U+005B-0060, U+007B-007E, U+00A1-00AC, U+00AE-00BF, U+00D7, U+00F7, U+0131, U+0141-0142, U+0152-0153, U+0160-0161, U+017D-017F, U+2010-2022, U+2024, U+2026, U+2030, U+2032-2034, U+2039-203A, U+203C-203E, U+2043-2044, U+205E, U+20A0-20B3, U+20B5-20BF, U+2105, U+2113, U+2116-2117, U+2122, U+2126, U+212E, U+2132, U+214D-214E;
}
@font-face {
	font-family: 'Aeroport Medium';
	src: url('fonts/Inter-Medium.ttf') format('truetype');
	font-display: swap;
	unicode-range: U+0021-002B, U+002D, U+002F-0040, U+005B-0060, U+007B-007E, U+00A1-00AC, U+00AE-00BF, U+00D7, U+00F7, U+0131, U+0141-0142, U+0152, U+0160, U+017D-017F, U+2010-2022, U+2024, U+2026, U+2030, U+2032-2034, U+2039-203A, U+203C-203E, U+2043-2044, U+205E, U+20A0-20BF, U+2105, U+2113, U+2116-2117, U+2122, U+2126, U+212E, U+2132, U+214D-214E;
}
@font-face {
	font-family: 'Aeroport Bold';
	src: url('fonts/Inter-Bold.ttf') format('truetype');
	font-display: swap;
	unicode-range: U+0021-002B, U+002D, U+002F-0040, U+005B-0060, U+007B-007E, U+00A1-00AC, U+00AE-00BF, U+00F7, U+0131, U+0141-0142, U+0152, U+0160, U+017F, U+2010-2022, U+2024, U+2026, U+2030, U+2032-2034, U+2039-203A, U+203C-203E, U+2043-2044, U+205E, U+20A0-20BF, U+2105, U+2113, U+2116-2117, U+2122, U+2126, U+212E, U+2132, U+214D-214E;
}

/* Hero video is served without an audio track (placeholder, see TODO-GO-LIVE.md),
   so the sound toggle has nothing to toggle. */
#mute-btn {
	display: none !important;
}

/* Logged-in users: keep the fixed header and the off-canvas sidebar below the
   WordPress admin bar (32px desktop, 46px on screens <= 782px). Visitors who are
   not logged in have no .admin-bar body class, so the design is unchanged. */
.admin-bar .site-header {
	top: 32px;
}
.admin-bar #sidebar {
	top: 32px;
	height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
	.admin-bar #sidebar {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* ---- Blog V2 dynamic listing (real posts) ---- */
/* Images keep the design's frame; real images are cropped to fill it (object-fit: cover, centred). */
.v2-cover {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
}
.v2-cover-card {
	aspect-ratio: 2160 / 1200; /* html-v2 blog card images */
}
.v2-cover-featured {
	aspect-ratio: 3368 / 1976; /* html-v2 featured image (blog-banner.png) */
}
.v2-img-placeholder {
	background: #e9e9e9;
}
/* Links added around card titles/images: no visual change vs the design. */
a.v2-card-link {
	display: block;
}
a.v2-title-link,
a.v2-title-link:hover {
	color: inherit;
	text-decoration: none;
}
/* Header logo links home (site-header.php): no visual change; default focus ring kept (:focus-visible). */
a.v2-logo-link,
a.v2-logo-link:hover {
	color: inherit;
	text-decoration: none;
}
/* Long titles / excerpts: max 3 lines. */
.blog-card-title,
.blog-wrapper-main h3,
.blog-card-text,
.blog-wrapper-main .blog-content p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.v2-empty-state {
	font-family: Inter Regular;
	color: #888888;
	text-align: center;
	padding: 40px 0;
}
/* Blog V2 listing, mobile: featured card meta. Badge + date on one line when they fit,
   else the whole date moves to the next line (no mid-date wrap); gap before "Read Article". */
@media (max-width: 767.98px) {
	body.page-template-page-blog-v2 .bg-grey .blog-badge-wrapper {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 12px;
		row-gap: 8px;
	}
	body.page-template-page-blog-v2 .bg-grey .blog-badge-wrapper small {
		margin-left: 0;
		white-space: nowrap;
	}
	body.page-template-page-blog-v2 .bg-grey .blog-footer {
		flex-wrap: wrap;
		column-gap: 16px;
		row-gap: 12px;
	}
	body.page-template-page-blog-v2 .bg-grey .blog-footer > * {
		white-space: nowrap;
	}
}

/* ---- v2 single post (real post content) ---- */
/* Author avatar = SwaamTech icon (no Gravatar). */
.v2-author-logo {
	object-fit: contain;
	background: #f2f2f2;
	padding: 5px;
}
/* Banner: whole image (no crop); small images are not upscaled. */
.v2-banner {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
a.v2-title-link:hover span {
	text-decoration: underline;
}
/* Article body: the design styles <p> (.article-body-content p); everything else real posts use
   is styled here in the same typography. Old-theme classes inside posts get v2 equivalents. */
.v2-article-content {
	font-family: Inter Regular;
	font-size: 20px;
	line-height: 32px;
	color: #444444;
	overflow-wrap: break-word;
}
.v2-article-content::after {
	content: "";
	display: table;
	clear: both;
}
.v2-article-content h1,
.v2-article-content h2,
.v2-article-content h3,
.v2-article-content h4,
.v2-article-content h5,
.v2-article-content h6 {
	font-family: Aeroport Bold;
	font-weight: 500;
	color: #000;
	margin: 48px 0 20px;
}
.v2-article-content h1,
.v2-article-content h2 {
	font-size: 32px;
	line-height: 40px;
}
.v2-article-content h3 {
	font-size: 26px;
	line-height: 34px;
}
.v2-article-content h4,
.v2-article-content h5,
.v2-article-content h6 {
	font-size: 22px;
	line-height: 30px;
}
.v2-article-content ul,
.v2-article-content ol {
	margin: 0 0 24px;
	padding-left: 28px;
}
.v2-article-content li {
	font-size: 20px;
	line-height: 32px;
	color: #444444;
	margin-bottom: 12px;
	list-style: disc outside;
}
.v2-article-content ol > li,
.v2-article-content .ol_bullets > li {
	list-style: decimal outside;
}
.v2-article-content .no-decimal > li {
	list-style: none;
}
.v2-article-content li::marker {
	color: #BE1E2D;
}
.v2-article-content strong,
.v2-article-content b {
	font-family: Inter Medium;
	font-weight: 500;
	color: #000;
}
.v2-article-content a {
	color: #BE1E2D;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.v2-article-content a:hover {
	color: #b31924;
}
.v2-article-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 24px auto;
	border-radius: 12px;
}
.v2-article-content img.development,
.v2-article-content img.size-full {
	display: block;
	width: 100%;
	margin: 32px 0;
}
.v2-article-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.v2-article-content .alignleft {
	float: left;
	margin: 6px 24px 16px 0;
}
.v2-article-content .alignright {
	float: right;
	margin: 6px 0 16px 24px;
}
.v2-article-content blockquote,
.v2-article-content .lftbrdrline {
	border-left: 3px solid #BE1E2D;
	padding: 4px 0 4px 24px;
	margin: 32px 0;
	font-family: Aeroport Bold;
	font-size: 22px;
	line-height: 30px;
	color: #000;
	font-style: normal;
}
.v2-article-content .capitltr { /* old drop cap */
	float: left;
	font-family: Aeroport Bold;
	font-size: 72px;
	line-height: 60px;
	color: #BE1E2D;
	margin: 4px 10px 0 0;
}
.v2-article-content .highLight {
	display: block;
	font-family: Aeroport Bold;
	font-size: 32px;
	line-height: 40px;
	color: #000;
	text-align: center;
	margin: 32px 0;
}
.v2-article-content .videoDisplay {
	text-align: center;
}
.v2-article-content .blk_bullet::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #BE1E2D;
	margin: 0 10px 2px 0;
}
.v2-article-content table {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
}
.v2-article-content td,
.v2-article-content th {
	border: 1px solid #e5e5e5;
	padding: 8px 12px;
}
/* Embeds (iframes wrapped by swaam_v2_wrap_embeds): responsive, ratio from the iframe size. */
.v2-article-content .v2-embed {
	position: relative;
	width: 100%;
	margin: 32px 0;
}
.v2-article-content .v2-embed iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	margin: 0 !important;
}
@media (max-width: 767.98px) {
	.v2-article-content h1,
	.v2-article-content h2 {
		font-size: 26px;
		line-height: 34px;
	}
	.v2-article-content h3 {
		font-size: 22px;
		line-height: 30px;
	}
	.v2-article-content .capitltr {
		font-size: 56px;
		line-height: 48px;
	}
}
/* Blog V2 "Load More" loading state (blog-v2.js). */
.read-article-link.is-loading {
	pointer-events: none;
	opacity: 0.6;
	cursor: default;
}

/* Home testimonials, content update 2026-11-09 (user-approved exception, scoped
   to this section only): the real quotes are longer than the design's
   placeholders, so the section grows with the quote instead of clipping it
   (design: fixed 100vh desktop / 40vh mobile + overflow: hidden). The design
   heights stay as the minimum, and each quote is centred in the slider. */
#testimonial-section {
	height: auto;
	min-height: 100vh;
	overflow: visible;
}
@media screen and (min-width: 240px) and (max-width: 768px) {
	#testimonial-section {
		min-height: 40vh;
	}
}
.testimonialSwiper .swiper-wrapper {
	align-items: center;
}

/* Home services, content update 2026-11-09 (user-approved): the real services
   have longer titles, text and feature lists than the design's placeholders, so
   the pinned slides ran below the screen ("Explore" cut). Smaller title on
   desktop/tablet; on mobile also tighter text and list. Design values noted. */
@media (min-width: 769px) {
	.service-title {
		font-size: clamp(48px, 6vw, 72px); /* design: clamp(48px, 8vw, 90px) */
	}
}
@media screen and (min-width: 240px) and (max-width: 768px) {
	.service-title {
		font-size: 32px; /* design: 40px / 60px */
		line-height: 38px;
		margin-bottom: 12px;
	}
	.service-desc {
		font-size: 17px; /* design: 22px / 32px */
		line-height: 25px;
		margin-bottom: 12px;
	}
	.service-list {
		padding-bottom: 16px; /* design: 30px */
	}
	.service-list li {
		font-size: 15px; /* design: 18px / 37px */
		line-height: 22px;
		padding: 4px 0;
	}
}

/* v2 news cards (template-parts/v2/news-cards.php, dynamic): real post titles can be
   long, so clamp them to 3 lines (the design's placeholder titles take 2-3 lines and
   were cut by hand with "..."). Nothing else changes. */
.newslistingwrapper h4 {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* About V2 values cards, content update 2026-11-11 (user-approved exception,
   mobile only, scoped to these cards): the real values text is longer than the
   design's placeholders, and on mobile the fixed-height cards clipped it
   (design: height 0 + padding-bottom 40% / 80% + overflow: hidden, content
   absolutely positioned 30px from the top). The cards now grow with their text;
   the design height stays the minimum (float ::before with the same padding),
   so a card whose text fits looks exactly as before. Desktop unchanged. */
@media screen and (min-width: 240px) and (max-width: 768px) {
	#principles-section .stack-cards__item {
		display: flow-root;
		height: auto;
		padding-bottom: 0 !important;
	}
	#principles-section .stack-cards__item::before {
		content: "";
		float: left;
		padding-bottom: 40%; /* design: padding-bottom 40% (240-768px) */
	}
	#principles-section .stack-cards__item > .grid {
		position: relative;
		top: auto;
		height: auto;
		padding: 30px 0; /* design: top 30px */
	}
}
@media screen and (min-width: 340px) and (max-width: 540px) {
	#principles-section .stack-cards__item::before {
		padding-bottom: 80%; /* design: padding-bottom 80% (340-540px) */
	}
}
