/* ============================================================
   Heavy Core Kft. — Premium Transportation & Mobility, Budapest
   Light & modern design system
   ============================================================ */

:root {
  --navy: #10263f;
  --navy-soft: #1d3a5f;
  --gold: #b98a2f;
  --gold-soft: #d4af5e;
  --ink: #212a35;
  --muted: #5c6b7a;
  --line: #e5eaf0;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-warm: #faf7f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 38, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 38, 63, 0.14);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3, .display { font-family: var(--font-head); font-weight: 600; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }

section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: baseline; gap: 0.55rem; }
.logo-mark { font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.logo-mark span { color: var(--gold); }
.logo-sub { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a { font-size: 0.93rem; font-weight: 500; color: var(--ink); position: relative; padding: 0.4rem 0; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav .btn { padding: 0.6rem 1.5rem; }
.main-nav .btn::after { display: none; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 0.6rem); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 250px; padding: 0.6rem;
  opacity: 0; visibility: hidden; transition: all 0.22s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a { display: block; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a::after { display: none; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 7rem 0; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 24, 41, 0.82) 0%, rgba(10, 24, 41, 0.55) 45%, rgba(10, 24, 41, 0.15) 100%);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { margin: 1.4rem 0 2.2rem; max-width: 34rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 138, 47, 0.25), transparent 65%);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 42rem; margin-top: 1rem; font-size: 1.1rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 1.2rem; flex: 1; }
.card-link { font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.card-link:hover { color: var(--navy); }

/* feature list */
.feature-list { display: grid; gap: 0.9rem; margin: 1.5rem 0; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink); }
.feature-list li::before {
  content: "✓"; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(185, 138, 47, 0.14); color: var(--gold);
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}

/* split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat h3 { font-size: 2.6rem; color: var(--gold); }
.stat p { color: var(--muted); font-size: 0.9rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; }
.step-num {
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 700;
  color: rgba(185, 138, 47, 0.35); line-height: 1; margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* testimonials */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.4rem;
}
.testimonial blockquote { font-size: 1rem; color: var(--ink); font-style: italic; flex: 1; }
.testimonial blockquote::before { content: "“"; font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); display: block; line-height: 0.6; margin-bottom: 0.8rem; }
.t-author { display: flex; align-items: center; gap: 1rem; }
.t-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.t-author strong { display: block; font-size: 0.95rem; color: var(--navy); }
.t-author span { font-size: 0.82rem; color: var(--muted); }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; text-align: center; border-radius: var(--radius); padding: 4rem 2rem; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(185, 138, 47, 0.3), transparent 65%); }
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
label .req { color: var(--gold); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color 0.2s ease; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 1rem 1.3rem; border-radius: 10px; font-size: 0.95rem; margin-bottom: 1.5rem; }
.alert-success { background: #eaf7ef; color: #1e6b3a; border: 1px solid #bfe5cd; }
.alert-error { background: #fdeeee; color: #a13333; border: 1px solid #f2c9c9; }

/* contact */
.contact-info { display: grid; gap: 1.6rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(185, 138, 47, 0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.92rem; }

/* legal pages */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.legal-content h3 { font-size: 1.15rem; margin: 1.8rem 0 0.7rem; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.9rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.92rem; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 0.7rem 0.9rem; text-align: left; color: var(--muted); }
.legal-content th { background: var(--bg-alt); color: var(--navy); }
.legal-meta { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 4.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1.2rem; letter-spacing: 0.05em; }
.footer-grid a { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; display: inline-block; padding: 0.22rem 0; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-logo { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--gold-soft); }
.footer-about p { font-size: 0.9rem; margin-top: 1rem; max-width: 30ch; }
.footer-legal-info { font-size: 0.82rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.72); margin-left: 1.2rem; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  width: min(680px, 94%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.6rem; z-index: 200;
  display: none; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { flex: 1 1 300px; font-size: 0.88rem; color: var(--muted); }
.cookie-banner .btn { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.cookie-actions { display: flex; gap: 0.7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 720px) {
  section { padding: 3.8rem 0; }
  .grid-3, .grid-2, .steps, .split { grid-template-columns: 1fr; }
  .split { gap: 2.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 70vh; padding: 5rem 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 65px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 1.2rem 5%; display: none; max-height: calc(100vh - 65px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-nav a { display: block; padding: 0.7rem 0.4rem; font-size: 1rem; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
  }
  .main-nav .btn { margin-top: 0.8rem; text-align: center; }
}
