/* =========================================================
   TRIO PROJE — Ofis Mobilyası Montajı
   Design system: dark canvas + gold accent + red square
   ========================================================= */

:root {
  /* Colors */
  --bg: #0c0c0d;
  --bg-elevated: #141416;
  --bg-card: #1c1c20;
  --gold: #c8962e;
  --gold-light: #d4a23c;
  --gold-dark: #9c7322;
  --red: #e23b2e;
  --white: #ffffff;
  --text-muted: #b8b8b8;
  --border: rgba(200, 150, 46, 0.14);
  --border-soft: rgba(255, 255, 255, 0.07);
  --gold-gradient: linear-gradient(135deg, #d4a23c 0%, #c8962e 45%, #9c7322 100%);

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Spacing */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(80px, 10vw, 160px);
  --radius: 14px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(200, 150, 46, 0.3); color: #fff; }

/* Accessible focus ring (review fix: 14% gold border too low-contrast for focus) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible { outline-offset: 4px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tint { background: var(--bg-elevated); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--white); margin: 0; }

.display {
  font-size: clamp(2.5rem, 1.4rem + 4.9vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s var(--ease);
}
.is-visible .eyebrow::before,
.eyebrow.is-visible::before { transform: scaleX(1); }

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
}
p { color: var(--text-muted); }
.muted { color: var(--text-muted); }
.gold-text { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  z-index: -1;
}
.btn--primary:hover {
  color: #0c0c0d;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200, 150, 46, 0.25);
}
.btn--primary:hover::before { opacity: 1; }

.btn--ghost {
  color: var(--white);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 12, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* Logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo .sq {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--red);
  flex: none;
}
.logo .trio { color: var(--white); }
.logo .divider { width: 1px; height: 22px; background: #3a3a3a; }
.logo .proje { color: var(--gold); font-weight: 500; letter-spacing: 0.12em; }

/* Nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--white); }

.header-cta { display: inline-flex; align-items: center; gap: 14px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: clamp(70px, 9vw, 130px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 900px;
  height: 700px;
  max-width: 120vw;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 150, 46, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 860px; }
.hero .display { margin-bottom: 26px; }
.hero .display .gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--border-soft);
  padding-top: clamp(32px, 4vw, 48px);
}
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1, 'lnum' 1; /* tabular figures: no jitter during count-up */
  font-variant-numeric: tabular-nums lining-nums;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat .label { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 150, 46, 0.45);
  box-shadow: 0 0 0 1px rgba(200, 150, 46, 0.25), 0 16px 40px rgba(200, 150, 46, 0.10);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(200, 150, 46, 0.08);
  border: 1px solid var(--border);
  margin-bottom: 22px;
  color: var(--gold);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  counter-reset: step;
}
.step { position: relative; padding-top: 14px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
}
.step .num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.about-text p { margin: 0 0 18px; }
.about-text p:last-child { margin-bottom: 0; }
.highlights { display: grid; gap: 16px; }
.highlight {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.highlight:hover { border-color: rgba(200, 150, 46, 0.4); transform: translateX(4px); }
.highlight .check {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: rgba(200, 150, 46, 0.12);
  color: var(--gold);
  margin-top: 2px;
}
.highlight .check svg { width: 15px; height: 15px; }
.highlight h4 { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 4px; color: var(--white); }
.highlight p { margin: 0; font-size: 0.9rem; }

/* ---------- References ---------- */
.partner-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.partner-note .pn-mark {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.partner-note .pn-mark .sq { width: 10px; height: 10px; border-radius: 2px; background: var(--red); }
.partner-note p { margin: 0; font-size: 0.96rem; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 10px;
}
.testimonial blockquote { margin: 0 0 22px; color: var(--white); font-size: 1rem; line-height: 1.65; }
.testimonial .author { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-gradient);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #0c0c0d;
  flex: none;
}
.testimonial .author .name { font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 0.96rem; }
.testimonial .author .role { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.contact-info { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(200, 150, 46, 0.08);
  border: 1px solid var(--border);
  color: var(--gold);
}
.info-item .ic svg { width: 22px; height: 22px; }
.info-item .k { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.info-item .v { font-family: var(--font-head); font-weight: 500; color: var(--white); font-size: 1.02rem; }
.info-item a.v:hover { color: var(--gold); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #5a5a5e; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 46, 0.12);
}
.form-note { margin-top: 14px; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(200, 150, 46, 0.1);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 0.92rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; margin: 0; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col li { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .made .sq { width: 8px; height: 8px; border-radius: 1px; background: var(--red); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Floating WhatsApp/Contact ---------- */
.float-cta {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #0c0c0d;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(200, 150, 46, 0.3);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.float-cta.show { transform: none; opacity: 1; pointer-events: auto; }
.float-cta:hover { transform: translateY(-2px); }
.float-cta svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 12, 13, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 6px; font-size: 1rem; border-bottom: 1px solid var(--border-soft); }
  .nav a::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .partner-note { flex-direction: column; align-items: flex-start; }
  .logo { font-size: 1.2rem; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
