/* ==========================================================================
   Veltrum — shared stylesheet (all pages)
   Mobile-first, RTL (html[dir="rtl"]). Palette extracted from the brand logo.
   ========================================================================== */

:root {
  --green-900: #1E4438; /* footer / deep surfaces */
  --green-800: #275749; /* primary brand green (logo tile) */
  --green-700: #33705E; /* hover shade */
  --accent: #67D073;    /* bright logo green — decorative only (fails AA on light bg) */
  --accent-soft: #E4F5E7;
  --bg: #F8F9F8;
  --surface: #FFFFFF;
  --text: #1F2A26;
  --text-muted: #55655E;
  --border: #DCE4DF;
  --footer-link: #CFE5D6;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(31, 42, 38, 0.08);
  --shadow-md: 0 6px 20px rgba(31, 42, 38, 0.10);
  --container: 1120px;
}

/* --- Reset / base ------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  direction: rtl;
  text-align: right;
  overflow-wrap: break-word;
}

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

a {
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
}

:focus-visible {
  outline: 3px solid var(--green-800);
  outline-offset: 2px;
  border-radius: 4px;
}

ul,
ol {
  padding-inline-start: 1.4rem;
}

h1,
h2,
h3 {
  color: var(--green-900);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.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;
}

/* Keep phone numbers reading left-to-right inside RTL text */
.ltr-inline {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--green-800);
  background-color: var(--green-800);
  color: #FFFFFF;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: var(--green-700);
  border-color: var(--green-700);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--green-800);
}

.btn-outline:hover {
  background-color: var(--accent-soft);
  color: var(--green-900);
}

.btn-on-dark {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--green-900);
}

.btn-on-dark:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--green-900);
}

.btn-on-dark:focus-visible,
.site-footer a:focus-visible {
  outline-color: #FFFFFF;
}

/* --- Header / navigation ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo {
  height: 44px;
  width: 44px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-800);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--green-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0.5rem 1.25rem 1rem;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.nav-menu a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.nav-menu a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

.nav-menu a[aria-current="page"] {
  color: var(--green-800);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav-menu .nav-cta {
  margin-top: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background-color: var(--green-800);
  color: #FFFFFF;
  text-align: center;
}

.nav-menu .nav-cta:hover {
  background-color: var(--green-700);
  color: #FFFFFF;
  text-decoration: none;
}

/* The current-page rule above must not repaint the CTA pill's white text */
.nav-menu .nav-cta[aria-current="page"] {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding-block: 3.5rem 4rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  font-weight: 800;
  max-width: 46rem;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* --- Generic sections --------------------------------------------------- */

.section {
  padding-block: 3.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.75rem;
}

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

/* --- Cards (services preview / steps) ----------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  flex-grow: 1;
}

.card-link {
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.steps li {
  counter-increment: step;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--green-800);
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.steps h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

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

/* --- CTA band ----------------------------------------------------------- */

.cta {
  background-color: var(--green-800);
  padding-block: 3.5rem;
  text-align: center;
}

.cta h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.cta p {
  color: var(--accent-soft);
  max-width: 38rem;
  margin: 0.9rem auto 1.8rem;
}

.cta .btn {
  margin-inline: 0.4rem;
}

/* --- Page hero (inner pages) -------------------------------------------- */

.page-hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding-block: 2.75rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
}

.page-hero p {
  margin-top: 0.9rem;
  max-width: 44rem;
  font-size: 1.1rem;
}

.updated-date {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Services page ------------------------------------------------------ */

.service {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  margin-bottom: 1.75rem;
}

.service h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-bottom: 0.9rem;
}

.service > p {
  max-width: 48rem;
}

.example {
  background-color: var(--accent-soft);
  border-inline-start: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-block: 1.25rem;
  max-width: 48rem;
}

.example strong {
  color: var(--green-900);
}

.benefits {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.benefits li {
  padding-inline-start: 1.7rem;
  position: relative;
}

.benefits li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.42em;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background-color: var(--green-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5 -6' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.service-cta {
  margin-top: 1.4rem;
}

/* --- About page --------------------------------------------------------- */

.about-content {
  max-width: 46rem;
}

.about-content p + p {
  margin-top: 1.2rem;
}

.values {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.values li {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.values strong {
  color: var(--green-800);
}

/* --- Contact page ------------------------------------------------------- */

.contact-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.channel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
}

.channel-icon svg {
  width: 28px;
  height: 28px;
}

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

.channel-value {
  font-weight: 600;
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stretch the channel link over the whole card so the card stays clickable
   while only the number/address text lives inside the anchor */
.channel-value::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.channel .channel-value:focus-visible {
  outline: none;
}

.channel:focus-within {
  outline: 3px solid var(--green-800);
  outline-offset: 2px;
}

.channel-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.channel-primary {
  background-color: var(--green-800);
  border-color: var(--green-800);
  color: #FFFFFF;
}

.channel-primary:hover {
  color: #FFFFFF;
  background-color: var(--green-700);
}

.channel-primary h2,
.channel-primary .channel-value {
  color: #FFFFFF;
}

.channel-primary .channel-note {
  color: var(--accent-soft);
}

.channel-primary .channel-icon {
  background-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.channel-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--green-900);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
}

.contact-note {
  margin-top: 2rem;
  color: var(--text-muted);
  max-width: 44rem;
}

/* --- Legal pages (privacy / terms) -------------------------------------- */

.legal-content {
  max-width: 46rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.legal-content p + p {
  margin-top: 0.8rem;
}

.legal-content ul {
  margin-block: 0.6rem;
  display: grid;
  gap: 0.35rem;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background-color: var(--green-900);
  color: #E6EFEA;
  padding-block: 3rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.footer-brand-row .logo {
  height: 40px;
  width: 40px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-tagline {
  color: var(--footer-link);
  max-width: 20rem;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.2rem;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-bottom p {
  color: var(--footer-link);
  font-size: 0.9rem;
}

/* --- Desktop ------------------------------------------------------------ */

@media (min-width: 820px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0.4rem 0;
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    padding: 0.55rem 1.3rem;
  }

  .hero {
    padding-block: 5.5rem 6rem;
  }

  .section {
    padding-block: 4.5rem;
  }

  .card-grid,
  .steps,
  .contact-channels {
    grid-template-columns: repeat(3, 1fr);
  }

  .service {
    padding: 2.5rem;
  }

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

  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}
