:root {
  --c-navy: #1f3d5c;
  --c-navy-dark: #152c43;
  --c-teal: #3f7a9c;
  --c-teal-light: #6fa5c4;
  --c-bg: #f0f4f6;
  --c-card: #ffffff;
  --c-text: #1d2b36;
  --c-muted: #5a6b76;
  --c-border: #d8e2e8;
  --c-danger: #b23b3b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  direction: rtl;
}

a { color: inherit; }

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.logo-mark .word-row {
  position: relative;
  display: inline-flex;
}

.logo-mark .word {
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
}

.logo-mark .c-navy { color: var(--c-navy); }
.logo-mark .c-teal { color: var(--c-teal); }

.logo-mark .wifi-icon {
  position: absolute;
  top: -11px;
  right: 6px;
  color: var(--c-teal);
}

.logo-mark .tagline {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--c-navy);
  margin-top: 2px;
}

.hero .logo-mark,
footer .logo-mark {
  align-items: center;
}

nav.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--c-navy);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

nav.site-nav a:hover {
  background: var(--c-bg);
}

nav.site-nav a.cta {
  background: var(--c-teal);
  color: #fff;
}

nav.site-nav a.cta:hover {
  background: var(--c-navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-navy);
}

.nav-close {
  display: none;
}

.nav-overlay {
  display: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  nav.site-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    background: var(--c-card);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 64px 18px 20px;
    transition: right 0.25s ease;
    z-index: 60;
    box-shadow: -8px 0 20px rgba(0,0,0,0.18);
    overflow-y: auto;
  }

  nav.site-nav.open {
    right: 0;
  }

  nav.site-nav a {
    padding: 13px 14px;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--c-navy);
    cursor: pointer;
    padding: 4px 8px;
  }

  .nav-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 50;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  z-index: 45;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-teal) 100%);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 14px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 28px;
  color: #eaf2f6;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--c-navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.btn-primary {
  background: var(--c-teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-navy);
}

/* Dedication badge */
.dedication-badge {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  margin: -30px auto 36px;
  background: linear-gradient(135deg, #ffd34d 0%, #ff9f40 55%, #ff7a3d 100%);
  border: 3px solid #fff;
  color: #4a2600;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.2px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  padding: 24px 30px;
  border-radius: 28px;
  animation: dedication-bounce 1.8s ease-in-out infinite, dedication-glow 1.8s ease-in-out infinite;
}

@keyframes dedication-bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-10px) rotate(2deg) scale(1.04); }
}

@keyframes dedication-glow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(255,122,61,0.5), 0 0 0 0 rgba(255,210,77,0.6);
  }
  50% {
    box-shadow: 0 14px 38px rgba(255,122,61,0.7), 0 0 26px 6px rgba(255,210,77,0.75);
  }
}

@media (max-width: 600px) {
  .dedication-badge {
    font-size: 1.1rem;
    padding: 18px 20px;
    margin: -20px 16px 30px;
    border-radius: 22px;
  }
}

/* Sections */
main {
  padding: 48px 0 70px;
}

section.block {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 26px;
}

section.block h2 {
  color: var(--c-navy);
  margin-top: 0;
  font-size: 1.4rem;
  border-inline-start: 5px solid var(--c-teal);
  padding-inline-start: 12px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 16px;
}

.section-head-row h2 {
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .section-head-row h2 {
    font-size: 1.1rem;
  }
  .btn-small {
    padding: 7px 12px;
    font-size: 0.72rem;
  }
}

.badge-free {
  display: inline-block;
  background: #e6f3ea;
  color: #216b3d;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 28px 20px;
  margin-top: 20px;
  justify-items: center;
}

.wallpaper-card {
  display: block;
  width: 100%;
  max-width: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wallpaper-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.wallpaper-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.level-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.level-card strong {
  display: block;
  color: var(--c-navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

ul.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
}

ul.check-list li::before {
  content: "✓";
  position: absolute;
  inline-size: 20px;
  inset-inline-start: 0;
  color: var(--c-teal);
  font-weight: 700;
}

.note {
  background: #fdf6e8;
  border: 1px solid #efd9a0;
  color: #6b5416;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.note-list {
  margin: 6px 0 0;
  padding-inline-start: 20px;
}

.note-list li {
  margin-bottom: 3px;
}

.contact-line {
  text-align: center;
  color: var(--c-muted);
}

.whatsapp-link {
  color: #216b3d;
  text-decoration: none;
}

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

/* Footer */
footer.site-footer {
  background: var(--c-navy-dark);
  color: #cfe0ea;
  padding: 26px 0;
  text-align: center;
  font-size: 0.9rem;
}

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

.admin-entry {
  margin-top: 10px;
}

.admin-entry a {
  color: #9fc3d6;
  font-size: 0.78rem;
  text-decoration: none;
}

.admin-entry a:hover {
  text-decoration: underline;
}

.built-by {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--c-muted);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.built-by:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.built-by-link {
  display: inline-flex;
  align-items: center;
}

.built-by-logo {
  height: 90px;
  width: auto;
  vertical-align: middle;
}

/* Form page */
.form-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}

.form-wrap h1 {
  color: var(--c-navy);
  font-size: 1.5rem;
  margin-top: 0;
}

.intro-text {
  color: var(--c-muted);
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.field {
  margin-bottom: 22px;
}

.field label.field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--c-text);
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-top: 4px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--c-text);
}

.phone-row {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  gap: 8px;
}

.phone-row select {
  flex: 0 0 auto;
  width: 90px;
  min-width: 0;
  padding-inline-end: 4px;
}

.phone-row input {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 480px) {
  .phone-row select {
    width: 78px;
    padding-inline-start: 8px;
    padding-inline-end: 2px;
  }
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--c-teal-light);
  border-color: var(--c-teal);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.required-mark {
  color: var(--c-danger);
  margin-inline-start: 2px;
}

.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
}

.radio-option input, .checkbox-option input {
  margin-top: 4px;
}

.plan-card {
  align-items: flex-start;
}

.plan-card input {
  margin-top: 6px;
}

.plan-content {
  display: block;
}

.plan-content strong {
  display: block;
  color: var(--c-navy);
  margin-bottom: 6px;
}

.plan-list {
  margin: 0;
  padding-inline-start: 20px;
  font-size: 0.88rem;
  color: var(--c-muted);
}

.plan-list li {
  margin-bottom: 3px;
}

.terms-box {
  max-height: 200px;
  overflow-y: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--c-muted);
  white-space: pre-line;
  margin-bottom: 14px;
}

.scroll-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--c-danger);
  margin-bottom: 10px;
}

.checkbox-option:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.consent-box {
  background: #eef6fa;
  border: 1px solid var(--c-teal-light);
  border-radius: 8px;
  padding: 14px 16px;
}

.submit-row {
  margin-top: 30px;
  text-align: center;
}

.error-msg {
  color: var(--c-danger);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.field.invalid .error-msg {
  display: block;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--c-danger);
}

#thankyou {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

#thankyou h2 {
  color: var(--c-navy);
}
