/*
Theme Name: Tepetrafik
Theme URI:
Author:
Description: Sade kurumsal sigorta teması
Version: 3.0
License: GNU General Public License v2 or later
Text Domain: tepetrafik
*/

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg-light: #f4f6f9;
  --bg-dark:  #1b2a4a;
  --border:   #dde2ea;
  --text:     #2c3345;
  --muted:    #6b7280;
  --blue:     #1a4f9e;
  --blue-h:   #163f80;
  --red:      #c0392b;
  --font:     'Inter', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul  { list-style: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.05rem; }

p { margin-bottom: 0.9rem; color: var(--muted); }

/* ── Links ────────────────────────────────────────── */
a {
  color: var(--blue);
  text-decoration: none;
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.25s ease;
}

a:hover::after,
a:active::after { width: 100%; }
a:hover { color: var(--blue-h); }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section__title { margin-bottom: 0.6rem; }
.section__sub   { max-width: 500px; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
}

.btn::after { display: none; }

.btn--blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--blue:hover { background: var(--blue-h); border-color: var(--blue-h); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; }

.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--red:hover { background: #a93226; color: #fff; }

/* ── Top Bar ──────────────────────────────────────── */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
}
.top-bar a::after { background: rgba(255,255,255,0.5); }
.top-bar a:hover  { color: #fff; }

.top-bar__left, .top-bar__right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header.no-sticky { position: relative; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.site-logo::after { display: none; }

img.custom-logo {
  height: 42px;
  width: auto;
  display: block;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.logo-shield {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.site-nav > ul { display: flex; gap: 0.15rem; }

.site-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a::after { display: none; }
.site-nav a:hover { background: var(--bg-light); color: var(--blue); }

/* ── Dropdown Alt Menü ────────────────────────────── */
.site-nav .menu-item-has-children { position: relative; }

.site-nav .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: block;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  flex-direction: column;
  gap: 0;
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.site-nav .sub-menu li { display: block; border-bottom: 1px solid #f3f4f6; }
.site-nav .sub-menu li:last-child { border-bottom: none; }
.site-nav .sub-menu a {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #1f2937;
  border-radius: 0;
  white-space: nowrap;
}
.site-nav .sub-menu a:hover { background: #f0f4ff; color: var(--blue); }

.header-btn { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 4.5rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 1rem; }

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero__badges {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.badge__dot {
  width: 5px; height: 5px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Quote Box ────────────────────────────────────── */
.quote-box {
  background: #fff;
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.quote-box h3 {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.quote-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.quote-form select,
.quote-form input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 0.88rem;
  border-radius: 3px;
  outline: none;
  appearance: none;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s;
}

.quote-form select:focus,
.quote-form input:focus { border-color: var(--blue); }

.quote-form .btn { width: 100%; text-align: center; padding: 0.75rem; font-size: 0.9rem; }

.quote-note {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.quote-success {
  text-align: center;
  padding: 2rem 1rem;
}
.quote-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 1.6rem;
  line-height: 56px;
  margin: 0 auto 1rem;
}
.quote-success h3 {
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.quote-success p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Services ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(26,79,158,0.08);
}

.service-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.service-card__desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.service-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar {
  background: var(--blue);
  padding: 2.5rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat:last-child { border-right: none; }

.stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* ── Why ──────────────────────────────────────────── */
.why-bg { background: var(--bg-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
}

.why-card__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.why-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.why-card p { font-size: 0.83rem; margin: 0; }

/* ── Claims ───────────────────────────────────────── */
.claims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.claims-steps { margin-top: 1.75rem; }

.claim-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.claim-step__num {
  width: 28px; height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.claim-step h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.claim-step p { font-size: 0.82rem; margin: 0; }

.hotline-box {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 4px;
  padding: 2rem;
}

.hotline-box__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}

.hotline-box__num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.hotline-box__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.hotline-box hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.25rem 0;
}

.hotline-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hotline-row__icon {
  font-size: 0.9rem;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.hotline-row p { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin: 0; }
.hotline-row strong { display: block; color: #fff; font-size: 0.85rem; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-wrap {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
  user-select: none;
}

.faq-q:hover { color: var(--blue); }

.faq-icon {
  font-size: 1.1rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  font-size: 0.84rem;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  line-height: 1.65;
}

.faq-item.open .faq-a { max-height: 250px; padding-bottom: 1.1rem; }

/* ── Contact ──────────────────────────────────────── */
.contact-bg { background: var(--bg-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-family: var(--font);
  font-size: 0.88rem;
  border-radius: 3px;
  outline: none;
  display: block;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--blue); }
.contact-form textarea { height: 120px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.ci-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.ci-value { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 0; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); }

.footer-main {
  display: grid;
  grid-template-columns: 260px repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo { color: #fff; margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.65rem; }
.footer-brand-name { color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-col a::after { background: rgba(255,255,255,0.5); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.78rem;
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.footer-copy a { color: #fff; }

.logo-slogan {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.25rem;
}

.sosyal-bar { display: flex; gap: 0.5rem; margin-top: 1rem; }

.sosyal-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.sosyal-icon::after { display: none; }
.sosyal-icon:hover  { background: var(--blue); color: #fff; }

/* ── Page Template ────────────────────────────────── */
.page-wrap {
  padding: 3rem 0 5rem;
  min-height: 60vh;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--muted); }

.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.page-body {
  max-width: 780px;
}

.page-body p       { color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.page-body h2      { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text); }
.page-body h3      { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.page-body ul,
.page-body ol      { margin: 0 0 1.25rem 1.5rem; color: var(--muted); }
.page-body li      { margin-bottom: 0.4rem; line-height: 1.65; }
.page-body a       { color: var(--blue); }
.page-body strong  { color: var(--text); }
.page-body img     { border-radius: 4px; margin: 1.5rem 0; }
.page-body table   { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.page-body th,
.page-body td      { padding: 0.65rem 1rem; border: 1px solid var(--border); text-align: left; }
.page-body th      { background: var(--bg-light); font-weight: 600; color: var(--text); }
.page-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-light);
  color: var(--muted);
  font-style: italic;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .quote-box { max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* ── Hamburger butonu ─────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobil menü ───────────────────────────────────── */
.mobile-nav {
  display: none;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem 1.25rem;
}
.mobile-nav ul li a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: #fff; }

@media (max-width: 680px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-btn .btn { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: max-height 0.28s ease;
  }
  .mobile-nav.is-open { max-height: 480px; }
  .top-bar__left { display: none; }
  .why-grid, .claims-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.75rem;
  }
  .stat { border-right: none; border-bottom: none; }
  .stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.15); }
  .stat:nth-child(1),
  .stat:nth-child(2)    { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}
