/* Rivasoft — marka renkleri değişkenlerde; palet güncellenince yalnızca :root değişir.
   Palet: Kağıt #F9FAFB · Nane #7DE2DF · Turkuaz #35ACBE · Mürekkep #1A1D2E · Koyu turkuaz #1B7A89 (açık zeminde yazı) */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/Montserrat_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/Montserrat_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/Montserrat_700Bold.ttf") format("truetype"); }
:root {
  --brand: #1B7A89;
  --brand-dark: #145d69;
  --accent: #35ACBE;
  --mint: #7DE2DF;
  --ink: #1A1D2E;
  --ink-2: #242940;
  --text: #2c3140;
  --muted: #5B6170;
  --line: #e1e8ec;
  --bg: #F9FAFB;
  --white: #fff;
  --surface: #fff;
  --head: #1A1D2E;
  --tint: #E9F6F8;
  --branch-line: #cfe6ea;
  --hover-border: #9fd3dc;
  --input-border: #c9d5da;
  --focus: #9fd3dc;
  color-scheme: light;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 29, 46, .08);
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--head); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
p { margin-bottom: 1rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section.dark { background: var(--ink); color: #cfd6e4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section-head { margin-bottom: 36px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--mint); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Utility bar + header */
.topbar { background: var(--ink); color: #cfd6e4; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar .group { display: flex; gap: 18px; flex-wrap: wrap; }
.header { background: var(--surface); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-mega > button { padding: 10px 14px; border-radius: 8px; color: var(--head); font-weight: 600; font-size: .96rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav > a:hover, .nav .has-mega > button:hover, .nav a.active { color: var(--brand); background: var(--bg); }
.nav .btn { margin-left: 8px; padding: 11px 26px; }
.nav .btn.nav-cta { background: var(--ink); color: var(--mint); font-weight: 700; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(53,172,190,.35), 0 6px 16px rgba(26,29,46,.25); }
.nav .btn.nav-cta:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.header .container { position: relative; }
.has-mega { position: static; }
.mega { display: none; position: absolute; left: 20px; right: 20px; top: 100%; width: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { display: grid; }
.has-drop { position: relative; }
.drop { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { display: block; }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--head); font-size: .94rem; }
.drop a:hover { background: var(--bg); color: var(--brand); }
.has-drop .mega { display: none !important; }
.mega h4 { font-size: .95rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.mega h4 a { color: var(--head); }
.mega h4 a:hover { color: var(--brand); }
.mega ul { list-style: none; }
.mega li a { display: block; padding: 3px 0; color: var(--muted); font-size: .9rem; }
.mega li a:hover { color: var(--brand); }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }

/* Icons */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-box { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: var(--brand); margin-bottom: 16px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--ink) 0%, #242940 70%, #1d3a47 100%); color: #cfd6e4; padding: 80px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(125,226,223,.22), transparent 70%); }
.hero h1 { color: #fff; max-width: 780px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p.lead { color: #cfd6e4; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-img { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid rgba(125,226,223,.25); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0; } }

/* Faaliyet alanları: tek satırlık liste */
.act-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.act-list li + li { border-top: 1px solid var(--line); }
.act-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; color: var(--head); font-weight: 600; }
.act-list a:hover { background: var(--tint); color: var(--brand); }
.act-list .icon-box { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.act-list .sub { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .88rem; text-align: right; }
.act-list .arrow { color: var(--brand); }
@media (max-width: 620px) { .act-list .sub { display: none; } .act-list .arrow { margin-left: auto; } }

/* Hakkımızda + referanslar tek sayfa */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.about-split img { border-radius: 16px; width: 100%; }
.cta-between { background: var(--tint); }
.cta-between .container { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
@media (max-width: 980px) { .about-split { grid-template-columns: 1fr; } }

/* Sektörler: görsel sayfa */
.sector-hero { background: linear-gradient(135deg, var(--ink), #242940 70%, #1d3a47); color: #cfd6e4; padding: 64px 0 56px; position: relative; overflow: hidden; }
.sector-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(125,226,223,.22), transparent 70%); }
.sector-hero .container { position: relative; z-index: 1; }
.sector-hero h1 { color: #fff; margin-bottom: 10px; }
.sector-hero .lead { color: #cfd6e4; }
.sector-hero .breadcrumb, .sector-hero .breadcrumb a { color: #9fb0bf; }
.sector-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.sector-chips a { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(125,226,223,.4); color: #e6fafa; font-size: .88rem; font-weight: 600; }
.sector-chips a:hover { background: var(--mint); color: var(--ink); }
.sector-group { margin-bottom: 52px; scroll-margin-top: 90px; }
.sector-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sector-group-head .icon-box { margin: 0; }
.sector-group-head h2 { margin: 0; }
.sector-tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px 22px 20px; min-height: 150px; background: linear-gradient(145deg, var(--tint), var(--surface)); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; color: inherit; transition: .2s; }
.sector-tile::after { content: ""; position: absolute; right: -28px; bottom: -28px; width: 110px; height: 110px; border-radius: 22px; border: 10px solid var(--mint); opacity: .22; transform: rotate(18deg); transition: .3s; }
.sector-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.sector-tile:hover::after { opacity: .45; transform: rotate(8deg) scale(1.1); }
.sector-tile strong { color: var(--head); font-size: 1.02rem; line-height: 1.3; position: relative; z-index: 1; }
.sector-tile .tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.sector-tile .tags span { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--brand); border: 1px solid var(--branch-line); }
.sector-tile .go { color: var(--brand); font-weight: 700; font-size: .88rem; position: relative; z-index: 1; }
.sector-big { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.svc-visual { position: relative; overflow: hidden; }
.svc-visual .num { position: absolute; right: 16px; top: 8px; font-size: 3.4rem; font-weight: 700; color: var(--mint); opacity: .4; line-height: 1; }

/* Page header (inner pages) */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* Cards + grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; display: flex; flex-direction: column; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--hover-border); }
.card p { color: var(--muted); margin-bottom: 14px; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--brand); }
.card .count { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }

/* Site ağacı (anasayfa): dallanan özet */
.tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.branch > a.root { display: flex; align-items: center; gap: 12px; color: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.branch > a.root:hover { color: var(--brand); }
.branch .icon-box { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.branch ul { list-style: none; margin: 14px 0 6px 20px; border-left: 2px solid var(--branch-line); }
.branch li { position: relative; padding: 4px 0 4px 18px; font-size: .94rem; }
.branch li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; border-top: 2px solid var(--branch-line); }
.branch li a { color: var(--text); }
.branch li a:hover { color: var(--brand); }
.branch li.more a { color: var(--brand); font-weight: 600; }
.trunk { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 26px; }
@media (max-width: 980px) { .tree { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tree { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2.2rem; color: var(--mint); line-height: 1.1; }
.stat span { font-size: .92rem; }

/* Lists */
.checks { list-style: none; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside .box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside .box h3 { font-size: 1rem; }
.aside ul { list-style: none; }
.aside li a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .94rem; }
.aside li:last-child a { border-bottom: 0; }
.aside li a:hover, .aside li a.active { color: var(--brand); font-weight: 600; }
.prose h2 { margin-top: 28px; }
.prose p { max-width: 720px; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--ink) 0%, #1d4b58 100%); color: #dff3f5; border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--head); }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--head); display: block; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 10px; font: inherit; background: var(--surface); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--focus); border-color: var(--brand); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; }
.form .check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.error { color: #c0102f; font-size: .86rem; margin-top: 4px; }
.alert { background: #fff1f4; border: 1px solid #ffc2d2; color: #8a0b2c; padding: 12px 16px; border-radius: 10px; }

/* Footer */
.footer { background: var(--ink); color: #94a3b8; padding: 56px 0 0; font-size: .94rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 36px; }
.footer img { height: 38px; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 7px; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid #1e293b; padding: 16px 0; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Floating contact */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; }
.float-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.float-contact .wa { background: #1fa855; }
.float-contact .ph { background: var(--accent); color: var(--ink); }
.float-contact .icon { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 4px 12px; grid-template-columns: 1fr; }
  .has-mega:hover .mega { display: none; }
  .has-mega.open .mega { display: grid; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2, .steps, .stats, .form .row, .footer .cols { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta { padding: 28px; }
  .topbar .group:last-child { display: none; }
}

/* ---- Tema: koyu ---- */
[data-theme="dark"] {
  --brand: #5cc7d6;
  --brand-dark: #7DE2DF;
  --accent: #35ACBE;
  --text: #c9d1de;
  --muted: #9aa3b5;
  --line: #2a3050;
  --bg: #151829;
  --white: #10121f;
  --surface: #1A1D2E;
  --head: #F9FAFB;
  --tint: #22304a;
  --branch-line: #2f4a5c;
  --hover-border: #35ACBE;
  --input-border: #3a4160;
  --focus: #35ACBE;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
[data-theme="dark"] .nav .btn.nav-cta { background: var(--mint); color: var(--ink); border-color: var(--mint); }
[data-theme="dark"] .alert { background: #3a1220; border-color: #6b1f38; color: #ffc2d2; }
[data-theme="dark"] .header { border-bottom-color: var(--line); }
[data-theme="dark"] .topbar { border-bottom: 1px solid var(--line); }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Tema anahtarı */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--head); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

