/* ==============================
   ÜSTÜN OL EMLAK — Landing Page
   HTML + CSS + Vanilla JS
   ============================== */

/* --- CSS Reset (light) --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

/* --- Theme Tokens --- */
:root {
  --bg: #0b1220;              /* deep navy */
  --bg-2: #0f1a2e;            /* section alt */
  --card: rgba(255, 255, 255, 0.06);
  --card-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted-2: rgba(255, 255, 255, 0.55);

  --accent: #f2c14e;          /* gold */
  --accent-2: #ffd889;
  --focus: rgba(242, 193, 78, 0.55);

  --shadow: 0 18px 40px rgba(0,0,0,0.35);
  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;
}

/* --- Base --- */
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(242,193,78,0.10), transparent 55%),
              radial-gradient(800px 500px at 80% 0%, rgba(79,124,255,0.12), transparent 55%),
              var(--bg);
  overflow-x: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

.section-head {
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  background: #111a2b;
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
  z-index: 9999;
}
.skip-link:focus {
  transform: translateY(0%);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(242,193,78,0.25);
}
.brand-text strong { font-weight: 800; }
.brand-text span { color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 8px 8px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease;
  outline: none;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav-link.is-active {
  color: var(--text);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

/* CTA button in header */
.cta-top { margin-left: 6px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.nav-toggle-lines {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 0 auto;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after  { top: 6px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-small { padding: 10px 12px; border-radius: 12px; font-size: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1220;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(242,193,78,0.22);
}
.btn-primary:hover { box-shadow: 0 18px 42px rgba(242,193,78,0.28); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.16);
  color: var(--text);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); }

/* --- Hero --- */
.hero {
  padding: 88px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 520px;
  background:
    radial-gradient(800px 280px at 20% 30%, rgba(242,193,78,0.14), transparent 60%),
    radial-gradient(700px 340px at 70% 15%, rgba(79,124,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  filter: saturate(1.1);
  pointer-events: none;
}
.hero-bg::after {
  /* subtle pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, black 55%, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  margin: 0 0 14px;
}
.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242,193,78,0.12);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.accent { color: var(--accent); }

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--muted);
}
.trust-pill .icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

/* Stat cards */
.hero-right {
  display: grid;
  gap: 12px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(242,193,78,0.28);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242,193,78,0.14);
  border: 1px solid rgba(242,193,78,0.18);
  color: var(--accent);
  margin-bottom: 10px;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-card h3 { margin: 0 0 6px; font-size: 16px; }
.stat-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- Grid & Cards --- */
.grid {
  display: grid;
  gap: 14px;
}
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(242,193,78,0.26);
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 10px;
  font-size: 18px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted-2); }

/* --- Portfolio --- */
.portfolio-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms ease;
}
.chip:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip.is-active {
  color: #0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  font-weight: 700;
}

.listing-media {
  height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(220px 120px at 25% 35%, rgba(242,193,78,0.22), transparent 62%),
    radial-gradient(220px 120px at 75% 20%, rgba(79,124,255,0.22), transparent 62%),
    rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.listing-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(11,18,32,0.62);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.listing-shape {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(242,193,78,0.12);
  filter: blur(0.2px);
  border: 1px solid rgba(242,193,78,0.14);
}
.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.price {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.note-box {
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

/* hide filtered items (JS toggles this class) */
.is-hidden { display: none !important; }

/* --- Steps --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242,193,78,0.14);
  border: 1px solid rgba(242,193,78,0.18);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); }

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: start;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}
.check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.about-right {
  display: grid;
  gap: 14px;
}
.mini-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.mini-card h3 { margin: 0 0 6px; font-size: 16px; }
.mini-card p { margin: 0; color: var(--muted); }

.about-cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* --- Testimonials --- */
.testimonial .quote {
  margin: 0 0 12px;
  color: var(--text);
}
.testimonial .who { margin: 0; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.info-card.highlight {
  border-color: rgba(242,193,78,0.26);
  background: rgba(242,193,78,0.06);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}
.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.info-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.form {
  padding: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
label { font-weight: 600; font-size: 14px; }

input, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(11,18,32,0.40);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.42); }
input:focus, textarea:focus {
  border-color: rgba(242,193,78,0.55);
  box-shadow: 0 0 0 4px rgba(242,193,78,0.12);
}

.checkbox-row { margin-top: 6px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  user-select: none;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.field-error {
  min-height: 18px;
  color: rgba(255, 142, 142, 0.95);
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Success box */
.success-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(55, 255, 180, 0.08);
  border: 1px solid rgba(55, 255, 180, 0.18);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  animation: popIn 260ms ease-out;
}
.success-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(55, 255, 180, 0.14);
  border: 1px solid rgba(55, 255, 180, 0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
}
@keyframes popIn {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Hide [hidden] attribute globally */
[hidden] {
  display: none !important;
}

/* --- Footer --- */
.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer p { margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  z-index: 999;
}
.back-to-top:hover { background: rgba(255,255,255,0.10); }
.back-to-top:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .cta-top { display: none; } /* keep header clean on mobile */
  .nav.is-open {
    display: grid;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(11,18,32,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 560px) {
  .cards-3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 78px 0 56px; }
}
