/* ===================== Formenler Toyota Servis — Prototype Styles ===================== */

:root {
  --color-red: #eb0a1e;
  --color-red-deep: #a80614;
  --color-red-light: #ff4d5e;
  --color-ink: #16181c;
  --color-ink-soft: #565c66;
  --color-bg: #fbfaf9;
  --color-bg-alt: #f1f2f4;
  --color-white: #ffffff;
  --color-border: #e5e7eb;

  --gradient-hero: linear-gradient(135deg, #16181c 0%, #2a2d33 55%, #a80614 130%);
  --gradient-red: linear-gradient(120deg, #eb0a1e, #ff4d5e);

  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 30px rgba(22, 24, 28, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(22, 24, 28, 0.16);

  --container-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

p { margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.section-head p { color: var(--color-ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(235, 10, 30, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(235, 10, 30, 0.42); }

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.18); }

.btn-outline-dark {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}
.btn-outline-dark:hover { border-color: var(--color-red); color: var(--color-red); }

.btn-block { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

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

.site-header.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(22, 24, 28, 0.08);
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  line-height: 1.15;
}

.site-header.is-scrolled .logo { color: var(--color-ink); }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-red);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled .main-nav a { color: var(--color-ink); }

.main-nav a:hover { opacity: 1; color: var(--color-red-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

.site-header.is-scrolled .nav-toggle span { background: var(--color-ink); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-ink);
}

.mobile-nav a.mobile-nav-cta {
  font-size: 0.95rem;
  color: var(--color-white);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--gradient-hero);
  color: var(--color-white);
  overflow: hidden;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--color-red-light); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 46px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--color-white);
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================== SERVICES ===================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(235, 10, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-red);
}

.service-card h3 { font-size: 1.1rem; }

.service-card p { color: var(--color-ink-soft); font-size: 0.95rem; margin: 0; }

/* ===================== PARTS ===================== */
.parts { background: var(--color-bg-alt); }

.parts-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.parts-list { margin: 20px 0 28px; }

.parts-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-border);
}

.parts-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
}

.parts-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  overflow: hidden;
  isolation: isolate;
}

.parts-visual-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parts-visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  text-align: left;
  background: rgba(22, 24, 28, 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 14px 22px;
}

.parts-visual-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-red-light);
}

.parts-visual-badge span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===================== WHY US ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card { text-align: center; padding: 10px; }

.why-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(235, 10, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg { width: 28px; height: 28px; stroke: var(--color-red); }

.why-card h3 { font-size: 1.05rem; }

.why-card p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0; }

/* ===================== SHOWCASE / ÇALIŞMALARIMIZ ===================== */
.showcase { background: var(--color-bg-alt); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-item.large { grid-column: span 2; grid-row: span 2; }

.showcase-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--g1, #1a1a1a), var(--g2, #eb0a1e));
  transition: transform 0.6s ease;
}

.showcase-item img,
.showcase-item video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 60%);
}

.showcase-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.showcase-item:hover::before,
.showcase-item:hover img,
.showcase-item:hover video { transform: scale(1.08); }

.showcase-label {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.showcase-item.large .showcase-label { font-size: 1.15rem; }

.showcase-label small { display: block; font-weight: 500; opacity: 0.75; font-size: 0.78rem; margin-top: 2px; }

.video-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(235, 10, 30, 0.85);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.video-badge svg { width: 11px; height: 11px; }

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--color-bg-alt); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial-stars { color: var(--color-red); letter-spacing: 2px; margin-bottom: 12px; }

.testimonial-card p { color: var(--color-ink-soft); font-size: 0.95rem; }

.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.92rem; }

.testimonial-author span { font-size: 0.8rem; color: var(--color-ink-soft); }

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-ink);
  cursor: pointer;
}

.plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.plus::before, .plus::after {
  content: '';
  position: absolute;
  background: var(--color-red);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }

.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 4px 22px;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list { margin: 28px 0 30px; display: flex; flex-direction: column; gap: 20px; }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(235, 10, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--color-red); }

.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }

.contact-info-item p { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0; }

.kvkk-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  max-width: 420px;
}

.kvkk-note a { color: var(--color-red); text-decoration: underline; }

.contact-map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--color-ink); color: rgba(255, 255, 255, 0.75); padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .logo { color: var(--color-white); margin-bottom: 14px; }

.footer-desc { font-size: 0.9rem; max-width: 260px; }

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover { color: var(--color-red-light); }

.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .footer-trademark {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom .footer-reviews-note {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .footer-reviews-note a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
}

/* ===================== LEGAL PAGES ===================== */
.legal-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-header .logo { color: var(--color-ink); }

.legal-back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-red);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}

.legal-content h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 8px; }

.legal-content .legal-updated { color: var(--color-ink-soft); font-size: 0.88rem; margin-bottom: 40px; }

.legal-content h2 { font-size: 1.15rem; margin-top: 40px; }

.legal-content p, .legal-content li { color: var(--color-ink-soft); font-size: 0.95rem; }

.legal-content ul { padding-left: 20px; list-style: disc; margin-bottom: 1em; }

.legal-content li { margin-bottom: 6px; }

.legal-placeholder {
  background: rgba(235, 10, 30, 0.06);
  border: 1px dashed var(--color-red);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--color-ink);
  margin: 24px 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero { padding: 140px 0 72px; }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-actions .btn-primary { display: none; }
}

.mobile-nav-cta { margin-top: 6px; }
