/*
Theme Name:   Garage Child
Theme URI:    https://example.com/
Description:  GeneratePress child theme for a car body shop (ισιώματα, βαφές, polish, ceramic, PPF). One-page front page built from the "Garage" design.
Author:       Victor
Template:     generatepress
Version:      1.0.0
Text Domain:  garage-child
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
	--gm-accent: #92943E;
	--gm-on-accent: #141414;
	--gm-olive: #B5B762;
	--gm-olive-dark: #5F6120;
	--gm-olive-soft: #ECEDD6;
	--gm-ink: #141414;
	--gm-bg: #F3F2F0;
	--gm-dark: #121212;
	--gm-card-dark: #161616;
	--gm-text: #4A4A4A;
	--gm-muted: #8C8C8C;
	--gm-radius: 12px;
	--gm-gutter: clamp(16px, 4vw, 48px);
}

html { scroll-behavior: smooth; }

/* =========================================================
   GENERATEPRESS OVERRIDES (front page only)
   ========================================================= */
body.gm-front { background: var(--gm-bg); }
.gm-front .site.grid-container,
.gm-front .site { max-width: none; padding: 0; margin: 0; background: transparent; }
.gm-front .site-content { display: block; padding: 0; }

/* =========================================================
   BASE (scoped to .gm so other pages keep GP styling)
   ========================================================= */
.gm, .gm *, .gm *::before, .gm *::after { box-sizing: border-box; }
.gm {
	font-family: 'Commissioner', system-ui, -apple-system, sans-serif;
	color: var(--gm-ink);
	background: var(--gm-bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.gm h1, .gm h2, .gm h3 { margin: 0; font-family: inherit; color: inherit; }
.gm p { margin: 0; }
.gm a { color: inherit; }
.gm a:hover, .gm a:focus { color: inherit; }
.gm img { display: block; max-width: 100%; }
.gm button { font: inherit; line-height: 1; }
.gm section[id], .gm #top { scroll-margin-top: 24px; }
.gm :focus-visible { outline: 2px solid var(--gm-accent); outline-offset: 3px; }

.gm-wrap { max-width: 1280px; margin: 0 auto; }
.gm-dot { color: var(--gm-accent); }
.gm-dot--olive { color: var(--gm-olive); }

.gm-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gm-olive-dark); }
.gm-dark .gm-eyebrow, .gm-hero .gm-eyebrow { color: var(--gm-olive); }

.gm-h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.gm-muted { color: var(--gm-muted); }

.gm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gm-head__title { display: flex; flex-direction: column; gap: 10px; }
.gm-head__text { max-width: 420px; font-size: 15px; line-height: 1.6; color: var(--gm-text); }

/* Buttons */
.gm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	text-decoration: none; font-weight: 700; font-size: 15px;
	padding: 15px 24px; border-radius: 6px; border: 1px solid transparent;
	transition: opacity .2s ease, transform .2s ease;
}
.gm-btn:hover { opacity: .88; transform: translateY(-1px); }
.gm-btn--accent, .gm-btn--accent:hover { background: var(--gm-accent); color: var(--gm-on-accent); }
.gm-btn--dark, .gm-btn--dark:hover { background: var(--gm-ink); color: #FFFFFF; }
.gm-btn--light, .gm-btn--light:hover { background: #FFFFFF; color: var(--gm-ink); }
.gm-btn--ghost, .gm-btn--ghost:hover { background: transparent; color: #FFFFFF; border-color: #4A4A4A; font-weight: 600; }

/* Photo / placeholder boxes */
.gm-photo { position: relative; overflow: hidden; border-radius: var(--gm-radius); }
.gm-photo img { width: 100%; height: 100%; object-fit: cover; }
.gm-ph {
	display: flex; align-items: center; justify-content: center; text-align: center;
	background: #DEDCD8; border: 1px dashed #B5B2AC; color: #6B6862;
	font-size: 13px; letter-spacing: .08em; padding: 16px;
}
.gm-ph--dark { background: #2A2A2A; border-color: #4A4A4A; color: #9A9A9A; }
.gm-ph--darker { background: #1E1E1E; border-color: #3A3A3A; color: #8A8A8A; }

/* =========================================================
   HERO + NAV
   ========================================================= */
.gm-hero { background: var(--gm-dark); padding: 24px var(--gm-gutter) 48px; }
.gm-hero__inner { display: flex; flex-direction: column; gap: 40px; }

.gm-nav {
	background: #FFFFFF; border-radius: 10px; padding: 14px 20px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.gm-logo { text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .04em; color: var(--gm-ink); }
.gm-nav__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.gm-nav__links a { text-decoration: none; color: #555555; transition: color .2s; }
.gm-nav__links a:first-child { color: var(--gm-ink); }
.gm-nav__links a:hover { color: var(--gm-accent); }
.gm-nav__cta { display: flex; gap: 8px; align-items: center; }
.gm-nav__book {
	display: flex; align-items: center; gap: 8px; text-decoration: none;
	background: var(--gm-ink); color: #FFFFFF; font-size: 13px; font-weight: 700;
	letter-spacing: .06em; padding: 13px 18px; border-radius: 6px;
}
.gm-nav__book:hover { color: #FFFFFF; opacity: .9; }
.gm-nav__call {
	background: var(--gm-accent); color: var(--gm-on-accent);
	width: 44px; height: 44px; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
}
.gm-nav__call:hover { color: var(--gm-on-accent); opacity: .9; }
.gm-nav__toggle {
	display: none; width: 44px; height: 44px; border-radius: 6px;
	border: 1px solid #DDDDDD; background: #FFFFFF; color: var(--gm-ink);
	align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.gm-nav__toggle:hover, .gm-nav__toggle:focus { background: #F3F2F0; color: var(--gm-ink); }

.gm-hero__content {
	display: flex; flex-direction: column; gap: 20px; color: #FFFFFF;
	max-width: 760px; padding: 24px 0 16px;
}
.gm-hero__title { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.gm-hero__text { max-width: 460px; font-size: 17px; line-height: 1.6; color: #C9C9C9; }
.gm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* =========================================================
   INTRO + BENTO
   ========================================================= */
.gm-intro { padding: 88px var(--gm-gutter) 48px; }
.gm-intro__inner { display: flex; flex-direction: column; gap: 48px; }
.gm-intro__head { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.gm-intro__head .gm-h2 { line-height: 1.12; }
.gm-intro__head p { font-size: 16px; line-height: 1.65; color: var(--gm-text); }

.gm-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gm-bento__col { display: flex; flex-direction: column; gap: 16px; }
.gm-bento__ba { height: 220px; }
.gm-bento__stat {
	background: var(--gm-accent); color: var(--gm-on-accent); border-radius: var(--gm-radius);
	padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.gm-bento__num { font-size: 52px; font-weight: 800; line-height: 1; }
.gm-bento__label { font-size: 15px; margin-top: 8px; }
.gm-bento__mail { font-size: 18px; font-weight: 700; color: var(--gm-on-accent); word-break: break-word; }
.gm-bento__mail:hover { color: var(--gm-on-accent); opacity: .8; }

.gm-bento__brand {
	background: var(--gm-card-dark); color: #FFFFFF; border-radius: var(--gm-radius); padding: 32px;
	min-height: 436px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; gap: 24px;
}
.gm-bento__brand-name { font-weight: 800; letter-spacing: .04em; font-size: 18px; }
.gm-bento__brand-tag { font-size: 22px; font-weight: 600; margin-top: 10px; }
.gm-bento__est { display: flex; align-items: center; gap: 20px; font-weight: 800; font-size: 18px; }
.gm-bento__brand p { font-size: 14px; line-height: 1.6; color: #BDBDBD; max-width: 300px; }

.gm-bento__lux { min-height: 436px; }
.gm-bento__lux::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%);
	pointer-events: none;
}
.gm-bento__lux img { position: absolute; inset: 0; }
.gm-bento__lux-text {
	position: absolute; left: 28px; bottom: 28px; right: 28px; z-index: 1;
	color: #FFFFFF; font-size: 26px; font-weight: 700; line-height: 1.15; text-align: left;
}

/* =========================================================
   SERVICES
   ========================================================= */
.gm-services { padding: 56px var(--gm-gutter) 88px; }
.gm-services__inner, .gm-why__inner, .gm-work__inner { display: flex; flex-direction: column; gap: 40px; }
.gm-grid-280 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gm-grid-240 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.gm-service {
	background: #FFFFFF; border-radius: var(--gm-radius); padding: 28px;
	display: flex; flex-direction: column; gap: 14px; min-height: 230px;
	transition: transform .2s ease, box-shadow .2s ease;
}
.gm-service:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.gm-service__top { display: flex; justify-content: space-between; align-items: center; }
.gm-service__num {
	width: 48px; height: 48px; border-radius: 10px; background: var(--gm-olive-soft); color: var(--gm-olive-dark);
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.gm-service h3 { font-size: 22px; font-weight: 700; }
.gm-service p { font-size: 15px; line-height: 1.6; color: #555555; }

/* =========================================================
   WHY US
   ========================================================= */
.gm-why { padding: 0 var(--gm-gutter) 88px; }
.gm-why__card {
	background: var(--gm-card-dark); color: #FFFFFF; border-radius: var(--gm-radius); padding: 28px;
	min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.gm-why__big { font-size: 44px; font-weight: 800; line-height: 1; color: var(--gm-olive); }
.gm-why__body { display: flex; flex-direction: column; gap: 10px; }
.gm-why__body h3 { font-size: 20px; font-weight: 700; }
.gm-why__body p { font-size: 14px; line-height: 1.6; color: #BDBDBD; }

/* =========================================================
   WORK / TRUST (dark)
   ========================================================= */
.gm-work { background: var(--gm-dark); color: #FFFFFF; padding: 88px var(--gm-gutter); }
.gm-arrows { display: flex; gap: 8px; }
.gm-arrow {
	width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
.gm-arrow--prev, .gm-arrow--prev:hover, .gm-arrow--prev:focus { border: 1px solid #4A4A4A; background: transparent; color: #FFFFFF; }
.gm-arrow--next, .gm-arrow--next:hover, .gm-arrow--next:focus { border: 0; background: #FFFFFF; color: var(--gm-ink); }
.gm-arrow:hover { opacity: .8; }

.gm-work__track {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none;
}
.gm-work__track::-webkit-scrollbar { display: none; }
.gm-work__item {
	flex: 0 0 calc((100% - 32px) / 3); min-width: 260px; scroll-snap-align: start;
	display: flex; flex-direction: column; gap: 14px;
}
.gm-work__photo { height: 300px; }
.gm-work__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.gm-work__meta strong { font-weight: 700; }
.gm-work__meta span { color: #A8A8A8; text-align: right; }

.gm-trust {
	border-top: 1px solid #2C2C2C; padding-top: 32px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.gm-trust__text { font-size: 14px; color: #BDBDBD; max-width: 260px; }
.gm-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.gm-logo-box {
	width: 140px; height: 56px; border-radius: 8px; border: 1px dashed #3A3A3A;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; color: #8A8A8A; letter-spacing: .06em; padding: 8px;
}
.gm-logo-box--img { border-style: solid; border-color: #2C2C2C; background: #1A1A1A; }
.gm-logo-box img { max-height: 36px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .85; }

.gm-dupont {
	display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
	background: #1A1A1A; border: 1px solid #2C2C2C; border-radius: var(--gm-radius); padding: 20px 24px;
}
.gm-dupont .gm-logo-box { border-color: #4A4A4A; color: #A8A8A8; }
.gm-dupont .gm-logo-box img { filter: none; opacity: 1; }
.gm-dupont__text { flex: 1 1 300px; font-size: 16px; line-height: 1.5; color: #E0E0E0; }
.gm-dupont__text strong { color: #FFFFFF; }

/* =========================================================
   CTA + FOOTER
   ========================================================= */
.gm-contact { padding: 88px var(--gm-gutter) 40px; }
.gm-contact__inner { display: flex; flex-direction: column; gap: 64px; }
.gm-cta {
	background: var(--gm-accent); color: var(--gm-on-accent); border-radius: 16px; padding: clamp(28px, 5vw, 64px);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
}
.gm-cta__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.gm-cta__text p { font-size: 16px; line-height: 1.6; }
.gm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gm-footer {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
	padding-bottom: 32px; border-bottom: 1px solid #D6D4D0;
}
.gm-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.gm-footer__col--brand { gap: 12px; }
.gm-footer__col--brand p { font-size: 14px; line-height: 1.6; color: #555555; }
.gm-footer__label { font-weight: 700; font-size: 12px; letter-spacing: .12em; color: #6B6B6B; }
.gm-footer a { text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.gm-footer a:hover { color: var(--gm-accent); }
.gm-copy { font-size: 13px; color: #6B6B6B; margin-top: -40px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
	.gm-nav__toggle { display: flex; }
	.gm-nav__links {
		display: none; order: 3; width: 100%;
		flex-direction: column; gap: 0; border-top: 1px solid #EEEEEE; padding-top: 8px;
	}
	.gm-nav__links.is-open { display: flex; }
	.gm-nav__links a { padding: 12px 4px; }
	.gm-nav__cta { margin-left: auto; }
	.gm-work__item { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 560px) {
	.gm-nav { padding: 12px 14px; }
	.gm-nav__book-text { display: none; }
	.gm-nav__book { padding: 13px; }
	.gm-work__item { flex-basis: 85%; }
	.gm-bento__brand, .gm-bento__lux { min-height: 360px; }
	.gm-hero__actions .gm-btn, .gm-cta__actions .gm-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.gm-btn, .gm-service { transition: none; }
}
