/* ========================
   Base
======================== */

@font-face {
  font-family: "Ravi";
  src: url("/fonts/Ravi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ravi";
  src: url("/fonts/Ravi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #e67e22;
  --color-primary-light: #e49520;
  --color-complementary: #8fcb6f;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #e0e0e0;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;

  --font-family-base: "Ravi", Arial, sans-serif;
}

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

html {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  font-family: var(--font-family-base);
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================
   Layout
======================== */

header {
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

main {
  width: 100%;
  max-width: 760px;
  margin: var(--space-lg) auto;
  padding: 0 var(--space-sm);
  flex: 1;
}

section + section {
  margin-block-start: 2.8rem;
}

footer {
  padding: var(--space-sm);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ========================
   Navigation
======================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

#nav-branding {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

#datakar-logo {
  height: 2rem;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

nav a {
  color: #444;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--color-primary);
}


/* ========================
   Typography
======================== */

.greeting-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

.greeting-header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.35;
}

h2,
h3,
p {
  margin-top: 0;
}

.heading-with-bar {
  position: relative;
  margin-bottom: var(--space-sm);
  padding-right: 16px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.heading-with-bar::before {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 5px;
  background-color: var(--color-complementary);
  border-radius: 2px;
}

#closing-note {
  color: var(--color-muted);
}

/* ========================
   Apps
======================== */

.apps-list {
  display: grid;
  gap: var(--space-sm);
}

.app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-surface);
}

.app-content {
  min-width: 0;
}

.app-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.app-content p {
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.app-button {
  flex: 0 0 auto;
  min-width: 118px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.app-button:hover,
.app-button:focus-visible {
  background-color: var(--color-primary-light);
}

/* ========================
   Accessibility
======================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================
   Responsive
======================== */

@media (max-width: 600px) {
  html {
    font-size: 17px;
    line-height: 1.7;
  }

  header {
    padding: 0.85rem 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-sm);
  }

  nav ul {
    gap: var(--space-sm);
  }

  #datakar-logo {
    height: 2.15rem;
  }

  main {
    max-width: none;
    margin: 1.25rem auto 1.75rem;
    padding-inline: 1rem;
  }

  section + section {
    margin-block-start: 2rem;
  }

  .greeting-header h1 {
    font-size: 1.55rem;
  }

  .app-item {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .app-button {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 380px) {
  .nav-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}




/* ========================
   Language section
======================== */

#language-section {
  margin-block-start: 2.8rem;
  padding-block-start: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.language-section-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-muted);
}

.footer-language {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-language-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}

.footer-language-button:hover,
.footer-language-button:focus-visible,
.footer-language-button.active {
  color: var(--color-primary);
}

.footer-language-button.active {
  font-weight: 700;
}

.footer-language-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  #language-section {
    margin-block-start: 2rem;
  }
}


.language-label {
  font-weight: 700;
  color: var(--color-text);
}


#intro-section a {
  color: var(--color-primary);
  text-decoration: none;
}

#intro-section a:hover,
#intro-section a:focus-visible {
  text-decoration: underline;
}
