:root {
	--bg: #f4f6fb;
	--surface: #ffffff;
	--card: #ffffff;
	--text: #0f172a;
	--muted: #475569;
	--accent: #1f9d55;
	--accent-dark: #15803d;
	--border: #e2e8f0;
}

.site-header { background: rgba(255,255,255,0.9); }
.nav a:hover { background: #e9eef7; }
.hero-bg { filter: brightness(0.85) saturate(110%); }
.hero-overlay { background: linear-gradient(0deg, rgba(255,255,255,0.20), rgba(255,255,255,0.0)); }
.hero h1 { color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.subtitle { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero .subtitle { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: linear-gradient(180deg, var(--bg), var(--surface));
	line-height: 1.6;
}

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.site-logo { height: 54px; width: auto; display: block; }
.logo-text { font-weight: 800; font-size: 26px; color: var(--accent); letter-spacing: 0.3px; }
.nav { margin-left: auto; display: flex; gap: 14px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: #16213322; }
.controls { display: flex; gap: 8px; margin-left: 10px; }
.controls .ghost { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.controls select { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }

.hero { position: relative; height: 64vh; min-height: 420px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.6) saturate(115%); transition: background-image 800ms ease-in-out; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15)); display: flex; align-items: center; }
.hero-content { text-align: left; }
.hero h1 { font-size: 40px; margin: 0 0 8px; animation: fadeUp .8s ease both; }
.subtitle { color: var(--muted); margin: 0 0 16px; animation: fadeUp 1s ease both; }
.cta-primary { display: inline-block; background: var(--accent); color: white; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 26px 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.card h2 { margin-top: 0; font-size: 20px; }
.hours { margin: 0; padding-left: 18px; }
.cta { color: var(--accent); font-weight: 700; text-decoration: none; }
.cta:hover { text-decoration: underline; }
.map-wrap { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 300px; border: 0; display: block; filter: saturate(110%); }

.brands { margin: 38px 0 56px; }
.brands h2 { margin-bottom: 12px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; align-items: stretch; }
.brand-grid--large .brand { height: 120px; }
.brand-grid--xl .brand { height: 160px; }
.brand-grid--xl .brand img { max-height: 110px; }
.brand { background: var(--card); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 20px; height: 100px; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; text-decoration: none; color: var(--text); }
.brand:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(0,0,0,0.22); border-color: #2a3a52; }
.brand img { max-width: 100%; max-height: 72px; object-fit: contain; display: block; filter: saturate(115%); }

.gallery { margin: 20px 0 64px; }
.gallery h2 { margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: #0b0f14; cursor: zoom-in; transition: transform .15s ease; }
.gallery-grid img:hover { transform: scale(1.01); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: #000; color: #fff; border: 0; font-size: 28px; line-height: 1; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; }

.note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.site-footer { border-top: 1px solid var(--border); background: rgba(15,21,32,0.9); padding: 16px 0; color: var(--muted); }
.site-footer p { margin: 0; }
.card h2.small { font-size: 16px; letter-spacing: 0.2px; color: var(--muted); }
.site-footer .example-mail { margin-top: 8px; }
.site-footer .example-mail a { color: var(--accent); text-decoration: none; font-weight: 700; }
.site-footer .example-mail a:hover { text-decoration: underline; }

/* Brand carousel */
.brand-carousel { position: relative; display: block; }
.brand-track { overflow-x: auto; scroll-behavior: smooth; display: flex; gap: 14px; padding: 6px 60px; scrollbar-width: none; }
.brand-track::-webkit-scrollbar { display: none; }
/* Brand carousel adjustments */
.brand-track .brand { min-width: 280px; height: 160px; }
.brand img { max-height: 120px; }
.carousel-btn { 
	position: absolute; 
	top: 50%; 
	transform: translateY(-50%); 
	background: white; 
	border: 3px solid var(--accent); 
	border-radius: 50%; 
	color: var(--accent); 
	width: 60px; 
	height: 60px; 
	font-size: 28px; 
	font-weight: bold;
	line-height: 1; 
	z-index: 5; 
	cursor: pointer; 
	pointer-events: auto; 
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.brand-carousel .prev { left: 0; }
.brand-carousel .next { right: 0; }
.carousel-btn:hover { 
	background: var(--accent); 
	color: white; 
	transform: translateY(-50%) scale(1.1); 
	box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* CTA consistency */
.cta-primary { background: var(--accent); color: #fff; border: 0; }
.cta-primary:focus { outline: 2px solid #fff3; outline-offset: 2px; }

/* Language select visibility */
.controls select { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.controls select option { color: #111; background: #fff; }
:root.light .controls select option { color: #111; background: #fff; }

/* Services */
.services { padding: 34px 0 10px; }
.services h2 { text-align: left; margin: 0 0 12px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.service { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.svc-icon { font-size: 28px; margin-bottom: 6px; }
.service h3 { margin: 6px 0 6px; font-size: 18px; }
.service p { margin: 0; color: var(--muted); }

/* Contact form */
.contact { padding: 24px 0 40px; }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form .actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }

/* Photo carousel */
.photo-carousel { position: relative; display: block; }
.photo-track { overflow-x: auto; scroll-behavior: smooth; display: flex; gap: 14px; padding: 6px 60px; scrollbar-width: none; }
.photo-track::-webkit-scrollbar { display: none; }
.photo-track img { width: 420px; height: 260px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); cursor: zoom-in; }
.photo-carousel .prev { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 5; }
.photo-carousel .next { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; }
@media (max-width: 700px){ .photo-track img { width: 80vw; height: 46vw; } }

/* Scroll to top button */
.scroll-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	background: var(--accent-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer { 
	background: var(--surface); 
	color: var(--text); 
	padding: 20px 0; 
	border-top: 1px solid var(--border); 
	margin-top: 40px; 
}
.site-footer p { 
	margin: 0; 
	text-align: center; 
	color: var(--muted); 
}

/* Admin */
.admin-login { margin-top: 6px; font-size: 12px; }
.admin-login a { color: var(--muted); text-decoration: none; }
.admin-login a:hover { text-decoration: underline; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 60; }
.modal.open { display: flex; }
.modal-body { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 16px; width: 92vw; max-width: 520px; display: grid; gap: 10px; }
.modal-body label { display: grid; gap: 6px; }
.modal-body input { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

@media (min-width: 900px) {
	.site-logo { height: 64px; }
	.hero h1 { font-size: 52px; }
	.subtitle { font-size: 18px; }
	.map-wrap iframe { height: 360px; }
	.gallery-grid img { height: 260px; }
}
