/* autoskola.hr landing site. Plain CSS, no external fonts, no JavaScript. */

:root {
  --green: #49c128;
  --green-dark: #2e7d18;
  --ink: #222;
  --text: #333;
  --muted: #5f5f5f;
  --line: #e2e2e2;
  --bg: #fff;
  --bg-soft: #f4f6f3;
  --dark: #2b2b2b;
  --dark-2: #1f1f1f;
  --radius: 10px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  background: var(--green);
  color: #10240a;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.15s, color 0.15s;
}
.btn:hover, .btn:focus-visible { background: #fff; color: #10240a; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--ink); }

/* Header */
.site-header { background: var(--dark); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand img { width: 200px; }
.site-nav { display: flex; gap: 4px 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.site-nav .btn { padding: 0.5em 1.1em; border-bottom: 2px solid var(--green); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #3a3a3a 100%); color: #e9e9e9; padding: 88px 0 96px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { font-size: 1.2rem; max-width: 46ch; }
.page-title { background: var(--dark); color: #fff; padding: 56px 0; }
.page-title h1 { color: #fff; margin: 0; }

/* Sections */
section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0; }
.card-mark { display: block; width: 36px; height: 6px; border-radius: 3px; background: var(--green); margin-bottom: 18px; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.stores a { display: inline-block; padding: 0.65em 1.3em; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.stores a:hover, .stores a:focus-visible { background: var(--green-dark); }

.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat-number { display: block; font-size: 2.6rem; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.stat-label { color: var(--muted); }

.quotes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: 1rem; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--ink); }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }

.logos { display: grid; gap: 28px; justify-items: center; }
.logos img { width: 100%; max-width: 900px; opacity: 0.9; }

.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.split img { margin: 0 auto; max-height: 420px; width: auto; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 10px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.checklist.columns { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 32px; }

/* Pricing */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.plan.featured { border: 2px solid var(--green); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.plan-badge { align-self: center; background: var(--green); color: #10240a; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; padding: 3px 12px; border-radius: 999px; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-note { color: var(--muted); font-size: 0.95rem; }
.plan .btn { margin-top: auto; align-self: center; }
.plan-who { font-weight: 600; margin-bottom: 18px; }

/* Contact block */
.contact { background: var(--dark); color: #e9e9e9; text-align: center; }
.contact h2 { color: #fff; }
.contact p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.contact-mail { display: inline-block; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: #fff; margin: 8px 0 24px; text-decoration-color: var(--green); text-underline-offset: 6px; }
.contact-mail:hover { color: var(--green); }

/* Long text (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Footer */
.site-footer { background: var(--dark-2); color: #cfcfcf; padding: 56px 0 28px; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 190px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #3a3a3a; margin-top: 40px; padding-top: 20px; color: #9a9a9a; font-size: 0.9rem; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 64px; }
  .site-nav { margin-left: 0; width: 100%; gap: 4px 16px; }
  .brand img { width: 170px; }
}
