/**
 * DEVNANOTEK Framework
 * Sayfa: Evlilik yardımı sonuç sorgulama ve yasal metinler
 * Açıklama: Kurumsal, erişilebilir ve tam responsive kamu hizmeti arayüzü
 * @author DEVNANOTEK
 */

:root {
  --brand: #7f1d2d;
  --brand-dark: #5d1420;
  --brand-soft: #f8edf0;
  --gold: #c59a45;
  --ink: #17202a;
  --muted: #5f6b76;
  --line: #dfe4e8;
  --surface: #ffffff;
  --surface-alt: #f5f7f8;
  --success: #176b46;
  --success-soft: #edf8f3;
  --danger: #9b2c3e;
  --danger-soft: #fbf0f2;
  --focus: #1d67a8;
  --shadow: 0 22px 60px rgba(30, 38, 45, .12);
}

/* Temel sıfırlama ve erişilebilir odak */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-alt); color: var(--ink); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 9999; padding: 11px 18px; border-radius: 0 0 8px 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 0; }

/* Kurumsal üst alan */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(127, 29, 45, .12); background: rgba(255, 255, 255, .97); box-shadow: 0 4px 22px rgba(27, 37, 45, .05); }
.header-inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 17px; color: var(--ink); text-decoration: none; }
.brand img { width: 185px; max-height: 66px; object-fit: contain; object-position: left center; }
.brand span { display: grid; padding-left: 17px; border-left: 1px solid var(--line); }
.brand strong { color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; letter-spacing: .015em; line-height: 1.25; text-transform: uppercase; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.official-badge { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid #d9e8e1; border-radius: 999px; background: #f2faf6; color: var(--success); font-size: .78rem; font-weight: 700; }
.official-badge i::before { content: "✓"; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-style: normal; }
.mobile-institution { display: none; }

/* Ana tanıtım ve sorgu formu */
.hero-section { position: relative; overflow: hidden; padding: 72px 0 82px; background: radial-gradient(circle at 84% 10%, rgba(197, 154, 69, .13), transparent 31%), linear-gradient(120deg, #fff 0%, #faf5f6 55%, #f4e8eb 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .78fr); align-items: center; gap: clamp(42px, 7vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--brand); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; background: var(--gold); content: ""; }
.hero-copy h1 { max-width: 740px; margin: 18px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.hero-answer { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(1.04rem, 1.6vw, 1.22rem); line-height: 1.8; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; }
.trust-list span { display: inline-flex; align-items: center; gap: 8px; color: #37434e; font-size: .82rem; font-weight: 650; }
.trust-list i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: .68rem; font-style: normal; }

.query-card { padding: clamp(25px, 4vw, 38px); border: 1px solid rgba(127, 29, 45, .13); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.query-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.query-card-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.query-card-head p { margin: 3px 0 0; color: var(--muted); font-size: .83rem; }
.query-icon { display: grid; width: 48px; height: 48px; place-items: center; flex: 0 0 auto; border-radius: 15px; background: var(--brand); color: #fff; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
#marriageQueryForm { display: grid; gap: 17px; }
.field-group { display: grid; gap: 6px; }
.field-group label { color: #26323d; font-size: .84rem; font-weight: 750; }
.field-group small { color: var(--muted); font-size: .71rem; }
.field-group .field-error { color: var(--danger); font-size: .73rem; font-weight: 700; }
.secure-input { position: relative; }
.secure-input input { width: 100%; min-height: 51px; padding: 12px 52px 12px 14px; border: 1px solid #ccd3d9; border-radius: 10px; background: #fff; color: var(--ink); font-size: 1rem; letter-spacing: .08em; transition: border-color .18s, box-shadow .18s; }
.secure-input input:hover { border-color: #aeb8c0; }
.secure-input input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(29, 103, 168, .14); }
.secure-input input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(155, 44, 62, .12); }
.secure-input span { position: absolute; top: 50%; right: 13px; min-width: 27px; padding: 2px 5px; border-radius: 6px; background: #eef1f3; color: var(--muted); font-size: .68rem; font-weight: 800; text-align: center; transform: translateY(-50%); }
.form-validation-summary { margin: 0; padding: 11px 13px; border: 1px solid #edc7ce; border-radius: 9px; background: var(--danger-soft); color: #75202f; font-size: .8rem; font-weight: 700; }
.privacy-layer { display: flex; gap: 10px; margin: 3px 0 0; padding: 12px; border: 1px solid #e6e9ec; border-radius: 10px; background: #fafbfb; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.privacy-layer i { display: grid; width: 20px; height: 20px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e7edf2; color: #405160; font-size: .7rem; font-style: normal; font-weight: 800; }
.privacy-layer a { color: var(--brand); font-weight: 750; }
.query-submit { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; box-shadow: 0 12px 25px rgba(127, 29, 45, .2); transition: transform .18s, box-shadow .18s; }
.query-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(127, 29, 45, .26); }
.query-submit i { font-size: 1.18rem; font-style: normal; }
.recaptcha-note { margin: -6px 0 0; color: var(--muted); font-size: .65rem; text-align: center; }
.service-notice { margin-bottom: 18px; padding: 11px; border-radius: 9px; background: #fff7e6; color: #7a5312; font-size: .82rem; }
.dn-honeypot { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }

/* Kurumsal sonuç kartı */
.result-wrap { padding-top: 48px; }
.result-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; padding: clamp(25px, 5vw, 42px); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 18px; background: var(--surface); box-shadow: 0 16px 45px rgba(25, 33, 40, .08); }
.result-symbol { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; }
.result-label { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.result-main h2 { margin: 5px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.result-main > p { max-width: 900px; margin: 0; color: var(--muted); }
.result-approved { border-left-color: var(--success); }
.result-approved .result-symbol { background: var(--success-soft); color: var(--success); }
.result-rejected { border-left-color: var(--danger); }
.result-rejected .result-symbol { background: var(--danger-soft); color: var(--danger); }
.result-not-found, .result-notice { border-left-color: #9a6a16; }
.result-not-found .result-symbol, .result-notice .result-symbol { background: #fff6df; color: #8a5d12; }
.result-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 26px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.result-details div { min-width: 0; padding: 13px 15px; background: #fff; }
.result-details dt { color: var(--muted); font-size: .68rem; font-weight: 750; }
.result-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.result-reference { margin-top: 13px !important; font-size: .72rem; }

/* Bilgi ve süreç alanı */
.info-section { padding: 92px 0; }
.info-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: center; gap: clamp(45px, 8vw, 100px); }
.info-grid h2, .section-heading h2 { margin: 16px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
.info-grid article p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.process-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.process-steps li { display: flex; min-height: 76px; align-items: center; gap: 17px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.process-steps strong { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: Georgia, serif; }
.process-steps span { font-weight: 650; }

/* Sık sorulan sorular */
.faq-section { padding: 85px 0 96px; background: #fff; }
.section-heading { max-width: 720px; margin-bottom: 35px; }
.faq-list { display: grid; max-width: 920px; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-list summary { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--brand); font-size: 1.35rem; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 20px 19px; color: var(--muted); }

/* Kurumsal alt alan */
.site-footer { background: #171c21; color: #e9edf0; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .95fr .9fr; gap: 55px; padding: 64px 0; }
.footer-brand img { width: 180px; padding: 7px; border-radius: 8px; background: #fff; }
.footer-brand p { max-width: 360px; margin: 18px 0 0; color: #aeb8c0; font-size: .82rem; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer li, .site-footer p { margin: 0 0 7px; color: #aeb8c0; font-size: .78rem; }
.site-footer a { color: #cbd3d9; text-decoration-color: transparent; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); }
.footer-bottom .site-shell { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; color: #8f9aa3; font-size: .7rem; }

/* Yasal metin sayfası */
.back-home { color: var(--brand); font-size: .82rem; font-weight: 750; text-decoration: none; }
.legal-main { padding: 35px 0 80px; }
.legal-shell { max-width: 940px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: .76rem; }
.breadcrumb a { color: var(--brand); }
.legal-document { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(25, 33, 40, .08); }
.legal-document > header { padding: clamp(28px, 6vw, 55px); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff, #faf1f3); }
.legal-document h1 { max-width: 780px; margin: 16px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.08; }
.legal-document header > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.legal-document dl { display: flex; flex-wrap: wrap; gap: 22px; margin: 26px 0 0; }
.legal-document dl div { display: flex; gap: 7px; }
.legal-document dt { color: var(--muted); font-size: .75rem; }
.legal-document dd { margin: 0; font-size: .75rem; font-weight: 750; }
.legal-content { padding: clamp(28px, 6vw, 58px); color: #2d3943; font-size: .98rem; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line; }
.legal-footer { margin-top: auto; }

/* Küçük ekran ve hareket tercihleri */
@media (max-width: 940px) {
  .hero-grid, .info-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .query-card { max-width: 610px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 82px; }
  .brand { gap: 0; }
  .brand img { width: 148px; }
  .brand span, .header-inner > .official-badge { display: none; }
  .mobile-institution { position: relative; display: block; margin-left: auto; }
  .mobile-institution summary { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(127, 29, 45, .22); border-radius: 50%; background: var(--brand-soft); color: var(--brand); cursor: pointer; list-style: none; }
  .mobile-institution summary::-webkit-details-marker { display: none; }
  .mobile-institution summary span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: .86rem; font-weight: 700; }
  .mobile-institution[open] summary { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(127, 29, 45, .1); }
  .mobile-institution-panel { position: absolute; top: calc(100% + 10px); right: 0; display: grid; width: min(315px, calc(100vw - 28px)); gap: 5px; padding: 18px; border: 1px solid rgba(127, 29, 45, .15); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(25, 33, 40, .18); }
  .mobile-institution-panel::before { position: absolute; top: -7px; right: 14px; width: 12px; height: 12px; border-top: 1px solid rgba(127, 29, 45, .15); border-left: 1px solid rgba(127, 29, 45, .15); background: #fff; content: ""; transform: rotate(45deg); }
  .mobile-institution-panel > strong { color: var(--brand); font-family: Georgia, "Times New Roman", serif; font-size: .92rem; line-height: 1.35; text-transform: uppercase; }
  .mobile-institution-panel > small { color: var(--muted); font-size: .72rem; font-weight: 650; line-height: 1.45; }
  .mobile-institution-panel .official-badge { width: fit-content; margin-top: 9px; padding: 7px 10px; font-size: .7rem; }
  .mobile-institution-panel .official-badge i::before { width: 19px; height: 19px; }
  .hero-section { padding: 49px 0 58px; }
  .hero-copy h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .query-card { border-radius: 16px; }
  .result-wrap { padding-top: 28px; }
  .result-card { grid-template-columns: 1fr; }
  .result-symbol { width: 52px; height: 52px; }
  .result-details, .footer-grid { grid-template-columns: 1fr; }
  .info-section, .faq-section { padding: 65px 0; }
  .footer-grid { gap: 35px; padding: 48px 0; }
  .footer-bottom .site-shell { min-height: 70px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
  .back-home { font-size: .74rem; }
}

@media (max-width: 390px) {
  .brand img { width: 132px; }
  .query-card { padding: 21px 17px; }
  .query-card-head h2 { font-size: 1.35rem; }
  .trust-list { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --line: #727b83; --muted: #39434b; }
  .secure-input input { border-width: 2px; }
}

@media print {
  .site-header, .site-footer, .query-card, .faq-section, .info-section { display: none !important; }
  body { background: #fff; }
  .result-card, .legal-document { box-shadow: none; }
}
