/*
Theme Name: Suitcases & Scrubs
Theme URI: https://suitcasesandscrubs.com/
Author: Entropy Media Limited
Description: Custom classic theme for Suitcases & Scrubs — a travel-healthcare resource desk. Built from the Suitcases & Scrubs design canvas; section layouts are hardcoded in front-page.php and page-{gear,travel,agencies,guides}.php.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scrubs-and-suitcases
*/

/* -------------------------------------------------------------------------
 * Base — mirrors the design canvas stylesheet
 * ---------------------------------------------------------------------- */

body {
	margin: 0;
	background: #FFFFFF;
	color: #241A3D;
	font-family: 'Jost', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: #6B46C1; text-decoration: none; }
a:hover { color: #4C3195; }

* { box-sizing: border-box; }

::selection { background: #EDE7F6; }

img { max-width: 100%; }

/* -------------------------------------------------------------------------
 * Hover states lifted from the design's style-hover attributes
 * ---------------------------------------------------------------------- */

[data-h="1"]:hover { color: #6B46C1; }
[data-h="2"]:hover { background: #4C3195; }
[data-h="3"]:hover { background: #EDE7F6; }
[data-h="4"]:hover { border-color: #C4B5FD; background: #FCFBFE; }
[data-h="5"]:hover { border-color: #C4B5FD; }
[data-h="6"]:hover { border-color: #8B5FBF; }

/* -------------------------------------------------------------------------
 * Image slots — branded placeholder until a file is dropped into
 * assets/img/slots/<slot-id>.<webp|jpg|jpeg|png>
 * ---------------------------------------------------------------------- */

.ss-slot {
	width: 100%;
	height: 100%;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px;
	text-align: center;
	background: linear-gradient(150deg, #EDE7F6 0%, #F6F2FC 55%, #FFFFFF 100%);
	border: 1px dashed #C4B5FD;
}

.ss-slot__mark {
	font-family: 'Cormorant Garamond', serif;
	font-size: 26px;
	font-weight: 600;
	color: #8B5FBF;
	line-height: 1;
}

.ss-slot__label {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8B5FBF;
	font-weight: 500;
	line-height: 1.5;
	max-width: 22ch;
}

/* -------------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.ss-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: #6B46C1;
	color: #FFFFFF;
	font-size: 14px;
	border-radius: 0 0 4px 0;
}

.ss-skip:focus {
	left: 0;
	color: #FFFFFF;
}

:focus-visible {
	outline: 2px solid #6B46C1;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Small screens — the design's grids already reflow, this tidies the masthead
 * ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.ss-nav { gap: 18px; }
}

@media (max-width: 780px) {
	.ss-headbar {
		justify-content: center;
		gap: 14px;
		padding: 12px 20px;
	}

	.ss-logo { height: 42px !important; }

	.ss-nav {
		margin-left: 0 !important;
		width: 100%;
		justify-content: center;
		gap: 16px;
		row-gap: 12px;
	}

	.ss-nav a { font-size: 13px !important; }

	.ss-nav a:last-child { padding: 9px 18px !important; }
}

@media (max-width: 420px) {
	.ss-nav { gap: 12px; }
	.ss-nav a { font-size: 12px !important; letter-spacing: 0.1em !important; }
}

/* -------------------------------------------------------------------------
 * Editorial defaults for blog posts / generic pages
 * ---------------------------------------------------------------------- */

.ss-prose h1,
.ss-prose h2,
.ss-prose h3,
.ss-prose h4 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
	color: #2B1B4D;
	line-height: 1.15;
	margin: 1.6em 0 0.5em;
}

.ss-prose h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 0; }
.ss-prose h2 { font-size: clamp(26px, 3.4vw, 36px); }
.ss-prose h3 { font-size: clamp(21px, 2.4vw, 26px); }

.ss-prose p,
.ss-prose li {
	font-size: 17px;
	line-height: 1.75;
	color: #4A4160;
	font-weight: 300;
}

.ss-prose blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid #C4B5FD;
	color: #4A4160;
}

.ss-prose img { height: auto; border-radius: 4px; }

.ss-prose table {
	width: 100%;
	border-collapse: collapse;
}

.ss-prose th,
.ss-prose td {
	border-bottom: 1px solid #EDE7F6;
	padding: 12px 14px;
	text-align: left;
	font-size: 15px;
}

/* -------------------------------------------------------------------------
 * Affiliate blocks inside article content
 * ---------------------------------------------------------------------- */

.ss-cta {
	margin: 34px 0;
	padding: 24px 26px;
	background: linear-gradient(150deg, #F6F2FC 0%, #FCFBFE 100%);
	border: 1px solid #EDE7F6;
	border-radius: 4px;
	text-align: center;
}

.ss-cta__label {
	margin: 0 0 14px !important;
	font-size: 12px !important;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #8B5FBF !important;
	font-weight: 500 !important;
}

.ss-cta__go { margin: 0 !important; }

.ss-cta__go a {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	background: #6B46C1;
	color: #FFFFFF;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 500;
}

.ss-cta__go a:hover { background: #4C3195; color: #FFFFFF; }

.ss-buy {
	margin: -4px 0 18px !important;
	font-size: 13px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500 !important;
}

.ss-buy a { border-bottom: 1px solid #C4B5FD; padding-bottom: 2px; }

.ss-prose .ss-disclosure p {
	font-size: 14px;
	color: #5A5170;
}

.ss-prose table a { font-weight: 500; }
