/* ═══════════════════════════════════════════
   FIDOMIT Solutions Kft. – style.css
   ═══════════════════════════════════════════ */

/* ─── CSS VÁLTOZÓK ─── */
:root {
  /* Pillérek */
  --fi:  #FF6B35;
  --dom: #4ECDC4;
  --it:  #2563EB;

  /* Muted változatok (coming soon) */
  --fi-muted:  #FFD5C2;
  --dom-muted: #C2F0ED;

  /* Alap paletta */
  --bg:           #FFFFFF;
  --bg-alt:       #F8F9FA;
  --bg-dark:      #111827;
  --text:         #1C1C1E;
  --text-sec:     #6B7280;
  --text-light:   #9CA3AF;
  --border:       #E5E7EB;
  --border-dark:  #D1D5DB;

  /* Tipográfia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w:        1100px;
  --nav-h:        68px;
  --radius:       14px;
  --radius-sm:    8px;

  /* Árnyékok */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);

  /* Átmenetek */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ─── RESET & ALAP ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { height: 42px; width: auto; }

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-sec);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-alt);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.lang-btn {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-light);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.lang-btn:hover { color: var(--text); background: var(--bg-alt); }

.lang-btn.active {
  color: var(--it);
  background: #EFF6FF;
}

.lang-sep {
  color: var(--border-dark);
  font-size: .75rem;
  user-select: none;
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.menu-toggle:hover { background: var(--bg-alt); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Háttér dekoráció */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  padding: 80px 24px;
  animation: fadeUp .8s var(--ease) both;
}

.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 .35em;
}

.tl-fi  { color: var(--fi); }
.tl-dom { color: var(--dom); }
.tl-it  { color: var(--it); }

.hero-desc {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-sec);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  color: var(--text-sec);
  transition: transform .2s, color .2s, border-color .2s;
  animation: bounce 2.5s ease-in-out 1.5s infinite;
}
.hero-scroll-btn:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(3px);
  animation: none;
}

/* ═══════════════════════════════════════════
   PILLÉREK
   ═══════════════════════════════════════════ */
.pillars {
  padding: 96px 0;
  background: var(--bg-alt);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Felső színes sáv */
.pillar-accent {
  height: 5px;
  width: 100%;
}
.pillar-fi  .pillar-accent { background: var(--fi); }
.pillar-dom .pillar-accent { background: var(--dom); }
.pillar-it  .pillar-accent { background: var(--it); }

/* Coming soon – áttetszőség az egész kártyán */
.pillar-fi,
.pillar-dom { opacity: .75; }
.pillar-fi:hover,
.pillar-dom:hover { opacity: 1; }

.pillar-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pillar-letter {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.fi-letter  { color: var(--fi); }
.dom-letter { color: var(--dom); }
.it-letter  { color: var(--it); }

/* Badge */
.badge {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-soon {
  background: #F3F4F6;
  color: var(--text-light);
}

.pillar-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: .9rem;
  color: var(--text-sec);
  line-height: 1.65;
  flex: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--it);
  transition: gap .2s;
}
.pillar-link:hover { gap: 8px; }

/* ═══════════════════════════════════════════
   IT RÉSZLETEZŐ SZEKCIÓ
   ═══════════════════════════════════════════ */
.it-details {
  padding: 96px 0;
  background: var(--bg);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.it-label {
  background: #EFF6FF;
  color: var(--it);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}

.it-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.it-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.it-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.it-card-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.it-tag-sa { background: #EFF6FF; color: var(--it); }
.it-tag-fl { background: #ECFDF5; color: #059669; }

.it-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.3px;
}

.it-card-desc {
  font-size: .9rem;
  color: var(--text-sec);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 28px;
}

/* Gombok */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  align-self: flex-start;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  color: var(--it);
  border: 1.5px solid var(--it);
  background: transparent;
}
.btn-outline:hover {
  background: #EFF6FF;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.btn-primary {
  background: var(--it);
  color: #fff;
  border: 1.5px solid var(--it);
}
.btn-primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

/* ═══════════════════════════════════════════
   KAPCSOLAT
   ═══════════════════════════════════════════ */
.contact {
  padding: 96px 0;
  background: var(--bg-alt);
}

.contact .section-title {
  margin-bottom: 48px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.contact-company {
  margin-bottom: 28px;
}

.contact-company-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}

.contact-link {
  color: var(--it);
  transition: color .2s;
}
.contact-link:hover { color: #1D4ED8; text-decoration: underline; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { opacity: .85; transition: opacity .2s; }
.footer-logo:hover { opacity: 1; }

.footer-copy {
  font-size: .8rem;
  color: #4B5563;
}

/* ═══════════════════════════════════════════
   ANIMÁCIÓK
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════
   RESZPONZÍV – TABLET (≤ 900px)
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .it-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   RESZPONZÍV – MOBIL (≤ 640px)
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  /* Hamburger megjelenítése */
  .menu-toggle { display: flex; }

  /* Nav menu – slide down */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open { display: flex; }

  .nav-link {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    justify-content: flex-start;
    gap: 4px;
  }

  .lang-btn { font-size: .875rem; padding: 6px 12px; }

  /* Hero */
  .hero-tagline {
    letter-spacing: -1px;
    gap: 0 .25em;
  }

  .hero-desc { font-size: 1rem; }

  /* Pillérek */
  .pillars { padding: 64px 0; }
  .pillars-grid { max-width: 100%; }

  /* IT */
  .it-details { padding: 64px 0; }
  .it-card { padding: 24px; }

  /* Kapcsolat */
  .contact { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
