/* ============================================
   KUTALP A.Ş. — Corporate Design System
   Static HTML5 + CSS3 — No frameworks
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --c-primary: #0f2b46;
  --c-primary-light: #1a3d5c;
  --c-primary-dark: #091e33;
  --c-accent: #e8833a;
  --c-accent-hover: #d6722b;
  --c-accent-light: rgba(232, 131, 58, 0.12);
  --c-surface: #ffffff;
  --c-surface-alt: #f7f8fa;
  --c-surface-card: #ffffff;
  --c-border: #e2e6eb;
  --c-border-light: #f0f2f5;
  --c-text: #1a1a2e;
  --c-text-secondary: #5a6275;
  --c-text-muted: #8c93a3;
  --c-text-inverse: #ffffff;
  --c-success: #22c55e;
  --c-error: #ef4444;

  /* Typography */
  --f-display: 'Outfit', sans-serif;
  --f-body: 'Source Sans 3', sans-serif;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Radii */
  --r-sm: 0.375rem;
  --r-md: 0.5rem;
  --r-lg: 0.75rem;
  --r-xl: 1rem;
  --r-2xl: 1.25rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 43, 70, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 43, 70, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 43, 70, 0.1);
  --shadow-xl: 0 16px 48px rgba(15, 43, 70, 0.12);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Layout */
  --header-h: 72px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-xl));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--c-accent-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: var(--sp-md); }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section {
  padding: var(--sp-4xl) 0;
}

.section--alt {
  background: var(--c-surface-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section__header p {
  margin-top: var(--sp-md);
  color: var(--c-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-light);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-xl);
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-text-inverse);
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-border);
}

.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover { background: var(--c-accent-light); }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-light);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.header__nav a {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--sp-xs) 0;
  transition: color var(--t-fast);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--c-primary);
}

.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--c-surface-alt);
  border-radius: var(--r-full);
  padding: 2px;
  border: 1px solid var(--c-border-light);
}

.lang-toggle__btn {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  background: transparent;
  color: var(--c-text-muted);
  transition: all var(--t-fast);
}

.lang-toggle__btn.active {
  background: var(--c-surface);
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-primary);
  border-radius: 1px;
  transition: all var(--t-base);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: var(--sp-xl) var(--sp-lg);
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-text);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--c-border-light);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--c-accent);
}

/* --- Hero --- */
.hero {
  padding: var(--sp-4xl) 0;
  background: linear-gradient(160deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
  color: var(--c-text-inverse);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232, 131, 58, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232, 131, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__content .badge {
  background: rgba(232, 131, 58, 0.2);
  color: var(--c-accent);
}

.hero__content h1 {
  color: var(--c-text-inverse);
  margin-bottom: var(--sp-lg);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.hero__content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-xl);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.hero .btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-text-inverse);
}

.hero .btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* --- Cards --- */
.card {
  background: var(--c-surface-card);
  border-radius: var(--r-2xl);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-light);
  transition: all var(--t-base);
}

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

.card__icon {
  width: 48px; height: 48px;
  background: var(--c-accent-light);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  color: var(--c-accent);
}

.card__icon svg {
  width: 24px; height: 24px;
}

.card h3 {
  margin-bottom: var(--sp-sm);
}

.card p {
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

/* --- Brand Cards --- */
.brand-card {
  background: var(--c-surface-card);
  border-radius: var(--r-2xl);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border-light);
  text-align: center;
  transition: all var(--t-base);
  text-decoration: none;
  display: block;
  color: inherit;
}

.brand-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--c-accent);
}

.brand-card__logo {
  width: 120px;
  height: 80px;
  margin: 0 auto var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-card h3 {
  margin-bottom: var(--sp-sm);
  font-size: 1.25rem;
}

.brand-card p {
  color: var(--c-text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.brand-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-accent);
}

.brand-card__link svg {
  width: 16px; height: 16px;
  transition: transform var(--t-fast);
}

.brand-card:hover .brand-card__link svg {
  transform: translateX(3px);
}

/* --- Accordion / FAQ --- */
.accordion {
  max-width: 720px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--c-border-light);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) 0;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--sp-md);
}

.accordion__trigger:hover {
  color: var(--c-accent);
}

.accordion__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  transition: transform var(--t-base);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
}

.accordion__panel__inner {
  padding-bottom: var(--sp-lg);
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--sp-sm);
  color: var(--c-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--c-accent-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Info Cards (Contact/Company) --- */
.info-card {
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
  padding: var(--sp-xl);
  background: var(--c-surface-card);
  border-radius: var(--r-2xl);
  border: 1px solid var(--c-border-light);
}

.info-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--c-accent-light);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.info-card__icon svg {
  width: 20px; height: 20px;
}

.info-card h4 {
  margin-bottom: var(--sp-xs);
}

.info-card p, .info-card a {
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
}

/* --- Company Info Table --- */
.company-info {
  width: 100%;
  border-collapse: collapse;
}

.company-info tr {
  border-bottom: 1px solid var(--c-border-light);
}

.company-info th {
  text-align: left;
  padding: var(--sp-md) var(--sp-md) var(--sp-md) 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  white-space: nowrap;
  width: 160px;
  vertical-align: top;
}

.company-info td {
  padding: var(--sp-md) 0;
  color: var(--c-text);
  font-size: 0.9375rem;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--c-primary);
  color: var(--c-text-inverse);
  padding: var(--sp-lg);
  transform: translateY(100%);
  transition: transform var(--t-slow);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  min-width: 250px;
}

.cookie-banner p a {
  color: var(--c-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.cookie-banner .btn--primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* --- Legal Pages --- */
.legal-content {
  padding: var(--sp-4xl) 0;
}

.legal-content h1 {
  margin-bottom: var(--sp-2xl);
}

.legal-content h2 {
  font-size: 1.375rem;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
}

.legal-content p {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
  color: var(--c-text-secondary);
}

.legal-content ul li {
  margin-bottom: var(--sp-sm);
}

.legal-content .last-updated {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2xl);
}

/* --- Footer --- */
.footer {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer__brand p {
  margin-top: var(--sp-md);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__col h4 {
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-lg);
}

.footer__col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: var(--sp-xs) 0;
  transition: color var(--t-fast);
}

.footer__col a:hover {
  color: var(--c-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-md);
  font-size: 0.8125rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover {
  color: var(--c-accent);
}

.footer__legal-links {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  padding: var(--sp-3xl) 0 var(--sp-2xl);
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border-light);
}

.page-hero h1 {
  margin-bottom: var(--sp-sm);
}

.page-hero p {
  color: var(--c-text-secondary);
  max-width: 560px;
}

/* --- Brand Detail Page --- */
.brand-hero {
  padding: var(--sp-4xl) 0;
  background: linear-gradient(160deg, var(--c-primary-dark), var(--c-primary));
  color: var(--c-text-inverse);
  text-align: center;
}

.brand-hero img {
  height: 80px;
  margin: 0 auto var(--sp-xl);
}

.brand-hero h1 {
  color: var(--c-text-inverse);
  margin-bottom: var(--sp-md);
}

.brand-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header__nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 440px; padding: var(--sp-3xl) 0; }
  .section { padding: var(--sp-3xl) 0; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

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

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .info-card {
    flex-direction: column;
  }

  .company-info th {
    width: auto;
    display: block;
    padding-bottom: 0;
  }

  .company-info td {
    display: block;
    padding-top: var(--sp-xs);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
