/* =========================================================================
   PHEZOS Automobili — landing page styles
   Mobile-first. Navy #002060 / cyan #0090D0 / white. Premium automotive.
   ========================================================================= */

:root {
  --navy: #002060;
  --navy-900: #001540;
  --navy-800: #001a4d;
  --navy-700: #0a2a6b;
  --cyan: #0090d0;
  --cyan-300: #38b6e6;
  --ink: #0c1530;
  --muted: #5a6584;
  --line: #e3e8f2;
  --paper: #f6f8fc;
  --white: #ffffff;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 32, 96, .06), 0 4px 14px rgba(0, 32, 96, .06);
  --shadow-md: 0 10px 30px rgba(0, 32, 96, .12);
  --shadow-lg: 0 24px 60px rgba(0, 32, 96, .22);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space: clamp(64px, 9vw, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--cyan-300); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 8px 22px rgba(0,144,208,.35); }
.btn-primary:hover { background: #0a9fe0; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* =========================================================================
   NAVBAR
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0, 32, 96, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 62px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.86); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--cyan-300); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* =========================================================================
   HERO / SUBMISSION BANNER
   ========================================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(0,144,208,.42), transparent 55%),
    radial-gradient(90% 70% at 0% 110%, rgba(0,144,208,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
/* grid texture removed — clean gradient hero */
.hero-inner { position: relative; padding: clamp(54px, 10vw, 104px) 0 clamp(48px, 8vw, 86px); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 0 4px rgba(56,182,230,.25); }
.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.7rem); max-width: 16ch; margin-bottom: 18px;
}
.hero .lede { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 60ch; }
.hero .lede strong { color: #fff; }
.hero .lede em { color: var(--cyan-300); font-style: normal; }
.submit-card {
  margin-top: 30px; max-width: 720px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 30px);
  backdrop-filter: blur(4px);
}
.submit-card .to { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-300); font-weight: 800; margin-bottom: 10px; }
.submit-card p { margin: 0 0 12px; color: rgba(255,255,255,.9); }
.submit-card p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-sign { margin-top: 22px; font-size: .92rem; color: rgba(255,255,255,.72); }
.hero-sign strong { color: #fff; }

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section { padding-block: var(--space); }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* =========================================================================
   INVENTORY / CAR CARDS
   ========================================================================= */
.cars { display: grid; gap: clamp(34px, 6vw, 64px); }

.car {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.car:hover { box-shadow: var(--shadow-md); }

/* hero image */
.car-hero { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.car-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.car:hover .car-hero img { transform: scale(1.035); }
.car-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,21,64,.78) 0%, rgba(0,21,64,.05) 45%, transparent 70%);
}
.car-pricechip {
  position: absolute; z-index: 2; right: 16px; top: 16px;
  background: var(--cyan); color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,144,208,.4);
}
.car-hero-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(18px, 4vw, 28px); color: #fff; }
.car-hero-cap h3 { font-size: clamp(1.35rem, 3.8vw, 2rem); margin-bottom: 6px; }
.car-hero-cap .sub { color: rgba(255,255,255,.85); font-size: .98rem; font-weight: 500; }

.car-body { padding: clamp(20px, 4vw, 36px); }

/* specs grid */
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 26px;
}
.spec { background: var(--white); padding: 13px 16px; }
.spec .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.spec .v { font-size: .98rem; font-weight: 700; color: var(--ink); margin-top: 3px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: rgba(0,144,208,.09); border: 1px solid rgba(0,144,208,.22);
  padding: 7px 13px; border-radius: 999px;
}

/* prose blocks */
.prose { color: #2a3556; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.block { margin-bottom: 24px; }
.block-title {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 12px;
}
.block-title .ic {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--navy); color: #fff; font-size: .9rem;
}

.why {
  background: linear-gradient(180deg, rgba(0,144,208,.06), rgba(0,144,208,.02));
  border: 1px solid rgba(0,144,208,.2);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm); padding: 18px 20px;
}

/* collapsible price rationale */
.rationale { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 22px; }
.rationale > summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 800; color: var(--navy); background: var(--paper);
}
.rationale > summary::-webkit-details-marker { display: none; }
.rationale > summary .hint { font-weight: 600; font-size: .85rem; color: var(--muted); }
.rationale > summary .caret { transition: transform .2s ease; color: var(--cyan); font-weight: 900; }
.rationale[open] > summary .caret { transform: rotate(45deg); }
.rationale .rationale-body { padding: 18px 20px 22px; }

/* gallery */
.gallery { margin-top: 28px; }
.gallery-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch;
}
.gallery-grid::-webkit-scrollbar { height: 8px; }
.gallery-grid::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gthumb {
  scroll-snap-align: start; border: 0; padding: 0; cursor: pointer;
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--navy); position: relative;
}
.gthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.gthumb:hover img { transform: scale(1.06); }

@media (min-width: 720px) {
  .gallery-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .gthumb:first-child { grid-column: span 2; grid-row: span 2; }
}

/* graceful image placeholder (navy) */
.imgph { position: relative; background:
  linear-gradient(135deg, var(--navy-800), var(--navy)); }
.imgph::before {
  content: attr(data-ph); position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 10px;
  color: rgba(255,255,255,.4); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
img.is-broken { opacity: 0; }

/* placeholder car tiles */
.placeholders { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: clamp(34px, 6vw, 64px); }
.ph-tile {
  border: 1.5px dashed rgba(0,32,96,.22); border-radius: var(--radius);
  background: var(--paper); padding: 30px 24px; text-align: center; color: var(--muted);
}
.ph-tile .ph-ic { font-size: 1.6rem; margin-bottom: 8px; }
.ph-tile h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.ph-tile p { margin: 0; font-size: .9rem; }
@media (min-width: 620px) { .placeholders { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   METHODOLOGY (Kako sam ovo napravio)
   ========================================================================= */
.method-grid { display: flex; flex-direction: column; gap: 16px; }
.method-intro { font-size: 1.12rem; color: #2a3556; max-width: 64ch; margin-bottom: 8px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; font-size: 1.3rem;
  background: linear-gradient(140deg, var(--navy), var(--navy-700)); color: #fff;
}
.step h3 { font-size: 1.2rem; color: var(--navy); margin: 0; }
.step .prose { font-size: 1rem; max-width: 72ch; }
/* Documentation-style: title rail on the left, explanation on the right */
@media (min-width: 860px) {
  .step { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
  .step-head { flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; position: sticky; top: 90px; }
  .step h3 { font-size: 1.22rem; line-height: 1.25; }
}

/* =========================================================================
   IMPORT VALUE STRIP
   ========================================================================= */
.strip { color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(0,144,208,.4), transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 100%);
}
.strip .wrap { padding-block: clamp(54px, 8vw, 92px); }
.strip h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); max-width: 18ch; margin-bottom: 14px; }
.strip .lede { color: rgba(255,255,255,.85); max-width: 60ch; }
.strip-steps { display: grid; gap: 16px; margin-top: 34px; }
.strip-step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.strip-step .n { font-size: .8rem; font-weight: 800; color: var(--cyan-300); letter-spacing: .1em; }
.strip-step h4 { margin: 8px 0 6px; font-size: 1.08rem; }
.strip-step p { margin: 0; color: rgba(255,255,255,.78); font-size: .94rem; }
@media (min-width: 760px) { .strip-steps { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   CONTACT / FOOTER
   ========================================================================= */
.contact { background: var(--navy-900); color: #fff; }
.contact .wrap { padding-block: clamp(54px, 8vw, 90px); }
.contact-grid { display: grid; gap: 36px; }
.contact h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin-bottom: 14px; }
.contact p.lede { color: rgba(255,255,255,.8); max-width: 48ch; }
.contact-cards { display: grid; gap: 14px; }
.cc {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); padding: 16px 18px; color: #fff;
}
.cc:hover { text-decoration: none; background: rgba(255,255,255,.1); }
.cc .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cyan); font-size: 1.1rem; flex: 0 0 auto; }
.cc .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); font-weight: 700; }
.cc .v { font-weight: 700; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } .contact-cards { grid-template-columns: 1fr 1fr; } }

.foot {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.foot img { height: 26px; opacity: .92; }
.foot small { color: rgba(255,255,255,.55); font-size: .82rem; }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,12,40,.92); align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; animation: fade .2s ease; }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; display: grid; place-items: center; transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .car-hero img, .gthumb img { transition: none; }
}
