/* =========================
   Modayapı Arsa - One Page
   ========================= */

:root{
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --text: #0B1220;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.12);

  --primary: #0F172A;     /* lacivert/füme */
  --accent: #D4A373;      /* altın vurgu */

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.08);

  --container: 1160px;
  --gutter: 18px;

  --header-h: 74px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img{
  max-width: 100%;
  display: block;
}

a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 14px; }
ul{ margin: 0; padding: 0; list-style: none; }

.container{
  width: min(var(--container), calc(100% - 2*var(--gutter)));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  color: var(--primary);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(212,163,115,.45), transparent 60%),
    radial-gradient(60% 60% at 70% 70%, rgba(15,23,42,.25), transparent 60%),
    linear-gradient(135deg, var(--primary), rgba(15,23,42,.85));
  box-shadow: 0 10px 20px rgba(15,23,42,.15);
}
.brand-text strong{
  display: block;
  font-size: 14px;
  letter-spacing: .2px;
}
.brand-text small{
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Nav */
.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.nav-link{
  font-size: 13px;
  color: rgba(15,23,42,.86);
  padding: 10px 10px;
  border-radius: 10px;
}
.nav-link:hover{
  background: rgba(15,23,42,.06);
}

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

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle-lines{
  width: 20px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 0/100% 2px,
    linear-gradient(var(--primary), var(--primary)) 0 50%/100% 2px,
    linear-gradient(var(--primary), var(--primary)) 0 100%/100% 2px;
  background-repeat: no-repeat;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.20);
}
.btn-primary:hover{ box-shadow: 0 14px 28px rgba(15,23,42,.24); }

.btn-outline{
  background: transparent;
  color: var(--primary);
  border-color: rgba(15,23,42,.22);
}
.btn-outline:hover{ background: rgba(15,23,42,.06); }

.btn-ghost{
  background: rgba(255,255,255,.6);
  color: var(--primary);
  border-color: rgba(15,23,42,.14);
}
.btn-ghost:hover{ background: rgba(255,255,255,.9); }

.btn-sm{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Hero */
.hero{
  padding: 46px 0 18px;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items: center;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(212,163,115,.14);
  color: rgba(15,23,42,.92);
  border: 1px solid rgba(212,163,115,.30);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 14px;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.6px;
}
.hero-subtitle{
  margin: 0 0 18px;
  color: rgba(71,85,105,.98);
  font-size: 16px;
  max-width: 58ch;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-trust{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-trust li{
  font-size: 13px;
  color: rgba(15,23,42,.84);
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.10);
  padding: 8px 10px;
  border-radius: 999px;
}

.hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
}
.hero-media img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-card{
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 14px 28px rgba(15,23,42,.16);
}
.hero-card-title{
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: .1px;
}
.hero-card-text{
  margin: 0;
  color: rgba(71,85,105,.96);
  font-size: 14px;
}

/* Sections */
.section{
  padding: 18px 0 56px;
}
.block{
  padding: 22px 0;
  scroll-margin-top: calc(var(--header-h) + 10px);
}

.section-head{
  margin-bottom: 14px;
}
.section-head-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.2px;
}
.section-desc{
  margin: 0;
  color: rgba(71,85,105,.98);
  max-width: 80ch;
}

/* Layout with sticky aside */
.content-layout{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}
.content-main{
  min-width: 0;
}

/* About */
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}
.about-text{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.about-media{
  display: grid;
  gap: 12px;
}
.media-card{
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.media-card img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.media-card figcaption{
  padding: 12px 14px;
  color: rgba(71,85,105,.98);
  font-size: 13px;
}

.micro-cta{
  margin-top: 14px;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(212,163,115,.30);
  background: rgba(212,163,115,.12);
}
.micro-cta-title{
  margin: 0 0 4px;
  font-weight: 800;
}
.micro-cta-text{
  margin: 0 0 10px;
  color: rgba(71,85,105,.98);
}
.micro-cta-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Profile cards */
.profile-cards{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.card{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: var(--shadow-soft);
}
.card h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.1px;
}
.card p{ color: rgba(71,85,105,.98); }
.list{
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
  color: rgba(71,85,105,.98);
}
.list li{ margin: 6px 0; }

/* Grid spans */
.profile-cards .card:nth-child(1){ grid-column: span 6; }
.profile-cards .card:nth-child(2){ grid-column: span 6; }
.profile-cards .card:nth-child(3){ grid-column: span 6; }
.profile-cards .card:nth-child(4){ grid-column: span 6; }

/* Filters */
.filters{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.chip{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.7);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: rgba(15,23,42,.92);
}
.chip:hover{ background: rgba(15,23,42,.06); }
.chip.is-active{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Projects */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.project-card{
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .12s ease;
}
.project-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15,23,42,.14);
}
.project-card img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.project-body{
  padding: 14px 14px 16px;
}
.project-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tag{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212,163,115,.30);
  background: rgba(212,163,115,.12);
}
.tag-muted{
  border-color: rgba(15,23,42,.14);
  background: rgba(15,23,42,.05);
}
.project-card h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.1px;
}
.project-card p{
  margin: 0;
  color: rgba(71,85,105,.98);
  font-size: 14px;
}
.project-card.is-hidden{
  display: none;
}

/* Tabs */
.tabs{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.tab-list{
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
}
.tab{
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: rgba(15,23,42,.92);
}
.tab.is-active{
  background: var(--primary);
  color: #fff;
}
.tab-panels{
  margin-top: 12px;
}
.tab-panel{
  display: none;
}
.tab-panel.is-active{
  display: block;
}
.mini-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.mini-card{
  grid-column: span 4;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(245,247,251,.8);
  border-radius: 14px;
  padding: 14px;
}
.mini-card h3{
  margin: 0 0 6px;
  font-size: 15px;
}
.mini-card p{
  margin: 0;
  color: rgba(71,85,105,.98);
  font-size: 14px;
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.contact-card, .form-card{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3, .form-card h3{
  margin: 0 0 10px;
}
.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.contact-details p{
  margin: 0 0 8px;
  color: rgba(71,85,105,.98);
}
.contact-details a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map{
  margin-top: 12px;
}
.map-placeholder{
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px dashed rgba(15,23,42,.22);
  background: rgba(245,247,251,.9);
  color: rgba(71,85,105,.98);
  font-weight: 700;
  text-align: center;
  padding: 16px;
}

/* Form */
.contact-form{
  display: grid;
  gap: 12px;
}
.field label{
  display: inline-block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 13px;
}
.field input, .field textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  background: #fff;
  outline: none;
  font: inherit;
}
.field input:focus, .field textarea:focus{
  border-color: rgba(212,163,115,.65);
  box-shadow: 0 0 0 4px rgba(212,163,115,.18);
}
.hint{
  display: none;
  color: #B42318;
  font-weight: 600;
  margin-top: 6px;
}
.field.is-invalid .hint{ display: block; }
.field.is-invalid input,
.field.is-invalid textarea{
  border-color: rgba(180,35,24,.55);
  box-shadow: 0 0 0 4px rgba(180,35,24,.10);
}
.form-note{
  margin: 0;
  color: rgba(71,85,105,.98);
  font-size: 13px;
}
.form-status{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(71,85,105,.98);
}
.form-status.is-success{ color: #067647; }
.form-status.is-error{ color: #B42318; }

/* Sticky Aside */
.services-aside{
  position: sticky;
  top: calc(var(--header-h) + 14px);
  align-self: start;
}
.aside-inner{
  background: var(--surface);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.aside-head h2{
  margin: 0 0 6px;
  font-size: 18px;
}
.aside-desc{
  margin: 0 0 10px;
  color: rgba(71,85,105,.98);
}
.services-list{
  display: grid;
  gap: 10px;
}
.service-item{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(245,247,251,.8);
  border-radius: 14px;
  padding: 12px;
}
.service-item h3{
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: -0.1px;
}
.service-item p{
  margin: 0;
  color: rgba(71,85,105,.98);
  font-size: 13px;
}
.aside-cta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15,23,42,.10);
}
.aside-cta-title{
  margin: 0 0 8px;
  font-weight: 900;
}
.aside-cta a{ width: 100%; }
.aside-cta a + a{ margin-top: 8px; }

/* Footer */
.footer{
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-left span{
  display: block;
  color: rgba(71,85,105,.98);
  font-size: 13px;
}
.footer-link{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sep{
  opacity: .6;
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 1024px){
  .header-inner{
    grid-template-columns: 240px 1fr auto;
  }
  .content-layout{
    grid-template-columns: 1fr 330px;
  }
  .project-card{ grid-column: span 6; }
  .mini-card{ grid-column: span 6; }
}

@media (max-width: 860px){
  :root{ --header-h: 66px; }

  .header-inner{
    grid-template-columns: 1fr auto;
  }

  .nav-toggle{ display: inline-flex; }
  .header-cta{ display: none; }

  .nav{
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(245,247,251,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav.is-open{ display: flex; }
  .nav-link{
    padding: 12px 12px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.10);
  }

  .hero-grid{
    grid-template-columns: 1fr;
  }

  .about-grid{
    grid-template-columns: 1fr;
  }

  .content-layout{
    grid-template-columns: 1fr;
  }

  .services-aside{
    position: static;
    order: 2;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .project-card{ grid-column: span 12; }
  .mini-card{ grid-column: span 12; }
  .profile-cards .card{ grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
/* Mobil menü CTA */
.nav-cta{
  display: none;
  gap: 10px;
  margin-top: 10px;
}
.nav-cta-btn{
  width: 100%;
}

/* Proje kartı CTA alanı */
.project-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobilde nav açılınca CTA görünür */
@media (max-width: 860px){
  .nav-cta{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
