/* ===========================
   ARCHTIFEX KFT. – style.css
   Elegáns, letisztult, mobilbarát
   =========================== */

:root {
  --white:       #ffffff;
  --off-white:   #f8f7f5;
  --light-grey:  #f0eee9;
  --mid-grey:    #e2dfd8;
  --text-muted:  #9a9691;
  --text-body:   #4a4845;
  --text-dark:   #1e1c1a;

  --blue-pale:   #dce8f0;
  --blue-light:  #b8d0e3;
  --blue-mid:    #7aa8c7;
  --blue-main:   #4d83a8;
  --blue-deep:   #2e5f7e;
  --blue-dark:   #1a3d54;

  --accent:      #6e9ab5;

  --font-serif:  'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-sans:   system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius:      4px;
  --radius-lg:   10px;
  --shadow-sm:   0 2px 12px rgba(30,60,80,0.07);
  --shadow-md:   0 6px 32px rgba(30,60,80,0.11);
  --shadow-lg:   0 16px 48px rgba(30,60,80,0.14);

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SKIP NAV – ACCESSIBILITY ── */
.skip-nav {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-nav:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

/* ── FOCUS STATES ── */
*:focus-visible {
  outline: 2px solid var(--blue-main);
  outline-offset: 2px;
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  border-color: var(--mid-grey);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 38px;
  width: auto;
  mix-blend-mode: multiply;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}
.logo-text em {
  font-style: normal;
  color: var(--blue-main);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue-main);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--blue-main); }
.nav-links a.active { color: var(--blue-main); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  transition: background var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-deep) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--blue-dark);
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--mid-grey);
  padding: 16px 24px 20px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--text-body);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue-main); }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(26,61,84,0.25);
}
.btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(26,61,84,0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-light);
}
.btn-ghost:hover {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}
.btn-full { width: 100%; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(184,208,227,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(220,232,240,0.4) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--blue-dark);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--blue-main);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero image – right side */
.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 48%;
  height: 100%;
  background: url('images/hero.webp') center/cover no-repeat;
  border-radius: 0 0 0 40px;
  overflow: hidden;
}
@supports not (background-image: url('x.webp')) {
  .hero-img { background-image: url('images/hero.png'); }
}
.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--off-white) 0%, transparent 35%);
  z-index: 1;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: max(24px, calc((100vw - 1160px) / 2 + 24px));
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--mid-grey);
}

/* ══════════════════════════════
   TRUST BAR
══════════════════════════════ */
.trust-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 14px 24px;
  overflow: hidden;
}
.trust-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.trust-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.trust-inner .sep { opacity: 0.3; }

/* ══════════════════════════════
   SECTION BASE
══════════════════════════════ */
.section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--blue-mid);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════
   FEATURE SECTIONS
══════════════════════════════ */
.feature-section { background: var(--white); }
.feature-section.alt { background: var(--off-white); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.feature-row.reverse .feature-content { order: 1; }
.feature-row.reverse .feature-img-grid { order: 2; }

.feature-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature-img-wrap picture { display: block; }
.feature-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-img-wrap:hover img { transform: scale(1.03); }

.feature-content .section-title { text-align: left; margin-bottom: 20px; }
.feature-content p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}
.feature-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-main);
}

/* Image grid (2+1 layout) */
.feature-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 380px;
}
.grid-main {
  grid-row: span 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid-small {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.grid-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════
   SERVICES
══════════════════════════════ */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  background: var(--white);
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-main);
  margin-bottom: 20px;
}
.service-icon.accent { color: var(--blue-deep); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blue-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-main);
  background: var(--blue-pale);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ══════════════════════════════
   USP
══════════════════════════════ */
.usp { background: var(--off-white); }
.usp-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.usp-left .section-title { text-align: left; }
.usp-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
}
.usp-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.usp-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.usp-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
}
.usp-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--blue-light);
  line-height: 1;
  min-width: 36px;
  padding-top: 2px;
}
.usp-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.usp-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ══════════════════════════════
   PROCESS
══════════════════════════════ */
.process { background: var(--white); }
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-body h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.65;
}
.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: var(--mid-grey);
  margin-top: 26px;
}

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact { background: var(--off-white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-left .section-title { text-align: left; }
.contact-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 40px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
a.contact-item:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.contact-item.no-link { cursor: default; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-main);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-val {
  display: block;
  font-size: 0.9rem;
  color: var(--blue-dark);
  font-weight: 400;
}

/* ── CONTACT CTA BOX ── */
.contact-cta-box {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.contact-cta-box h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.contact-cta-box p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-cta-box .btn + .btn { margin-top: 12px; }
.cta-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* ── MAP ── */
.map-section {
  background: var(--white);
  padding: 0 0 96px;
}
.map-header {
  text-align: center;
  padding: 72px 0 40px;
}
.map-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.map-wrapper iframe {
  width: 100%;
  height: 440px;
  border: 0;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
  filter: saturate(0.75) brightness(1.03);
}

@media (max-width: 768px) {
  .map-section { padding: 0 0 72px; }
  .map-wrapper iframe { height: 320px; }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-logo {
  height: 44px;
  width: auto;
  filter: invert(1) brightness(1.5);
  opacity: 0.8;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 500;
}
.footer-name em { font-style: normal; color: var(--blue-light); }
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-cols h3 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 16px;
}
.footer-cols ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-cols li, .footer-cols a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
}
.footer-cols a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.70);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-inner { grid-template-columns: 1fr; gap: 48px; }
  .usp-left .section-title { text-align: center; }
  .usp-desc { text-align: center; }
  .usp-left { text-align: center; }

  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-content { order: 2; }
  .feature-row.reverse .feature-img-grid { order: 1; }
  .feature-content .section-title { text-align: center; }
  .hero-img { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: auto; }
  .hero-content { padding: 60px 24px; }
  .hero-decor { display: none; }
  .scroll-hint { display: none; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .services-grid { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-left .section-title { text-align: center; }
  .contact-desc { text-align: center; }
  .contact-left { text-align: center; }

  .process-steps { flex-direction: column; align-items: center; }
  .process-step { width: 100%; max-width: 360px; }
  .process-connector { width: 1px; height: 32px; margin: 0; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-inner { font-size: 0.72rem; gap: 10px; }
  .trust-inner .sep { display: none; }

  .feature-img-grid { grid-template-columns: 1fr; height: auto; }
  .grid-main { height: 260px; grid-row: auto; }
  .grid-small { height: 180px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .contact-form-box { padding: 24px 16px; }
}

/* ══════════════════════════════
   PRINT STYLES
══════════════════════════════ */
@media print {
  .navbar, .hero-decor, .scroll-hint, .hamburger, .trust-bar { display: none; }
  .hero { min-height: auto; padding: 20px 0; }
  .section { padding: 30px 0; }
  body { color: #000; }
}
