:root {
  --navy: #12286b;
  --peri: #5b6fb0;
  --ink: #16203f;
  --mute: #53597a;
  --bg: #fafbfd;
  --panel: #eef1f8;
  --line: #d9deee;
  --btn: #12286b;
  --btnt: #ffffff;
  --border-radius: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Source Sans 3", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, h4 {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOPBAR */
.topbar {
  background: #334155;
  color: #f1f5f9;
  font-size: 14px;
  padding: 8px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a {
  color: #cbd5e1;
  transition: color .2s;
}
.topbar a:hover {
  color: #fff;
}
.top-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.top-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  transition: all .2s ease;
}
.top-social a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}
.top-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform .2s ease;
}
.top-social a:hover svg {
  transform: scale(1.1);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #cbd5e1;
  transition: all .2s ease;
}
.footer-social a:hover {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-2px);
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* HEADER & NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(18,40,107,0.04);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
}
.brand span {
  color: var(--peri);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo img {
  height: 52px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.brand-logo:hover img {
  transform: scale(1.02);
}

/* NAVIGATION DESKTOP */
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 6px;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--panel);
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  box-shadow: 0 16px 36px rgba(18,40,107,0.14);
  min-width: 280px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover {
  background: var(--panel);
  color: var(--navy);
  padding-left: 22px;
}

@media (min-width: 901px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--btnt);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover {
  background: #0d1e52;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18,40,107,0.2);
}
.btn.alt {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.alt:hover {
  background: var(--panel);
}

/* HERO SECTION */
.hero {
  padding: 60px 0 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  color: var(--mute);
  margin-bottom: 30px;
  max-width: 54ch;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img img {
  border-radius: 12px;
  filter: drop-shadow(0 16px 36px rgba(18,40,107,0.16));
  max-height: 420px;
  object-fit: contain;
}

/* INNER PAGE HERO (BANNER) */
.page-header {
  background: linear-gradient(135deg, var(--navy), #273e88);
  color: #fff;
  padding: 50px 0;
  margin-bottom: 40px;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 12px;
}
.page-header p {
  color: #e2e8f0;
  font-size: 18px;
  max-width: 65ch;
  margin: 0;
}

/* CARDS & GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.layout-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.layout-video {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18,40,107,0.08);
  border-color: var(--peri);
}
.card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.card p {
  color: var(--mute);
  font-size: 15.5px;
  margin: 0 0 16px;
  flex: 1;
}

/* SECTION PADDING */
section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}
.section-title p {
  color: var(--mute);
  font-size: 17px;
}

/* FOOTER */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 50px 0 24px;
  font-size: 14.5px;
  margin-top: 60px;
}
footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}
footer a {
  color: #cbd5e1;
  transition: color .2s;
}
footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* FORM STYLES */
.contact-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 8px 24px rgba(18,40,107,0.04);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18,40,107,0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform .2s;
}
.wa-float:hover {
  transform: scale(1.1);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* HAMBURGER BUTTON (MOBILE) */
.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .brand-logo img {
    height: 42px;
    max-width: 140px;
  }
  .burger-btn {
    display: block;
  }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    align-items: stretch;
    gap: 4px;
  }
  nav.main-nav.open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--panel);
    margin: 4px 0 8px 12px;
    padding: 4px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-img {
    order: -1;
  }
  .hero-img img {
    max-height: 280px;
  }
  .grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2, .form-row, .layout-sidebar, .layout-video {
    grid-template-columns: 1fr !important;
  }
  .layout-sidebar {
    gap: 32px;
  }
  .layout-video {
    gap: 28px;
  }
  .sidebar-box {
    position: static;
    top: auto;
    padding: 24px 20px;
    margin-top: 10px;
  }
  /* Güvenlik önlemi: Sayfa içi sabit inline 2fr 1fr gridlerini mobil ekranda tek sütuna zorla */
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:1fr 1.15fr"],
  [style*="grid-template-columns: 1fr 1.15fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 36px 0;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 28px;
  }
  .content-section {
    padding: 28px 0;
  }
  .clause-box {
    padding: 14px 16px;
  }
  .sidebar-box {
    padding: 20px 16px;
  }
  .sidebar-box input,
  .sidebar-box select,
  .sidebar-box textarea,
  .contact-box input,
  .contact-box select,
  .contact-box textarea {
    font-size: 16px !important; /* iOS Safari otomatik form yakınlaştırmasını önler */
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
}

/* STANDARDS DETAIL PAGES */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--peri);
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span.sep {
  color: #94a3b8;
}

.std-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.badge-blue { background: #e0e7ff; color: #3730a3; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-cyan { background: #cffafe; color: #155e75; }
.badge-amber { background: #fef3c7; color: #92400e; }

.content-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.content-section:last-of-type {
  border-bottom: none;
}
.section-title {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.feature-list li span.bullet {
  color: var(--peri);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.clause-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--peri);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.clause-box h4 {
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 4px;
}
.clause-box p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.step-num {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--peri);
  margin-bottom: 6px;
}
.step-card h4 {
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.step-card p {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--border-radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}

/* DIALOG / MODAL POLICIES */
dialog {
  border: 0;
  border-radius: 14px;
  max-width: 760px;
  width: calc(100% - 32px);
  max-height: 88vh;
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(18, 40, 107, 0.28);
}
dialog::backdrop {
  background: rgba(10, 20, 50, 0.65);
  backdrop-filter: blur(4px);
}
dialog article {
  padding: 28px 28px 24px;
  overflow-y: auto;
  max-height: calc(88vh - 40px);
}
dialog h3 {
  font-size: 24px;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 12px;
}
dialog h4 {
  font-size: 17px;
  color: var(--navy);
  margin-top: 20px;
  margin-bottom: 8px;
}
dialog p, dialog ul {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 14px;
}
dialog ul {
  padding-left: 20px;
}
dialog li {
  margin-bottom: 6px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
}
.policy-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.policy-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
