body {
	padding: 0;
	/* Use Poppins across the site for consistency (falls back to system fonts) */
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* base readable size matching other pages */
	font-size: 16px;
	line-height: 1.6;
}

/* Reset the previous tiny h1 rule so Tailwind utility classes or page-specific styles control heading sizes */
h1 {
	margin-top: 0;
}

p {
	color: rgb(107, 114, 128);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	border: 1px solid lightgray;
	border-radius: 16px;
}

.card p:last-child {
	margin-bottom: 0;
}

/* Centralized theme variables and title-bar styles */
:root {
	--color-navy-900: #001f3f;
	--color-navy-800: #002b5c;
	--color-navy-700: #00397a;
}

/* Apply the same title bar color across all pages */
.title-bar {
	background-color: var(--color-navy-900) !important;
	color: white !important;
}

/* Utility classes using the same color scale */
.bg-navy-900 { background-color: var(--color-navy-900) !important; }
.bg-navy-800 { background-color: var(--color-navy-800) !important; }
.bg-navy-700 { background-color: var(--color-navy-700) !important; }
.text-navy-900 { color: var(--color-navy-900) !important; }
.border-navy-900 { border-color: var(--color-navy-900) !important; }


/* Logo used in the title/navigation bar */
.site-logo {
	height: 44px;
	width: auto;
	vertical-align: middle;
}

.brand-text {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.4px;
}

/* Modal styles for product details */
#product-modal .rounded-lg { max-width: 720px; }
#product-modal img { max-height: 240px; object-fit: cover; }
#product-modal p { margin: 0; }


/* About page image: slightly smaller and hover effect */
.about-image {
	max-width: 520px; /* increased to better fill the empty area */
	width: 100%;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.about-image:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 12px 30px rgba(16,24,40,0.12);
}

/* Hero image zoom on hover (subtle) */
.hero-image {
	transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms;
	will-change: transform;
}
.hero-image:hover {
	transform: scale(1.04) translateY(-4px);
}

/* Tighter spacing for the About page */
.about-page .hero-section { padding-top: 3rem !important; padding-bottom: 2.25rem !important; }
.about-page section { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.about-page .container { max-width: 1100px; }
.about-page .about-image { max-width: 460px; }
.about-page h1 { margin-bottom: .5rem; }
.about-page .prose { margin-top: .5rem; }

/* Video used in hero: scale/crop like an image */
.hero-video {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: 480px;
	height: auto;
	object-fit: cover;
}
.hero-video::-webkit-media-controls { display: none !important; }

/* Full-bleed background video for the hero section */
.hero-bg-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0; /* behind content */
}

.hero-section { position: relative; overflow: hidden; /* height will be adjusted via JS to match video aspect */ }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.28); z-index: 1; pointer-events: none; transition: background 200ms ease; }
.hero-content { position: relative; z-index: 2; }

/* Translucent panel used to hold hero text and CTAs so both video and text are visible */
.hero-panel {
	background: rgba(255,255,255,0.06); /* subtle translucent white */
	backdrop-filter: blur(6px) saturate(110%);
	-webkit-backdrop-filter: blur(6px) saturate(110%);
	border: 1px solid rgba(255,255,255,0.08);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(2,6,23,0.22);
	color: #f8fafc; /* light text for contrast */
}

@media (min-width: 768px){
	.hero-panel { padding: 3rem; }
}

/* Gold accent color */
.text-gold { color: #D4AF37 !important; }

/* Primary button shared style */
.btn-primary { background: #0b3d91; color: #fff; padding: 0.75rem 1.75rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.btn-primary:hover { background: #082b69; }

/* Right-side logo in the hero area */
.hero-right-logo {
	width: 140px;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
	border: 2px solid rgba(255,255,255,0.12);
	box-shadow: 0 8px 24px rgba(2,6,23,0.18);
	background: rgba(255,255,255,0.02);
}

@media (min-width: 768px){ .hero-right-logo { width: 180px; } }

/* Generic modal overlay and box for services */
.modal-overlay { display: flex; }
.modal-overlay.hidden { display: none; }
.modal-box { transform: translateY(0); }
.modal-box-enter { transform: translateY(12px); opacity: 0; }
.modal-box-exit { transform: translateY(12px); opacity: 0; }

/* Make modal content scrollable on small screens so form inputs remain reachable */
.modal-overlay, #product-modal, #quoteModal, #categoriesModal, #enquirySuccessModal {
	-webkit-overflow-scrolling: touch;
}
.modal-overlay .modal-box,
#product-modal > div,
#quoteModal .modal-scale,
#quoteModal form,
#categoriesModal > div,
#enquirySuccessModal > div {
	max-height: calc(100vh - 120px);
	overflow: auto;
}

/* Ensure form fields and controls are reachable on mobile when modal is open */
#quoteModal form { padding-bottom: 1rem; }

/* On desktop/large screens, disable internal modal scrolling so forms render without inner scroll bars */
@media (min-width: 1024px) {
	.modal-overlay .modal-box,
	#product-modal > div,
	#quoteModal .modal-scale,
	#quoteModal form,
	#categoriesModal > div,
	#enquirySuccessModal > div {
		max-height: none !important;
		overflow: visible !important;
	}

	/* Ensure any utility overflow classes inside modals don't force scrolling on large screens */
	.modal-overlay .overflow-auto,
	.modal-overlay .overflow-y-auto,
	.modal-overlay .overflow-hidden {
		overflow: visible !important;
		max-height: none !important;
	}

	/* Reset touch scrolling behavior for large screens */
	.modal-overlay, #product-modal, #quoteModal, #categoriesModal, #enquirySuccessModal {
		-webkit-overflow-scrolling: auto;
	}
}

/* Footer logo: increase size but preserve layout/alignment */
.footer-logo {
	height: 68px; /* increased by ~20% from 56px to make footer logo slightly larger */
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .site-logo { height: 36px; }
    .footer-logo { height: 54px; }
	.hero-panel { padding: 0.75rem; max-width: 92%; margin: 0 auto; background: rgba(255,255,255,0.04); }
	.hero-panel h1 { font-size: 1.5rem; }
	.hero-panel p { font-size: 0.95rem; }
	.hero-right-logo { display: none; }
}

/* Center footer first column (logo, tagline, social icons) on small screens */
@media (max-width: 640px) {
  footer .container .grid > div:first-child { text-align: center; }
  footer .container .grid > div:first-child .footer-logo { margin-left: auto; margin-right: auto; display: block; }
  footer .container .grid > div:first-child .flex { justify-content: center; }
  footer .container .grid > div:first-child .text-gray-400 { text-align: center; }
}

/* ensure flex children in that column center on mobile (overrides items-start) */
@media (max-width: 640px) {
	footer .container .grid > div:first-child { display: flex !important; flex-direction: column !important; align-items: center !important; }
	footer .container .grid > div:first-child .flex { justify-content: center !important; }
}

@media (min-width: 768px) {
    .hero-panel { padding: 3rem; }
}

/* Ensure hero section has a comfortable minimum height (larger on mobile per request) */
.hero-section { min-height: 580px; }
@media (min-width: 768px) { .hero-section { min-height: 720px; } }

/* Make images and videos responsive by default */
img, picture, video { max-width: 100%; height: auto; display: block; }

/* Override Tailwind fixed heights on small screens for better responsiveness */
@media (max-width: 640px) {
	img.h-48, .h-48 { height: auto !important; max-height: 220px; }
}

/* Newsletter loader: centered logo with heartbeat animation */
.newsletter-loader {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.45);
	z-index: 60;
}
.newsletter-loader.active { display: flex; }
.newsletter-loader img { width: 96px; height: auto; animation: heartbeat 1s infinite; }

@keyframes heartbeat {
	0% { transform: scale(1); opacity: 1; }
	25% { transform: scale(1.12); opacity: 0.95; }
	40% { transform: scale(0.98); opacity: 0.9; }
	60% { transform: scale(1.06); opacity: 0.98; }
	100% { transform: scale(1); opacity: 1; }
}

/* Mobile menu logo sizing (used inside the mobile menu panel) */
/* mobile menu logo: slightly larger by default, big on small screens, modest on md+ */
.mobile-menu-logo { width: 140px; height: auto; display: inline-block; }
@media (min-width: 768px) {
	.mobile-menu-logo { width: 96px; }
}

/* mobile menu specific styles: disable animation on the mobile menu logo */
#mobileMenuModal .mobile-menu-logo { animation: none !important; display: block; margin: 0 auto; }
#mobileMenuModal a { font-weight: 700; color: var(--color-navy-900); text-decoration: none; }
#mobileMenuModal a { transition: color 140ms ease, transform 140ms ease; }
#mobileMenuModal a:hover { color: #0b3d91; transform: translateX(6px); }

@media (max-width: 640px) {
  /* larger logo on small screens */
  .mobile-menu-logo { width: 220px; }
}



