:root {
  --primary: #1a2b4b;
  --secondary: #a92a1e;
  --surface: #f9f9ff;
  --text: #111c2c;
  --muted: #5d6472;
  --border: #d9e0ef;
  --success: #1f9d55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', Inter, sans-serif;
  font-weight: 500;
  color: #1e293b;
  background: #fff;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -0.02em; }
p { font-weight: 500; }

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: #f7f8fc;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.topbar-inner {
  padding: 0.5rem 0;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.topbar-actions a {
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  color: var(--muted);
}

.main-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 1.3rem;
}

.brand-title {
  font-family: Manrope, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.brand-mini {
  font-size: 0.62rem;
  color: #8690a6;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-weight: 600;
  color: #263349;
}

.main-nav a {
  font-size: 0.96rem;
}

.btn-contact {
  background: var(--secondary);
  color: #fff !important;
  padding: 0.6rem 1.1rem;
  border-radius: 0.4rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  color: var(--primary);
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  margin: 0 0 1rem;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--primary);
}

.section-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero {
  background: linear-gradient(145deg, #f0f5ff 0%, #fbfcff 100%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border: 0;
  border-radius: 0.4rem;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--success);
  color: #fff;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 1.2rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  color: var(--primary);
  font-family: Manrope, sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  background: var(--primary);
  color: #dbe4f8;
  margin-top: 4rem;
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #fff;
}

.site-footer p {
  margin: 0.4rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(219, 228, 248, 0.15);
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.admin-wrap {
  padding: 2rem 0;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem;
  text-align: left;
  font-size: 0.94rem;
  vertical-align: top;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d2e3;
  border-radius: 0.35rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

textarea {
  min-height: 120px;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.flex {
  display: flex;
}

.gap-1 {
  gap: 1rem;
}

@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem;
  }

  .main-nav.open {
    display: flex;
  }
}

@media (max-width: 700px) {
  .topbar {
    display: none;
  }

  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating contact buttons */
.contact-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.contact-float-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.contact-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

.float-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,41,59,0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.contact-float-btn:hover .float-tooltip {
  opacity: 1;
}

/* line-clamp utility */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Blog card hover */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* FAQ accordion smooth animasyon */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* Scroll reveal animasyonu — soldan sağa */
[data-reveal="left"] {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal="left"].revealed {
  opacity: 1;
  transform: translateX(0);
}
