/* ED Legal — style.css
 * Single-page corporate site
 * Palette: warm ivory + ink + burgundy + deep teal + brass
 */

/* ---------- Tokens ---------- */
:root {
  --ivory:     #FFFFFF;
  --cream:     #F2EBDF;
  --ink:       #1F1A17;
  --taupe:     #5E5550;
  --divider:   #E5DCCB;
  --burgundy:  #5C0C0F;
  --burgundy-soft: #7A1F22;
  --teal-deep: #1F3A36;
  --mauve:     #9A7E7B;
  --brass:     #A88B5C;
  --white:     #FFFFFF;

  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1200px;
  --section-py: 120px;
  --nav-h: 144px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--teal-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.2;
}

h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #808080;
  margin-bottom: 24px;
  display: inline-block;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
}

.muted {
  color: var(--taupe);
}

.small {
  font-size: 14.5px;
  color: var(--taupe);
}

.hairline {
  width: 60px;
  height: 2px;
  background: var(--burgundy);
  border: 0;
  margin: 32px 0 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-py) 0;
  scroll-margin-top: var(--nav-h);
}

section.tinted { background: var(--ivory); }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin-top: 24px; }

.section-head-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head-centered h2 { margin-bottom: 18px; }
.section-head-centered p { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--divider);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-logo img { height: 120px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--burgundy);
  transition: width .25s var(--ease);
}
.nav-menu a:hover { color: var(--burgundy); }
.nav-menu a:hover::after { width: 100%; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.lang span.active { color: var(--burgundy); }
.lang span.inactive {
  color: var(--mauve);
  cursor: not-allowed;
  opacity: 0.55;
}
.lang a.lang-link {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.lang a.lang-link:hover { color: var(--burgundy); }
.lang .sep { color: var(--divider); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 11vh, 120px) 0 clamp(40px, 5vh, 56px);
  overflow: hidden;
}

#hakkimizda { padding-top: clamp(40px, 5vh, 56px); }

.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.hero-text {
  order: 2;
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 28px;
}

.hero .lead {
  margin-bottom: 22px;
}

.hero .intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--taupe);
}

.hero-image {
  order: 1;
  position: relative;
  margin: 0;
  width: clamp(320px, 36vw, 460px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 24px 60px -28px rgba(31, 26, 23, 0.35);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-rule {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--burgundy);
  pointer-events: none;
}

/* ---------- Hakkımızda ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.about-text p { font-size: 16.5px; }
.about-text p:first-child { margin-top: 0; }
.about-text p.small { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--divider); }

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 24px 60px -28px rgba(31, 26, 23, 0.30);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Çalışma Düzenimiz ---------- */
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.approach-card {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 40px 32px 36px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.approach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 26, 23, 0.06);
}
.approach-card .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--brass);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.approach-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.approach-card p {
  font-size: 15.5px;
  color: var(--taupe);
  margin: 0;
}

/* ---------- Hizmet Alanları ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 36px 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 26, 23, 0.06);
}
.service-card .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}
.service-card h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 18px;
}
.service-card p {
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.65;
  margin: 0 0 12px;
}
.service-card p:last-child { margin-bottom: 0; }

.service-card.full {
  grid-column: 1 / -1;
  background: var(--ivory);
  border-top: 2px solid var(--burgundy);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.service-card.full .head h3 {
  font-size: 26px;
  margin-bottom: 0;
}
.service-card.full .num { margin-bottom: 12px; }
.service-card.full p { font-size: 16px; }

/* ---------- Ekibimiz ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.team-grid .partners {
  display: contents;
}

.team-grid .associates {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 720px;
  margin: 16px auto 0;
}

.team-card { display: flex; flex-direction: column; }

.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 24px;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
}
.team-card .role {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  display: block;
}
.team-card p {
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.65;
  margin: 0;
}

/* ---------- İletişim ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info {
  margin: 0;
}
.contact-info dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #808080;
  margin-bottom: 8px;
}
.contact-info dd {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.contact-info dd:last-child { margin-bottom: 0; }
.contact-info dd a {
  color: var(--burgundy);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.contact-info dd a:hover { border-bottom-color: var(--burgundy); }

.contact-map {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--divider);
  border-radius: 2px;
  overflow: hidden;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--ivory);
  border: 1px solid var(--divider);
  padding: 36px 32px;
  border-radius: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--divider);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #B0A99F; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(92, 12, 15, 0.08);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--taupe) 50%),
    linear-gradient(135deg, var(--taupe) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.btn-submit {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal-deep);
  border: 0;
  border-radius: 2px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn-submit:hover { background: #2A504A; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.form-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--taupe);
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-deep);
  color: var(--cream);
  border-top: 1px solid var(--teal-deep);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.footer a {
  color: var(--cream);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s var(--ease);
}
.footer a:hover { opacity: 1; color: var(--cream); }
.footer a svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --section-py: 80px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { order: 0; }
  .hero-image { order: 0; width: 100%; max-width: 480px; aspect-ratio: 16 / 11; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 480px; margin: 0; }
  .approach-cards { grid-template-columns: 1fr; gap: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service-card.full {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 28px;
  }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .team-grid .partners > .team-card:nth-child(3) { grid-column: 1 / -1; max-width: 360px; margin: 0 auto; }
  .team-grid .associates { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 32px 32px;
    transform: translateY(-110%);
    transition: transform .3s var(--ease);
    visibility: hidden;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--divider);
    width: 100%;
  }
  .nav-menu a::after { display: none; }
}

@media (max-width: 600px) {
  :root { --section-py: 64px; }
  .container { padding: 0 22px; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-grid .partners > .team-card:nth-child(3) { max-width: none; }
  .team-grid .associates { grid-template-columns: 1fr; max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-decor { width: 360px; height: 360px; right: -180px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
