:root {
  --bg: #050608;
  --bg-alt: #111319;
  --card-bg: #141720;
  --card-alt: #1b1f2b;
  --text: #f5f5f7;
  --muted: #a7abb8;
  --accent: #d2a347; /* arany jellegű */
  --accent-soft: rgba(210, 163, 71, 0.18);
  --border-subtle: #2a2f3d;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container-width: 1120px;
  --nav-height: 72px;
}

/* Global reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #151827 0, #050608 55%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.92));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(210, 163, 71, 0.35);
  background: rgba(15, 17, 22, 0.45);
  box-shadow: 0 0 0 1px rgba(210, 163, 71, 0.55);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.hero-sub {
  max-width: 34rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 0.75rem;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-logo img {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  filter:
    drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 22px rgba(210, 163, 71, 0.18))
    brightness(1.05)
    contrast(1.02);
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section h2 {
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.section-lead {
  max-width: 32rem;
  color: var(--muted);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(
    135deg,
    rgba(20, 23, 32, 0.96),
    rgba(15, 17, 25, 0.96)
  );
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
}

.card li {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.card.flat {
  background: rgba(13, 15, 22, 0.9);
  border-radius: var(--radius-md);
}

.cards.three {
  margin-top: 1.8rem;
}

/* About / Why work with me */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.about-highlight {
  background: linear-gradient(145deg, var(--card-bg), var(--card-alt));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(210, 163, 71, 0.4);
  box-shadow: var(--shadow-subtle);
}

.about-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.about-highlight ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

.about-highlight li {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.contact-card {
  background: linear-gradient(145deg, var(--card-bg), var(--card-alt));
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.6rem;
  border: 1px solid rgba(210, 163, 71, 0.4);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.65rem;
  font: inherit;
  color: var(--text);
  background: rgba(8, 9, 14, 0.9);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid rgba(210, 163, 71, 0.75);
  border-color: rgba(210, 163, 71, 0.75);
  box-shadow: 0 0 0 1px rgba(210, 163, 71, 0.3);
}

.hidden {
  display: none;
}

/* --- Extra compact Services section (laptop-friendly) --- */

#services.section {
  padding-top: 1.7rem;
  padding-bottom: 0rem !important;
  margin-bottom: 0rem !important;
}

#services .section-lead {
  margin-bottom: 0.7rem;
}

#services .cards {
  margin-top: 1.1rem;
}

#services .card {
  padding: 0.95rem 1.25rem 0.9rem;
}

#services .card h3 {
  margin-bottom: 0.5rem;
}

#services .card li {
  line-height: 1.4;
}

/* Same background + kompaktabb "Why work with me" */

.section-why {
  padding-top: 1.4rem;
  padding-bottom: 2.1rem;
  background: transparent;
}

.section-why .cards.three {
  margin-top: 1.2rem;
}

.section-why .card {
  padding: 0.9rem 1.2rem 0.85rem;
}

.section-why .card p {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

/* About extra spacing */

#about.section {
  padding-bottom: 7rem !important;
}

/* Anchor scroll fix – sticky header ne takarja a címeket */

#services {
  scroll-margin-top: 40px;
}

#about {
  scroll-margin-top: 80px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #f3c96a, var(--accent));
  color: #1a1420;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.btn.ghost {
  border-color: var(--accent-soft);
  background: rgba(14, 16, 24, 0.9);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(210, 163, 71, 0.75);
  background: rgba(20, 23, 34, 0.9);
}

.btn.small {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn.full {
  width: 100%;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.5rem 0 1.8rem;
  background: #050608;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: right;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-inner,
  .about-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-logo {
    order: -1;
    margin-bottom: 1.25rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.86rem;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- COMPACT CONTACT PAGE – laptops ---- */

.section.contact-page {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.contact-page h1 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.contact-page .section-lead {
  font-size: 0.95rem;
  max-width: 30rem;
  margin-bottom: 0.6rem;
}

.contact-page .contact-layout {
  gap: 1.2rem;
}

.contact-page .contact-card {
  padding: 1.1rem 1.2rem 1.1rem;
}

.contact-page .field {
  margin-bottom: 0.55rem;
}

.contact-page .field label {
  font-size: 0.83rem;
}

.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea {
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.contact-page .field textarea {
  min-height: 90px;
}

.contact-page .btn.full {
  padding: 0.7rem;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Tighter layout for screen heights under 900px */
@media (max-height: 900px) {
  .section.contact-page {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .contact-page h1 {
    font-size: 1.45rem;
  }

  .contact-page .contact-card {
    padding: 1rem;
  }

  .contact-page .field textarea {
    min-height: 80px;
  }
}

/* EXTREME compact mode if still needed */
@media (max-height: 830px) {
  .contact-page .field {
    margin-bottom: 0.45rem;
  }
  .contact-page .contact-card {
    padding: 0.8rem 1rem;
  }
  .contact-page h1 {
    font-size: 1.35rem;
  }
}

/* --- Accent links: Quick facts CTA + contact e-mail --- */

.about-highlight a,
.contact-page a[href^="mailto:"] {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transition: color 0.18s ease-out;
}

.about-highlight a:hover,
.contact-page a[href^="mailto:"]:hover {
  color: var(--accent);
}

.about-highlight a::after,
.contact-page a[href^="mailto:"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.18s ease-out;
}

.about-highlight a:hover::after,
.contact-page a[href^="mailto:"]:hover::after {
  width: 100%;
}

.about-highlight a:active,
.contact-page a[href^="mailto:"]:active {
  color: #ffffff;
}

.about-highlight a:visited,
.contact-page a[href^="mailto:"]:visited {
  color: var(--accent);
}
