/*!
 * Midwich – Ampetronic Campaign Page
 * Q226 – wifo.css (light palette)
 */

/* =============================================================
   VIEWPORT
============================================================= */
@-ms-viewport { width: device-width; }
@-o-viewport  { width: device-width; }
@viewport     { width: device-width; }

/* =============================================================
   CSS VARIABLES
============================================================= */
:root {
	--teal:        #0099ee;
	--teal-dark:   #0077bb;
	--teal-light:  #e8f5fd;
	--navy:        #0c1120;
	--page-bg:     #ffffff;
	--section-alt: #f4f7f9;
	--section-teal-dark: #0a3d5c;
	--text-dark:   #1a2530;
	--text-mid:    #3d5060;
	--text-light:  rgba(255,255,255,0.82);
	--border-light: #dde6ed;
	--white:       #ffffff;
	--radius:      4px;
	--radius-lg:   12px;
	--transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================
   GLOBAL
============================================================= */
* {
	font-family: 'Lota Grotesque', sans-serif;
	box-sizing: border-box;
}

body {
	background-color: var(--page-bg);
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Lota Grotesque', sans-serif;
	letter-spacing: -0.01em;
}

h1 { color: var(--white); font-weight: 800; }
h2 { font-weight: 700; margin-bottom: 16px; }
h3 { font-weight: 600; line-height: 1.3; }
h4 { font-weight: 600; font-size: 18px; line-height: 1.4; }

p {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	padding: 0;
	margin: 0 0 12px;
	color: var(--text-mid);
}

a {
	color: var(--teal);
	text-decoration: none;
	font-weight: 600;
	transition: color var(--transition);
}

a:hover, a:focus, a:active {
	color: var(--teal-dark);
	text-decoration: none;
}

::-webkit-scrollbar       { width: 8px; background-color: #e8edf2; }
::-webkit-scrollbar-thumb { border-radius: 8px; background-color: var(--teal); }
::-webkit-scrollbar-track { background-color: #e8edf2; }

/* =============================================================
   NAV — DESKTOP (≥992px)
============================================================= */
.navbar {
	min-height: 70px;
	background-color: rgba(12,17,32,0.98) !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255,255,255,0.06) !important;
	box-shadow: 0 4px 40px rgba(0,0,0,0.35);
	padding: 0;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 70px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	width: 100%;
	position: relative;
}

.navbar-brand-desktop {
	display: flex;
	align-items: center;
	height: 70px;
	padding: 0;
	flex-shrink: 0;
	position: absolute;
	left: 32px;
	top: 0;
}

#mainlogo-desktop {
	background-image: url('../img/logo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
	width: 160px;
	height: 40px;
}

.nav-divider {
	width: 1px;
	height: 32px;
	background: rgba(255,255,255,0.15);
	margin: 0 24px 0 8px;
	flex-shrink: 0;
	position: absolute;
	left: 200px;
	top: 19px;
}

.navbar-collapse {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	box-shadow: none;
	height: 70px;
	overflow: visible !important;
	flex: 0 1 auto;
}

.navbar-nav {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	margin: 0 auto;
	float: none !important;
}

.navbar-default .navbar-nav > li > a {
	color: rgba(255,255,255,0.75);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	margin: 0 1px;
	border-radius: var(--radius);
	line-height: 1;
	transition: color var(--transition), background var(--transition);
	white-space: nowrap;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
	color: var(--white);
	background-color: rgba(255,255,255,0.07);
}

.navbar-default .navbar-nav > li > a.nav-cta {
	color: var(--white);
	background-color: var(--teal);
	border-radius: var(--radius);
	padding: 8px 16px;
	margin-left: 12px;
	font-weight: 700;
}

.navbar-default .navbar-nav > li > a.nav-cta:hover,
.navbar-default .navbar-nav > li > a.nav-cta:focus {
	background-color: var(--teal-dark);
	color: var(--white);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
	background-color: rgba(255,255,255,0.08);
	color: var(--white);
}

.navbar-header { display: none; }

.navbar-default .navbar-toggle {
	background: none;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: var(--radius);
	padding: 8px 10px;
	margin: 0;
}

.navbar-default .navbar-toggle .icon-bar {
	background-color: var(--white);
	width: 20px;
	height: 2px;
	border-radius: 1px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
	background: rgba(255,255,255,0.08);
}

/* =============================================================
   NAV — MOBILE / TABLET (<992px)
============================================================= */
@media (max-width: 991px) {
	.nav-inner {
		flex-direction: column;
		height: auto;
		padding: 0;
		align-items: stretch;
	}

	.navbar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0 20px;
		height: 70px;
	}

	.navbar-brand {
		height: 70px;
		padding: 0;
		display: flex;
		align-items: center;
	}

	#mainlogo {
		background-image: url('../img/logo.png');
		background-size: contain;
		background-repeat: no-repeat;
		background-position: left center;
		width: 160px;
		height: 40px;
	}

	.navbar-brand-desktop,
	.nav-divider { display: none !important; }

	.navbar-collapse {
		display: none !important;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		height: auto;
		background: rgba(12,17,32,0.99);
		border-top: 1px solid rgba(255,255,255,0.07);
		padding: 12px 0 20px;
		overflow: hidden !important;
	}

	.navbar-collapse.in { display: flex !important; }

	.navbar-nav {
		flex-direction: column !important;
		width: 100%;
		margin: 0 !important;
	}

	.navbar-default .navbar-nav > li { width: 100%; }

	.navbar-default .navbar-nav > li > a {
		display: block;
		padding: 13px 24px;
		margin: 0;
		border-radius: 0;
		font-size: 14px;
		border-bottom: 1px solid rgba(255,255,255,0.04);
	}

	.navbar-default .navbar-nav > li:last-child > a { border-bottom: none; }

	.navbar-default .navbar-nav > li > a.nav-cta {
		margin: 12px 20px 0;
		border-radius: var(--radius);
		text-align: center;
		border-bottom: none;
	}
}

/* =============================================================
   HERO — always dark, image background
============================================================= */
.hero-section {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--navy);
	background-image: url('../img/hero.jpg');
	background-size: cover;
	background-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(12,17,32,0.92) 0%, rgba(12,17,32,0.70) 55%, rgba(0,153,238,0.12) 100%);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	padding-top: 120px;
	padding-bottom: 80px;
}

.hero-logo {
	max-width: 384px;
	margin-bottom: 32px;
	display: block;
}

.hero-title {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 80px;
	font-weight: 900;
	line-height: 0.95;
	color: var(--white);
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin-bottom: 24px;
}

.hero-title .accent {
	color: var(--teal);
	display: block;
}

.hero-subtitle {
	font-size: 18px;
	font-weight: 400;
	color: rgba(255,255,255,0.80);
	max-width: 580px;
	line-height: 1.6;
	margin-bottom: 0;
}

.hero-scroll-hint {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.hero-scroll-hint span {
	display: block;
	width: 2px;
	height: 40px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--teal) 100%);
	margin: 0 auto;
	animation: scrollFade 2s ease-in-out infinite;
}

@keyframes scrollFade {
	0%, 100% { opacity: 0; transform: translateY(-10px); }
	50%       { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   BUTTONS
============================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: var(--radius);
	border: 2px solid transparent;
	transition: all var(--transition);
	cursor: pointer;
	text-decoration: none;
}

.product-btn {
	background-color: var(--teal);
	color: var(--white);
	border-color: var(--teal);
	font-size: 13px;
	padding: 10px 22px;
}

.product-btn:hover, .product-btn:focus {
	background-color: var(--teal-dark);
	border-color: var(--teal-dark);
	color: var(--white);
}

/* =============================================================
   SECTION BACKGROUNDS
   Alternating white / light-grey gives the "pale" feel.
   One dark-teal section for "Why Ampetronic" accent break.
============================================================= */
.bumper { width: 100%; padding: 96px 0; }

/* Pure white */
.section-white { background-color: var(--white); }

/* Subtle off-white/grey */
.section-light { background-color: var(--section-alt); }

/* Dark accent for Why Ampetronic */
.section-teal-dark { background-color: var(--section-teal-dark); }


/* =============================================================
   SECTION TYPOGRAPHY
============================================================= */
.section-label {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--teal);
	margin-bottom: 10px;
}

.section-label.label-white { color: rgba(255,255,255,0.7); }

.section-title-xl {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 52px;
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	margin-bottom: 20px;
	color: var(--white);
}

/* On light backgrounds, titles are dark */
.section-title-xl.dark { color: var(--text-dark); }

.section-intro {
	font-size: 16px;
	color: var(--text-mid);
	max-width: 700px;
	margin-bottom: 48px;
	line-height: 1.65;
}

.body-text { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.body-text.dark-text { color: var(--text-mid); }

/* =============================================================
   INTRO — APPLICATION PILLS
============================================================= */
.intro-application-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 8px;
}

.app-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--teal-light);
	border: 1px solid rgba(0,153,238,0.2);
	border-radius: 40px;
	font-size: 13px;
	font-weight: 600;
	color: var(--teal-dark);
	transition: background var(--transition), border-color var(--transition);
}

.app-pill:hover {
	background: #d0eaf9;
	border-color: rgba(0,153,238,0.4);
}

.app-icon {
	width: 17px;
	height: 17px;
	color: var(--teal);
	flex-shrink: 0;
}

/* =============================================================
   FEATURE LISTS
============================================================= */
.feature-list {
	list-style: none;
	padding: 0;
	margin: 16px 0 24px;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.6;
	padding: 5px 0;
	color: var(--text-light); /* default for dark sections */
}

/* On light backgrounds */
.feature-item.dark-item { color: var(--text-mid); }

.feature-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
	flex-shrink: 0;
	margin-top: 6px;
}

.feature-list-sm .feature-item { font-size: 13px; }

/* =============================================================
   AURI SECTION
============================================================= */
.auri-row { align-items: center; }

.auri-text { padding-right: 40px; }

.auri {
    margin-bottom: 0px;
    background-image: url(../img/auri-bg-block.jpg);
    height: auto;
    background-size: cover;
    background-attachment: scroll; /* fixed causes rendering bugs on iOS Safari */
    background-position: center center;
    color: #ffffff !important;
}

/* Parallax only on desktop where it's supported */
@supports not (-webkit-overflow-scrolling: touch) {
    @media (min-width: 992px) {
        .auri { background-attachment: fixed; }
    }
}

.white-block {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 40px;
 }

.auri-badge {
	display: inline-block;
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	padding: 5px 14px;
	background: var(--teal);
	color: var(--white);
	border-radius: 40px;
	margin-bottom: 14px;
}

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

.auri-img-box {
	width: 100%;
	height: 460px;
	border-radius: var(--radius-lg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: transparent;
}

/* =============================================================
   PRODUCT RANGE ROWS (Hearing Loop, ListenIR, etc.)
============================================================= */
.product-range-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.product-range-row-reverse { flex-direction: row-reverse; }

.product-range-img-col { padding: 0 16px; }

.product-range-img {
	width: 100%;
	height: auto;
	min-height: 320px;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	background-size: cover;
	background-position: center center;
	background-color: var(--section-alt);
	border: 1px solid var(--border-light);
}

.product-range-text { padding: 0 24px; }

.range-label-tag {
	display: inline-block;
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	padding: 4px 12px;
	background: var(--teal);
	color: var(--white);
	border-radius: 3px;
	margin-bottom: 12px;
}

/* =============================================================
   WHY AMPETRONIC CARDS (dark section)
============================================================= */
.why-cards-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 40px -12px 0;
}

.why-cards-row > [class*="col-"] {
	display: flex;
}

.why-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	width: 100%;
	height: calc(100% - 24px);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	margin: 0 12px 24px;
	transition: border-color var(--transition), transform var(--transition);
}

.why-card:hover {
	border-color: rgba(255,255,255,0.28);
	transform: translateY(-3px);
}

.why-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(0,153,238,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7dd4f8;
	margin-bottom: 20px;
}

.why-title {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 10px;
}

.why-card p { color: rgba(255,255,255,0.72); }

/* =============================================================
   WHY MIDWICH / CONTACT
============================================================= */
.midwich-sub {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-dark);
	margin: 4px 0 16px;
}

.midwich-benefits {
	margin: 4px 0 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.midwich-benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-mid);
	line-height: 1.5;
}

.benefit-dot {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal);
	flex-shrink: 0;
	margin-top: 5px;
}

.contact-cta-box {
	background: var(--teal-light);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(0,153,238,0.18);
	padding: 36px 36px 40px;
	height: 100%;
}

.contact-cta-title {
	font-family: 'Lota Grotesque', sans-serif;
	font-size: 32px;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--text-dark);
	margin-bottom: 16px;
	line-height: 1;
}

.contact-btn { margin-top: 8px; gap: 10px; }

/* =============================================================
   FOOTER
============================================================= */
footer {
	background-color: var(--navy);
	padding: 40px 20px;
	color: rgba(255,255,255,0.5);
	font-size: 11px;
	line-height: 1.6;
	border-top: 1px solid rgba(255,255,255,0.05);
}

footer ul  { margin: 0; padding: 0; }
footer ul li { vertical-align: middle; }
footer a       { color: rgba(255,255,255,0.6); font-weight: 500; }
footer a:hover { color: var(--teal); }

.icon-svg {
	vertical-align: middle;
	height: 20px;
	filter: brightness(0) invert(0.6);
	transition: filter var(--transition);
}

.icons-social { margin-right: 8px; }
a:hover .icon-svg { filter: brightness(0) invert(1); }



/* =============================================================
   IMAGE FIXES
============================================================= */
.resize {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.product-range-img {
	width: 100%;
	height: auto;
	min-height: 320px;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	background-size: cover;
	background-position: center top;
	background-color: var(--section-alt);
	border: 1px solid var(--border-light);
}


/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1200px) {
	.hero-title       { font-size: 64px; }
	.section-title-xl { font-size: 44px; }
}

@media (max-width: 991px) {
	.nav-inner {
		flex-direction: column;
		height: auto;
		padding: 0;
		align-items: stretch;
	}

	.navbar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0 20px;
		height: 70px;
	}

	.navbar-brand {
		height: 70px;
		padding: 0;
		display: flex;
		align-items: center;
	}

	#mainlogo {
		background-image: url('../img/logo.png');
		background-size: contain;
		background-repeat: no-repeat;
		background-position: left center;
		width: 160px;
		height: 40px;
	}

	.navbar-brand-desktop,
	.nav-divider { display: none !important; }

	.navbar-collapse {
		display: none;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		height: auto;
		background: rgba(12,17,32,0.99);
		border-top: 1px solid rgba(255,255,255,0.07);
		padding: 12px 0 20px;
		max-height: calc(100vh - 70px);
		overflow-y: auto;
	}

	.navbar-collapse.in {
		display: flex !important;
	}

	.navbar-nav {
		flex-direction: column !important;
		width: 100%;
		margin: 0 !important;
	}

	.navbar-default .navbar-nav > li { width: 100%; }

	.navbar-default .navbar-nav > li > a {
		display: block;
		padding: 16px 24px;
		margin: 0;
		border-radius: 0;
		font-size: 16px;
		border-bottom: 1px solid rgba(255,255,255,0.04);
	}

	.navbar-default .navbar-nav > li:last-child > a { border-bottom: none; }

	.navbar-default .navbar-nav > li > a.nav-cta {
		margin: 12px 20px 0;
		border-radius: var(--radius);
		text-align: center;
		border-bottom: none;
	}
}


/* =============================================================
   MOBILE SPACING FIXES
============================================================= */
@media (max-width: 768px) {
	.bumper {
		padding: 56px 0;
	}

	.product-range-row,
	.product-range-row-reverse {
		display: flex;
		flex-direction: column;
	}

	.product-range-img-col {
		order: 1;
		display: flex;
		justify-content: center;
		padding-top: 4px;
		padding-bottom: 6px;
	}

	.product-range-text {
		order: 2;
		padding-top: 0;
	}

  .hero-section {
    min-height: auto;
    height: auto;
    padding: 120px 20px 60px;

    background-size: cover;
    background-position: center 20%; /* 👈 key fix */
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.05;
    word-break: break-word;
  }

  .hero-title .accent {
    display: block;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
  }

  .hero-logo {
    max-width: 180px;
    margin-bottom: 20px;
  }

	.container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.col-md-5,
	.col-md-6,
	.col-md-7 {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.product-range-text > *,
	.auri-text > * {
		padding-left: 4px;
		padding-right: 4px;
	}

	.auri-text {
		padding-right: 0;
	}

	.white-block {
		padding: 20px 20px;
	}

	.product-range-img {
		min-height: 240px;
		height: 240px;
		margin-bottom: 20px;
		background-size: contain;
		background-position: center center;
		background-repeat: no-repeat;
		background-color: var(--white);
	}

	.section-title-xl {
		margin-bottom: 16px;
	}

	.body-text {
		margin-bottom: 14px;
	}

	.feature-list {
		margin-bottom: 20px;
	}
}


/* =============================================================
   SMALL MOBILE
============================================================= */
@media (max-width: 480px) {
	.bumper {
		padding: 44px 0;
	}

	.container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.white-block {
		padding: 16px 16px;
	}

	.product-range-img {
		min-height: 200px;
		height: 200px;
		background-size: contain;
		background-position: center center;
		background-repeat: no-repeat;
	}

	.product-btn,
	.contact-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
	}
}


/* =============================================================
   OVERFLOW FIX
============================================================= */
.row {
	margin-left: 0;
	margin-right: 0;
}
