@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@import "variables.css";

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

body {
	min-height: 100vh;
	margin: 0;
	padding: 0;
	font-size: 18px;
}

/* general elements */
h1,
.heading-1,
h2,
.heading-2,
h3,
.heading-3,
h4,
.heading-4,
h5,
.heading-5 {
	font-family: "DM Sans", sans-serif;
	margin: 0 0 40px;
}
h1,
.heading-1 {
	font-size: 3.2rem;
	line-height: 3.6rem;
	font-weight: 900;
}
h2,
.heading-2 {
	font-size: 2.6rem;
	line-height: 2.8rem;
	font-weight: 900;
}
h3,
.heading-3 {
	font-size: 2.2rem;
	line-height: 2.4rem;
	font-weight: 900;
}
h4,
.heading-4 {
	font-size: 1.8rem;
	line-height: 2rem;
	font-weight: 900;
}
h5,
.heading-5 {
	font-size: 1.4rem;
	line-height: 1.8rem;
	font-weight: 900;
}
h6,
.heading-6 {
	font-size: 1.2rem;
	line-height: 1.6rem;
	font-weight: 900;
}
p {
	font-size: 1rem;
	line-height: 1.4rem;
	font-weight: 400;
	margin: 0 0 1.125rem;
}

ul.no-styling {
	list-style: none;
	margin: 0;
	padding: 0;
}

a,
a:link,
a:visited,
a:focus {
	color: #e0a385;
	text-decoration: none;
}
a:hover {
	color: #ffffff;
}

button {
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 0.6em 1.2em;
	font-size: 1em;
	font-weight: 500;
	font-family: inherit;
	background-color: #1a1a1a;
	cursor: pointer;
	transition: border-color 0.25s;
}
button:hover {
	border-color: #646cff;
}
button:focus,
button:focus-visible {
	outline: 4px auto -webkit-focus-ring-color;
}

/* img[src$=".svg"] {
	width: 100%;
	max-width: 300px;
	height: auto;
} */

/* below site structure and content layouts */
.main-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	justify-items: center;
	padding: 20px;
}

.hero-image {
	width: 100%;
	max-width: 350px;
}

/* ===================== */

/* Main Parent Grid */
.card-grid {
	display: grid;
	/* Standard responsive 2-column tracks */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	/* Defines the master row heights for content alignment */
	grid-template-rows: auto 1fr;
	gap: 2rem;
	padding: 2rem;
}

/* Clickable Card Container */
.card {
	display: flex;
	flex-direction: column;
	background: var(--color-platium);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

/* Hover effects only for regular active cards */
.card:not(:has(.coming-soon)):hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Deactivates the link completely if it contains a coming-soon element */
.card:has(.coming-soon) {
	cursor: not-allowed;
	pointer-events: none; /* Disables clicking, hovering, and tabbing */
}

.card-thumb {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
/* The new wrapper container */
.card-thumb-wrapper {
	position: relative;
	width: 100%;
	height: 200px; /* Matches the image height */
	overflow: hidden;
}

/* The Overlay Layer: Hidden by default, only appears when .coming-soon is present */
.card-thumb-wrapper.coming-soon::after {
	content: "Coming Soon";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* Semi-transparent dark background overlay */
	background-color: rgba(0, 0, 0, 0.6);
	/* Centers the text perfectly over the image */
	display: flex;
	align-items: center;
	justify-content: center;
	/* Text styling */
	color: #ffffff;
	font-weight: bold;
	font-size: 1.25rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* The Corrected Subgrid Setup */
.card-body {
	display: grid;
	grid-row: span 2; /* Occupies the 2 master rows */
	grid-template-rows: subgrid; /* Inherits row alignments */
	row-gap: 0.75rem;
	padding: 1.5rem;
	flex-grow: 1;
}

/* CRITICAL FIX: Forces text elements to occupy the full card width */
.card-title,
.card-desc {
	grid-column: 1 / -1;
}

/* Typography Styling */
.card-title {
	margin: 0;
	color: var(--color-black);
}

.card-desc {
	color: var(--color-carbon);
	margin: 0;
}

/* ===================== */
