/* bgys.app — temel katman: fontlar, tema değişkenleri, sıfırlama, tüm sayfalarda ortak bileşenler */

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --paper: #FBF6EF;
  --teal: #2B3B5C;
  --teal-dark: #101A30;
  --amber: #D6A648;
  --amber-soft: #F5E8D1;
  --line: rgba(43, 59, 92, 0.14);
  --muted: #635B4E;
  --shadow: 0 24px 48px -28px rgba(16, 26, 48, 0.4);
}

* { box-sizing: border-box; }

html { scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: 'Satoshi', system-ui, sans-serif;
  color: var(--teal-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
}

p { margin: 0; line-height: 1.65; color: var(--muted); font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* butonlar */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: all .25s ease; white-space: nowrap; }
.btn svg { stroke: currentColor; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--teal-dark); color: var(--white); border: 1.5px solid var(--teal-dark); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal-dark); background: rgba(14, 46, 41, 0.05); }
.btn-amber { background: var(--amber); color: var(--teal-dark); border: 1.5px solid var(--amber); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn-on-dark { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* scroll ile belirme animasyonu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* üst gezinme */
header.nav { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 231, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 900; font-size: 21px; color: var(--teal-dark); }
.logo-dot { color: var(--amber); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { position: relative; font-weight: 500; font-size: 14.5px; padding-bottom: 5px; color: var(--teal-dark); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--amber); transition: width .25s ease; }
.nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 700; font-size: 14px; color: var(--teal-dark); border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
@media (max-width: 920px) { .nav-links { display: none; } }

/* form alanları — demo/teklif formu ve stil rehberi örnekleri ortak */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 14.5px; padding: 13px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--white); color: var(--teal-dark); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; }
.consent a { color: var(--teal); font-weight: 700; text-decoration: underline; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 10px; }
.field-note { font-size: 12px; color: var(--muted); margin-top: 20px; }

.cert-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; color: var(--teal-dark); background: var(--white); }
.tag-soon { background: var(--amber-soft); color: #7A5D24; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* alt bilgi */
footer { background: var(--teal-dark); color: rgba(255, 255, 255, 0.7); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-grid h5 { color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 11px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 28px 40px 0; display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

/* alt bant — hizmet/modül şablonlarının kapanış CTA'sı */
.cta-banner { background: var(--teal-dark); border-radius: 22px; padding: 56px; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(255, 255, 255, 0.7); margin-bottom: 26px; }
.cta-banner .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

/* şablon sayfalarının breadcrumb'ı */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--teal); }

/* mega menü */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font: inherit; cursor: pointer; color: var(--teal-dark); font-weight: 500; font-size: 14.5px; padding: 0 0 5px; position: relative; }
.nav-trigger::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--amber); transition: width .25s ease; }
.nav-trigger:hover::after, .nav-item.is-open .nav-trigger::after { width: 100%; }
.nav-trigger .chev { width: 9px; height: 9px; margin-left: 1px; stroke: currentColor; transition: transform .2s ease; }
.nav-item.is-open .nav-trigger .chev { transform: rotate(180deg); }

.mega { position: absolute; top: calc(100% + 18px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; pointer-events: none; z-index: 50; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.mega-panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }

/* mega-lg, tetikleyici hangi nav-item olursa olsun ekranda ortalanır (nav-item'a göre değil, viewport'a göre konumlanır — aksi halde panel her tetikleyicide farklı yere kayar). */
.mega-lg { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-8px); width: min(1120px, 90vw); }
.nav-item.is-open .mega-lg { transform: translateX(-50%); }
.mega-lg .mega-panel { display: grid; grid-template-columns: 260px 1fr; gap: 36px; }

.mega-sm { right: 0; width: min(560px, 86vw); }
.mega-sm .mega-panel { display: grid; grid-template-columns: 1fr 220px; gap: 28px; }
.mega-sm .mega-panel.single-col { grid-template-columns: 1fr; }

.mega-intro h4 { font-size: 19px; margin: 10px 0 8px; }
.mega-intro p { font-size: 13.5px; margin-bottom: 18px; }
.mega-intro .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mega-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.mega-col h5 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.mega-list { display: flex; flex-direction: column; }
.mega-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.mega-item svg { flex-shrink: 0; margin-top: 3px; stroke: var(--amber); }
.mega-item-desc { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mega-item.is-disabled { color: var(--muted); }
.mega-item.is-disabled svg { stroke: var(--line); }
.mega-item .tag-soon { margin-left: 8px; }

.mega-feature { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.mega-feature .mega-feature-img { height: 110px; background: var(--paper); }
.mega-feature .mega-feature-body { padding: 14px 16px; }
.mega-feature h5 { font-size: 14.5px; margin-bottom: 4px; }
.mega-feature p { font-size: 12.5px; margin-bottom: 8px; }
.mega-feature .go { font-size: 12.5px; font-weight: 700; color: var(--teal); }

@media (max-width: 1080px) { .nav-links { display: none; } }

/* paylaşılan liste/kart bileşeni — standartlar ve blog index sayfaları */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-card { position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.grid-card .index { position: absolute; top: 10px; right: 16px; font-weight: 900; font-size: 46px; color: rgba(16, 26, 48, 0.06); line-height: 1; }
.grid-card .eyebrow { display: block; margin-bottom: 10px; }
.grid-card h4 { font-size: 16px; margin: 12px 0 8px; position: relative; z-index: 1; padding-right: 20px; }
.grid-card p { font-size: 13.5px; position: relative; z-index: 1; }
.grid-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--teal); position: relative; z-index: 1; }
.grid-card.is-disabled { cursor: default; opacity: .82; }
.grid-card.is-disabled .go { color: var(--muted); }
@media (max-width: 1080px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }
