/* Sitenin ortak görünümü: renkler, yazı tipleri, bileşenler ve animasyonlar */

:root {
  --ink: #1e1d1d;
  --ink-soft: #4a4744;
  --gold: #bda05f;
  --gold-dark: #7d6228;
  --gold-light: #d9c28a;
  --ivory: #faf7f1;
  --line: #e7e0d2;
  --night: #0a0d12;
  --header-h: 88px;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(30, 29, 29, 0.08);
  --shadow-hover: 0 10px 24px rgba(30, 29, 29, 0.12);
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  padding-top: var(--header-h);
}

body h1,
body h2,
body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  line-height: 1.25;
}

/* Tüm sayfalarda ortak içerik genişliği */
body .container {
  max-width: 1200px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* Üst menü */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: var(--shadow);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-brand img {
  width: 60px;
  height: 60px;
  transition: width 0.25s ease, height 0.25s ease;
}

#menu > ul > li > a,
#mainDropdownBtn {
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

#menu > ul > li > a::after,
#mainDropdownBtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#menu > ul > li > a:hover::after,
#mainDropdownBtn:hover::after,
#menu > ul > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

#menu > ul > li > a[aria-current="page"] {
  color: var(--gold-dark);
  font-weight: 600;
}

#mainDropdown {
  z-index: 60;
}

#mainDropdown .group:focus-within > div,
#mainDropdown .group.is-open > div {
  display: block;
}

@media (min-width: 768px) {
  .site-header.is-scrolled {
    height: 68px;
    box-shadow: 0 4px 14px rgba(30, 29, 29, 0.1);
  }

  .site-header.is-scrolled .site-brand img {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 767px) {
  #menu {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  #mainDropdown,
  #mainDropdown .group > div {
    position: static;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: 0;
  }

  #mainDropdown .group > div {
    padding-left: 12px;
  }
}

/* Düğmeler */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Genel sayfa yapısı */
.section {
  padding-block: 64px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 62ch;
}

.page-head {
  padding-block: 48px 8px;
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 8px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

a.card,
.karar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover,
.karar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.card-icon {
  color: var(--gold-dark);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card h2,
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--ink-soft);
}

/* Ana sayfa üst alan */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 56px;
}

.eyebrow {
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero blockquote {
  position: relative;
  margin-top: 20px;
  padding-left: 19px;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 46ch;
}

.hero blockquote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--gold);
  transform-origin: top;
  animation: draw-line 0.5s ease 0.35s both;
}

/* Açılışta metinler sırayla gelir */
.hero-grid > div > * {
  animation: rise-in 0.45s ease both;
}

.hero-grid > div > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-grid > div > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-grid > div > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-grid > div > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero cite {
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 72px;
  }
}

/* Geniş ekranda 7.png tüm alanı kaplar; telefonda metin görselin üstüne binmesin diye kart kalır */
@media (min-width: 1024px) {
  .hero {
    background: url("../image/hero-wall.webp") center / cover no-repeat;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 48px;
    min-height: min(calc(100vh - var(--header-h)), 46vw);
    padding-block: 40px;
  }

  .hero-logo {
    width: min(100%, calc((100vh - 240px) * 1.16));
    margin-inline: auto;
    text-align: center;
  }
}

/* Canlı logo: halkalar çizilir, ardından parçalar ve isim gelir */
/* Dar ekranda isim üst menü ve başlıkta zaten var */
@media (max-width: 1023px) {
  .hero-logo {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-logo-name {
    display: none;
  }
}

.hero-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-logo .halka {
  stroke-dasharray: 1;
  animation: draw-ring 0.6s ease-out calc(var(--i) * 0.05s) both;
}

.hero-logo .parca {
  transform-box: fill-box;
  animation: rise-in 0.5s ease calc(0.75s + var(--i) * 0.1s) both;
}

.hero-logo-name {
  margin-top: 14px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 2px 3px 3px rgba(30, 29, 29, 0.28);
  animation: rise-in 0.5s ease 1.35s both;
}

@media (max-width: 767px) {
  .hero-grid {
    gap: 24px;
    padding-block: 32px;
  }

  .hero-logo {
    order: -1;
    max-width: 200px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* Ana sayfa bilgi şeridi */
.info-strip {
  background: #fff;
  border-block: 1px solid var(--line);
}

.info-grid {
  display: grid;
  gap: 10px 32px;
  padding-block: 18px;
}

.info-grid p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid i {
  color: var(--gold-dark);
  width: 18px;
  text-align: center;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 2fr 1.2fr 1fr;
  }
}

.hizmet-bolgesi {
  text-align: center;
}

.hizmet-bolgesi .section-lead {
  margin-inline: auto;
}

/* Sayfa sonu iletişim bandı */
.cta-band {
  margin-top: 40px;
  background: var(--gold-dark);
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 36px;
}

.cta-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.cta-inner .hero-actions {
  margin-top: 0;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--ivory);
}

.btn-ghost {
  border: 1px solid #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.no-cta .cta-band {
  display: none;
}

/* Kararlar */
.karar-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

@media (min-width: 1024px) {
  #featuredKararlar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.karar-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: fade-in 0.3s ease;
}

.karar-kategori {
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.karar-card h3 {
  font-size: 1.15rem;
}

.karar-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.karar-ozet {
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.karar-alt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.karar-more {
  color: var(--gold-dark);
  font-weight: 600;
  white-space: nowrap;
}

.karar-toolbar {
  position: sticky;
  top: 68px;
  z-index: 40;
  margin-block: 16px 24px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.karar-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 12px;
}

@media (min-width: 768px) {
  .karar-tools {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    align-items: center;
  }

  .karar-tools .chip-list {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.karar-sort {
  min-height: 40px;
  margin-left: auto;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 767px) {
  .karar-toolbar {
    position: static;
  }

  .karar-tools .chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .chip {
    flex: none;
  }
}

.karar-search {
  width: 100%;
  max-width: 480px;
  min-height: 48px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #b9b09c;
  border-radius: 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--gold);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.karar-status {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
}

.link-button {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#modalOverlay:not(.hidden) {
  animation: fade-in 0.2s ease;
}

#modalOverlay:not(.hidden) > div {
  animation: rise-in 0.25s ease;
}

/* Hakkımda */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.about-grid h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 4px;
}

.timeline {
  border-left: 2px solid var(--gold);
  margin-left: 6px;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 24px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline h3 {
  font-size: 1.1rem;
}

.timeline p {
  color: var(--ink-soft);
  max-width: 75ch;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 340px 1fr;
    gap: 48px;
  }
}

.about-details {
  display: grid;
  gap: 32px;
  align-items: start;
}

.about-side {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .about-details {
    grid-template-columns: 1.7fr 1fr;
    gap: 48px;
  }

  .about-side {
    position: sticky;
    top: 92px;
  }
}

/* S.S.S. */
.faq-group + .faq-group {
  margin-top: 36px;
}

.faq-group > h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn_arrow i {
  color: var(--gold-dark);
  transition: transform 0.25s ease;
}

.faq-item.is-open .btn_arrow i {
  transform: rotate(180deg);
}

.text_part {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0.3s;
}

.text_part > p {
  min-height: 0;
  overflow: hidden;
  padding: 0 16px;
  color: var(--ink-soft);
  transition: padding 0.3s ease;
}

.faq-item.is-open .text_part {
  grid-template-rows: 1fr;
  visibility: visible;
}

.faq-item.is-open .text_part > p {
  padding-bottom: 16px;
}

/* Alt bilgi */
.site-footer {
  background: var(--night);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-block: 48px;
}

.footer-grid h2 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-grid li + li {
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

/* Animasyonlar */
.reveal-pending {
  opacity: 0;
  transform: translateY(12px);
}

[data-reveal] {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

a.card[data-reveal] {
  transition: opacity 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes draw-line {
  from {
    transform: scaleY(0);
  }
}

@keyframes draw-ring {
  from {
    stroke-dashoffset: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
