/*
Theme Name: ENG Tel Dokuma
Theme URI: https://engteldokuma.com
Author: ENG Tel Dokuma
Description: ENG Tel Dokuma için hafif, hızlı ve SEO odaklı özel tema. Türkçe, İngilizce ve Arapça (RTL) destekli.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: engtel
License: GNU General Public License v2 or later
*/

:root {
	--ink: #1C1F24;
	--ink-2: #2E343B;
	--muted: #4A525C;
	--line: #DDE1E6;
	--line-2: #E4E7EB;
	--bg: #FFFFFF;
	--bg-2: #EEF0F3;
	--bg-3: #F6F7F9;
	--black: #000000;
	--coal: #0E0F11;
	--steel: #9AA2AD;
	--steel-2: #C3C9D1;
	--red: #D62828;
	--red-ink: #B71F1F;
	--red-dark: #8E1616;
	--radius: 12px;
	--wrap: 1200px;
	--head: "Archivo", "Arial Narrow", Arial, sans-serif;
	--body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); }
html[dir="rtl"] body, body.rtl { --body: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; --head: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; margin-top: 1.4em; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-inline-start: 12px; top: 12px; z-index: 1000; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--coal); color: var(--steel-2); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Header ---------- */
.site-header { background: var(--black); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand img, .brand .custom-logo { height: 52px; width: auto; }
.brand { display: flex; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 24px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 22px; flex-wrap: wrap; }
.main-nav li { margin: 0; position: relative; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding-block: 10px; display: inline-block; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: #FF8A8A; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: -14px; background: #111317; border: 1px solid #2A2E35; border-radius: 10px; padding: 8px; min-width: 280px; flex-direction: column; gap: 0; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.main-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; }
.main-nav .sub-menu a:hover { background: #22262C; color: #fff; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.lang-switch { display: flex; border: 1px solid #3A3F47; border-radius: 6px; overflow: hidden; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; }
.lang-switch li { margin: 0; }
.lang-switch a { display: block; padding: 8px 10px; color: var(--steel-2); text-decoration: none; }
.lang-switch .current-lang a { background: #2A2E35; color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.2; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-ink); color: #fff; }
.btn-ghost { border-color: var(--steel); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--red-ink); }
.btn-white:hover { background: #FFE9E9; color: var(--red-dark); }
.menu-toggle { display: none; background: none; border: 1.5px solid #3A3F47; color: #fff; border-radius: 6px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
	.main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #0B0C0E; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; border-bottom: 3px solid var(--red); max-height: calc(100vh - 80px); overflow-y: auto; }
	.main-nav.open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding-block: 12px; border-bottom: 1px solid #1E2227; display: block; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 6px; padding-inline-start: 14px; background: none; min-width: 0; }
	.main-nav .sub-menu a { border-bottom: 0; padding-block: 8px; color: var(--steel-2); }
	.lang-switch { align-self: flex-start; margin-top: 12px; }
	.main-nav .btn { margin-top: 12px; }
	.brand img, .brand .custom-logo { height: 42px; }
	.topbar .hide-sm { display: none; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding-block: 18px 0; }
.breadcrumb a { color: var(--muted); }

/* ---------- Page layout ---------- */
.site-main { min-height: 50vh; }
.entry { padding-block: 28px 64px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content { font-size: 17px; }
.entry-content p, .entry-content li { color: var(--ink-2); }
.page-head { padding-block: 10px 6px; }
.page-head .lead { font-size: 18px; color: var(--ink-2); max-width: 780px; }

/* Full-width bands inside block content */
.band { padding-block: 64px; }
.band-gray { background: var(--bg-2); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p, .band-dark li { color: var(--steel-2); }
.band-red { background: var(--red); color: #fff; }
.band-red h2, .band-red p { color: #fff; }
.entry-content > .alignfull, .alignfull { width: 100vw; position: relative; inset-inline-start: 50%; margin-inline-start: -50vw; max-width: 100vw; }
.alignfull > .wp-block-group__inner-container, .alignfull > .inner { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero .inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px; }
.hero .copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .media { flex: 1 1 360px; min-width: 0; }
.hero .media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero h1 { color: #fff; margin: 0; }
.hero p { color: var(--steel-2); font-size: 18px; margin: 0; max-width: 640px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; color: #FF8A8A; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 560px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: #E4E7EB; margin: 0; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B6B' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards / grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-2); }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { margin: 0 0 4px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.tile { background: #fff; border-radius: var(--radius); padding: 26px; }
.tile .num { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); }
.tile h3 { margin: 10px 0 6px; font-size: 19px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.link-tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 600; display: block; }
.link-tile:hover { border-color: var(--red); color: var(--red-ink); }
.link-tile::after { content: " →"; }
html[dir="rtl"] .link-tile::after { content: " ←"; }
.quality { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quality.hot { border: 2px solid var(--red); }
.quality .q { font-family: var(--head); font-weight: 800; font-size: 26px; }
.quality.hot .q { color: var(--red-ink); }
.quality p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Product top */
.product-top { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 24px 48px; }
.product-top .gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-top .gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-2); }
.product-top .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-top .thumbs img { aspect-ratio: 1/1; border-radius: 8px; }
.product-top .summary { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.product-top h1 { margin: 0; }
.product-top h1 small { display: block; font-size: .55em; color: var(--muted); font-weight: 700; margin-top: 6px; }
.spec { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); }
.spec dt { background: var(--bg-3); font-weight: 600; }
.spec dt:first-of-type, .spec dt:first-of-type + dd { border-top: 0; }
.note { font-size: 14px; color: var(--muted); }

/* Tables */
.table-wrap, .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; min-width: 440px; }
.entry-content thead th, .entry-content table tr:first-child th { background: var(--ink); color: #fff; text-align: start; font-weight: 600; }
.entry-content th, .entry-content td { padding: 10px 16px; border-top: 1px solid var(--line-2); text-align: start; vertical-align: top; }
.entry-content thead th { border-top: 0; }
.entry-content tbody tr:nth-child(even) { background: var(--bg-3); }
.wp-block-table figcaption, .table-wrap + .note { font-size: 14px; color: var(--muted); padding: 10px 16px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div, .faq details > p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.rank-math-list { display: flex; flex-direction: column; gap: 12px; }
.rank-math-list-item { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; background: #fff; }
.rank-math-question { font-size: 17px !important; margin: 0 0 6px !important; }
.rank-math-answer p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(24px, 2.6vw, 30px); }
.cta-band p { margin: 4px 0 0; color: #FFE3E3; }

/* Footer */
.site-footer { background: var(--black); color: var(--steel-2); font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-block: 56px 32px; }
.site-footer h2 { color: #fff; font-family: var(--body); font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--steel-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer .bottom { border-top: 1px solid #2A2E35; padding-block: 16px 28px; font-size: 13px; color: var(--steel); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* Mobile sticky bar + floating WhatsApp */
.mobile-bar { display: none; }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 760px) {
	.wa-float { display: none; }
	.mobile-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--black); border-top: 2px solid var(--red); padding-bottom: env(safe-area-inset-bottom); }
	.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
	.mobile-bar a.wa { background: #1DA851; }
	.mobile-bar a.offer { background: var(--red); }
	.mobile-bar svg { width: 22px; height: 22px; }
	body { padding-bottom: 60px; }
	.band { padding-block: 44px; }
	.hero .inner { padding-block: 48px; }
	.ticks { grid-template-columns: 1fr; }
	.entry-content { font-size: 16px; }
}

/* Telini Seç */
.ts { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--line); }
.ts-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.ts-steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.ts-steps span.on { background: var(--red); }
.ts-q { font-size: 14px; font-weight: 600; color: var(--muted); }
.ts h2 { margin: 4px 0 18px; font-size: clamp(22px, 2.4vw, 28px); }
.ts-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ts-opt { text-align: start; background: #fff; border: 1.5px solid #C9CFD6; border-radius: 10px; padding: 16px 18px; cursor: pointer; font: inherit; min-height: 72px; display: flex; flex-direction: column; gap: 2px; }
.ts-opt:hover, .ts-opt:focus-visible { border-color: var(--red); }
.ts-opt b { font-size: 17px; color: var(--ink); }
.ts-opt span { font-size: 14px; color: var(--muted); }
.ts-res .grid { gap: 12px; margin: 14px 0; }
.ts-res .box { background: var(--bg-3); border-radius: 10px; padding: 16px 18px; }
.ts-res .box small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.ts-res .box strong { font-size: 20px; }
.ts-res .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.ts-res .chips a { background: var(--bg-2); color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.ts-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 12px; }
.ts-nav button { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; color: var(--muted); }
.ts-nav button.reset { color: var(--red-ink); }

/* Posts / guides */
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.guide-box { background: var(--bg-2); border-radius: var(--radius); padding: 22px 24px; margin-block: 28px; }
.guide-box p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 28px; font-size: 15px; }
.toc ol { margin: 6px 0 0; }
.archive-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding-block: 24px 64px; }

/* Forms */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { font-weight: 600; font-size: 15px; }
.form-row input, .form-row select, .form-row textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #C9CFD6; border-radius: 8px; background: #fff; min-height: 46px; }
.form-row textarea { min-height: 120px; }
.form-ok { background: #E8F6EC; border: 1px solid #9FD3AE; padding: 14px 16px; border-radius: 8px; }
.form-err { background: #FDECEC; border: 1px solid #F2A7A7; padding: 14px 16px; border-radius: 8px; }

/* WP core helpers */
.wp-block-image img { border-radius: 10px; }
.wp-block-image figcaption { font-size: 14px; color: var(--muted); }
.aligncenter { margin-inline: auto; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 32px; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.wp-block-column { flex: 1 1 300px; min-width: 0; }

/* RTL: telefon numaraları soldan sağa */
.topbar a, a[href^="tel:"], .ltr-num { direction: ltr; unicode-bidi: isolate; }

.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ti { width: 15px; height: 15px; flex: 0 0 auto; }
.topbar .ti-wa { color: #25D366; width: 16px; height: 16px; }
