/* ==========================================================================
   Hello IT Digital - style.css
   Modern, visszafogott üzleties design.
   Színek: mély kék fő, hideg szürkék, akcent zöldeskék.
   ========================================================================== */

:root {
  --c-primary: #0d2c54;
  --c-primary-dark: #081d3a;
  --c-primary-light: #1d4480;
  --c-accent: #0d8a8e;
  --c-accent-hover: #0a6e72;

  --c-text: #1a2233;
  --c-text-soft: #475569;
  --c-text-muted: #64748b;
  --c-heading: #0d2c54;

  --c-bg: #ffffff;
  --c-bg-alt: #f7f9fc;
  --c-bg-soft: #eef2f7;

  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;

  --c-callout-bg: #f0f7fa;
  --c-callout-border: #0d8a8e;
  --c-highlight-bg: #f7f9fc;
  --c-highlight-border: #cbd5e1;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(13, 44, 84, 0.05);
  --shadow: 0 2px 8px rgba(13, 44, 84, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 44, 84, 0.08);

  --container-max: 1140px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Alap reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Form-elemek örököljék az oldal betűtípusát (egységes font mindenhol) */
input,
button,
select,
textarea,
optgroup {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--c-accent-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  margin-top: 40px;
}

h3 {
  font-size: 21px;
  margin-top: 0;
}

h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  margin-bottom: 16px;
}

p {
  margin: 0 0 16px 0;
}

ul,
ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
}

ul li,
ol li {
  margin-bottom: 8px;
}

strong {
  color: var(--c-heading);
  font-weight: 600;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* SVG ikonok */
.icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-callout {
  width: 22px;
  height: 22px;
  color: var(--c-accent);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-left: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo:hover {
  color: var(--c-heading);
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

nav a:hover {
  color: var(--c-primary);
  background: var(--c-bg-soft);
  text-decoration: none;
}

nav a.active {
  color: var(--c-primary);
  background: var(--c-bg-soft);
}

nav a.btn {
  background: var(--c-primary);
  color: white;
  margin-left: 8px;
}

nav a.btn:hover {
  background: var(--c-primary-dark);
}

/* Mobil menü gomb */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  padding: 14px 0;
  font-size: 14px;
  color: var(--c-text-muted);
}

.breadcrumb a {
  color: var(--c-text-soft);
}

.breadcrumb a:hover {
  color: var(--c-accent);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: var(--c-text-muted);
}

/* ==========================================================================
   Page header (hero)
   ========================================================================== */
.page-header {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: white;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(13, 138, 142, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  color: white;
  font-size: 44px;
  max-width: 820px;
  position: relative;
}

.page-header p {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0;
  position: relative;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 64px 0;
}

section + section {
  padding-top: 0;
}

/* ==========================================================================
   Article
   ========================================================================== */
.article {
  max-width: 780px;
  margin: 0 auto;
}

.article > h2:first-child {
  margin-top: 0;
}

.article p {
  color: var(--c-text-soft);
}

.article ul li,
.article ol li {
  color: var(--c-text-soft);
}

/* ==========================================================================
   Callout
   ========================================================================== */
.callout {
  background: var(--c-callout-bg);
  border-left: 4px solid var(--c-callout-border);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  margin: 0;
  color: var(--c-text);
}

.callout .icon-callout {
  vertical-align: -5px;
  margin-right: 6px;
}

.callout strong {
  color: var(--c-primary);
}

/* ==========================================================================
   Highlight box
   ========================================================================== */
.highlight-box {
  background: var(--c-highlight-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--c-primary);
  font-size: 22px;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
}

.highlight-box ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--c-text);
}

.highlight-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d8a8e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

.btn-white {
  background: white;
  color: var(--c-primary);
}

.btn-white:hover {
  background: var(--c-bg-soft);
  color: var(--c-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: white;
}

/* Outline-os gomb sötét háttéren (page-header és cta-section alatt) */
.page-header .btn-outline,
.cta-section .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.page-header .btn-outline:hover,
.cta-section .btn-outline:hover {
  background: white;
  color: var(--c-primary);
}

/* ==========================================================================
   Service cards (főoldal kártyák)
   ========================================================================== */
.service-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

.service-card .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--c-callout-bg);
  color: var(--c-accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-card .icon-wrap .icon {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.service-card p {
  color: var(--c-text-soft);
  font-size: 15px;
  flex-grow: 1;
}

.service-card .card-link {
  margin-top: 12px;
  font-weight: 600;
  font-size: 15px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: white;
  text-align: center;
  padding: 72px 0;
}

.cta-section h2 {
  color: white;
  font-size: 32px;
  margin-top: 0;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
  font-size: 15px;
}

footer .logo {
  color: white;
}

footer h4 {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer li {
  margin-bottom: 8px;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
}

footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-services-cols ul {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
  }

  nav a {
    padding: 12px 14px;
    display: block;
  }

  nav a.btn {
    margin: 8px 0 0 0;
    text-align: center;
  }

  h1 {
    font-size: 30px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .page-header {
    padding: 48px 0 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  section {
    padding: 48px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .page-header p {
    font-size: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .highlight-box {
    padding: 22px;
  }
}

/* Comparison table az összehasonlító cikkekhez */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: var(--c-card, #fff);
}
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border, #e2e8f0);
  vertical-align: top;
}
.comparison-table thead th {
  background: var(--c-bg-alt, #f7f9fc);
  font-weight: 600;
  color: var(--c-text, #0d2c54);
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: var(--c-bg-alt, #f7f9fc);
}

/* ==========================================================================
   Főoldal-specifikus felülírások
   A page-header és article max-width korlátok feloldása, hogy a hero és a
   bevezető szövegek a teljes container szélességéig nyúljanak (1140px),
   egységesebb képet adva a kártyaráccsal. Mobilon a container padding-ja
   korlátozza a szélességet, így nem csúszik szét.
   ========================================================================== */
body.page-home .page-header h1,
body.page-home .page-header p,
body.page-home .article {
  max-width: none;
}

/* ==========================================================================
   Kapcsolat oldal - cégadatok és térkép
   ========================================================================== */
.company-info-box {
  background: var(--c-highlight-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 24px 0 28px;
}

.company-info {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.company-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.company-info dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.company-info dd {
  margin: 0;
  font-size: 16px;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.4;
}

.contact-card {
  background: var(--c-highlight-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 20px 0 28px;
}

.contact-card-label {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.contact-card-name {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.4;
}

.contact-card-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
}

.contact-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-accent);
  text-decoration: none;
}

.contact-card-row:hover {
  color: var(--c-accent-hover);
  text-decoration: underline;
}

.contact-card-row .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent);
}

.contact-card-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .contact-card {
    padding: 20px;
  }
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  margin: 8px 0 0;
}

.map-embed iframe {
  display: block;
  width: 100%;
}

@media (max-width: 520px) {
  .company-info {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .company-info-box {
    padding: 22px;
  }
}

/* ==========================================================================
   Almenü (legördülő) – Eszközök
   ========================================================================== */
.has-submenu {
  position: relative;
}

.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

@media (max-width: 860px) {
  .has-submenu > a::after {
    display: none;
  }
  .submenu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    min-width: 0;
  }
  .submenu a {
    padding: 10px 14px;
    color: var(--c-text-muted);
  }
}
