/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --light:      #F2F0EC;
  --border:     #E5E2DC;
  --text:       #1E1E1C;
  --text-mid:   #4A4A47;
  --text-light: #8A8A86;
  --teal:       #5BBFBF;
  --teal-dark:  #3FA0A0;
  --teal-light: #EAF6F6;
  --nav-h:      80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav.light {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
}

.nav-logo-circle span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.2;
}

.nav-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 11px 28px;
  border-radius: 1px;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-dark) !important; color: white !important; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 32px 32px 40px;
  z-index: 199;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* ── TYPOGRAPHY SHARED ── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display em { font-style: italic; color: var(--teal); }

.lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 540px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-fill {
  background: var(--teal);
  color: white;
  padding: 14px 36px;
  border-radius: 1px;
}

.btn-fill:hover { background: var(--teal-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 13px 35px;
  border: 1px solid var(--border);
  border-radius: 1px;
}

.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-text {
  color: var(--text);
  padding: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  border-radius: 0;
}

.btn-text:hover { color: var(--teal); border-color: var(--teal); }

/* ── SECTION WRAPPER ── */
.section {
  padding: 100px 60px;
}

.section-sm {
  padding: 64px 60px;
}

/* ── FOOTER ── */
footer {
  background: var(--text);
  padding: 56px 60px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(91,191,191,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-logo-circle span {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  max-width: 260px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-nav h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal); }

.footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 64px 24px; }
  .section-sm { padding: 40px 24px; }
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── FOOTER LEGAL LINKS ── */
.footer-legal {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.footer-legal a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--teal); }

/* ── NAV OVER DARK HERO (transparent state) ──
   Amíg a nav átlátszó (nincs .scrolled és nincs .light),
   a linkek fehérek, hogy sötét fotón is olvashatók legyenek. */
.nav:not(.scrolled):not(.light) .nav-links a { color: rgba(255,255,255,0.85); }
.nav:not(.scrolled):not(.light) .nav-links a:hover { color: var(--teal); }
.nav:not(.scrolled):not(.light) .nav-links a.active { color: #fff; }
.nav:not(.scrolled):not(.light) .nav-logo-text { color: #fff; }
.nav:not(.scrolled):not(.light) .nav-logo-text small { color: rgba(255,255,255,0.55); }
.nav:not(.scrolled):not(.light) .nav-burger span { background: #fff; }

/* ── LOGÓ (kép alapú) ──
   logo.png       = világos háttérre (fekete Ambi Light + teal Ambi Home)
   logo-light.png = sötét háttérre (fehér Ambi Light + teal Ambi Home)
   A nav automatikusan vált a két verzió között. */
.nav-logo-mark {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo-mark img {
  height: 46px;
  width: auto;
  display: block;
}
/* alapállapot: átlátszó nav sötét fotó felett → világos logó */
.nav-logo-mark .logo-dark-bg-hide { display: none; }
.nav-logo-mark .logo-dark-bg-show { display: block; }
/* fehér hátterű nav (.scrolled vagy .light) → sötét logó */
.nav.scrolled .nav-logo-mark .logo-dark-bg-hide,
.nav.light    .nav-logo-mark .logo-dark-bg-hide { display: block; }
.nav.scrolled .nav-logo-mark .logo-dark-bg-show,
.nav.light    .nav-logo-mark .logo-dark-bg-show { display: none; }

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .nav-logo-mark img { height: 38px; }
  .nav-logo-text { font-size: 13px; }
}
