/* ================================
   GLOBAL RESET & SAFETY
================================ */

/* Prevent overflow & layout breaking */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

/* ================================
   RESPONSIVE IMAGES & MEDIA
================================ */

img,
video,
canvas,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ================================
   RESPONSIVE TYPOGRAPHY
================================ */

html {
	font-size: clamp(14px, 1.1vw, 18px);
}

body {
	font-size: 1rem;
	line-height: 1.6;
}

/* Headings scale smoothly */
h1 {
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h2 {
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

h3 {
	font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4 {
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

/* ================================
   CONTAINERS
================================ */

.container,
.container-fluid {
	max-width: 100%;
	overflow-x: hidden;
}

/* Large screens / TV optimization */
@media (min-width: 1600px) {
	.container {
		max-width: 1500px;
	}
}

/* ================================
   FLEX & GRID HELPERS
================================ */

.flex-wrap {
	display: flex;
	flex-wrap: wrap;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Auto grid utility */
.auto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

/* ================================
   CARD & UI SAFETY
================================ */

.card,
.car-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card img {
	object-fit: cover;
}

/* ================================
   TABLE RESPONSIVENESS
================================ */

.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ================================
   FORM RESPONSIVENESS
================================ */

input,
select,
textarea,
button {
	max-width: 100%;
}

/* ================================
   SMALL DEVICES (PHONES)
================================ */

@media (max-width: 576px) {

	body {
		font-size: 0.95rem;
	}

	.page-hero {
		padding: 1.2rem !important;
		border-radius: 14px;
	}

	.card {
		margin-bottom: 1rem;
	}

	.navbar-brand img {
		width: 45px !important;
		height: 45px !important;
	}

	.modal-dialog {
		margin: 0.5rem;
	}
}

/* ================================
   TABLETS
================================ */

@media (max-width: 768px) {

	.page-hero h1 {
		font-size: 1.8rem;
	}

	.card-title {
		font-size: 1rem;
	}
}

/* ================================
   LAPTOPS & DESKTOPS
================================ */

@media (min-width: 992px) {

	.container {
		padding-left: 1.2rem;
		padding-right: 1.2rem;
	}
}

/* ================================
   ULTRA WIDE / TV SCREENS
================================ */

@media (min-width: 1920px) {

	body {
		font-size: 1.1rem;
	}

	.container {
		max-width: 1600px;
	}
}

/* ================================
   ACCESSIBILITY
================================ */

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

/* ================================
   DEBUG (optional – remove later)
================================ */
/*
* {
    outline: 1px dashed rgba(255,0,0,0.05);
}
*/