@import url('fonts.css');

:root {
  /* Brand Tokens (from bakrayot.co.il) */
  --brand: #1A2F5C;
  --brand-light: #28478a;
  --lime: #C4D600;
  --lime-dark: #a2b000;
  
  /* Action Tokens */
  --action: #e11d48; /* Red for Call/Emergency */
  --action-hover: #be123c;
  --wa: #25D366; /* WhatsApp Green */
  --wa-hover: #128C7E;
  
  /* Neutrals */
  --ink: #2B2D33;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --line: #e2e8f0;
  --base: #FAFAF8;
  
  /* Typography */
  --font-sans: 'Rubik', sans-serif;
  
  /* Utilities */
  --radius: 12px;
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-btn: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --focus-ring: 0 0 0 3px var(--brand);
}

/* Reset & Accessibility */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--base);
  color: var(--ink);
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* Focus visibility for a11y */
*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: var(--surface);
  padding: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Header */
.portal-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand);
}

.portal-logo {
  height: 32px;
  width: auto;
}

.portal-back-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.portal-back-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Main Layout */
.main-content {
  min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: var(--surface);
  padding: 48px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glassmorphism subtle overlay */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(196,214,0,0.1) 0%, transparent 60%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 214, 0, 0.2);
  color: var(--lime);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(196, 214, 0, 0.3);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 32px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background-color 0.2s;
  min-height: 56px; /* Touch target size */
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--action);
  color: var(--surface);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background-color: var(--action-hover);
}

.btn-wa {
  background-color: var(--wa);
  color: var(--surface);
  box-shadow: var(--shadow-btn);
}
.btn-wa:hover {
  background-color: var(--wa-hover);
}

.btn small {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
  display: block;
}

/* Services / Features */
.services-section {
  padding: 48px 16px;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  text-align: right;
}

.card h3 {
  color: var(--brand);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.trust-item svg {
  width: 32px;
  height: 32px;
  color: var(--brand);
}

/* Footer */
.portal-footer {
  background-color: var(--ink);
  color: #94a3b8;
  padding: 48px 16px 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 44px; /* A11y touch target */
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover, .footer-nav a:focus {
  color: var(--lime);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 24px;
}

/* Sticky Mobile CTA (Bottom) */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 12px 16px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 12px;
  z-index: 100;
  border-top: 1px solid var(--line);
}

.mobile-sticky-cta .btn {
  flex: 1;
  padding: 12px;
  min-height: 48px;
  font-size: 1.1rem;
}

.mobile-sticky-cta .btn small {
  display: none;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none; /* Hide on desktop */
  }
  .portal-footer {
    padding-bottom: 48px;
  }
}

/* Adjust body padding for mobile sticky CTA */
@media (max-width: 767px) {
  body {
    padding-bottom: 80px;
  }
}
