/* ===============================
   GLOBAL RESET & TEMEL AYARLAR
   =============================== */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body.lm-body {
  --lm-color-bg: #050908;
  --lm-color-surface: #111a13;
  --lm-color-surface-soft: #161f1a;
  --lm-color-accent: #f0b35c;
  --lm-color-accent-soft: rgba(240, 179, 92, 0.12);
  --lm-color-accent-2: #e6776a;
  --lm-color-muted: #a5c3b2;
  --lm-color-text: #f5f6f3;
  --lm-color-border-subtle: rgba(255, 255, 255, 0.08);

  --lm-radius-xl: 1.75rem;
  --lm-radius-lg: 1.25rem;
  --lm-radius-md: 0.9rem;

  --lm-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --lm-shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.4);

  --lm-header-height: 76px;

  background: radial-gradient(circle at top left, #1c3124 0, #050908 52%, #020506 100%);
  color: var(--lm-color-text);
  font-family: "LandMosaicText", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* ===============================
   LOCAL FONTS
   (файлы ttf нужно положить в /fonts/)
   =============================== */

@font-face {
  font-family: "LandMosaicDisplay";
  src: url("../fonts/Marcellus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LandMosaicText";
  src: url("../fonts/Urbanist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LandMosaicText";
  src: url("../fonts/Urbanist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   GENEL YAPI
   =============================== */

.lm-wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.lm-main {
  padding-top: var(--lm-header-height);
}

.lm-section {
  position: relative;
  padding: 6rem 0 5rem;
}

/* ===============================
   HEADER & NAV
   =============================== */

.lm-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--lm-header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(5, 9, 8, 0.96),
    rgba(5, 9, 8, 0.9),
    rgba(5, 9, 8, 0.8)
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.lm-header--scrolled {
  background: rgba(5, 9, 8, 0.98);
  border-bottom-color: rgba(240, 179, 92, 0.45);
}

.lm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.lm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.lm-logo__mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.9rem 1.4rem 1.1rem 1.5rem;
  background: conic-gradient(from 210deg, #f0b35c, #e6776a, #4fa37a, #f0b35c);
  box-shadow: 0 0 0 1px rgba(4, 12, 8, 0.95), var(--lm-shadow-subtle);
}

.lm-logo__text {
  font-family: "LandMosaicDisplay", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */

.lm-nav {
  display: flex;
}

.lm-nav__list {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.lm-nav__link {
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 246, 243, 0.82);
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 180ms ease;
}

.lm-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lm-color-accent), var(--lm-color-accent-2));
  transition: width 200ms ease;
}

.lm-nav__link:hover,
.lm-nav__link:focus-visible {
  color: #ffffff;
}

.lm-nav__link:hover::after,
.lm-nav__link:focus-visible::after {
  width: 100%;
}

/* ===============================
   BURGER
   =============================== */

.lm-nav-toggle {
  display: none; /* на десктопе скрыта */
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, rgba(240, 179, 92, 0.14), transparent);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}


.lm-nav-toggle__bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #f5f6f3;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* открытое состояние — крестик */

.lm-header--nav-open .lm-nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(40deg);
}

.lm-header--nav-open .lm-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.lm-header--nav-open .lm-nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-40deg);
}

/* ===============================
   BUTTONS
   =============================== */

.lm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
  will-change: transform;
  white-space: nowrap;
}

.lm-btn--primary {
  background: radial-gradient(circle at top left, #f0b35c, #e6776a);
  color: #040806;
  box-shadow: var(--lm-shadow-soft);
}

.lm-btn--primary:hover,
.lm-btn--primary:focus-visible {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.75);
}

.lm-btn--ghost {
  background: rgba(8, 18, 12, 0.9);
  border-color: rgba(165, 195, 178, 0.45);
  color: var(--lm-color-muted);
}

.lm-btn--ghost:hover,
.lm-btn--ghost:focus-visible {
  border-color: var(--lm-color-accent);
  color: var(--lm-color-text);
  transform: translateY(-1px);
}

/* ===============================
   IMG GENEL
   =============================== */

.lm-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--lm-radius-lg);
  object-fit: cover;
  box-shadow: var(--lm-shadow-subtle);
}

/* Maksimum genişlik limiti (350px) */

img.lm-img {
  max-width: 350px;
}

/* ===============================
   REVEAL ANİMASYON
   =============================== */

.lm-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 540ms cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.lm-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   FOOTER
   =============================== */

.lm-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top right, #182920 0, #050908 40%, #020405 100%);
  padding: 2.5rem 0 2.75rem;
  margin-top: 2rem;
}

.lm-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.lm-footer__logo {
  font-family: "LandMosaicDisplay", serif;
  font-size: 1.1rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.lm-footer__text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(245, 246, 243, 0.8);
}

.lm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.lm-footer__link {
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(245, 246, 243, 0.78);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lm-footer__link:hover,
.lm-footer__link:focus-visible {
  color: var(--lm-color-accent);
}

.lm-footer__copy {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(245, 246, 243, 0.6);
}

/* ===============================
   RESPONSIVE
   =============================== */

/* Tablet ve küçük masaüstü */
@media (max-width: 1024px) {
  .lm-wrap {
    width: min(980px, 100% - 2rem);
  }

  .lm-section {
    padding: 4.5rem 0 4rem;
  }
}

/* Tablet ve altı: nav mobil moda geçsin */
@media (max-width: 768px) {
  .lm-nav-toggle {
    display: inline-flex;
  }

  .lm-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--lm-header-height);
    height: calc(100vh - var(--lm-header-height));
    background: radial-gradient(circle at top, #182920, #050908 58%, #020405 100%);
    transform: translateY(-4%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    display: flex;
    align-items: center;    /* центр по вертикали */
    justify-content: center;/* центр по горизонтали */
  }

  .lm-header--nav-open .lm-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .lm-nav__list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .lm-nav__link {
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.16em;
  }

  .lm-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .lm-footer__links {
    align-items: flex-start;
  }
}

/* Küçük telefonlar */
@media (max-width: 480px) {
  .lm-section {
    padding: 3.75rem 0 3.5rem;
  }

  .lm-footer {
    padding-inline: 0;
  }

  .lm-footer__copy {
    font-size: 0.75rem;
  }
}
