/* ==========================================================================
   on9 Agency — Master Stylesheet
   Marka: on9 Agency (On Dokuz Agency)
   Renk Paleti:
     - Koyu Zemin: #0B0B0D
     - Kart / Bölüm Zemin: #17171B
     - Hafif Kenarlık: #2B2B33
     - Ana Metin: #FFFFFF
     - İkincil Metin: #BFC0C8
     - Turuncu Vurgu: #FF7A00
     - Turuncu-Kırmızı Vurgu: #FF4D00
   ========================================================================== */

:root {
  --bg-dark: #0B0B0D;
  --bg-card: #17171B;
  --bg-card-hover: #1e1e24;
  --border-subtle: #2B2B33;
  --border-focus: rgba(255, 122, 0, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #BFC0C8;
  --text-dim: #797a85;
  --orange-primary: #FF7A00;
  --orange-red: #FF4D00;
  --gradient-orange: linear-gradient(135deg, #FF7A00 0%, #FF4D00 100%);
  --glow-orange: rgba(255, 122, 0, 0.18);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-top-right {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--orange-primary) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.glow-mid-left {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orange-red) 0%, transparent 70%);
  top: 40%;
  left: -150px;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.text-gradient {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.25);
  color: var(--orange-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--orange-primary);
  box-shadow: 0 0 8px var(--orange-primary);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 77, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange-primary);
  border-color: rgba(255, 122, 0, 0.4);
}

.btn-outline-orange:hover {
  background: rgba(255, 122, 0, 0.1);
  border-color: var(--orange-primary);
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orange);
  border-radius: 2px;
}

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

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  padding: 32px 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  display: flex;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-desc {
  margin: 24px 0 36px;
  font-size: 1.22rem;
  line-height: 1.65;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.badge-item svg {
  color: var(--orange-primary);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orange);
}

/* 9 Specialties Grid (3 Columns on Desktop, 2 on Tablet, 1 on Mobile) */
.specialties-section {
  padding: 90px 0;
  background: #0f0f13;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.specialty-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 122, 0, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 122, 0, 0.12);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.subbrand-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.subbrand-name span {
  color: var(--orange-primary);
}

.code-badge {
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.3);
  color: var(--orange-primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.specialty-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.specialty-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--orange-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.card-footer svg {
  transition: transform 0.2s ease;
}

.specialty-card:hover .card-footer svg {
  transform: translateX(4px);
}

/* Who We Work For (Kimler İçin Çalışıyoruz) */
.target-audience-section {
  padding: 90px 0;
}

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

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.audience-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-primary);
  margin-bottom: 22px;
}

.audience-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Solution Scenarios (Çözüm Senaryoları) */
.scenarios-section {
  padding: 90px 0;
  background: #0d0d10;
}

.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 280px 180px 1fr;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
}

.scenario-item:hover {
  border-color: rgba(255, 122, 0, 0.4);
  background: var(--bg-card-hover);
}

.scenario-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.scenario-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-code-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--orange-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.scenario-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Working Model (Çalışma Modelimiz) */
.model-section {
  padding: 90px 0;
}

.model-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange-primary);
  line-height: 1;
  margin-bottom: 18px;
  font-family: var(--font-sans);
  opacity: 0.9;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
  padding: 90px 0;
  background: #0f0f13;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(255, 122, 0, 0.4);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  user-select: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--orange-primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Contact / Consultation Form Section */
.contact-section {
  padding: 90px 0 110px;
  position: relative;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 28px;
}

.contact-notes {
  margin-top: 36px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(11, 11, 13, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.specialty-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(11, 11, 13, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-label:hover {
  border-color: rgba(255, 122, 0, 0.4);
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--orange-primary);
  width: 16px;
  height: 16px;
}

/* Detail Page Specific Styles */
.detail-hero {
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0e0e12;
}

.detail-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-code-badge {
  background: var(--gradient-orange);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.detail-subbrand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-muted);
}

.detail-layout {
  padding: 70px 0 100px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
}

.detail-content-block {
  margin-bottom: 48px;
}

.detail-content-block h2 {
  font-size: 1.65rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.services-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-muted);
}

.services-checklist li svg {
  color: var(--orange-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.deliverables-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 20px;
}

.deliverables-box h4 {
  color: var(--orange-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.sidebar-sticky-card {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Comparison Table on Specialties Page */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: #121216;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
footer.site-footer {
  background: #08080a;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 36px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.94rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--orange-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scenario-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-sticky-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav, .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .model-steps-grid {
    grid-template-columns: 1fr;
  }

  .specialty-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .specialty-checkbox-grid {
    grid-template-columns: 1fr;
  }
}
