/* ============================================================
   Teklifim — Main Stylesheet
   Design: Warm Mediterranean Minimalism ("Şeker Bahçesi")
   ============================================================ */

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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f9f7f4;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Design Tokens ── */
:root {
  --teal:        #1a4a5c;
  --teal-mid:    #2a6a7c;
  --teal-light:  #e8f4f8;
  --teal-border: #c8e4ec;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --cream:       #f9f7f4;
  --cream-dark:  #f0ece6;
  --navy:        #0f2a3a;
  --slate:       #475569;
  --slate-light: #94a3b8;
  --white:       #ffffff;
  --red:         #dc2626;
  --green:       #16a34a;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --container:   1100px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
main { flex: 1; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,247,244,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--teal-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--amber);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal);
  background: var(--teal-light);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--teal-border);
}
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.mobile-nav a:hover { background: var(--teal-light); color: var(--teal); }
.mobile-nav.open { display: flex; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-meta { display: flex; align-items: center; gap: 20px; }
.footer-meta span { font-size: 12px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 5px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--amber);
  color: white;
  box-shadow: 0 4px 16px rgba(217,119,6,0.3);
}
.btn-primary:hover { background: #b45309; box-shadow: 0 6px 24px rgba(217,119,6,0.4); }
.btn-secondary {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 16px rgba(26,74,92,0.25);
}
.btn-secondary:hover { background: #0f3344; }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); }
.btn-full { width: 100%; }
.btn-lg { font-size: 17px; padding: 16px 36px; border-radius: var(--radius-lg); }
.btn-sm { font-size: 13px; padding: 10px 20px; }

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--teal); }
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--teal-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--navy);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,74,92,0.12);
}
.form-input.error { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red); display: none; }
.form-error.visible { display: block; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.form-consent a { color: var(--teal); text-decoration: underline; }
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--slate-light);
}
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}
.form-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-card-sub { font-size: 14px; color: var(--slate); margin-bottom: 20px; }
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--amber);
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
}
.submit-btn:hover:not(:disabled) {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.35);
}
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.alert.visible { display: block; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* ── Hero (landing pages) ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f9f7f4 42%, rgba(249,247,244,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  font-family: 'Sora', sans-serif;
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.hero-title span { color: var(--teal); }
.hero-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(26,74,92,0.08);
  border: 1px solid rgba(26,74,92,0.15);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}
.pill .check { color: var(--green); font-size: 14px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--slate);
}
.trust-item svg { width: 14px; height: 14px; color: var(--teal); }

/* ── Section layouts ── */
.section { padding: 64px 0; }
.section-white { background: white; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal); color: white; }
.section-navy { background: var(--navy); color: white; }
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.text-center { text-align: center; }

/* ── Cards ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.card p { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: rgba(26,74,92,0.08);
  line-height: 1;
}
.step-icon {
  width: 40px; height: 40px;
  background: rgba(26,74,92,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}
.step h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.step p { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.faq-item {
  background: var(--cream);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.faq-check { color: var(--teal); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.faq-item h3 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.faq-item p { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ── Counter ── */
.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.counter-num {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--amber);
}

/* ── Status pages (thank-you, confirm) ── */
.status-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cream);
}
.status-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.status-icon { font-size: 52px; margin-bottom: 20px; }
.status-card h1 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.status-card p { font-size: 15px; color: var(--slate); line-height: 1.65; margin-bottom: 24px; }
.status-card .btn { margin-bottom: 12px; }
.status-footer { font-size: 12px; color: var(--slate-light); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--teal-border); }

/* ── Spinner ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.visible { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-1 { animation: fadeUp 0.55s ease both; animation-delay: 0.05s; }
.fade-up-2 { animation: fadeUp 0.55s ease both; animation-delay: 0.15s; }
.fade-up-3 { animation: fadeUp 0.55s ease both; animation-delay: 0.25s; }
.fade-up-4 { animation: fadeUp 0.55s ease both; animation-delay: 0.35s; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 16px 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 13px; line-height: 1.5; }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--amber);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}
.cookie-reject {
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-bg { opacity: 0.25; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(249,247,244,0.7) 0%, rgba(249,247,244,0.95) 100%); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .section { padding: 48px 0; }
  .status-card { padding: 28px 20px; }

  /* Hero: compress to fit first screen on all phones */
  .hero { align-items: center; }
  .hero-content {
    padding: 18px 0 14px;
    gap: 14px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .hero-pills {
    gap: 6px;
    margin-bottom: 10px;
  }
  .pill {
    font-size: 11px;
    padding: 4px 9px;
  }
  .trust-row {
    gap: 12px;
    margin-top: 10px;
  }
  .trust-item { font-size: 11px; }
  /* Form card: tighter on mobile */
  .form-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .form-card-title { font-size: 15px; margin-bottom: 2px; }
  .form-card-sub { font-size: 12px; margin-bottom: 12px; }
  .form-label { font-size: 12px; }
  .form-input {
    padding: 10px 12px;
    font-size: 14px;
  }
  .submit-btn {
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
  }
  .form-consent { font-size: 11px; gap: 8px; }
  .form-trust { font-size: 11px; padding: 8px 10px; }
  .form-group { gap: 4px; }
  .mb-4 { margin-bottom: 10px; }
}

/* Extra-small phones: iPhone SE 375×667 */
@media (max-width: 390px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .hero-content { padding: 12px 0 10px; gap: 10px; }
  .hero-badge { font-size: 10px; padding: 3px 9px; margin-bottom: 7px; }
  .hero-title { font-size: 20px; margin-bottom: 6px; }
  .hero-desc { font-size: 12px; margin-bottom: 8px; }
  .hero-pills { gap: 5px; margin-bottom: 8px; }
  .pill { font-size: 10px; padding: 3px 8px; }
  .trust-row { gap: 10px; margin-top: 8px; }
  .trust-item { font-size: 10px; }
  .form-card { padding: 12px 12px; }
  .form-card-title { font-size: 14px; }
  .form-card-sub { font-size: 11px; margin-bottom: 10px; }
  .form-input { padding: 9px 10px; font-size: 13px; }
  .submit-btn { padding: 10px; font-size: 13px; min-height: 40px; }
  .mb-4 { margin-bottom: 8px; }
}

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
