/* ─────────────────────────────────────────────────────────────────────────
   refine.css — polish layer loaded after default.css on every page.
   Keeps the existing palette, imagery and layout; only refines type, spacing,
   transparency and interaction states. Mirrored to Figma as "Wifiburada / Tokens".
   ───────────────────────────────────────────────────────────────────────── */

/* Self-hosted Nunito (replaces the Google Fonts @import). */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../font/nunito/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../font/nunito/nunito-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../font/nunito/nunito-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../font/nunito/nunito-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand — taken from default.css, unchanged */
  --wb-blue: #2d7bbe;          /* rgb(45,123,190) */
  --wb-blue-2: #3182c1;
  --wb-cyan: #5cc7d8;          /* rgb(92,199,216) */
  --wb-cyan-2: #00c9da;
  --wb-orange: #fc573b;
  --wb-ink: #212529;
  --wb-ink-2: #3e3d3e;
  --wb-muted: #5f6b7a;
  --wb-bg: #f7f8fe;
  --wb-surface: #f4f8fd;
  --wb-gradient: linear-gradient(90deg, rgb(45, 123, 190), rgb(92, 199, 216));

  /* Glass */
  --wb-glass: rgb(255 255 255 / 0.55);
  --wb-glass-strong: rgb(255 255 255 / 0.78);
  --wb-glass-border: rgb(255 255 255 / 0.75);
  --wb-hairline: rgb(43 83 118 / 0.08);
  --wb-blur: 8px;
  --wb-shadow-sm: 0 1px 2px rgb(43 83 118 / 0.06), 0 8px 24px -16px rgb(43 83 118 / 0.22);
  --wb-shadow-lg: 0 2px 4px rgb(43 83 118 / 0.04), 20px 20px 40px 0 rgb(43 83 118 / 0.15);

  /* Radius & spacing (4px grid) */
  --wb-r-sm: 10px;
  --wb-r-md: 16px;
  --wb-r-lg: 20px;
  --wb-s-1: 4px;
  --wb-s-2: 8px;
  --wb-s-3: 12px;
  --wb-s-4: 16px;
  --wb-s-5: 24px;
  --wb-s-6: 32px;

  /* Motion */
  --wb-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ───────── Typography ───────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; text-wrap: balance; }
p { line-height: 1.7; text-wrap: pretty; }
/* default.css sizes paragraphs per breakpoint (16px desktop, 14px tablet). Only the two
   narrow steps that drop to 12px / 10px are raised to a readable 13px. */
@media (max-width: 759.98px) {
  p, section.detay ul li { font-size: 13px; }
}
.card-text { line-height: 1.6; }
.detay-sayfa .navBrand h1.baslik { font-size: 2rem; } /* h2 → h1 for SEO; keep the h2 size */
::selection { background: rgb(92 199 216 / 0.3); }

/* ───────── Transitions ─────────
   default.css applies `transition: all .5s !important` to almost every element, which
   makes every hover feel slow and fights JS-driven springs. Narrow it to paint-only
   properties with a quicker ease-out curve. */
a, img, i, div, input, button, ::after, ::before, li,
a:hover, img:hover, i:hover, div:hover, input:hover, button:hover, li:hover {
  transition-property: color, background-color, border-color, box-shadow, opacity, filter, transform, -webkit-text-fill-color !important;
  transition-duration: 0.25s !important;
  transition-timing-function: var(--wb-ease-out) !important;
}
/* framer-motion owns transform on these; only paint properties stay on CSS transitions. */
[data-motion], [data-motion]:hover, [data-lift], [data-lift]:hover {
  transition-property: color, background-color, border-color, box-shadow, opacity, filter !important;
}
i:hover { transform: scale(1.1); }

/* Keyboard focus that the original `outline: 0` reset removed. */
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--wb-cyan-2) !important;
  outline-offset: 3px;
  border-radius: 8px;
}

/* ───────── Frosted header ───────── */
header.header.is-stuck {
  position: fixed;
  background: rgb(247 248 254 / 0.72);
  -webkit-backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  border-bottom: 1px solid var(--wb-glass-border);
  box-shadow: 0 1px 0 var(--wb-hairline), 0 12px 32px -20px rgb(43 83 118 / 0.35);
}
header.header.is-stuck .navbar { padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 992px) {
  header.header.is-stuck .navbar-brand img { max-height: 46px; width: auto; }
}

/* Desktop dropdowns: same shape as before, now translucent. */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    background: var(--wb-glass-strong);
    -webkit-backdrop-filter: blur(var(--wb-blur)) saturate(160%);
    backdrop-filter: blur(var(--wb-blur)) saturate(160%);
    border: 1px solid var(--wb-glass-border);
  }
  .dropdown-menu::after { border-bottom-color: var(--wb-glass-strong) !important; }
  .dropdown-menu .dropdown-item { border-radius: var(--wb-r-sm); }
  .dropdown-menu .dropdown-item:hover { background-color: rgb(92 199 216 / 0.1); }
}

/* ───────── Cards ───────── */
/* The feature boxes are Bootstrap columns that sit edge to edge, so the glass surface is
   drawn 6px inside them on a pseudo-element; column widths stay untouched. */
section.wifi .kutu { position: relative; isolation: isolate; }
section.wifi .kutu::before {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: -1;
  background: var(--wb-glass);
  -webkit-backdrop-filter: blur(var(--wb-blur));
  backdrop-filter: blur(var(--wb-blur));
  border: 1px solid var(--wb-glass-border);
  border-radius: var(--wb-r-md);
  box-shadow: var(--wb-shadow-sm);
}
section.wifi .kutu:hover { background-color: transparent; box-shadow: none; }
section.wifi .kutu:hover::before { background-color: #fff; box-shadow: var(--wb-shadow-lg); }
section.wifi .kutu[data-lift]:hover { box-shadow: none; }

.panel-ekran .card,
.detay.kurulum .card,
.detay.fiyatlar .card {
  border-radius: var(--wb-r-lg);
}
.detay.fiyatlar .card,
.detay.kurulum .card {
  background: var(--wb-glass);
  -webkit-backdrop-filter: blur(var(--wb-blur));
  backdrop-filter: blur(var(--wb-blur));
  border: 1px solid var(--wb-glass-border);
  box-shadow: var(--wb-shadow-sm);
}
[data-lift]:hover { box-shadow: var(--wb-shadow-lg); }

.sektorler .sektorResim { border-radius: var(--wb-r-md); overflow: hidden; }

.referanslar .ref { border-radius: var(--wb-r-md); }

/* Hero e-mail pill and the "Sizi arayalım" form get the same glass treatment. */
.giris .slogan form, .giris .slogan .form-inline {
  -webkit-backdrop-filter: blur(var(--wb-blur));
  backdrop-filter: blur(var(--wb-blur));
}
.sizi-arayalim .form-control {
  background-color: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.6);
}
.sizi-arayalim .form-control:focus {
  background-color: #fff;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.35);
}

.footer { border: 1px solid var(--wb-glass-border); box-shadow: var(--wb-shadow-sm); }

/* ───────── Content links & FAQ (5651 SEO content) ───────── */
.detay a:not(.btn):not(.dropdown-item), .slider-yazi a.detay-link {
  color: var(--wb-blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(45 123 190 / 0.35);
  text-underline-offset: 3px;
}
.detay a:not(.btn):not(.dropdown-item):hover, .slider-yazi a.detay-link:hover { text-decoration-color: currentColor; }
section.detay.turuncu a:not(.btn) { color: var(--wb-orange); text-decoration-color: rgb(252 87 59 / 0.35); }

section.detay ul + p { margin-top: var(--wb-s-4); }

:root { interpolate-size: allow-keywords; }
.sss { display: grid; gap: var(--wb-s-3); margin-top: var(--wb-s-5); }
.sss-item {
  background: var(--wb-glass);
  -webkit-backdrop-filter: blur(var(--wb-blur));
  backdrop-filter: blur(var(--wb-blur));
  border: 1px solid var(--wb-glass-border);
  border-radius: var(--wb-r-md);
  box-shadow: var(--wb-shadow-sm);
  padding: 0 var(--wb-s-5);
}
.sss-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--wb-s-4);
  padding: 18px 0; cursor: pointer; list-style: none;
}
.sss-item summary::-webkit-details-marker { display: none; }
.sss-item summary h3 { margin: 0; font-size: 17px; line-height: 1.4; color: var(--wb-ink-2); }
.sss-item summary::after {
  content: '+'; flex-shrink: 0; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wb-gradient); color: #fff; font-weight: 800; font-size: 18px; line-height: 1;
  transition: transform 0.25s var(--wb-ease-out) !important;
}
.sss-item[open] summary::after { transform: rotate(45deg); }
.sss-item p { margin: 0; padding-bottom: 18px; }
/* Smooth open/close where supported (Chrome 131+); elsewhere it simply toggles. */
.sss-item::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.3s var(--wb-ease-out), content-visibility 0.3s allow-discrete;
}
.sss-item[open]::details-content { block-size: auto; }

/* ───────── "Bizi arayın" popup (src/enhance/callModal.jsx) ───────── */
.wb-modal-backdrop {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center; padding: var(--wb-s-4);
  background: rgb(23 43 77 / 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.wb-modal {
  position: relative; width: 100%; max-width: 440px;
  padding: var(--wb-s-6) var(--wb-s-6) var(--wb-s-5);
  text-align: center;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  border: 1px solid var(--wb-glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgb(43 83 118 / 0.45);
  font-family: 'Nunito', sans-serif;
}
.wb-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgb(43 83 118 / 0.06); color: var(--wb-ink-2);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.wb-modal-close:hover { background: rgb(43 83 118 / 0.12); }
.wb-modal-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--wb-s-4);
  border-radius: 50%; background: var(--wb-gradient);
  box-shadow: 0 10px 24px -8px rgb(45 123 190 / 0.6);
}
.wb-modal-icon i { font-size: 26px; color: #fff; }
.wb-modal-icon i:hover { transform: none; }
.wb-modal h2 { font-size: 24px; font-weight: 800; color: var(--wb-ink-2); margin: 0 0 var(--wb-s-2); }
.wb-modal p { font-size: 15px; line-height: 1.6; margin: 0; }
.wb-modal-phone {
  display: inline-block; margin: var(--wb-s-4) 0 var(--wb-s-5);
  font-size: 28px; font-weight: 900; letter-spacing: -0.01em; color: var(--wb-blue) !important;
  font-variant-numeric: tabular-nums;
}
.wb-modal-actions { display: flex; gap: var(--wb-s-3); }
.wb-modal-call, .wb-modal-dismiss {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--wb-s-2);
  height: 48px; border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wb-modal-call { flex: 1.4; text-decoration: none !important; }
.wb-modal-call i { color: #fff; }
.wb-modal-dismiss { border: 1px solid rgb(43 83 118 / 0.15); background: #fff; color: var(--wb-ink-2); }
.wb-modal-dismiss:hover { background: var(--wb-surface); }
.wb-modal-note { margin-top: var(--wb-s-4) !important; font-size: 13px !important; color: var(--wb-muted) !important; }
.wb-modal-note a { color: var(--wb-blue); text-decoration: underline; }
@media (max-width: 420px) {
  .wb-modal { padding: var(--wb-s-5) var(--wb-s-4) var(--wb-s-4); }
  .wb-modal-phone { font-size: 24px; }
  .wb-modal-actions { flex-direction: column; }
  .wb-modal-call, .wb-modal-dismiss { flex: none; width: 100%; }
}

/* Lead-form validation state (src/enhance/leadForms.js). */
form[id^="frmForm_"] .form-control[aria-invalid] {
  border: 2px solid var(--wb-orange) !important;
  box-shadow: 0 0 0 4px rgb(252 87 59 / 0.2) !important;
}
form[id^="frmForm_"] input[type="checkbox"][aria-invalid] { outline: 2px solid var(--wb-orange); outline-offset: 2px; }

/* ───────── Buttons ───────── */
.gradient-btn { box-shadow: 0 6px 18px -8px rgb(45 123 190 / 0.6); }
.gradient-btn:hover, .navbar-toggler:hover { box-shadow: 0 10px 24px -8px rgb(57 143 197 / 0.75); }
.btn-sozlesme:hover { box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.25); }

/* ───────── Placeholders ─────────
   A few CMS image slots were exported with src="#". Hide the broken-image glyph;
   the element stays in place so the layout is unchanged. */
img[src="#"] { visibility: hidden; }

/* ───────── Toasts (sonner) ───────── */
.wb-enhanced .cerez-sozlesme { display: none !important; }

[data-sonner-toaster] [data-sonner-toast].wb-toast {
  font-family: 'Nunito', sans-serif;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  backdrop-filter: blur(var(--wb-blur)) saturate(160%);
  border: 1px solid var(--wb-glass-border);
  border-radius: var(--wb-r-md);
  box-shadow: 0 16px 40px -16px rgb(43 83 118 / 0.4);
  color: var(--wb-ink);
}
[data-sonner-toaster] [data-sonner-toast].wb-toast [data-title] { font-weight: 800; }
[data-sonner-toaster] [data-sonner-toast].wb-toast [data-description] { color: var(--wb-muted); }
[data-sonner-toaster] [data-sonner-toast].wb-toast [data-description] a { color: var(--wb-blue); text-decoration: underline; }
[data-sonner-toaster] [data-sonner-toast].wb-toast [data-button] {
  background: var(--wb-gradient);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0 14px;
  height: 30px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, img, i, div, input, button, ::after, ::before, li { transition-duration: 0.01ms !important; }
}
