@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #fff;
  --surface: #f5f5f3;
  --ink: #171818;
  --secondary: #444847;
  --line: #d9dcd9;
  --control-line: #858887;
  --accent: #315678;
  --page-gutter: clamp(20px, 5vw, 80px);
  --grid-gap: clamp(16px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.58 "DM Sans", sans-serif;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; letter-spacing: -.018em; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

main:focus-visible, section:focus-visible { outline-offset: -3px; }

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

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: var(--page-gutter);
  padding: 8px 16px;
  min-height: 44px;
  background: var(--white);
}

.button, .filter-bar button, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 19px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover, .button-primary:focus-visible { background: var(--accent); }

.button-outline {
  background: var(--white);
  border-color: var(--control-line);
}

.button-outline:hover, .button-outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.site-header { border-bottom: 1px solid var(--line); }

.header-layout {
  display: grid;
  min-height: 76px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand nav contact";
  align-items: center;
  column-gap: 20px;
}

.wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.site-header .wordmark { grid-area: brand; justify-self: start; }

.site-nav {
  display: flex;
  grid-area: nav;
  gap: clamp(12px, 2vw, 30px);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.header-actions {
  grid-area: contact;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
}
.language-switch { display: flex; align-items: center; gap: 5px; font-size: .875rem; }
.language-switch a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.language-switch a:hover, .language-switch a[aria-current="page"] { text-decoration: underline; }
.question-link { display: block; padding-block: 13px; }

.menu-toggle, .mobile-contact { display: none; }

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  padding-block: clamp(32px, 4vw, 58px) clamp(48px, 5.25vw, 76px);
}

.hero-copy { grid-column: span 5; }

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: .99;
  letter-spacing: -.052em;
}

:lang(en) .hero h1 { font-size: clamp(2.75rem, 4.75vw, 4.375rem); }

.hero-copy p {
  max-width: 36ch;
  margin-top: 24px;
  color: var(--secondary);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-image {
  display: block;
  grid-column: span 7;
  background: var(--surface);
}

.hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: 52% center;
}

.section { padding-block: clamp(46px, 5.5vw, 80px); }
.section-muted { background: var(--surface); }

.service-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px var(--grid-gap);
}

.service-grid { align-items: start; margin-top: 28px; }

.service-card {
  grid-column: span 4;
  min-width: 0;
  scroll-margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.service-card > a {
  display: grid;
  grid-template-rows: minmax(2.25em, auto) 1fr auto;
  min-height: 153px;
  gap: 4px;
  padding: 17px 19px 14px;
}

.service-card > a:hover, .service-card > a:focus-visible { background: #fafbf9; }

.service-card-featured {
  grid-column: span 6;
  align-self: stretch;
  background: #eaf0f4;
  border-top: 3px solid var(--accent);
}

.service-card-featured > a {
  height: 100%;
  min-height: 184px;
  grid-template-rows: auto 1fr auto;
  gap: 9px;
  padding: clamp(19px, 2.6vw, 36px);
}

.service-card-featured .service-title { font-size: clamp(1.625rem, 3vw, 2.625rem); }
.service-card-featured .service-description { max-width: 52ch; }

.service-title {
  align-self: start;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.12;
}
.service-description, .project p, .project-note, .section-lead { color: var(--secondary); }

.service-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-weight: 700;
}

.service-action::after, .question summary::after {
  content: "+" / "";
  flex: 0 0 14px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.question[open] > summary::after {
  content: "−" / "";
}

.project > a { display: block; text-decoration: none; }
.service-card > a { color: inherit; text-decoration: none; }
.service-action::after { content: "→" / ""; }
.project > a:hover h3, .project > a:focus-visible h3 {
  color: var(--accent);
  text-decoration: underline;
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 25px;
}

.project-note { margin-top: 5px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-bar button { background: var(--white); border-color: var(--line); padding-inline: 15px; }
.filter-bar button:hover { border-color: var(--accent); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.project-grid { row-gap: 28px; }

.project { grid-column: span 4; min-width: 0; }

.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.53;
  object-fit: cover;
  background: var(--surface);
}

.project h3 { margin-top: 11px; }
.project p { margin-top: 4px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--grid-gap);
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  counter-reset: step;
}

.process-grid li {
  min-width: 0;
  border-top: 1px solid #adb6b7;
  padding-top: 14px;
  counter-increment: step;
}

.process-grid li::before {
  content: counter(step);
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
  color: var(--accent);
}

.process-grid h3 { line-height: 1.22; }
.process-grid p { margin-top: 7px; color: var(--secondary); }

.faq-layout, .contact-layout, .footer-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}

.faq-heading { grid-column: span 4; }
.faq-content { grid-column: 5 / -1; min-width: 0; }

/* Filtreler etkinleşene kadar yerlerini ayır; JavaScript kapalıyken gizli kalırlar. */
.js .faq-controls[hidden] { display: block !important; visibility: hidden; }
.js .filter-bar[hidden] { display: flex !important; visibility: hidden; }

.faq-controls {
  max-width: 320px;
  margin-top: 20px;
}

.faq-controls label, .field label { display: block; margin-bottom: 5px; font-weight: 700; }

.field input, .field textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--control-line);
  border-radius: 5px;
  padding: 8px 11px;
  background: var(--white);
}

select { padding-right: 24px; }

.question { border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
#faq-list { border-top: 1px solid var(--line); }

.question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  padding-block: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.question summary:hover, .question summary:focus-visible,
.question[open] > summary { color: var(--accent); }

.question summary::after { color: var(--accent); }
.question p { max-width: 68ch; padding: 0 26px 14px 0; color: var(--secondary); }
.all-questions { margin-top: 18px; }

.contact-info { grid-column: span 4; }
.section-lead { max-width: 34ch; margin-top: 12px; }

address { font-style: normal; overflow-wrap: anywhere; }

.contact-info address {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #adb6b7;
}

.contact-info address p + p { margin-top: 12px; }
.contact-info address strong { display: block; }
.contact-info address span { color: var(--secondary); }

address a { color: var(--accent); }

.contact-form {
  grid-column: 6 / -1;
  min-width: 0;
  padding: clamp(18px, 2.7vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
}

.form-pair {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
}

.field { min-width: 0; }
.contact-form > .field, .contact-form > button { margin-top: 16px; }
.field label span { font-weight: 400; color: var(--secondary); }
.field textarea { resize: vertical; }

.form-status:not(:empty) {
  margin-top: 12px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.site-footer { padding-block: 34px 40px; border-top: 1px solid var(--line); }
.footer-office, .footer-contact { grid-column: span 3; }
.footer-services { grid-column: span 6; }
.footer-registration { margin-top: 12px; }
.footer-layout h2 { margin-bottom: 10px; font-size: 1.125rem; letter-spacing: -.02em; }
.footer-layout a:hover { color: var(--accent); }
.footer-layout a:not(:hover):not(:focus-visible) { text-decoration: none; }
.footer-contact p + p { margin-top: 4px; }

.footer-services ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1000px) {
  .header-layout {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand menu contact" "nav nav nav";
    grid-template-rows: minmax(64px, auto) auto;
    column-gap: 10px;
  }

  .js .menu-toggle {
    display: inline-flex;
    grid-area: menu;
    background: var(--surface);
    border-color: var(--line);
  }

  .menu-icon {
    position: relative;
    width: 12px;
    height: 12px;
  }

  .menu-icon::before, .menu-icon::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 3px;
    border-top: 2px solid currentColor;
  }
  .menu-icon::after { top: 8px; }
  [aria-expanded="true"] .menu-icon::before { top: 5px; transform: rotate(45deg); }
  [aria-expanded="true"] .menu-icon::after { top: 5px; transform: rotate(-45deg); }

  .language-switch a { justify-content: center; }
  .breadcrumb li { display: flex; align-items: center; }
  .wordmark, .site-footer a, address a, .language-switch a, .breadcrumb a, .project-service a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }

  .site-nav {
    display: block;
    padding-bottom: 12px;
  }

  .js .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .site-nav a { border-top: 1px solid var(--line); }

  .hero h1 { font-size: clamp(2.75rem, 6.2vw, 4.375rem); }
  .service-card, .project { grid-column: span 6; }

  .process-grid { gap: 16px; }

  .footer-office, .footer-contact { grid-column: span 6; }
  .footer-services { grid-column: span 12; }
}

@media (max-width: 700px) {
  .hero { row-gap: 26px; }
  .hero-copy, .hero-image { grid-column: span 12; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .hero-copy p { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .hero-image img { aspect-ratio: 1.38; }

  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-grid li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    padding-block: 12px;
  }

  .process-grid li::before { grid-row: span 2; margin: 0; }
  .process-grid p { grid-column: 2; margin-top: 4px; }

  .faq-heading, .faq-content, .contact-info, .contact-form { grid-column: span 12; }

  .footer-office, .footer-contact { grid-column: span 12; }
}

@media screen and (max-width: 700px) {
  html {
    overflow: hidden;
    --contact-height: max(44px, calc(1.25rem + 18px));
    --contact-bottom: max(12px, env(safe-area-inset-bottom));
    --contact-space: calc(var(--contact-height) + var(--contact-bottom) + 8px);
  }

  body {
    /* İçerik, sabit WhatsApp bağlantısının üstünde kayar. */
    position: relative;
    height: calc(100vh - var(--contact-space));
    height: calc(100dvh - var(--contact-space));
    overflow: auto;
  }

  .mobile-contact {
    display: inline-flex;
    position: fixed;
    z-index: 2;
    right: max(16px, env(safe-area-inset-right));
    bottom: var(--contact-bottom);
    min-height: var(--contact-height);
    padding: 8px 14px;
    font-size: 1rem;
    border-color: var(--white);
  }
}

@media (max-width: 540px) {
  .header-layout { min-height: 0; column-gap: 7px; }
  .header-layout .button, .menu-toggle { min-height: 44px; padding-inline: 11px; font-size: 1rem; }
  .site-header .wordmark { font-size: 1rem; }
  .header-contact { display: none; }

  .hero-actions .button { padding-inline: 13px; }

  .service-card, .project { grid-column: span 12; }
  .service-card > a { grid-template-rows: auto; min-height: 0; }
  .service-action { margin-top: 5px; }
  .project-grid { row-gap: 22px; }

  .form-pair { grid-template-columns: minmax(0, 1fr); }

  .footer-services ul { grid-template-columns: minmax(0, 1fr); }
}

.breadcrumb {
  padding-block: 16px;
  color: var(--secondary);
  font-size: .9375rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/" / "";
  margin-inline-end: 10px;
}

.page-intro {
  padding-block: clamp(20px, 3.5vw, 48px) clamp(28px, 4vw, 58px);
}

.page-title {
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: .99;
  letter-spacing: -.052em;
  overflow-wrap: anywhere;
}

.page-intro > p { max-width: 65ch; }
.content-column { max-width: 72ch; }
.text-sections { padding-bottom: clamp(32px, 5vw, 64px); }
.text-section + .text-section, .guide-lead + .text-section { margin-top: clamp(28px, 4vw, 48px); }
.text-section p, .guide-list p { margin-top: 12px; }
.related-lead { max-width: 72ch; }
.guide-date { margin-top: 20px; color: var(--secondary); }
.guide-lead { font-size: 1.125rem; }
[data-guide-copy] a { overflow-wrap: anywhere; }
.guide-list { list-style: none; margin-block: 0 clamp(32px, 5vw, 64px); padding: 0; }
.guide-list li { max-width: 72ch; border-top: 1px solid var(--line); padding-block: 20px; }
.guide-list h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.guide-sources { margin-top: clamp(28px, 4vw, 48px); overflow-wrap: anywhere; }
.guide-links { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.content-list { margin: 18px 0 0; padding-inline-start: 21px; }
.content-list li + li { margin-top: 5px; }
.service-process { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.listing-section { padding-top: 0; }
.project-detail { padding-top: 0; }

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: var(--grid-gap);
}

.project-feature {
  width: 100%;
  height: auto;
  background: var(--surface);
}

.project-facts h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.project-facts dl { margin: 16px 0 0; }

.project-facts dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding-block: 7px;
  border-top: 1px solid var(--line);
}

.project-facts dt { font-weight: 700; }
.project-facts dd { margin: 0; color: var(--secondary); overflow-wrap: anywhere; }
.project-text { margin-top: 22px; }
.project-service { margin-top: 18px; }

@media (max-width: 700px) {
  .service-process, .project-detail-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .breadcrumb li { overflow-wrap: anywhere; }
  .project-facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (min-width: 1001px) {
  .site-header-with-tools .header-layout {
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    column-gap: clamp(12px, 1.6vw, 20px);
  }

  .site-header-with-tools .site-nav { gap: clamp(12px, 1.55vw, 24px); }
  .site-header-with-tools .site-nav a { font-size: .9375rem; }
}

.calculator-intro { padding-bottom: clamp(20px, 3vw, 36px); }
.calculator-intro .page-title { font-size: clamp(2.4rem, 4.8vw, 4.75rem); }
.calculator-section { margin-bottom: clamp(32px, 5vw, 64px); }

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border-block: 1px solid var(--line);
}

.calculator-form, .calculator-result { padding: clamp(20px, 3vw, 40px); }
.calculator-form { background: var(--surface); }
.calculator-result { border-inline-start: 1px solid var(--line); }
.calculator-result h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); margin-bottom: 12px; }
#calculator-result-title { scroll-margin-top: 16px; }
.calculator-result > p, .calculator-hint, .calculator-source { color: var(--secondary); }
.calculator-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calculator-fields:has(select) { grid-template-columns: 1fr; }
.calculator-form button { margin-top: 22px; }
.calculator-form button:disabled { opacity: .6; cursor: default; }
.calculator-form noscript p { margin-top: 12px; }
.calculator-hint, .calculator-error { font-size: .875rem; line-height: 1.45; }
.calculator-hint, .calculator-error:not(:empty) { margin-top: 6px; }
.calculator-error { color: #8a231f; }
.calculator input[aria-invalid="true"], .calculator select[aria-invalid="true"] { border-color: #8a231f; }
.calculator-values { margin: 0; }
.calculator-values dt { margin-top: 12px; color: var(--secondary); }
.calculator-values dd {
  margin: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calculator-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9375rem; }
#calculator-note { margin-bottom: 8px; }
.calculator-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.calculator-source { margin-top: 12px; font-size: .875rem; }

@media (max-width: 760px) {
  .calculator { grid-template-columns: 1fr; }
  .calculator-result { border-inline-start: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 470px) {
  .calculator-fields { grid-template-columns: 1fr; gap: 12px; }
}
