/* Balcıoğlu Kağıt Rulo — site stylesheet
   Vanilla CSS, no build step. Design tokens first, then layout, then components. */

:root {
  --navy-900: #0b0b0c;          /* brand black */
  --navy-800: #151517;
  --navy-700: #222226;
  --navy-600: #2e2e34;
  --accent: #157a33;          /* brand green, white text 5:1 */
  --accent-dark: #0f6128;
  --accent-bright: #4cc06d;   /* green on dark backgrounds */
  --accent-soft: #e8f5ec;
  --kraft: #bf9e70;
  --ink: #16202b;
  --ink-2: #3d4956;
  --ink-3: #5f6b78;           /* 5.6:1 on --paper */
  --line: #e1e5ea;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef1f4;
  --ok: #1f7a4d;
  --err: #b42318;

  --font: "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .2);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, .4);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
ul, ol { padding-left: 1.25em; }
address { font-style: normal; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: #d7dee7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .75rem; }
.section--dark .eyebrow { color: var(--accent-bright); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.section--dark .lead { color: #c3ccd8; }
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* prevent grid/flex blowout from intrinsic image sizes */
.grid > *, .split > *, .hero .container > *, .contact-grid > *, .footer-grid > *, .cta-band > * { min-width: 0; }
body { overflow-x: clip; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.topbar { background: var(--navy-900); color: #c3ccd8; font-size: .85rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; min-height: 36px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent-bright); }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar li { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 640px) { .topbar .topbar-note { display: none; } }

.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; color: var(--navy-900); line-height: 1; }
.brand b { font-family: "Segoe UI Black", "Arial Black", "Segoe UI", Arial, sans-serif; font-weight: 900; font-size: 1.55rem; letter-spacing: .06em; text-transform: uppercase; }
.brand i { display: block; width: 100%; height: 3px; background: var(--accent); border-radius: 2px; }
.brand span { font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.brand--dark, .brand--dark b { color: #fff; }
.brand--dark span { color: #c9ccd2; }
@media (max-width: 400px) { .brand b { font-size: 1.3rem; } .brand span { font-size: .58rem; } }

.nav { display: flex; align-items: center; gap: 8px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--paper-3); color: var(--navy-900); }
.nav a[aria-current="page"] { color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary { color: #fff; border-radius: 999px; }
.nav a.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; appearance: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 12px var(--gutter) 20px; display: none; flex-direction: column; align-items: stretch; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(21, 122, 51, .6); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-outline-light { color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--paper-3); color: var(--navy-900); }
.btn-wa { background: var(--accent); color: #fff; }
.btn-wa:hover { background: var(--accent-dark); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group-center { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 20%, rgba(21, 122, 51, .45), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(60, 60, 66, .8), transparent 60%); z-index: -1; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.hero h1 { color: #fff; margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lead { color: #c9d3df; max-width: 56ch; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -12px; bottom: -14px; background: #fff; color: var(--navy-900); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; }
.hero-badge b { display: block; font-size: 1.35rem; line-height: 1; }
.hero-badge span { font-size: .8rem; color: var(--ink-3); }
.hero-badge svg { width: 34px; height: 34px; color: var(--accent); }
.hero-stats { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: 20px 40px; }
.hero-stats b { display: block; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.hero-stats span { font-size: .85rem; color: #aab6c5; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-badge { left: 12px; bottom: -12px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-900); color: #d7dee7; padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(21, 122, 51, .25); pointer-events: none; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: #c3ccd8; max-width: 62ch; }
.breadcrumb { font-size: .85rem; margin: 0 0 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #7f8ea0; }
.breadcrumb a { color: #c3ccd8; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.icon-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; }
.icon-card .icon svg { width: 26px; height: 26px; }
.icon-card p { color: var(--ink-2); margin-bottom: 0; }

.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.product-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--paper-3); }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; }
.product-card p { color: var(--ink-2); margin: 0; }
.product-card .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; }
.product-card .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.product-card:hover .more svg { transform: translateX(4px); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--ok); margin-top: 2px; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; color: var(--navy-900); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
table th[scope="row"] { background: transparent; width: 32%; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; letter-spacing: -.02em; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; padding: 18px 40px 18px 0; position: relative; color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, #111113, #1f3a27); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #c9d3df; margin: 0; max-width: 56ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--navy-900); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { color: var(--ink-3); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c6ced8; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(21, 122, 51, .3); border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 4px; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-status { border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; }
.form-status.ok { background: #e7f6ee; color: var(--ok); }
.form-status.err { background: #fdecea; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.map-card .map-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); background: repeating-linear-gradient(45deg, #f2f4f7 0 12px, #eaedf1 12px 24px); }
.map-card .map-ph svg { width: 40px; height: 40px; color: var(--accent); margin-inline: auto; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aab6c5; font-size: .93rem; }
.site-footer .container { padding-block: clamp(40px, 6vw, 64px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d7dee7; text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; color: #8b98a8; }
.footer-bottom a { color: #aab6c5; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #0b0b0c; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1fb457; color: #0b0b0c; }

/* ---------- Misc ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .35em; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.callout p:last-child { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.error-page { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.error-page .code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; color: var(--paper-3); margin-bottom: -.35em; letter-spacing: -.04em; }

@media print {
  .topbar, .site-header, .wa-float, .cta-band, .site-footer form { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: none; }
}
