/*
Theme Name: GAC Wrocław Landing
Theme URI: https://gacgroup.pl/
Author: GAC Wrocław
Description: Landing page premierowego salonu GAC we Wrocławiu. Sekcje: hero z formularzem leadowym, modele marki, auta od ręki, handlowcy, kontakt. Kolory i treści konfigurowalne w Personalizacji (Customizer).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gac-wroclaw
*/

/* ============ TOKENY ============ */
:root {
  --gac-accent: #595757;
  --gac-accent-dark: #3E3C3C;
  --gac-black: #0B0B0E;
  --gac-ink: #17181C;
  --gac-grey: #6B7078;
  --gac-line: #E4E6EA;
  --gac-bg: #F4F5F7;
  --gac-white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(11, 11, 14, .14);
  --font: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gac-ink);
  background: var(--gac-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.gac-container { max-width: 1280px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head p { color: var(--gac-grey); margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ============ PRZYCISKI ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--font); text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gac-accent); outline-offset: 2px; }
.btn-red { background: var(--gac-black); color: #fff; box-shadow: 0 10px 24px rgba(11, 11, 14, .30); }
.btn-red:hover { background: var(--gac-accent); }
.btn-dark { background: var(--gac-black); color: #fff; }
.btn-ghost { background: #fff; color: var(--gac-ink); border: 1px solid var(--gac-line); }
.btn-light { background: #fff; color: var(--gac-black); }
.btn-light:hover { background: #E8E9EB; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,11,14,.92); backdrop-filter: blur(10px);
  color: #fff;
}
.site-header .gac-container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo, .brand .custom-logo { height: 36px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo, .brand .custom-logo { height: 28px; } }
.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.main-nav a:hover { color: #fff; }
.header-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--gac-black); flex-direction: column; padding: 18px 22px 26px; gap: 16px; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* ============ HERO ============ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, #101014 0%, #17181c 55%, #3c3f45 100%);
}
.hero-car {
  position: absolute; right: -6%; top: 12%; width: 54%; max-width: 760px; opacity: .55;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: clamp(48px, 7vw, 86px) 0 clamp(48px, 7vw, 80px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gac-accent); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); margin: 22px 0 18px; }
.hero-lead { color: rgba(255,255,255,.75); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 12.5px; color: rgba(255,255,255,.85); max-width: 210px;
}
.hero-pill svg { flex: none; width: 22px; height: 22px; stroke: currentColor; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-car { display: none; }
}

/* ============ FORMULARZ LEADOWY ============ */
.lead-card {
  background: var(--gac-white); color: var(--gac-ink);
  border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
.lead-card h2 { font-size: 25px; margin-bottom: 8px; }
.lead-card > p { color: var(--gac-grey); font-size: 14px; margin: 0 0 20px; }
.lead-form { display: grid; gap: 13px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: 500 15px/1.4 var(--font); color: var(--gac-ink);
  border: 1.5px solid var(--gac-line); border-radius: var(--radius-sm);
  padding: 13px 15px; background: #fff;
}
.lead-form textarea { min-height: 92px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gac-accent); }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--gac-grey); }
.lead-consent input { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.lead-form .btn { width: 100%; padding: 16px; font-size: 16px; }
.lead-note { text-align: center; font-size: 11.5px; color: var(--gac-grey); margin: 4px 0 0; }
.form-msg { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form-msg.ok { background: #EDEDED; color: var(--gac-black); border: 1px solid var(--gac-accent); }
.form-msg.err { background: #F5F5F5; color: var(--gac-accent-dark); border: 1px dashed var(--gac-accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============ MODELE ============ */
.models { background: var(--gac-white); }
.models-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .models-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .models-grid { grid-template-columns: 1fr; } }
.model-card {
  background: #EBECEF; border: 1px solid #DFE1E5; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-card figure { margin: 0; background: #E9EBEF; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.model-card figure img { width: 100%; height: 100%; object-fit: cover; }
.model-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model-type { color: var(--gac-accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.model-body h3 { font-size: 19px; margin: 0; }
.model-body p { font-size: 13px; color: var(--gac-grey); margin: 0; flex: 1; }
.model-spec {
  align-self: flex-start; margin-top: 10px;
  background: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 700; color: var(--gac-ink);
}

/* ============ AUTA OD RĘKI ============ */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; max-width: 920px; }
@media (max-width: 960px) { .stock-grid { grid-template-columns: 1fr; } }
.stock-card { background: #EBECEF; border: 1px solid #DFE1E5; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.stock-media { position: relative; background: var(--gac-ink); aspect-ratio: 16/10; }
.stock-media img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.stock-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tag { border-radius: 999px; padding: 6px 13px; font-size: 11.5px; font-weight: 800; }
.tag-light { background: #fff; color: var(--gac-ink); }
.tag-red { background: var(--gac-accent); color: #fff; }
.stock-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.stock-body h3 { font-size: 22px; margin: 0; }
.stock-meta { color: var(--gac-grey); font-size: 13.5px; }
.stock-price {
  background: #fff; border-radius: var(--radius-sm); padding: 13px 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.stock-price small { color: var(--gac-grey); font-size: 12px; }
.stock-price strong { font-size: 19px; letter-spacing: -.01em; }
.stock-actions { display: flex; gap: 10px; margin-top: auto; }
.stock-actions .btn { flex: 1; padding: 12px 10px; font-size: 14px; box-shadow: none; }

/* ============ SEKCJA SALON ============ */
.salon { background: var(--gac-black); color: #fff; }
.salon-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
@media (max-width: 900px) { .salon-grid { grid-template-columns: 1fr; } }
.salon-card { border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 32px 28px; }
.salon-card h2 { font-size: clamp(26px, 3.4vw, 38px); }
.salon-card > p { color: rgba(255,255,255,.7); margin: 0 0 26px; }
.salon-steps { display: grid; gap: 12px; }
.salon-step {
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--gac-ink); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 14px; font-weight: 600;
}
.salon-step b {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gac-accent); color: #fff; display: grid; place-items: center; font-size: 14px;
}
.salon-visual {
  border-radius: 22px; overflow: hidden; position: relative; min-height: 320px;
  background:
    radial-gradient(420px 420px at 55% 45%, rgba(255,255,255,.10), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px),
    #191A1F;
  display: grid; place-items: center;
}
.salon-visual img { width: 78%; max-width: 560px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.salon-visual span { position: absolute; left: 20px; bottom: 16px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.45); text-transform: uppercase; }

/* ============ HANDLOWCY ============ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { background: var(--gac-bg); border-radius: 22px; padding: 26px; }
.team-avatar {
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  background: #DDE0E5; color: var(--gac-ink); display: grid; place-items: center;
  font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.team-card h3 { font-size: 20px; margin: 0 0 2px; }
.team-role { color: var(--gac-accent); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.team-contact { margin-top: 16px; font-size: 14.5px; }
.team-contact a { display: block; text-decoration: none; margin-top: 4px; }
.team-contact a:first-child { font-weight: 700; }
.team-contact a:hover { color: var(--gac-accent); }

/* ============ KONTAKT ============ */
.contact { background: var(--gac-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border-radius: 22px; padding: 34px 30px; }
.contact-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact-list li span.ico {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gac-black); color: #fff; display: grid; place-items: center; font-size: 15px;
}
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gac-accent); }
.contact-map { border-radius: 22px; overflow: hidden; min-height: 340px; background: #DFE2E7; position: relative; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(11,11,14,.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(11,11,14,.06) 0 1px, transparent 1px 48px),
    #E8EAEE;
  color: var(--gac-grey); font-weight: 600;
}
.map-pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 0; background: var(--gac-accent); transform: rotate(-45deg); position: relative; margin-bottom: 12px; }
.map-pin::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }

/* ============ STOPKA ============ */
.site-footer { background: var(--gac-black); color: rgba(255,255,255,.65); font-size: 13px; }
.site-footer .gac-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
.footer-logo { height: 24px; width: auto; opacity: .8; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
