/* =========================
   REDROSE — PREMIUM UI (CLEAN)
   Fonts: Inter (UI) + Sora (Headings)
   ========================= */

/* TOKENS */
:root {
  --rose: #C81D25;
  --rose-2: #A8151B;

  --dark: #0F0F10;
  --ink: #14161B;
  --muted: rgba(20, 22, 27, 0.68);

  --paper: #FFFFFF;
  --soft: #F6F7FB;

  --radius-xs: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  --border: 1px solid rgba(20, 22, 27, 0.08);

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.12);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", system-ui, sans-serif;
}

/* BASE */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

.small-muted,
.text-muted {
  color: var(--muted) !important;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
.display,
.hero-title,
.subhead-prod {
  font-family: var(--font-display);
}

#contact .card-premium {
  border-radius: var(--radius-lg);
}

#contact .form-control {
  background: rgba(255, 255, 255, 0.9);
}

h1,
h2,
h3,
.display {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-transform: none;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.subhead-prod {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  font-size: 12px;
}

/* BUTTONS */
.btn-rose {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.72rem 1.05rem;
  box-shadow: 0 10px 24px rgba(200, 29, 37, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-rose:hover {
  background: var(--rose-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(200, 29, 37, 0.22);
}

.btn-rose:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(200, 29, 37, 0.18);
}

.text-rose {
  color: var(--rose) !important;
}

.btn-outline-dark {
  border-radius: 14px;
}

/* NAVBAR (Premium Glass) */
.navbar-premium {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 22, 27, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar-premium.is-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* NAVBAR ACTIVE STATE */
.nav-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

/* ikonlar */
.nav-link-premium .nav-ic {
  font-size: 0.8rem;
  opacity: 0.55;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

/* hover */
.nav-link-premium:hover .nav-ic {
  opacity: 0.85;
}

/* ACTIVE */
.nav-link-premium.active {
  color: var(--rose) !important;
  background: rgba(200, 29, 37, 0.08);
}

/* aktif ikon */
.nav-link-premium.active .nav-ic {
  color: var(--rose);
  opacity: 1;
  transform: scale(1.05);
}

/* aktif alt çizgi (ince rail) */
.nav-link-premium.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  border-radius: 999px;
}

/* NAVBAR FONT — LOGO UYUMLU */
.navbar,
.navbar .nav-link,
.navbar .btn {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Brand image */
.brand-lockup img {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.10));
}

/* Links */
.navbar-premium .navbar-nav {
  gap: 0.25rem;
}

.nav-link-premium {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(20, 22, 27, 0.78) !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link-premium:hover {
  background: rgba(200, 29, 37, 0.08);
  color: var(--ink) !important;
}

.nav-link-premium::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.38rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 29, 37, 0.65), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  border-radius: 999px;
}

.nav-link-premium:hover::after {
  transform: scaleX(1);
}

.navbar .btn {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Toggler */
.nav-toggler-premium {
  border: 1px solid rgba(20, 22, 27, 0.12);
  border-radius: 14px;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* Mobile collapse panel */
@media (max-width: 991.98px) {
  .navbar-premium .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 22, 27, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
  }

  .nav-cta {
    margin-top: 0.75rem;
    gap: 0.6rem !important;
  }

  .nav-cta .btn-nav {
    width: 100%;
  }
}

/* HERO */
.hero {
  padding: 110px 0 76px;
  background: radial-gradient(90% 120% at 10% 10%, #fff 0%, #fff 56%, #fdebed 100%);
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 0.65rem;
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.14em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(255, 219, 224, 0.95), rgba(255, 238, 241, 0.95));
  z-index: -1;
  border-radius: 999px;
}

/* Video box */
.hero .ratio {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 22, 27, 0.10) !important;
}

/* Media captions */
.hero-media-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-media-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

/* BADGE */
.badge-soft {
  background: rgba(200, 29, 37, 0.08);
  color: var(--rose);
  border: 1px solid rgba(200, 29, 37, 0.16);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* CARDS */
.card-premium,
.feature,
.kpi {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature {
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 22, 27, 0.12);
  box-shadow: var(--shadow);
}

/* KPI */
.kpi .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* PORTFOLIO */
.portfolio img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

/* HELPERS */
.section-head {
  max-width: 820px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 22, 27, 0.10), transparent);
}

/* MODALS */
.modal-header {
  border-bottom: 1px dashed rgba(20, 22, 27, 0.14);
}

.modal-footer {
  border-top: 1px dashed rgba(20, 22, 27, 0.14);
}

#quoteModal .modal-body {
  max-height: calc(100vh - 190px);
  overflow: auto;
}

@media (max-width: 576px) {
  #quoteModal .modal-content {
    border-radius: 0;
  }
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}

footer a {
  color: rgba(255, 255, 255, 0.86);
}

footer a:hover {
  color: #fff;
}

/* WHATSAPP FAB */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.30);
  z-index: 1040;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.36);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    padding: 92px 0 56px;
  }

  body {
    font-size: 15.5px;
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* =========================
   PREMIUM MODALS (GLASS)
   ========================= */

/* Backdrop – cam hissi */
.modal-backdrop.show {
  opacity: 0.55;
  backdrop-filter: blur(6px);
}

/* Modal container */
.modal-content {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(20, 22, 27, 0.10);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* HEADER */
.modal-header {
  border-bottom: 1px solid rgba(20, 22, 27, 0.10);
  padding: 1.1rem 1.25rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem; /* küçük ama karakterli */
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-social-btn,
.nav-lang-btn {
  border-radius: 12px;
  border: 1px solid rgba(20, 22, 27, 0.10);
  background: rgba(255, 255, 255, 0.75);
}

.nav-social-btn i {
  opacity: 0.8;
}

.nav-social-btn:hover i {
  opacity: 1;
}

/* Close button sadeleşsin */
.modal-header .btn-close {
  opacity: 0.6;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* BODY */
.modal-body {
  font-family: var(--font-sans);
  font-size: 0.92rem; /* UI için ideal */
  line-height: 1.6;
  color: var(--ink);
  padding: 1.25rem;
}

/* Form elemanları premium */
.modal-body .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 22, 27, 0.65);
}

.gtranslate-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#totop {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  right: 16px;
  bottom: 75px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #cf0010;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.30);
  z-index: 1040;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#totop:hover {
  background-color: #555; /* Add a dark-grey background on hover */
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.36);
}

.modal-body .form-control,
.modal-body .form-select {
  font-size: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 22, 27, 0.12);
  padding: 0.6rem 0.75rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 0.15rem rgba(200, 29, 37, 0.12);
}

/* FOOTER */
.modal-footer {
  border-top: 1px solid rgba(20, 22, 27, 0.10);
  padding: 0.9rem 1.25rem;
  gap: 0.5rem;
}

/* Footer butonları */
.modal-footer .btn {
  font-size: 0.85rem;
  border-radius: 14px;
}

/* Primary modal CTA (Teklif / Gönder vs.) */
.modal-footer .btn-rose {
  padding: 0.55rem 0.9rem;
}

/* Küçük bilgi metinleri */
.modal .small,
.modal small {
  font-size: 0.72rem;
  color: rgba(20, 22, 27, 0.6);
}

/* Mobilde tam ekran hissi */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0;
  }

  .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }
}