/* =========================================================
   ASİLTAŞ GRUP İNŞAAT — Stil dosyası
   Koyu & kurumsal tema, altın vurgu
   ========================================================= */

:root {
  --bg:        #0e1116;
  --bg-alt:    #141922;
  --surface:   #1a2029;
  --surface-2: #20283340;
  --line:      #2a3340;
  --text:      #e7ebf0;
  --muted:     #9aa6b4;
  --gold:      #c9a24b;
  --gold-soft: #e3c780;
  --gold-dim:  #c9a24b22;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 18px 40px -20px rgba(0,0,0,.6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .85rem;
}

.section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1405;
  box-shadow: 0 10px 26px -10px var(--gold);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(14,17,22,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { color: var(--gold); display: flex; }
.brand__text strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: .14em;
  font-weight: 800;
}
.brand__text small {
  display: block;
  font-size: .62rem;
  letter-spacing: .34em;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .9rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--gold-soft); }
.nav__cta {
  margin-left: .4rem;
  color: var(--gold-soft) !important;
  border: 1px solid var(--line);
}
.nav__cta:hover { border-color: var(--gold); background: var(--gold-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
  padding-bottom: 2rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,17,22,.82) 0%, rgba(17,22,31,.86) 55%, var(--bg) 100%),
    radial-gradient(1200px 600px at 75% -10%, rgba(36,48,68,.5) 0%, transparent 60%),
    url("../assets/hero.jpg") center/cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .25;
  mask-image: radial-gradient(80% 70% at 70% 20%, #000 0%, transparent 75%);
}
.hero__overlay {
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__content { position: relative; z-index: 2; padding-block: 3rem 2rem; }
.hero__eyebrow {
  font-size: .82rem; letter-spacing: .3em; color: var(--gold);
  font-weight: 700; margin-bottom: 1.2rem;
}
.hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 1.4rem;
}
.hero__title span {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.5rem;
}
.stat {
  background: var(--bg-alt);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ============ SECTIONS ============ */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ HAKKIMIZDA ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media { position: relative; min-height: 440px; }
.about__img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about__img--1 {
  inset: 0 30% 22% 0;
  background: url("../assets/about-2.jpg") center/cover no-repeat, #161d27;
}
.about__img--2 {
  inset: 35% 0 0 32%;
  background: url("../assets/about-1.jpg") center/cover no-repeat, #211a0e;
}
.about__badge {
  position: absolute;
  left: 0; bottom: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1405;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .7rem;
  box-shadow: 0 14px 30px -12px var(--gold);
  z-index: 3;
}
.about__badge strong { font-size: 2rem; font-family: "Playfair Display", serif; line-height: 1; }
.about__badge span { font-size: .8rem; font-weight: 700; line-height: 1.2; }

.about__text > p { color: var(--muted); margin-top: 1rem; }
.values { margin-top: 2rem; display: grid; gap: 1.2rem; }
.value { display: flex; gap: 1rem; }
.value__icon { color: var(--gold); font-size: 1rem; margin-top: .25rem; }
.value h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* ============ HİZMETLER ============ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: #1d2530;
}
.service-card__icon {
  font-size: 1.9rem;
  display: inline-block;
  margin-bottom: 1rem;
  filter: saturate(1.1);
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ============ PROJELER ============ */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-6px); border-color: var(--gold); }
.project__img {
  height: 210px;
  background-image: var(--img);
  background-size: cover;
  position: relative;
}
.project__img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45));
}
.project__body { padding: 1.5rem 1.5rem 1.7rem; }
.project__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.project__tag--done { background: var(--gold-dim); color: var(--gold-soft); }
.project__tag--live {
  background: #1e3a2a; color: #6fe3a4;
}
.project h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.project__meta { color: var(--gold-soft); font-size: .85rem; margin-bottom: .6rem; font-weight: 500; }
.project__body p:last-child { color: var(--muted); font-size: .95rem; }

/* ============ DEVAM EDEN ============ */
.ongoing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.ongoing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ongoing-card__img {
  height: 180px;
  background-image: var(--img);
  background-size: cover;
}
.ongoing-card__body { padding: 1.5rem; }
.ongoing-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.ongoing-card__body > p { color: var(--muted); font-size: .95rem; }

.progress {
  margin-top: 1.2rem;
  height: 12px;
  background: #0e131b;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 1.4s var(--ease);
}
.progress__bar span {
  font-size: .68rem;
  font-weight: 700;
  color: #1a1405;
  padding-right: .55rem;
}

/* ============ NEDEN BİZ ============ */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why__item {
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition: border-color .3s, transform .3s var(--ease);
}
.why__item:hover { border-color: var(--gold); transform: translateY(-4px); }
.why__num {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  color: var(--gold);
  opacity: .55;
  display: block;
  margin-bottom: .6rem;
}
.why__item h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.why__item p { color: var(--muted); font-size: .93rem; }

/* ============ İLETİŞİM ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__info > p { color: var(--muted); margin-top: 1rem; max-width: 440px; }
.contact__list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico {
  font-size: 1.2rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-shrink: 0;
}
.contact__list strong { font-weight: 700; }
.contact__list a:hover { color: var(--gold-soft); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: #0e131b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5e6b7a; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c0563f; }
.form-status {
  margin-top: 1rem;
  font-size: .9rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.ok { color: #6fe3a4; }
.form-status.err { color: #e8896f; }

/* ============ FOOTER ============ */
.footer {
  background: #0a0d12;
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__brand p { color: var(--muted); margin-top: 1rem; font-size: .93rem; max-width: 320px; }
.footer h4 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__nav a, .footer__contact a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-soft); }
.footer__contact p { color: var(--muted); font-size: .93rem; margin-bottom: .4rem; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 1.3rem; }
.footer__bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer__bottom p { color: #6b7888; font-size: .85rem; }

/* ============ TO TOP ============ */
.to-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #1a1405;
  border-radius: 50%;
  font-size: 1.3rem; font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .services, .projects, .ongoing { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14,17,22,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 1.5rem;
    gap: .2rem;
    transform: translateY(-150%);
    transition: transform .4s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: .85rem .6rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: .6rem 0 0; text-align: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding-top: 120px; }
}

@media (max-width: 520px) {
  .services, .projects, .ongoing, .why { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* Erişilebilirlik: hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
