/*
 * Stabilfészek Kft — Theme Overrides
 * Replaces infinity-hugo's default teal (#1bafb4) with
 * a construction industry palette:
 *   Primary action:  #2B4B88  (dark denim blue — trust, solidity, craftsmanship)
 *   Secondary dark:  #1C3A6B  (deep navy blue — professionalism)
 *
 * Edit this file to adjust colors without touching the base theme.
 */

/* ── Logo (navbar) ──────────────────────────────────────────────── */
.navbar-brand img {
  height: 48px;
  width: auto;
}

/* ── Countdown dots (hero) ──────────────────────────────────────── */
#countdown_dashboard .dash .digit        { background: #2B4B88; }
#countdown_dashboard .dash:before,
#countdown_dashboard .dash:after         { background: #2B4B88; }
.dash.days_dash:before,
.dash.days_dash:after,
.dash.hours_dash:before,
.dash.hours_dash:after,
.dash.minutes_dash:before,
.dash.minutes_dash:after,
.dash.seconds_dash:before,
.dash.seconds_dash:after                 { background: #2B4B88; }

/* ── Hero button ────────────────────────────────────────────────── */
.btn-home {
  background-color: #2B4B88;
  border-color: #2B4B88;
  color: #fff;
}
.btn-home:hover,
.btn-home:focus {
  background-color: #1E3669;
  border-color: #1E3669;
  color: #fff;
}

/* ── Subscribe / Send buttons ───────────────────────────────────── */
.btn-subscription,
.btn-send {
  background: #2B4B88;
  border-color: #2B4B88;
  color: #fff;
}
.btn-subscription:hover,
.btn-send:hover {
  background: #1E3669;
  border-color: #1E3669;
}

/* ── Service section icons & borders ───────────────────────────── */
.service .block i          { color: #2B4B88; }
.service .block:hover      { border-top-color: #2B4B88; }
.service .block            { border-top: 5px solid #ecf0f1; }
.service .block:hover      { border-top: 5px solid #2B4B88; }

/* ── Active nav link ───────────────────────────────────────────── */
.navigation .nav-item .nav-link:hover,
.navigation .nav-item.active .nav-link { color: #2B4B88; }

/* ── Preloader ──────────────────────────────────────────────────── */
.loader            { border-top-color: #2B4B88; }

/* ── Contact form send button & input focus ─────────────────────── */
.contact .btn-send {
  background: #2B4B88;
  border: 2px solid #2B4B88;
}
.contact .btn-send:hover {
  background: #1E3669;
  border-color: #1E3669;
}
.contact .form-control:focus { border-color: #2B4B88; box-shadow: none; }

/* ── CTA Phone button ───────────────────────────────────────────── */
.btn-cta-phone {
  display: inline-block;
  background: #fff;
  color: #2B4B88;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0;
  border: 2px solid #fff;
  margin: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-cta-phone:hover {
  background: #2B4B88;
  color: #fff;
  border-color: #2B4B88;
}
.btn-cta-email {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255,255,255,0.7);
  margin: 0.5rem;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s, border-color 0.2s;
}
.btn-cta-email:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.cta-phone-wrap { margin-top: 1.5rem; }

/* ── Contact info items ─────────────────────────────────────────── */
.contact-info { padding: 2rem 0; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #555;
}
.contact-info-item i {
  color: #2B4B88;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  min-width: 1.25rem;
}
.contact-info-item a { color: #555; text-decoration: none; }
.contact-info-item a:hover { color: #2B4B88; }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-page {
  padding-top: 6rem;
  padding-bottom: 4rem;
  background: #fff;
}
.legal-page__content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1C3A6B;
}
.legal-page__content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1C3A6B;
}
.legal-page__content p,
.legal-page__content li { color: #555; line-height: 1.75; }
.legal-page__content table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.legal-page__content table th,
.legal-page__content table td { border: 1px solid #ddd; padding: 0.5rem 0.75rem; }
.legal-page__content table th { background: #f5f5f5; }
.legal-page__back { margin-top: 2.5rem; }
.btn-outline-secondary {
  border: 2px solid #aaa;
  color: #555;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-outline-secondary:hover { background: #f5f5f5; color: #333; }

/* ── Footer enhancements ────────────────────────────────────────── */
footer .footer-links { margin-bottom: 0.5rem; list-style: none; padding: 0; }
footer .footer-links li { display: inline; }
footer .footer-links a { color: #aaa; text-decoration: none; }
footer .footer-links a:hover { color: #2B4B88; }
footer .footer-contact { display: block; margin-top: 0.25rem; font-size: 0.9rem; }
footer .footer-contact a { color: #aaa; text-decoration: none; }
footer .footer-contact a:hover { color: #2B4B88; }

/* ── Navigation logo text fallback (if SVG fails) ───────────────── */
.navbar-brand .logo-text-fallback {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2B4B88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   TYPOGRAPHY — Inter (body) + Raleway (headings)
   ══════════════════════════════════════════════════════════════════ */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
}

.about .content h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
}

.service .block h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

/* ── About slider: consistent aspect ratio ──────────────────────── */
.about .about-slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════
   MAP — Kapcsolat section
   ══════════════════════════════════════════════════════════════════ */
.contact-map {
  margin-top: 3rem;
}
.contact-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(15%);
}

/* ══════════════════════════════════════════════════════════════════
   REFERENCIÁK PAGE
   ══════════════════════════════════════════════════════════════════ */
.referenciak .heading {
  margin-bottom: 3rem;
}
.referenciak .heading h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1C3A6B;
  margin-bottom: 0.75rem;
}
.referenciak .heading p {
  color: #777;
  font-size: 1.05rem;
}

.ref-grid {
  margin-top: 1rem;
}

.ref-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ref-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-3px);
}

.ref-card__image-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.ref-card__cover {
  position: relative;
  overflow: hidden;
}
.ref-card__cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.ref-card:hover .ref-card__cover img {
  transform: scale(1.04);
}

.ref-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 75, 136, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.ref-card:hover .ref-card__overlay {
  opacity: 1;
}
.ref-card__overlay i {
  color: #fff;
  font-size: 2rem;
}

.ref-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.ref-card__year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2B4B88;
  margin-bottom: 0.4rem;
}
.ref-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1C3A6B;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.ref-card__desc {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.ref-empty {
  padding: 4rem 0;
  color: #999;
  font-size: 1.1rem;
}

/* Referenciak page nav top padding */
.referenciak-page-wrap {
  padding-top: 5rem;
}
