/*
Theme Name: Obez.net Sağlık Rehberi
Theme URI: https://obez.net
Author: Obez.net
Description: Kilo sağlığı ve bilimsel sağlık içerikleri için özgün, hızlı ve erişilebilir WordPress teması.
Version: 1.0.0
Text Domain: obeznet
*/

:root {
  --ink: #173b3f;
  --ink-soft: #49666a;
  --brand: #0b7a75;
  --brand-dark: #075e5a;
  --mint: #dff5ed;
  --mint-soft: #f3fbf8;
  --sun: #f4b860;
  --coral: #ec7b67;
  --paper: #fffefa;
  --line: #dce9e5;
  --white: #fff;
  --shadow: 0 18px 50px rgba(23, 59, 63, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 18px; top: 12px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; }

.health-note { background: var(--ink); color: #e9f7f4; font-size: 13px; text-align: center; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,254,250,.94); border-bottom: 1px solid rgba(220,233,229,.9); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; font-size: 24px; text-decoration: none; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 20px; }
.brand small { display: block; color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.main-nav ul { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 650; }
.main-nav a:hover { color: var(--brand); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 999px; background: var(--brand); color: #fff !important; }
.main-nav li:last-child a { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; }
.mobile-cta { display: none; padding: 9px 13px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 82px 0 72px; background: linear-gradient(135deg, #f2fbf8 0%, #fffaf0 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); opacity: .65; }
.hero::before { width: 360px; height: 360px; background: #ccefe2; right: -100px; top: -150px; }
.hero::after { width: 260px; height: 260px; background: #ffe7b8; left: -120px; bottom: -150px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--brand-dark); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--sun); }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(42px, 6vw, 70px); }
h1 em { color: var(--brand); font-style: normal; }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: var(--ink-soft); font-size: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero-panel { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 30px; background: rgba(255,255,255,.84); box-shadow: var(--shadow); }
.hero-panel::before { content: "Sağlığınız için"; position: absolute; right: 24px; top: -13px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: #51350e; font-size: 12px; font-weight: 800; }

.section { padding: 82px 0; }
.section.alt { background: var(--mint-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head h2 { max-width: 680px; margin: 0; font-size: clamp(32px, 4vw, 48px); }
.section-head p { max-width: 470px; margin: 0; color: var(--ink-soft); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(23,59,63,.05); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; background: var(--mint); font-size: 23px; }
.card:nth-child(2) .card-icon { background: #fff0d2; }
.card:nth-child(3) .card-icon { background: #fee8e3; }
.card h3 { margin: 0 0 10px; font-size: 24px; }
.card p { margin: 0 0 18px; color: var(--ink-soft); }
.text-link { font-weight: 800; text-decoration: none; }
.text-link::after { content: " →"; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 30px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: 19px; }
.trust-item span { color: var(--ink-soft); font-size: 14px; }

.calculator { padding: 4px; }
.calculator h2, .calculator h3 { margin-top: 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #bed3cd; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.field input:focus { outline: 3px solid rgba(11,122,117,.16); border-color: var(--brand); }
.calc-actions { margin-top: 16px; }
.calc-result { display: none; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--mint); }
.calc-result.is-visible { display: block; }
.calc-result strong { display: block; font-size: 24px; }
.calc-help { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article-accent { height: 9px; background: linear-gradient(90deg, var(--brand), #56b99b); }
.article-card:nth-child(2) .article-accent { background: linear-gradient(90deg, var(--sun), #f6d28a); }
.article-card:nth-child(3) .article-accent { background: linear-gradient(90deg, var(--coral), #f4b2a5); }
.article-body { padding: 25px; }
.article-body .meta { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.article-body h3 { margin: 9px 0 12px; font-size: 23px; }
.article-body p { color: var(--ink-soft); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 45px; border-radius: 28px; background: var(--ink); color: #fff; }
.cta-panel h2 { margin: 0 0 9px; font-size: clamp(29px, 4vw, 43px); }
.cta-panel p { max-width: 680px; margin: 0; color: #cde2df; }

.content-wrap { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.page-header { margin-bottom: 35px; }
.page-header h1 { font-size: clamp(38px, 6vw, 58px); }
.entry-content h2 { margin-top: 42px; font-size: 31px; }
.entry-content h3 { margin-top: 32px; font-size: 24px; }
.entry-content p, .entry-content li { color: #294d51; }
.entry-content blockquote { margin: 30px 0; padding: 20px 25px; border-left: 5px solid var(--brand); background: var(--mint-soft); }
.entry-content .notice { margin: 26px 0; padding: 20px; border: 1px solid #f0d8a6; border-radius: 14px; background: #fff9ec; }
.post-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 8px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-meta { color: var(--ink-soft); font-size: 13px; }

.site-footer { padding: 60px 0 24px; background: #123438; color: #d9e9e7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #d9e9e7; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #a9c3c0; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .mobile-cta { display: inline-flex; }
  .hero { padding-top: 58px; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1160px); }
  .card-grid, .article-grid, .trust-grid, .calc-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-panel { grid-template-columns: 1fr; padding: 30px; }
  .hero-panel { padding: 22px; }
  .brand small { display: none; }
}
