/* =============================================
   Parbriz Garaj — Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
  --navy:    #1b4a85;
  --navy-d:  #123461;
  --navy-dd: #0b2242;
  --red:     #e53935;
  --red-d:   #c62828;
  --ink:     #14213a;
  --muted:   #5b6780;
  --line:    #e3e8f0;
  --bg:      #f5f7fb;
  --white:   #fff;
  --wa:      #25d366;
  --r:       16px;
  --shadow:  0 10px 30px rgba(17, 40, 80, .08);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .btn, .nav a {
  font-family: Montserrat, Inter, sans-serif;
}

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

/* --- Layout --- */
.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

section { padding: 88px 0; }

.eyebrow {
  display: inline-block;
  font: 700 12px/1 Montserrat, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy-dd);
  letter-spacing: -.01em;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin-top: 14px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 24px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}

.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-red  { background: var(--red);   color: #fff; box-shadow: 0 8px 20px rgba(229, 57, 53, .3); }
.btn-red:hover  { background: var(--red-d); }
.btn-wa   { background: var(--wa);    color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .28); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-navy { background: var(--navy);  color: #fff; }
.btn-navy:hover { background: var(--navy-d); }

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand span { color: var(--red); }
.brand svg  { width: 46px; height: 30px; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 600; font-size: 14px; color: var(--ink); opacity: .8; }
.nav a:hover { opacity: 1; color: var(--red); }

.langs {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--line);
}
.langs button {
  border: 0;
  background: none;
  font: 700 12px Montserrat, sans-serif;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}
.langs button.on { background: var(--navy); color: #fff; }

.hdr-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 17px Montserrat, sans-serif;
  color: var(--navy-dd);
}
.hdr-phone svg { width: 18px; height: 18px; color: var(--red); }

.burger {
  display: none;
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--navy);
}
.burger svg { width: 26px; height: 26px; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dd) 0%, var(--navy) 60%, #2361a8 100%);
  color: #fff;
  padding: 96px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0 46px,
    rgba(255, 255, 255, .035) 46px 48px
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}
.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #ff6b66; }

.hero p.sub {
  font-size: 18px;
  opacity: .88;
  margin: 20px 0 32px;
  max-width: 540px;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-phone {
  margin-top: 30px;
  font: 800 clamp(30px, 4vw, 42px)/1 Montserrat, sans-serif;
  letter-spacing: .02em;
}
.hero-phone small {
  display: block;
  font: 500 13px Inter, sans-serif;
  opacity: .7;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }

.chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.chip svg { width: 22px; height: 22px; flex: none; color: #ff8a85; }

/* --- Services --- */
.svc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}
.svc-grid > .card {
  flex: 0 1 calc(33.333% - 14px);
  min-width: 260px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eaf1fb, #dbe7f7);
  color: var(--navy);
  margin-bottom: 18px;
}
.ico svg { width: 28px; height: 28px; }
.card.accent .ico { background: linear-gradient(135deg, #fdeceb, #fbd9d8); color: var(--red); }
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy-dd); margin-bottom: 8px; }
.card p  { color: var(--muted); font-size: 15px; }

/* --- How It Works / Steps --- */
.alt { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  counter-reset: s;
}

.step {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font: 800 40px/1 Montserrat, sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; color: var(--navy-dd); margin-bottom: 6px; }
.step p  { font-size: 14.5px; color: var(--muted); }

/* --- Brands --- */
.brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.brands span {
  font: 700 14px Montserrat, sans-serif;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 10px;
}

/* --- Gallery --- */
.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
  margin-top: 44px;
}

.gal .num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 800 15px/34px Montserrat, sans-serif;
  text-align: center;
  z-index: 2;
}

.gal figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--navy-d);
}
.gal figure.big  { grid-column: span 2; grid-row: span 2; }
.gal figure.wide { grid-column: span 2; }

.gal img, .gal .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gal figure:hover img,
.gal figure:hover .ph { transform: scale(1.05); }

.gal figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(8, 22, 45, .85));
  color: #fff;
  font: 600 14px Montserrat, sans-serif;
}

/* --- Lightbox --- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 14, 30, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb.on { display: flex; }

.lb-in {
  max-width: min(1000px, 100%);
  max-height: 90vh;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
}
.lb-in img, .lb-in svg { width: 100%; height: 100%; object-fit: contain; }

.lb button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.lb .x  { top: 18px;  right: 18px; }
.lb .pv { left: 18px; top: 50%;    }
.lb .nx { right: 18px; top: 50%;   }

/* --- Contacts --- */
.ct-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  margin-top: 44px;
}

.ct-info {
  background: linear-gradient(150deg, var(--navy-dd), var(--navy));
  color: #fff;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ct-row { display: flex; gap: 14px; align-items: flex-start; }
.ct-row .ci {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  flex: none;
}
.ct-row .ci svg { width: 22px; height: 22px; }
.ct-row small { display: block; opacity: .65; font-size: 13px; }
.ct-row b { font: 700 17px Montserrat, sans-serif; }
.ct-row a b { border-bottom: 1px dashed rgba(255,255,255,.35); }
.ct-info .cta { margin-top: auto; }

/* --- Form --- */
form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow);
}
form h3  { font-size: 22px; color: var(--navy-dd); margin-bottom: 6px; }
form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 13px; font-weight: 600; color: var(--ink); }

.f input, .f select, .f textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: 0;
  border-color: var(--navy);
  background: #fff;
}
.f textarea { min-height: 110px; resize: vertical; }
.f.err input { border-color: var(--red); }

.form-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-btns .btn { flex: 1; }

.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

.ok {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #e8f8ee;
  color: #1e7a43;
  font-size: 14px;
  font-weight: 500;
}
.ok.on { display: block; }

/* --- CTA Band --- */
.band { background: var(--red); color: #fff; padding: 54px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2  { color: #fff; font-size: clamp(24px, 3.2vw, 34px); }
.band p   { opacity: .9; margin-top: 6px; }
.band .btn-white { background: #fff; color: var(--red); }

/* --- Footer --- */
footer {
  background: var(--navy-dd);
  color: rgba(255,255,255,.75);
  padding: 48px 0 100px;
  font-size: 14px;
}
.ft { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .brand { color: #fff; }
footer .seo  { max-width: 640px; margin-top: 14px; font-size: 12.5px; opacity: .55; line-height: 1.7; }
footer .req  { font-size: 13px; line-height: 1.8; }
.copy {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  opacity: .6;
}

/* --- Floating Action Buttons --- */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .15s;
}
.fab a:hover { transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }
.fab .f-wa   { background: var(--wa); }
.fab .f-call { background: var(--red); animation: pulse 2.2s infinite; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,57,53,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(229,57,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); }
}

/* --- Mobile Bottom Bar --- */
.mbar { display: none; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1020px) {
  .nav, .hdr-phone { display: none; }
  .burger { display: block; }
  .langs  { margin-left: auto; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .hero-grid, .ct-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gal   { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero   { padding: 56px 0 70px; }
  .brand b { display: none; }

  .steps, .fg { grid-template-columns: 1fr; }
  .chips      { grid-template-columns: 1fr; }
  .cta .btn   { flex: 1 1 100%; }
  .gal        { grid-template-columns: 1fr; grid-auto-rows: 220px; }

  form, .ct-info { padding: 24px; }

  .fab  { display: none; }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mbar .btn { padding: 13px 10px; }
}

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