:root {
  --color-bg: #f5f7fb;
  --color-bg-alt: #ffffff;
  --color-border: #dde2ee;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-primary: #0f4c81; /* koyu mavi */
  --color-primary-soft: rgba(15, 76, 129, 0.08);
  --color-accent: #f59e0b; /* turuncu */
  --color-accent-soft: rgba(245, 158, 11, 0.12);
  --color-danger: #b91c1c;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Font loading için reserve space */
  font-display: swap;
  /* Font size stability */
  font-size: 16px;
  line-height: 1.5;
}

/* Font yüklendiğinde geçiş */
.fonts-loaded body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0 0 0.75rem;
  color: #020617;
}

p {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
      to bottom,
      rgba(248, 250, 252, 0.95),
      rgba(248, 250, 252, 0.85)
    );
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav-desktop a {
  color: var(--color-text-muted);
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 0.75rem;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.nav-mobile a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.nav-mobile a.btn {
  padding-inline: 1.25rem;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    background-color 0.12s ease-out, color 0.12s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1d5c96);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(15, 76, 129, 0.4);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.btn-outline:hover {
  background-color: #e5f0ff;
  border-color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background-color: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
}

.btn-whatsapp:hover {
  background-color: #20ba5a !important;
  border-color: #20ba5a !important;
  transform: translateY(-1px);
}

/* Hero */

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: 1rem;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.hero-bullets li::before {
  content: "•";
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* Cards & sections */

.card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.section {
  padding: 2rem 0;
}

.section-light {
  background-color: #f9fafb;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

/* AdSense alanları */
.ad-slot {
  margin: 0;
  min-height: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Reklam yüklenene kadar tamamen gizle */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* Reklam container'ı için */
  overflow: hidden;
  /* Boşluk olmaması için */
  height: 0;
  padding: 0;
}

.ad-slot.ads-loaded {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin: 1.5rem 0;
  padding: 0.5rem 0;
}

.ad-slot-hero { 
  padding: 0; 
}

.ad-slot-result { 
  margin-top: 1rem; 
}

/* Reklam element'i için */
.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 90px !important;
}

/* Responsive reklam boyutları */
@media (max-width: 768px) {
  .ad-slot .adsbygoogle[style*="width:728px"] {
    width: 320px !important;
    height: 100px !important;
  }
}

/* Calculator */

.calculator {
  /* Layout shift'i önlemek için minimum yükseklik */
  min-height: 400px;
}

.calculator h2 {
  font-size: 1.25rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label,
.form-field legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out;
}

/* iOS Safari: select placeholder/metin rengini mavi yerine site rengine sabitle */
.form-field select {
  -webkit-appearance: none;
  appearance: none;
  color: var(--color-text);
}

/* Placeholder option (örn. Şehir seçiniz) daha soluk görünsün */
.form-field select:required:invalid {
  color: var(--color-text-muted);
}

.form-field select option {
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(15, 76, 129, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.2);
  background-color: #f9fafb;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.35rem;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-chip {
  position: relative;
}

.option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  cursor: pointer;
  background-color: #ffffff;
  color: var(--color-text-muted);
  transition: border-color 0.12s ease-out, background-color 0.12s ease-out,
    color 0.12s ease-out, box-shadow 0.12s ease-out;
}

.option-chip input:checked + span {
  border-color: rgba(15, 76, 129, 0.9);
  background-color: var(--color-primary-soft);
  color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 76, 129, 0.3);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.3rem 0 0.7rem;
}

.checkbox input {
  margin-top: 0.12rem;
}

.extras-legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.extras-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.extras-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.extras-container .extra-option {
  margin: 0;
}

.extras-container .extra-option span em {
  font-style: normal;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Ekstra ürünler için m² ve adet alanları */
.extra-area-input,
.extra-quantity-input {
  max-width: 6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  margin-left: auto;
}

.extras-empty {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

#extras-field.extras-none {
  opacity: 0.7;
}

/* Result */

.result {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.9);
}

.result-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.result-value {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.result-item {
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  background-color: #f9fafb;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.result-item-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.result-item-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.alert {
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.7rem;
}

.alert-info {
  background-color: var(--color-accent-soft);
  color: #92400e;
}

.hidden {
  display: none;
}

/* Lead section */

.lead-card {
  display: grid;
  gap: 1.3rem;
  /* Layout shift'i önlemek için minimum yükseklik */
  min-height: 280px;
}

.lead-text h2 {
  font-size: 1.35rem;
}

.lead-text p {
  color: var(--color-text-muted);
}

.lead-form {
  display: grid;
  gap: 0.3rem;
}

.lead-message {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.lead-message.success {
  color: #15803d;
}

.lead-message.error {
  color: var(--color-danger);
}

/* Tables */

.responsive-table {
  margin-top: 1.2rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

thead {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

tbody tr:hover {
  background-color: #eff6ff;
}

/* Blog grid */

.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.blog-card img {
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.blog-card .blog-meta { font-size: 0.8rem; color: var(--color-text-muted); }

/* Trust */

.trust-grid {
  display: grid;
  gap: 1rem;
}

.trust-item {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background-color: #eff6ff;
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Accordion */

.accordion {
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
}

.accordion-header span:first-child {
  font-weight: 500;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #eff6ff;
  color: #0f172a;
  font-weight: 600;
}

.accordion-body {
  padding: 0 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: none;
}

.accordion-body.open {
  display: block;
}

.accordion-body ul {
  margin: 0.6rem 0 0.4rem;
}

.accordion-body li {
  margin-bottom: 0.25rem;
}

/* Footer */

.site-footer {
  background: linear-gradient(180deg, #020617, #020617);
  color: #e5e7eb;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  font-size: 0.9rem;
}

.logo-footer {
  color: #e5e7eb;
}

.footer-about p {
  color: #9ca3af;
  max-width: 20rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-legal a {
  color: #9ca3af;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #e5e7eb;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.footer-contact a {
  color: #e5e7eb;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Sticky CTA */

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.75rem;
  z-index: 50;
  width: calc(100% - 2.5rem);
  max-width: 380px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), #f97316);
  color: #111827;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.sticky-cta:hover {
  transform: translateX(-50%) translateY(-1px);
}

/* Layout: larger screens */

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .lead-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 2.3rem;
  }

  .card {
    padding: 1.7rem 1.6rem;
  }

  .site-footer {
    padding-top: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    align-items: flex-start;
  }
}

