/* ==========================================================================
   American Pro Floors — Theme Stylesheet
   ========================================================================== */

:root {
	--color-ink:        #14181f;
	--color-ink-soft:    #4a5164;
	--color-bg:          #ffffff;
	--color-bg-soft:     #f6f7f9;
	--color-bg-warm:     #f4f1ec;
	--color-navy:        #16224a;
	--color-navy-deep:   #0d1530;
	--color-blue:        #2455e8;
	--color-red:         #e8342c;
	--color-line:        #e7e8ec;
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 2px 10px rgba(20,24,31,0.06);
	--shadow-md: 0 12px 32px rgba(13,21,48,0.12);
	--shadow-lg: 0 24px 60px rgba(13,21,48,0.20);
	--container: 1200px;
	--font-head: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 782px) {
	.section { padding: 64px 0; }
	.section-tight { padding: 44px 0; }
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-red);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 3px;
	background: var(--color-red);
	border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--color-ink-soft); font-size: 17px; margin: 0; }

/* Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	padding: 15px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all .2s ease;
	white-space: nowrap;
}
.btn-primary { background: var(--color-red); color: #fff; box-shadow: 0 10px 24px rgba(232,52,44,0.28); }
.btn-primary:hover { background: #c8261f; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(232,52,44,0.34); }
.btn-dark { background: var(--color-navy); color: #fff; }
.btn-dark:hover { background: var(--color-navy-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--color-line); color: var(--color-ink); }
.btn-outline-dark:hover { border-color: var(--color-navy); background: var(--color-bg-soft); }
.btn-block { width: 100%; }

/* Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--color-line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
@media (max-width: 782px) {
	.brand img { height: 36px; }
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	color: var(--color-ink);
	position: relative;
	padding: 6px 0;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--color-red);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--color-navy); }
.header-phone svg { flex-shrink: 0; color: var(--color-red); }
.header-cta .btn-primary { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
	.main-nav { display: none; }
	.header-phone span.phone-label { display: none; }
	.nav-toggle { display: block; }
	.header-inner.nav-open .main-nav {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		padding: 20px 24px 26px;
		border-bottom: 1px solid var(--color-line);
		box-shadow: var(--shadow-md);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.header-inner { padding: 10px 0; }
	.header-cta { gap: 10px; }
	.header-cta .btn-primary { padding: 10px 14px; font-size: 12.5px; }
	.header-phone svg { width: 16px; height: 16px; }
}

/* Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(13,21,48,0.92) 0%, rgba(13,21,48,0.82) 38%, rgba(13,21,48,0.45) 68%, rgba(13,21,48,0.25) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 120px 24px 90px; }
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.25);
	padding: 8px 16px 8px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d38a; }
.hero h1 { font-size: 58px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ff8a72; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.86); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-langs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,0.72); flex-wrap: wrap; }
.hero-langs .flags { display: flex; gap: 6px; font-family: var(--font-head); font-weight: 700; }
.hero-langs .flags span {
	background: rgba(255,255,255,0.14);
	border: 1px solid rgba(255,255,255,0.2);
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
}

.hero-stats {
	position: relative;
	z-index: 1;
	margin-top: -1px;
	border-top: 1px solid rgba(255,255,255,0.16);
	background: rgba(13,21,48,0.55);
	backdrop-filter: blur(6px);
}
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 26px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.14); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: #fff; }
.hero-stat .label { font-size: 12.5px; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

@media (max-width: 782px) {
	.hero { min-height: auto; }
	.hero h1 { font-size: 34px; }
	.hero-content { padding: 90px 24px 60px; }
	.hero-stats { display: none; }
	.hero-stats .container { grid-template-columns: repeat(2, 1fr); }
	.hero-stat { border-bottom: 1px solid rgba(255,255,255,0.14); }
}

/* Trust strip
   ========================================================================== */
.trust-strip { background: var(--color-bg-soft); padding: 30px 0; border-bottom: 1px solid var(--color-line); }
.trust-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--color-ink-soft); }
.trust-item svg { color: var(--color-red); flex-shrink: 0; }

/* Services
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--color-navy);
	color: #fff;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: var(--shadow-sm);
	transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover img { transform: scale(1.06); }
.service-card::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(13,21,48,0) 30%, rgba(13,21,48,0.94) 100%);
	z-index: 1;
}
.service-card-body { position: relative; z-index: 2; padding: 28px 26px; }
.service-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: #ff8a72; letter-spacing: 0.08em; margin-bottom: 8px; }
.service-card h3 { font-size: 24px; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,0.78); font-size: 14.5px; margin-bottom: 16px; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: #fff; }
.service-link svg { transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

@media (max-width: 980px) {
	.services-grid { grid-template-columns: 1fr; }
	.service-card { min-height: 320px; }
}

/* Why choose us
   ========================================================================== */
.why-section { background: var(--color-navy); color: #fff; position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-section .section-head p { color: rgba(255,255,255,0.72); }
.why-section .eyebrow { color: #ff8a72; }
.why-list { display: grid; gap: 22px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
	flex-shrink: 0;
	width: 46px; height: 46px;
	border-radius: 12px;
	background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
	color: #ff8a72;
}
.why-item h4 { font-size: 16.5px; margin-bottom: 4px; color: #fff; }
.why-item p { color: rgba(255,255,255,0.68); font-size: 14.5px; margin: 0; }
.why-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-media img { width: 100%; height: 560px; object-fit: cover; }
.why-badge {
	position: absolute; left: 24px; bottom: 24px;
	background: #fff; color: var(--color-navy);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	display: flex; align-items: center; gap: 14px;
	box-shadow: var(--shadow-md);
}
.why-badge .num { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--color-red); }
.why-badge .txt { font-size: 12.5px; font-weight: 600; color: var(--color-ink-soft); line-height: 1.3; max-width: 120px; }

@media (max-width: 980px) {
	.why-grid { grid-template-columns: 1fr; }
	.why-media img { height: 340px; }
	.why-media { order: -1; }
}

/* Process
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { text-align: left; padding: 28px 24px; border-radius: var(--radius-md); background: var(--color-bg-soft); border: 1px solid var(--color-line); position: relative; }
.process-step .step-num {
	font-family: var(--font-head); font-weight: 800; font-size: 42px;
	color: #cfd3db;
	margin-bottom: 12px;
}
.process-step h4 { font-size: 16.5px; margin-bottom: 6px; }
.process-step p { font-size: 14px; color: var(--color-ink-soft); margin: 0; }
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* Gallery
   ========================================================================== */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.gallery-tab {
	font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
	padding: 10px 20px; border-radius: 999px; border: 1px solid var(--color-line);
	cursor: pointer; background: #fff; color: var(--color-ink-soft);
	transition: all .2s ease;
}
.gallery-tab.active, .gallery-tab:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	grid-auto-flow: dense;
	gap: 16px;
}
.gallery-item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(13,21,48,0) 55%, rgba(13,21,48,0.7) 100%);
	opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .gi-label {
	position: absolute; left: 14px; bottom: 14px; z-index: 2;
	color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px;
	opacity: 0; transform: translateY(6px); transition: all .3s ease;
}
.gallery-item:hover .gi-label { opacity: 1; transform: translateY(0); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

@media (max-width: 980px) {
	.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
	.gallery-item.big, .gallery-item.wide { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
	.gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.gallery-item.big, .gallery-item.wide { grid-column: span 1; grid-row: span 1; }
}

/* Before / After */
.ba-wrap {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.ba-panel { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ba-panel img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
	position: absolute; top: 16px; left: 16px;
	font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.06em;
	padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
}
.ba-tag.before { background: rgba(20,24,31,0.8); color: #fff; }
.ba-tag.after { background: var(--color-red); color: #fff; }
@media (max-width: 700px) { .ba-wrap { grid-template-columns: 1fr; } }

/* Quote / CTA band
   ========================================================================== */
.cta-band {
	background: linear-gradient(120deg, var(--color-red), #c8261f);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 56px;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	flex-wrap: wrap;
}
.cta-band h3 { font-size: 28px; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-band .btn-dark { background: #14181f; }
.cta-band .btn-dark:hover { background: #000; }
@media (max-width: 700px) { .cta-band { padding: 36px 28px; text-align: center; justify-content: center; } }

/* Contact
   ========================================================================== */
.contact-section { background: var(--color-bg-warm); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card {
	background: var(--color-navy); color: #fff;
	border-radius: var(--radius-lg);
	padding: 40px;
}
.contact-info-card h3 { font-size: 22px; margin-bottom: 6px; }
.contact-info-card > p { color: rgba(255,255,255,0.7); margin-bottom: 30px; font-size: 14.5px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-line .ci-icon {
	width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center; color: #ff8a72; flex-shrink: 0;
}
.contact-line strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-line span, .contact-line a { color: rgba(255,255,255,0.75); font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a {
	width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.social-row a:hover { background: var(--color-red); }

.contact-form-card { background: color-mix(in srgb, var(--color-navy) 12%, white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; margin-bottom: 7px; color: var(--color-ink); }
.form-group input, .form-group select, .form-group textarea {
	width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
	border: 1.5px solid var(--color-line); font-family: var(--font-body); font-size: 14.5px;
	background: var(--color-bg-soft); transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
	outline: none; border-color: var(--color-navy); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--color-ink-soft); margin-top: 12px; text-align: center; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.form-alert.success { background: #e6f7ee; color: #147a4f; }
.form-alert.error { background: #fdecec; color: #b91c1c; }

@media (max-width: 980px) {
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.form-row { grid-template-columns: 1fr; }
}

/* Map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-top: 60px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer
   ========================================================================== */
.site-footer { background: var(--color-navy-deep); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 34px; width: auto; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; font-family: var(--font-head); }
.footer-col ul li { margin-bottom: 11px; font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom .flags { display: flex; gap: 6px; }
.footer-bottom .flags span { background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 999px; font-size: 11.5px; }

@media (max-width: 980px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; text-align: center; }
}

/* Lightbox
   ========================================================================== */
.apf-lightbox {
	position: fixed; inset: 0; z-index: 2000;
	background: rgba(13,21,48,0.92);
	display: none; align-items: center; justify-content: center;
	padding: 40px;
}
.apf-lightbox.open { display: flex; }
.apf-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.apf-lightbox-close {
	position: absolute; top: 24px; right: 30px;
	color: #fff; font-size: 32px; cursor: pointer; line-height: 1; background: none; border: none;
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
