/* =========================================================
   SDNKOMPLEX.HU — CSS ONLY MODERNIZATION v2
   HTML / PHP / content / images: unchanged
   ========================================================= */

:root {
  --color-bg-main: #f7f9fc;
  --color-bg-card: #ffffff;
  --color-bg-light: #eef3f8;
  --color-bg-footer: #0b1628;

  --color-text-main: #122033;
  --color-text-muted: #5b6b7f;
  --color-text-light: #ffffff;

  --color-primary: #0d3b66;
  --color-primary-dark: #082b4b;
  --color-accent: #0877c9;
  --color-accent-dark: #075b9a;

  --color-border: #d8e1eb;
  --color-border-light: #e8eef5;

  --shadow-sm: 0 2px 8px rgba(13, 59, 102, .06);
  --shadow-md: 0 10px 28px rgba(13, 59, 102, .10);
  --shadow-lg: 0 18px 45px rgba(13, 59, 102, .14);

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

/* ---------- Base ---------- */

html {
  scroll-behavior: smooth;
}
.img-box-icon {
    height: 150px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* háttérkép esetén kitölti a teret */
    object-fit: cover;      /* <img> tag esetén sem torzul a kép */
}
body {
  margin: 0;
  background: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}
.btn-lg{
  color: var(--color-primary-dark);
    --shadow-sm: 0 2px 8px rgba(13, 59, 102, .06);
  --shadow-md: 0 10px 28px rgba(13, 59, 102, .10);
  --shadow-lg: 0 18px 45px rgba(13, 59, 102, .14);
}
.dark-font{
  color: var(--text-main);
}
.text-white{
  color: var(--color-primary-dark);
    --shadow-sm: 0 2px 8px rgba(13, 59, 102, .06);
  --shadow-md: 0 10px 28px rgba(13, 59, 102, .10);
  --shadow-lg: 0 18px 45px rgba(13, 59, 102, .14);
}
h2{
  color: var(--color-primary-dark);

}

h4{
  color: var(--color-primary-dark);

}


a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

/* ---------- Navigation ---------- */

.navbar {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 3px 18px rgba(8, 43, 75, .07);
  position: relative;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--color-primary) !important;
    height: 20px;

}

.navbar-nav .nav-link {
  position: relative;
  color: var(--color-text-main) !important;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .8rem .85rem !important;
  transition: color .2s ease;
  
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .35rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-accent) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: var(--color-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(8,119,201,.15);
}

/* ---------- Hero / banner ---------- */

.banner,
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5,24,43,.88) 0%,
      rgba(7,39,68,.70) 48%,
      rgba(7,39,68,.30) 100%);
  pointer-events: none;
}

.hero-content,
.banner > .container,
.banner > .container-fluid {
  position: relative;
  z-index: 1;
}

.hero h1,
.banner h1 {
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: 0 2px 18px rgba(0,0,0,.22);
}

.hero p,
.banner p {
  color: rgba(255,255,255,.92);
}

/* ---------- Main headings ---------- */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 750;
  line-height: 1.25;
}

h2.cim,
h3.cim {
  position: relative;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -.02em;
}

h2.cim::after,
h3.cim::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .7rem;
  border-radius: 99px;
  background: var(--color-accent);
}

.main-text {
  color: var(--color-text-main);
  font-size: 1rem;
}

.sub-text {
  color: var(--color-text-muted);
}

.center {
  text-align: center;
}

/* ---------- Sections ---------- */

.section-padding {
  padding-top: clamp(55px, 7vw, 90px);
  padding-bottom: clamp(55px, 7vw, 90px);
}

.section-bg-light {
  background: var(--color-bg-light);
}

.container-wide {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

/* ---------- Intro / content ---------- */

.body-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 44px);
}

.line {
  height: 1px;
  margin: 2rem 0;
  background: var(--color-border);
  border: 0;
}

.kenyer {
  color: var(--color-text-muted);
}

/* ---------- Cards ---------- */

.card,
.product-card {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: #c7d8e8 !important;
  box-shadow: var(--shadow-lg);
}

.card-img-container {
  overflow: hidden;
  background: var(--color-bg-light);
}

.card-img-top {
  display: block;
  width: 100%;
  transition: transform .35s ease;
}

.card:hover .card-img-top,
.product-card:hover .card-img-top {
  transform: scale(1.025);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-title {
  color: var(--color-primary);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .7rem;
}

.card-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- Product/service grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: 7px;
  font-weight: 700;
  letter-spacing: .01em;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 7px 18px rgba(13,59,102,.18);
}

.btn-outline {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  color: #fff;
  background: var(--color-primary);
}

.btn-success,
.btn-submit-quote {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-success:hover,
.btn-submit-quote:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 7px 18px rgba(8,119,201,.20);
}

.btn-secondary.w-100 {
  background: #e8eef5;
  border-color: #e8eef5;
  color: var(--color-primary);
  font-weight: 700;
}

.btn-secondary.w-100:hover {
  background: #dce6f0;
  border-color: #dce6f0;
}

/* ---------- Forms ---------- */

.form-control,
.form-select {
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
  color: var(--color-text-main);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.form-control {
  min-height: 130px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 .2rem rgba(8,119,201,.12);
}

.form-label {
  color: var(--color-text-main);
  font-weight: 700;
  margin-bottom: .45rem;
}

/* ---------- Highlight blocks ---------- */

.highlight,
.highlight-box,
.info-box {
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: #edf6fd;
  padding: 1rem 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 0;
  background: var(--color-bg-footer);
  color: rgba(255,255,255,.78);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer h4,
.footer h5,
.footer h6 {
  color: #fff;
}

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

.footer a:hover {
  color: #fff;
}

.mobile-footer-nav {
  background: rgba(11,22,40,.98);
  border-top: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 -6px 20px rgba(0,0,0,.12);
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8,119,201,.35);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: .7rem .25rem !important;
  }

  .navbar-nav .nav-link::after {
    left: .25rem;
    right: .25rem;
  }

  .hero {
    min-height: 390px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: .94rem;
  }

  .hero {
    min-height: 350px;
  }

  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(5,24,43,.78) 0%,
        rgba(7,39,68,.72) 100%);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-body {
    padding: 1.2rem;
  }

  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .body-box {
    border-radius: 10px;
    padding: 22px;
  }
}

@media (max-width: 575.98px) {
  .container-wide {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 320px;
  }

  h2.cim,
  h3.cim {
    font-size: 1.45rem;
  }

  .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
