/* ==========================================================
   GOELX Automotive theme styles
   Colors and fonts match goelxautomotive.com
   ========================================================== */

:root {
	--navy: #0b132b;
	--slate: #1c3144;
	--red: #d00000;
	--ink: #1d1e20;
	--grey: #ebecee;
	--field: #f4f4f4;
	--line: #dadce0;
	--muted: #6b6f76;
	--white: #ffffff;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(11, 19, 43, 0.08);
	--container: 1224px;
	--head: "Archivo", "Inter", system-ui, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.rounded { border-radius: var(--radius); }

.display { font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -0.01em; }
.display-xl { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.01em; }
.section-title { font-size: clamp(30px, 3.4vw, 48px); color: var(--ink); }
.page-title { font-size: clamp(32px, 3.6vw, 48px); color: var(--ink); margin-bottom: .2em; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 500; color: #e87b7b; margin-bottom: 20px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.kicker-light { color: #fff; }

.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 28px; border-radius: 8px; border: 1px solid transparent;
	font-family: var(--body); font-size: 14px; font-weight: 500; line-height: 1;
	cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #a80000; }
.btn-navy { background: var(--navy); color: #fff; min-width: 200px; }
.btn-navy:hover { background: #1c2848; }
.btn-outline { border-color: #fff; color: #fff; border-radius: 999px; min-width: 200px; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 100; background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.admin-bar .site-header { top: 32px; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand-logo { height: 46px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a { font-size: 14px; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { border-bottom-color: var(--ink); }
.primary-nav, .primary-nav > ul { align-self: stretch; }
.primary-nav > ul > li { display: flex; align-items: center; }
.primary-nav > ul > .menu-item-has-children > a::after { content: "▾"; margin-left: 8px; font-size: 11px; }

/* Desktop: menu links centered in the header, social icons on the right */
@media (min-width: 861px) {
	.primary-nav > ul { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
}

/* Dropdowns: each level opens on hover, one at a time, to the right */
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -12px; z-index: 50;
	background: #fff; min-width: 150px; border: 1px solid var(--line); border-radius: 6px;
	box-shadow: 0 10px 28px rgba(11, 19, 43, .12);
	display: none;
}
.primary-nav .sub-menu .sub-menu { top: -9px; left: 100%; }
.primary-nav .sub-menu li.flip > .sub-menu { left: auto; right: 100%; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu li { position: relative; }
.primary-nav .sub-menu a {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 9px 14px; border: 0; font-size: 14px; color: var(--ink); white-space: nowrap;
}
.primary-nav .sub-menu .menu-item-has-children > a::after { content: "›"; font-size: 16px; line-height: 1; color: var(--muted); }
.primary-nav .sub-menu li:hover > a { background: var(--grey); }

.social-links { display: flex; gap: 14px; align-items: center; }
.social-links a { display: inline-flex; color: inherit; }
.social-links a:hover { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Sections */
.section { padding: 96px 0; }
.section.pt-0 { padding-top: 0; }
.navy { background: var(--navy); color: #fff; }
.navy h1, .navy h2, .navy h3 { color: #fff; }
.grey { background: var(--grey); }
.slate { background: var(--slate); color: #fff; }
.slate h2 { color: #fff; }

/* Home hero */
.home-hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%); }
.hero-content { position: relative; padding-top: 80px; padding-bottom: 64px; }
.hero-content h1 { color: #fff; font-size: clamp(38px, 5vw, 76px); margin-bottom: 28px; }
.hero-content p { max-width: 760px; margin-bottom: 36px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.stats strong { display: block; font-family: var(--head); font-size: clamp(36px, 3.6vw, 52px); font-weight: 700; line-height: 1; }
.stats span { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.stats-left { text-align: left; margin-top: 48px; }

/* Brand cards (home) */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.brand-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease; }
.brand-card:hover { transform: translateY(-4px); }
.brand-card img { height: 44px; width: auto; margin: 0 auto; object-fit: contain; }
.brand-card .brand-card-goelx { height: 36px; margin: 4px auto; }
.brand-tag { display: block; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin: 14px 0 14px; }
.brand-card p { font-size: 14px; color: var(--navy); margin: 0; }

/* Product cards (home) */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; margin-top: 48px; }
.product-img { position: relative; border-radius: var(--radius); overflow: hidden; background: #f3f3f3; aspect-ratio: 3 / 2; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card h4 { font-size: 20px; font-weight: 600; color: var(--ink); text-align: center; margin: 18px 0 8px; }
.product-card p { font-size: 14px; text-align: center; }

/* What sets us apart */
.apart { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; margin-top: 48px; }
.apart-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.apart-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apart-badge { position: absolute; left: 20px; bottom: 20px; background: var(--red); color: #fff; padding: 14px 18px; border-radius: 10px; line-height: 1.1; }
.apart-badge strong { display: block; font-family: var(--head); font-size: 28px; }
.apart-badge span { font-size: 12px; letter-spacing: .06em; }
.apart-body { display: flex; flex-direction: column; justify-content: center; }
.apart-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; max-width: 460px; }
.apart-list { list-style: none; margin: 0; padding: 0; counter-reset: apart; }
.apart-list li {
	counter-increment: apart; display: flex; align-items: center; gap: 20px;
	padding: 18px 4px; border-bottom: 1px solid var(--line);
	font-family: var(--head); font-size: 19px; font-weight: 600; color: var(--navy);
	transition: padding-left .2s ease, color .2s ease;
}
.apart-list li:first-child { border-top: 1px solid var(--line); }
.apart-list li::before { content: counter(apart, decimal-leading-zero); font-size: 13px; font-weight: 700; color: var(--red); min-width: 24px; }
.apart-list li:hover { padding-left: 12px; color: var(--red); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 32px; }
.split-about { grid-template-columns: 5fr 7fr; align-items: center; }
.split-even { align-items: center; }
.split-rans { grid-template-columns: 1fr 1fr; }
.prose p { font-size: 15px; }
.journey-img { margin: 40px auto 0; max-width: 860px; width: 100%; }
.vmv-img { margin: 40px auto 0; max-width: 760px; width: 100%; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; align-items: center; justify-content: center; background: #fde3e3; color: var(--red); margin-bottom: 18px; }
.feature h3 { font-size: 32px; color: var(--ink); }
.feature p { font-size: 15px; margin: 0; }

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(28px, 3vw, 40px); }
.cta-row > div { max-width: 640px; }
.cta-row .btn { min-width: 200px; }

/* Products page */
.brand-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; text-align: center; }
.showcase-logo { height: 52px; width: auto; margin: 0 auto 24px; }
.showcase-card { border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; }
.showcase-img { background: #fff; aspect-ratio: 16 / 10; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-body { padding: 32px 24px 40px; }
.showcase-body h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.showcase-body p { font-size: 14px; margin-bottom: 28px; }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
.review { margin: 0; background: var(--grey); padding: 32px 36px; }
.stars { font-size: 20px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { font-size: 14px; color: var(--muted); }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* Brand pages */
.page-brand-logo { height: 68px; width: auto; margin: 0 auto 32px; }
.range-title { font-size: clamp(30px, 3.4vw, 44px); text-align: center; color: var(--ink); margin-top: 48px; }
.range-list { padding-left: 22px; }
.range-list li { margin: 6px 0; font-size: 15px; }
.range-list ul { list-style: circle; padding-left: 22px; }

/* Wiper blades listing */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.shop-img { aspect-ratio: 1; background: #fff; }
.shop-img img { width: 100%; height: 100%; object-fit: contain; }
.shop-item h3 { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink); margin: 16px 0 4px; }
.price { font-size: 14px; }

/* Contact */
.contact-hero { padding: 96px 0 120px; }
.contact-hero h1 { max-width: 900px; margin-bottom: 120px; }
.contact-lead { font-size: 14px; max-width: 900px; margin-bottom: 36px; }

.inquiry-form { display: grid; gap: 18px; }
.inquiry-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.inquiry-form input, .inquiry-form textarea {
	font: inherit; font-size: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--field); color: var(--ink);
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.inquiry-form .btn { justify-self: start; }
.notice { padding: 12px 16px; border-radius: 6px; margin: 0; font-size: 14px; font-weight: 500; }
.notice-ok { background: #dcfce7; color: #166534; }
.notice-err { background: #fee2e2; color: #991b1b; }

.address-big { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--navy); }
.contact-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #ddd; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Generic pages */
.page-hero { padding: 72px 0 40px; background: var(--grey); }
.entry-content > * + * { margin-top: 1em; }
.big-404 { font-size: 8rem; color: var(--red); margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.red-rule { display: block; width: 32px; height: 2px; background: var(--red); margin-bottom: 24px; }
.footer-brand h3 { color: #fff; font-size: clamp(28px, 3vw, 44px); margin-bottom: 12px; }
.footer-label { font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: #ff4d4d; margin: 16px 0 10px; }
.footer-links { padding-top: 40px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; font-size: 13px; }
.footer-links a:hover, .footer-line:hover { color: #ff8080; }
.footer-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.site-footer address { font-style: normal; line-height: 1.9; margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 14px; padding-bottom: 40px; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-est { color: var(--red); letter-spacing: .25em; }

/* Responsive */
@media (max-width: 1024px) {
	.primary-nav { gap: 24px; }
	.primary-nav > ul { gap: 22px; }
	.brand-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
	.shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { height: 72px; }
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: 72px 0 auto 0; background: #fff; display: none;
		flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 16px;
		box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav > ul > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--grey); }
	.primary-nav > ul > li { display: block; }
	.primary-nav .sub-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 0 14px; margin: 0 0 6px 4px; min-width: 0; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 8px 0; white-space: normal; }
	.primary-nav .sub-menu .menu-item-has-children > a::after { content: "+"; }
	.primary-nav .sub-menu li.is-open > a::after { content: "–"; }

	.section { padding: 64px 0; }
	.home-hero { min-height: 560px; }
	.stats { grid-template-columns: 1fr; gap: 28px; }
	.apart-media { min-height: 280px; }
	.brand-grid, .product-grid, .feature-grid, .apart, .split, .split-about, .split-rans,
	.brand-showcase, .reviews, .footer-grid { grid-template-columns: 1fr; }
	.apart, .split { gap: 32px; }
	.footer-links { padding-top: 0; }
	.contact-hero h1 { margin-bottom: 48px; }
	.shop-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.hide-sm { display: none; }
	.brand-logo { height: 36px; }
}
