/*
Theme Name: QuantumCPA
Theme URI: https://example.com/quantumcpa
Author: QuantumCPA
Description: Muhasebe / CPA firması teması. Lacivert + pirinç palet, defter (ledger) motifi, hizmetler ve müşteri yorumları için özel içerik türleri, Customizer üzerinden iletişim bilgileri ve hero metinleri.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quantumcpa
*/

/* ============================================================
   QuantumCPA — design system
   Palette: ink navy #10243E · deep navy #0B1B30 · paper #F5F6F3
            brass #C89B3C · slate #5B6B7F · line #DCE1DA
   Type:    Fraunces (display) · Public Sans (body) · IBM Plex Mono
   Signature: double-rule "total" underline (ledger totals)
   ============================================================ */

:root {
  --ink: #10243E;
  --ink-deep: #0B1B30;
  --paper: #F5F6F3;
  --white: #FFFFFF;
  --brass: #C89B3C;
  --brass-dark: #A87F2A;
  --slate: #5B6B7F;
  --line: #DCE1DA;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(16, 36, 62, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* WordPress core */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--slate); }
.sticky, .bypostauthor { display: block; }

/* Signature */
.total-underline { border-bottom: 3px double var(--brass); padding-bottom: 2px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-dark);
  margin-bottom: 12px;
}
.eyebrow .crumb:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-gold { background: var(--brass); color: var(--ink-deep); }
.btn-gold:hover { background: #D9AC4E; }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--ink-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--white); }

/* Top bar */
.topbar { background: var(--ink-deep); color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.topbar-inner { display: flex; gap: 26px; padding: 7px 24px; }
.topbar-hours { margin-left: auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 40px; height: 40px; }
.brand-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-cpa { color: var(--brass-dark); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a,
.site-nav a.active { color: var(--ink); border-bottom-color: var(--brass); }
.nav-cta { margin-left: 8px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  /* Soldan sağa koyulaşan overlay: sol taraftaki metin okunur kalır, sağdaki Arch görünür */
  background:
    linear-gradient(to right, rgba(11, 27, 48, 0.88) 0%, rgba(11, 27, 48, 0.55) 55%, rgba(11, 27, 48, 0.25) 100%),
    var(--ink-deep) url('img/hero-bg.png') center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-lines {
  /* Arka plan görseli kendi defter çizgilerini içerdiğinden bu katman gizlendi */
  display: none;
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0px, transparent 35px,
    rgba(255,255,255,0.045) 35px, rgba(255,255,255,0.045) 36px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 92px;
}
.hero .eyebrow { color: var(--brass); }
.hero-sub { margin-top: 18px; font-size: 1.08rem; color: rgba(255,255,255,0.82); max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px;
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
}

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}
.ledger-head {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 6px;
}
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem;
}
.ledger-row .mono { font-weight: 500; font-size: 1.05rem; }
.ledger-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; font-weight: 700;
}
.ledger-total .mono { font-size: 1.3rem; color: var(--brass-dark); }

/* Sections */
.section { padding: 78px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-sub { margin-top: 12px; color: var(--slate); }
.section-head-row {
  max-width: none; display: flex; justify-content: space-between;
  align-items: flex-end; gap: 20px; flex-wrap: wrap;
}

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass); }
.svc-icon { width: 38px; height: 38px; color: var(--brass-dark); }
.svc-card p { color: var(--slate); font-size: 0.94rem; flex: 1; }
.svc-more { font-weight: 600; font-size: 0.9rem; color: var(--brass-dark); }

/* Why / quotes */
.why-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.why-grid > div > p { margin: 14px 0 8px; color: var(--slate); }
.check-list { list-style: none; margin: 18px 0 28px; }
.check-list li {
  padding: 10px 0 10px 30px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--slate);
}
.check-list li strong { color: var(--ink); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brass-dark); font-weight: 700; }
.quote-stack { display: flex; flex-direction: column; gap: 20px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.section-alt .quote-card { background: var(--paper); }
.quote-card p { font-size: 0.97rem; color: var(--ink); }
.quote-card footer { margin-top: 14px; font-size: 0.85rem; color: var(--slate); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brass); }
.post-card time { font-size: 0.78rem; color: var(--slate); }
.post-card p { color: var(--slate); font-size: 0.93rem; flex: 1; }

/* Page hero */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--white);
  padding: 58px 0;
}
.page-hero .eyebrow { color: var(--brass); }
.page-hero-sub { margin-top: 14px; color: rgba(255,255,255,0.8); max-width: 60ch; }
.page-hero-date { display: inline-block; margin-top: 14px; color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* Detail pages */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.detail-body p { margin-bottom: 18px; color: var(--slate); font-size: 1.02rem; }
.detail-body > p:first-child { color: var(--ink); font-size: 1.12rem; }
.detail-body h2, .detail-body h3 { margin: 26px 0 12px; }
.detail-body ul, .detail-body ol { margin: 0 0 18px 22px; color: var(--slate); }
.detail-cta { margin-top: 10px; }
.detail-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky; top: 96px;
}
.detail-side h4 {
  margin-bottom: 14px; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate);
}
.side-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 0.94rem; }
.side-link:hover { color: var(--brass-dark); }
.side-contact { margin-top: 24px; }
.side-contact p { font-size: 0.92rem; color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-weight: 400;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.18);
}
.contact-form button { align-self: flex-start; }
.contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-info h4 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brass-dark); margin-top: 18px;
}
.contact-info h4:first-child { margin-top: 0; }
.contact-info p { color: var(--slate); font-size: 0.94rem; margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 0.95rem; }
.alert-success { background: #E7F3E7; border: 1px solid #B9DCB9; color: #256029; }

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: var(--white);
  padding: 56px 0;
}
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band p { margin-top: 8px; color: rgba(255,255,255,0.78); max-width: 50ch; }

/* Footer */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-cpa { color: var(--brass); }
.footer-tagline { margin-top: 14px; font-size: 0.92rem; max-width: 36ch; }
.footer-col h4 {
  color: var(--white); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.footer-col a { display: block; padding: 4px 0; font-size: 0.93rem; }
.footer-col ul { list-style: none; }
.footer-col a:hover { color: var(--brass); }
.footer-col p { font-size: 0.93rem; margin-bottom: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px; padding-bottom: 24px;
  font-size: 0.84rem;
}
.footer-admin-link { color: rgba(255,255,255,0.4); }
.footer-admin-link:hover { color: var(--brass); }

/* 404 / misc */
.notfound { text-align: center; padding: 110px 0; }
.notfound-code { font-size: 3rem; color: var(--brass-dark); display: inline-block; margin-bottom: 18px; }
.notfound h1 { margin-bottom: 12px; }
.notfound p { color: var(--slate); margin-bottom: 26px; }
.empty-note { color: var(--slate); }

/* Pagination */
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px; border: 1.5px solid var(--line);
  border-radius: 6px; background: var(--white); font-size: 0.9rem;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--brass); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 64px; }
  .hero-card { max-width: 460px; }
  .card-grid, .post-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Hamburger menü eşiği: yatay telefonlarda menü öğeleri sıkışmasın */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 20px; }
  .topbar-hours { margin-left: 0; }
  .card-grid, .post-grid, .quote-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Refinance calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.calc-subhead {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-dark);
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  margin-top: 6px;
}
.calc-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.calc-card { transform: none; margin-top: 18px; }
.verdict {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1rem;
  border: 1.5px solid;
}
.verdict-good { background: #E7F3E7; border-color: #B9DCB9; color: #256029; }
.verdict-bad { background: #FBEFEF; border-color: #E5BCBC; color: #B23A3A; }
.verdict-mid { background: #FDF8EC; border-color: #E8D5A6; color: #8A6A1F; }
.chart-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 16px;
  margin-top: 18px;
}
.chart-legend { display: flex; gap: 20px; margin: 10px 0 14px; font-size: 0.85rem; color: var(--slate); flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.legend-navy { background: var(--ink); }
.legend-brass { background: var(--brass); }
.calc-cta {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.calc-cta p { color: var(--slate); font-size: 0.94rem; margin-bottom: 14px; }
.calc-disclaimer {
  margin-top: 34px;
  font-size: 0.82rem;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-width: 900px;
}
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- Calculator extras (lump sum) ---------- */
.chart-note { font-size: 0.8rem; color: var(--slate); margin-top: 10px; }
.calc-note {
  margin-top: 18px;
  background: #FDF8EC;
  border: 1px solid #E8D5A6;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #6b5416;
}
