@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary: #1a3c6e;
  --primary-dark: #0f2447;
  --accent: #e63946;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --bg-light: #f7f8fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5298 100%);
  padding: 80px 0 72px;
  text-align: center;
  color: var(--white);
}

.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb span { color: rgba(255,255,255,0.3); }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ── ÜRÜN TANITIM ── */
.product-intro {
  padding: 88px 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.product-img-wrap {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow);
}

.product-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.product-details h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.product-details > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.spec-box {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.spec-box svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
}

.spec-box strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 6px;
}

.spec-box span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ── KONFİGÜRATÖR ── */
.configurator-section {
  padding: 88px 0;
  background: var(--bg-light);
}

.configurator-section .section-label {
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.config-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
}

.config-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.config-group:first-child { padding-top: 0; }
.config-group:last-child { border-bottom: none; padding-bottom: 0; }

/* Toggle Switch */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.warning-tag {
  display: none;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  gap: 5px;
  align-items: center;
}

.warning-tag.show { display: inline-flex; }

/* Sub-options */
.sub-options {
  display: none;
  padding: 16px 0 0 64px;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-options.show { display: flex; }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  transition: border-color 0.2s, background 0.2s;
}

.radio-opt input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-opt:has(input:checked) {
  border-color: var(--primary);
  background: rgba(26,60,110,0.05);
}

/* Machine columns */
.machines-sub {
  display: none;
  padding: 16px 0 0 0;
}

.machines-sub.show { display: block; }

.machines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.machine-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.machine-col h5 .req { color: var(--accent); }

.machine-col .radio-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Submit row */
.config-footer {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.config-hint {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
}

.teklif-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 32px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.teklif-btn:hover:not(:disabled) {
  background: #c1121f;
  transform: translateY(-1px);
}

.teklif-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ── GENEL BAKIŞ ── */
.overview-section {
  padding: 88px 0;
  background: var(--white);
}

.overview-section .section-label { color: var(--accent); margin-bottom: 8px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.overview-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.overview-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; }

.fc-shield { background: rgba(26,60,110,0.1); }
.fc-shield svg { fill: var(--primary); }

.fc-pallet { background: rgba(46,204,113,0.12); }
.fc-pallet svg { fill: #27ae60; }

.fc-money { background: rgba(230,57,70,0.1); }
.fc-money svg { fill: var(--accent); }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── ÖNE ÇIKAN ÜRÜNLER ── */
.featured-section {
  padding: 88px 0;
  background: var(--bg-light);
}

.featured-section .section-label { color: var(--accent); margin-bottom: 8px; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

.featured-card-img {
  background: #f5f6fa;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-card-img img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  transition: transform 0.3s;
}

.featured-card:hover .featured-card-img img { transform: scale(1.06); }

.featured-card-info {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.featured-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.card-link svg { width: 14px; height: 14px; fill: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.25s;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--border); }

.modal-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.modal-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.modal-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.modal-form .req { color: var(--accent); }

.modal-form input,
.modal-form textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}

.modal-form textarea { resize: vertical; min-height: 130px; }

.form-feedback {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-feedback.error {
  display: block;
  background: #fff5f5;
  color: #9b1c1c;
  border: 1px solid #fca5a5;
}

.modal-submit {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.15s;
}

.modal-submit:hover:not(:disabled) {
  background: #c1121f;
  transform: translateY(-1px);
}

.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 260px;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  display: block;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 16px; height: 16px; fill: var(--white); }

.footer-col h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.88rem;
}

.footer-col a:hover { color: var(--white); }

.footer-map {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-img-wrap {
    position: static;
    max-width: 460px;
    margin: 0 auto;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .machines-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-map {
    grid-column: 1 / -1;
    height: 200px;
  }
}

@media (max-width: 600px) {
  .page-hero { padding: 56px 0 48px; }

  .product-intro,
  .configurator-section,
  .overview-section,
  .featured-section {
    padding: 56px 0;
  }

  .config-box { padding: 24px 18px; }

  .sub-options { padding-left: 0; }

  .config-footer { flex-direction: column; align-items: stretch; }

  .teklif-btn { width: 100%; text-align: center; }

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

  .footer-map { height: 160px; }
}
