/* ============================================================
   KleechaBytes — one-page landing styles
   Brand: cream bg, charcoal + date-brown accents
   ADD new section styles below the marked "FUTURE SECTIONS" block.
   ============================================================ */

:root {
  /* Warm kleecha-inspired palette */
  --cream: #FDF8F0;
  --cream-deep: #F5EBD9;
  --charcoal: #1A1B27;
  --date: #B87A2E;       /* golden / date-brown accent */
  --date-dark: #8F5C1F;  /* button fill: 5.6:1 with white text (WCAG AA) */
  --date-darker: #744A18; /* button hover */
  --muted: #5C5348;      /* secondary text — accessible on cream */
  --line: #E8DCC8;
  --white: #FFFFFF;

  --font-en: "Outfit", system-ui, sans-serif;
  --font-ar: "Cairo", "Outfit", system-ui, sans-serif;

  --radius: 14px;
  --tap: 48px; /* minimum tap target */
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--cream-deep) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, #F8F1E4 100%);
  color: var(--charcoal);
  font-family: var(--font-en);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Arabic / RTL */
html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] .logo {
  /* Keep brand Latin spelling LTR even in Arabic UI */
  direction: ltr;
  unicode-bidi: isolate;
}

:focus-visible {
  outline: 3px solid var(--date);
  outline-offset: 3px;
}

/* ---------- Language toggle (corner) ---------- */
.lang-toggle {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 10;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--charcoal);
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  font: 600 0.9375rem/1 var(--font-en);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

html[lang="ar"] .lang-toggle {
  font-family: var(--font-ar);
}

.lang-toggle:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* ---------- Single-screen layout ---------- */
.screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 2rem;
}

.content {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

/* Subtle entrance — disabled when user prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .content {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Brand logo text */
.logo {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.logo-kleecha {
  color: var(--charcoal);
}

.logo-bytes {
  color: var(--date);
}

.headline {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

html[lang="ar"] .headline {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.support {
  color: var(--muted);
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  font-weight: 400;
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

html[lang="ar"] .support {
  max-width: 36ch;
}

/* ---------- Contact buttons ---------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tap);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-label {
  line-height: 1.2;
}

.btn-detail {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.01em;
  /* phone number and email stay left-to-right in Arabic mode */
  direction: ltr;
  unicode-bidi: isolate;
}

/* Primary: Call */
.btn-call {
  background: var(--date-dark);
  color: var(--white);
  border: 2px solid var(--date-dark);
}

.btn-call:hover {
  background: var(--date-darker);
  border-color: var(--date-darker);
}

/* Secondary: WhatsApp + Email (ghost) */
.btn-whatsapp,
.btn-email {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-whatsapp:hover,
.btn-email:hover {
  background: var(--charcoal);
  color: var(--cream);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: scale(0.98);
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 1rem 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Tablet+ : row of buttons ---------- */
@media (min-width: 768px) {
  .screen {
    padding: 4rem 2rem 2rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 0.85rem;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 10.5rem;
    max-width: 14rem;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1280px) {
  .content {
    max-width: 40rem;
  }

  .logo {
    margin-bottom: 1.5rem;
  }

  .support {
    margin-bottom: 2.5rem;
  }
}

/* ============================================================
   FUTURE SECTIONS — styles for new page sections go below.
   Example:
     .section-work { … }
   ============================================================ */
