:root {
  --font-primary: "Heebo", "Assistant", "Rubik", sans-serif;
  --bg-primary: #050505;
  --bg-secondary: #101010;
  --panel: #0d0d0d;
  --card-bg: rgba(255, 255, 255, 0.03);
  --gold: #d6b46a;
  --champagne: #f5e7c8;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1220px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.7;
  background:
    radial-gradient(900px 350px at 15% 0%, rgba(214, 180, 106, 0.12), transparent),
    radial-gradient(1000px 380px at 85% 0%, rgba(34, 68, 110, 0.16), transparent),
    linear-gradient(180deg, #050505 0%, #070707 100%);
}

input,
textarea,
select,
button {
  font-family: var(--font-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4.2rem 0;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  letter-spacing: 0.01em;
}

.section-title::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-subtitle {
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3,
.cards-4,
.cards-6 {
  grid-template-columns: 1fr;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 180, 106, 0.45);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  direction: ltr;
}

.brands-grid > .brands-card {
  direction: rtl;
}

.brands-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.brands-card-ribbon {
  position: absolute;
  top: 16px;
  right: -38px;
  width: 140px;
  text-align: center;
  background: #d62a1f;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.brands-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.brands-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.brands-card-cat {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.brands-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.brands-card-placeholder {
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.brands-page-note {
  margin-top: 1rem;
  max-width: 640px;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--champagne);
  font-size: 1.1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 180, 106, 0.24);
}

.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  font-size: 1.05rem;
  color: var(--champagne);
  text-transform: uppercase;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 0.24rem 0.65rem;
}

.nav-links {
  position: absolute;
  inset-inline: 0;
  top: 74px;
  display: none;
  flex-direction: column;
  background: #080808;
  padding: 0.8rem 1rem 1rem;
  border-bottom: 1px solid rgba(214, 180, 106, 0.24);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.62rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a:last-child {
  border-bottom: 0;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--champagne);
}

.nav-links a.nav-calc-highlight {
  color: var(--gold);
  font-weight: 700;
}

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

.nav-cta {
  display: none;
  white-space: nowrap;
  padding-inline: 1rem;
  font-size: 0.88rem;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.55);
  background: rgba(255, 255, 255, 0.04);
  color: var(--champagne);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 0.55rem);
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(214, 180, 106, 0.35);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.45rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 1001;
}

.profile-dropdown.open {
  display: grid;
}

.profile-greeting {
  padding: 0.5rem 0.65rem;
  color: var(--champagne);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.2rem;
}

.profile-dropdown button,
.profile-dropdown a {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  text-align: right;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.profile-dropdown button:hover,
.profile-dropdown a:hover {
  color: var(--text-primary);
  background: rgba(214, 180, 106, 0.15);
}

.profile-dropdown .profile-admin-action {
  color: #ff6b6b;
  font-weight: 700;
}

.profile-dropdown .profile-admin-action:hover {
  color: #ffd8d8;
  background: rgba(255, 73, 73, 0.22);
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1100;
}

.auth-modal.open {
  display: flex;
}

.auth-card {
  width: min(100%, 460px);
  border-radius: 14px;
  border: 1px solid rgba(214, 180, 106, 0.4);
  background:
    radial-gradient(450px 180px at 80% 10%, rgba(214, 180, 106, 0.12), transparent),
    rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.auth-card h3 {
  margin: 0 0 0.25rem;
  color: var(--champagne);
}

.auth-card p {
  margin: 0 0 0.8rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.auth-error {
  color: #ffb0b0;
  font-size: 0.86rem;
  min-height: 1.1rem;
}

.hero {
  padding: 1rem 0 1.4rem;
}

.hero-wrap {
  border: 1px solid rgba(214, 180, 106, 0.22);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 78% 30%, rgba(214, 180, 106, 0.1), transparent 60%),
    linear-gradient(160deg, #050505, #0a0a0a 65%, #060606);
  display: grid;
}

.hero-content {
  padding: 2rem 1.2rem;
}

.hero h1 {
  margin: 0.8rem 0;
  font-size: clamp(1.7rem, 4.8vw, 3.2rem);
  line-height: 1.2;
  max-width: 15ch;
}

.hero p {
  color: var(--text-secondary);
  margin: 0 0 1.2rem;
  max-width: 58ch;
}

.hero-visual {
  min-height: 260px;
  border-top: 1px solid rgba(214, 180, 106, 0.18);
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 25% 30%, rgba(214, 180, 106, 0.24), transparent 42%),
    linear-gradient(120deg, #131313, #050505);
  position: relative;
}

.hero-visual::before {
  content: "Premium Event Bar";
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: rgba(245, 231, 200, 0.8);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  color: #1d1710;
  background: linear-gradient(120deg, #e4c98e, #c9a35a);
  box-shadow: 0 10px 24px rgba(183, 138, 46, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--champagne);
  border-color: rgba(214, 180, 106, 0.7);
}

.btn-outline:hover {
  background: rgba(214, 180, 106, 0.12);
}

.benefits {
  padding: 0;
}

.benefits .grid {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.benefits .card {
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.88rem 0.7rem;
  background: rgba(255, 255, 255, 0.02);
}

.benefits .card:last-child {
  border-left: 0;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 180, 106, 0.8);
  color: var(--champagne);
  font-size: 0.84rem;
  background: rgba(214, 180, 106, 0.08);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-inline-start: 3rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 0.9rem;
  top: 1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(214, 180, 106, 0.15);
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  color: var(--champagne);
}

.gallery-item {
  min-height: 210px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(40, 40, 40, 0.9), rgba(12, 12, 12, 1)),
    radial-gradient(circle at 75% 25%, rgba(214, 180, 106, 0.2), transparent 45%);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  color: var(--champagne);
  font-weight: 600;
}

/* FAQ container - 2 columns from wide-tablet/laptop and up, 1 column on
   narrow tablet/mobile. Targets the dynamic FAQ container that ships on
   every public page so the layout improvement applies uniformly without
   touching content. The 820px cut-off keeps a 768px portrait tablet on
   one column (questions need width to read) and only goes 2-up when
   each column can hold a comfortable line length. */
#faq-dynamic {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.85rem;
}
@media (min-width: 820px) {
  #faq-dynamic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  /* Keep closed items aligned at a consistent height so a short question
     next to a long one doesn't leave the grid row uneven. */
  min-height: 64px;
  align-self: start;
  display: flex;
  flex-direction: column;
}

.faq-q {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text-primary);
  text-align: right;
  padding: 1rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 64px;
  /* Belt-and-suspenders: prevents an unbreakable token (URL, brand name)
     from forcing a 2-column grid track wider than its share. */
  overflow-wrap: anywhere;
}

.faq-q::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-inline-end: 2px solid rgba(214, 180, 106, 0.85);
  border-block-end: 2px solid rgba(214, 180, 106, 0.85);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  margin-block-start: -0.2em;
}

.faq-item.open .faq-q::after {
  transform: rotate(-135deg);
}

.faq-a {
  display: none;
  padding: 0.85rem 1.1rem 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid rgba(214, 180, 106, 0.14);
  overflow-wrap: anywhere;
}

.faq-item.open {
  border-color: rgba(214, 180, 106, 0.45);
  background: rgba(214, 180, 106, 0.04);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item:hover {
  border-color: rgba(214, 180, 106, 0.32);
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.73rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(214, 180, 106, 0.12);
}

.footer {
  border-top: 1px solid rgba(214, 180, 106, 0.24);
  background: #070707;
  padding: 3rem 0 1.5rem;
}

.footer .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.footer h4 {
  margin: 0 0 0.55rem;
  color: var(--champagne);
}

.footer p,
.footer li {
  margin: 0;
  color: var(--text-secondary);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
/* Packages page: equal-height cards with a list of inclusions and a CTA
   pinned to the bottom of each card. Keeps the existing .card visual
   language (border, padding, background) - only layout-level tweaks. */
.package-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.package-card h3 {
  margin: 0 0 0.05rem;
}
.package-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.package-card .package-fit {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.package-card .package-fit-label {
  color: var(--gold, #d6b46a);
  font-weight: 700;
  margin-inline-end: 0.2rem;
}
.package-card ul {
  list-style: none;
  margin: 0.2rem 0 0.1rem;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}
.package-card ul li {
  position: relative;
  padding-inline-start: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.package-card ul li::before {
  content: "•";
  color: var(--gold, #d6b46a);
  position: absolute;
  inset-inline-start: 0;
  top: -0.05rem;
}
.package-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.package-compare-card {
  text-align: center;
}
.package-compare-card h3 {
  margin: 0 0 0.35rem;
  color: var(--gold, #d6b46a);
}
.package-compare-card p {
  margin: 0;
}
/* Tighter vertical rhythm for short intro sections (used by the packages
   page "למה לבחור" block which feels airy with the default section padding). */
.section--tight {
  padding-block: 1.4rem;
}
.packages-why-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}
.packages-why-list li {
  position: relative;
  padding-inline-start: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.packages-why-list li::before {
  content: "•";
  color: var(--gold, #d6b46a);
  position: absolute;
  inset-inline-start: 0;
  top: -0.05rem;
}

/* Atmosphere hero image - 16:7 with a subtle gold border, mirrors the look
   of the magazine article image but scoped to the packages page only. */
.packages-hero-image-section {
  padding: 0.4rem 0 1.4rem;
}
.packages-hero-image-figure {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  border: 1px solid rgba(214, 180, 106, 0.4);
  background-color: rgba(20, 16, 12, 0.92);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(214, 180, 106, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.45);
}
/* Subtle placeholder gradient when no image has been uploaded yet. */
.packages-hero-image-figure:not(.has-image) {
  background-image:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(214, 180, 106, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(20, 16, 12, 0.92), rgba(8, 7, 6, 0.96));
}
.packages-hero-image-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 640px) {
  .packages-hero-image-figure {
    aspect-ratio: 16 / 9;
  }
}

/* "מה כוללת חבילת אלכוהול?" - 5 small cards. Auto-fit so 3-on-desktop /
   2-on-tablet / 1-on-mobile happens naturally without media-query churn. */
.packages-includes-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.packages-include-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.packages-include-card h3 {
  margin: 0;
  color: var(--gold, #d6b46a);
  font-size: 1.02rem;
}
.packages-include-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* "איך זה עובד?" steps - numbered cards, 4-up on desktop, 2x2 on tablet,
   stacked on mobile. */
.packages-steps-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.packages-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.packages-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(120deg, #efd7a4, #d6b46a);
  color: #1f1810;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.packages-step-card h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}
.packages-step-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.92rem;
}

/* Subline under the comparison title. */
.packages-compare-sub {
  margin: -0.2rem 0 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Small badge that sits at the top of certain package cards. Subtle, never
   overpowers the title. */
.package-card {
  position: relative;
}
.package-tag {
  position: absolute;
  top: -0.7rem;
  inset-inline-start: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(214, 180, 106, 0.45);
  background: rgba(28, 22, 16, 0.96);
  color: var(--gold, #d6b46a);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.package-tag--popular {
  background: linear-gradient(120deg, #efd7a4, #d6b46a);
  color: #1f1810;
  border-color: rgba(214, 180, 106, 0.85);
}
.package-tag--vip {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.55);
  color: #d6cdff;
}
.package-tag--custom {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
}

/* Quick-links column flips to a 2-col grid when the dynamic list is long,
   so the footer stays compact. Set automatically from script.js when >=6
   items are mirrored from the main nav. Items fill TOP-TO-BOTTOM first,
   then continue in the next column (RTL: right column → left column), so
   index order reads 1..5 down the right column, 6..N down the left. */
.footer .footer-quicklinks--two-col ul {
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--quicklinks-rows, 5), auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.4rem;
}
@media (max-width: 600px) {
  .footer .footer-quicklinks--two-col ul {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }
}

.copyright {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1000;
  border: 1px solid rgba(214, 180, 106, 0.5);
  background: linear-gradient(160deg, #2bc86c, #1e9f54);
  color: #0d2e19;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.admin-quick-edit-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1001;
  border: 1px solid rgba(214, 180, 106, 0.7);
  background: linear-gradient(160deg, rgba(214, 180, 106, 0.96), rgba(198, 156, 77, 0.96));
  color: #1c1408;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Floating pencil - admin-only, mirrors .whatsapp-float on the opposite corner. */
.site-edit-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1001;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 180, 106, 0.7);
  background: linear-gradient(160deg, rgba(214, 180, 106, 0.96), rgba(198, 156, 77, 0.96));
  color: #1c1408;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.site-edit-fab:hover { filter: brightness(1.04); transform: translateY(-1px); }
.site-edit-fab[aria-pressed="true"] {
  background: linear-gradient(160deg, #d6b46a, #9d7a3a);
  box-shadow: 0 8px 20px rgba(214, 180, 106, 0.4);
}
.site-edit-fab svg { display: block; }
@media (max-width: 700px) {
  .site-edit-fab { right: 0.7rem; bottom: 4.2rem; width: 44px; height: 44px; }
}

.admin-quick-edit-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .admin-quick-edit-btn {
    right: 0.7rem;
    bottom: 4.2rem;
    padding: 0.62rem 0.86rem;
    font-size: 0.88rem;
  }
}

@media (min-width: 700px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-visual {
    min-height: 330px;
  }

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

  .footer .cols > * + * {
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid rgba(214, 180, 106, 0.18);
  }
}

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

  .navbar {
    min-height: 78px;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .nav-links a {
    padding: 0.3rem 0;
    border: 0;
    border-bottom: 1px solid transparent;
  }

  /* Override the mobile-only "last-child has no separator" rule on desktop -
     otherwise the last nav item (e.g. "צור קשר") can't show the active gold
     underline because the shorthand reset zeroed its border-bottom-width. */
  .nav-links a:last-child {
    border-bottom: 1px solid transparent;
  }

  .nav-links a.active,
  .nav-links a:hover {
    border-bottom-color: var(--gold);
  }

  .nav-links a.nav-calc-highlight {
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 180, 106, 0.55);
    background: rgba(214, 180, 106, 0.12);
  }

  .nav-links a.nav-calc-highlight:hover,
  .nav-links a.nav-calc-highlight.active {
    color: var(--champagne);
    background: rgba(214, 180, 106, 0.2);
    /* Keep the full gold pill border on all four sides when active - do not
       transparentise the bottom edge. */
    border-bottom-color: rgba(214, 180, 106, 0.55);
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero-wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-content {
    padding: 2.35rem;
  }

  .hero-visual {
    border-top: 0;
    border-right: 1px solid rgba(214, 180, 106, 0.2);
  }

  .cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- Admin: מצב עריכה + משבצות תמונה (עמוד הבית, מחשבון, …) --- */
.home-edit-mode-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 180, 106, 0.55);
  background: rgba(214, 180, 106, 0.12);
  color: var(--champagne);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-edit-mode-btn.is-visible {
  display: inline-flex;
}

.home-edit-mode-btn[aria-pressed="true"] {
  background: rgba(214, 180, 106, 0.28);
  border-color: rgba(214, 180, 106, 0.85);
  box-shadow: 0 0 20px rgba(214, 180, 106, 0.25);
}

.home-edit-mode-btn:hover {
  background: rgba(214, 180, 106, 0.22);
}

.home-slot-target {
  position: relative;
}

body.home-edit-mode .home-slot-target::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(214, 180, 106, 0.65);
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

body.home-edit-mode .home-slot-target {
  cursor: pointer;
}

.home-slot-hint {
  display: none;
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--champagne);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

body.home-edit-mode .home-slot-target .home-slot-hint {
  display: block;
}

.home-slot-clear {
  display: none;
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 7;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255, 120, 120, 0.6);
  background: rgba(40, 10, 10, 0.85);
  color: #ffb4b4;
  cursor: pointer;
  font-family: inherit;
}

body.home-edit-mode .home-slot-target.has-image .home-slot-clear {
  display: block;
}

/* Edit mode: highlight editable links inside <main> + the top-bar CTA so the
   admin can see which buttons are remappable, and a subtle "✎ ערוך לינק"
   badge appears on hover. */
body.home-edit-mode main a,
body.home-edit-mode a.nav-cta {
  position: relative;
  outline: 2px dashed rgba(124, 92, 255, 0.55);
  outline-offset: 3px;
  cursor: pointer;
}
body.home-edit-mode main .nav-links a,
body.home-edit-mode .home-social a,
body.home-edit-mode a[data-wa-link],
body.home-edit-mode a.whatsapp-float,
body.home-edit-mode a.logo {
  outline: none;
}
body.home-edit-mode main a:hover::before,
body.home-edit-mode a.nav-cta:hover::before {
  content: "✎ ערוך לינק";
  position: absolute;
  top: -1.5rem;
  inset-inline-end: 0;
  font-size: 0.72rem;
  font-weight: 700;
  background: #7c5cff;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 30;
}
body.home-edit-mode a[data-link-overridden="1"] {
  outline-color: rgba(34, 197, 94, 0.7);
}

/* --- Shared footer styling (used by all pages) --- */
.home-slot-logo {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(214, 180, 106, 0.35);
  background:
    linear-gradient(145deg, rgba(214, 180, 106, 0.12), transparent),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0 6px,
      rgba(255, 255, 255, 0.06) 6px 12px
    );
  background-size: cover;
  background-position: center;
}

.home-slot-logo--sm {
  width: 36px;
  height: 36px;
}

.home-slot-logo.has-image {
  border-color: rgba(214, 180, 106, 0.55);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand-lockup h4 {
  margin: 0;
}

.home-newsletter {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.home-newsletter label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.home-newsletter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-newsletter-row input {
  flex: 1;
  min-width: 160px;
  margin: 0;
}

.home-newsletter-row button {
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: linear-gradient(120deg, #e4c98e, #c9a35a);
  color: #1d1710;
  font-weight: 700;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-family: inherit;
}

.home-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.home-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
  color: var(--champagne);
  text-decoration: none;
}

.home-social a:hover {
  background: rgba(214, 180, 106, 0.18);
}

/* Public gallery grid (gallery.html - driven by main folder) */
.gallery-public-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-public-item {
  margin: 0;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  background: rgba(20, 16, 12, 0.9);
  border: 1px solid rgba(214, 180, 106, 0.22);
  display: flex;
  flex-direction: column;
}
.gallery-public-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gallery-public-item figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.86rem;
  color: rgba(245, 234, 210, 0.85);
  line-height: 1.4;
}

/* Public gallery hover (matches brand-card luxury glow) */
.gallery-public-item {
  position: relative;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: start;
  font: inherit;
  color: inherit;
}
.gallery-public-item img {
  transition: transform 0.4s ease;
}
.gallery-public-item:hover {
  border-color: rgba(214, 180, 106, 0.65);
  box-shadow:
    0 0 22px rgba(214, 180, 106, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.gallery-public-item:hover img { transform: scale(1.03); }
.gallery-public-item:focus-visible {
  outline: 2px solid rgba(214, 180, 106, 0.7);
  outline-offset: 3px;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.88);
  backdrop-filter: blur(4px);
}
.gallery-lightbox-panel {
  position: relative;
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.gallery-lightbox-panel img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(214, 180, 106, 0.35);
  background: #0a0807;
}
.gallery-lightbox-panel figcaption {
  color: rgba(245, 234, 210, 0.9);
  font-size: 0.95rem;
  text-align: center;
  max-width: 760px;
  line-height: 1.5;
}
.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(214, 180, 106, 0.4);
  background: rgba(15, 12, 9, 0.85);
  color: rgba(245, 234, 210, 0.95);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-close:hover {
  background: rgba(214, 180, 106, 0.18);
  border-color: rgba(214, 180, 106, 0.7);
}

/* ===== Content-service template polish =====
   Applied when admin marks a page with templateType="content-service".
   The tagger in script.js sets body[data-content-template="content-service"]
   on matching pages at runtime. Styling is additive only - no overrides of
   existing section/card structure. */
body[data-content-template="content-service"] main > .section:first-child .card .section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.22;
}
body[data-content-template="content-service"] main > .section:first-child .card .section-subtitle {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  max-width: 62ch;
}
body[data-content-template="content-service"] main .container > h2.section-title {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-bottom: 0.85rem;
}
body[data-content-template="content-service"] main .container > p,
body[data-content-template="content-service"] main .container > ul,
body[data-content-template="content-service"] main .container > ol {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
  font-size: 1.02rem;
}
body[data-content-template="content-service"] main .container > p {
  margin-block: 0 1rem;
}
body[data-content-template="content-service"] main .container > ul,
body[data-content-template="content-service"] main .container > ol {
  padding-inline-start: 1.4rem;
  display: grid;
  gap: 0.4rem;
}
body[data-content-template="content-service"] main .container > ul li,
body[data-content-template="content-service"] main .container > ol li {
  line-height: 1.7;
}

/* Content-service hero image - match the magazine article visual: max-width
   920px, 16:7 aspect, centered card. Targets both the static lone-image
   section (where the <img> sits directly inside .container.card) and the
   JS-injected .content-page-image-section. On mobile we relax to 16:9 so
   the focal area stays visible without dragging the page height down. */
body[data-content-template="content-service"] main .section .container.card > img:only-child,
body[data-content-template="content-service"] main .content-page-image-section .container img {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(214, 180, 106, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(214, 180, 106, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.45);
}
body[data-content-template="content-service"] main .section:has(> .container.card > img:only-child) > .container.card,
body[data-content-template="content-service"] main .content-page-image-section > .container {
  max-width: 920px;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
@media (max-width: 640px) {
  body[data-content-template="content-service"] main .section .container.card > img:only-child,
  body[data-content-template="content-service"] main .content-page-image-section .container img {
    aspect-ratio: 16 / 9;
  }
}

/* ===== Legal documents (term-of-use / accessibility / privacy) ===== */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  padding: 0.4rem 0 0.2rem;
}
.footer-legal a {
  font-size: 0.85rem;
  opacity: 0.8;
}
.footer-legal a:hover {
  opacity: 1;
}
.legal-content {
  white-space: pre-wrap;
  line-height: 1.9;
  max-width: 860px;
  margin-inline: auto;
}

/* ===== Temporarily hidden: WhatsApp + email buttons =====
   Reversible — delete this whole block to bring them back.
   Covers: floating WhatsApp button, contact-page WhatsApp row,
   contact-page email row, footer WhatsApp icon + quick link. */
[data-wa-link] { display: none !important; }
li:has(> a[data-wa-link]) { display: none !important; }
.ct-info-list a[data-site-href="business.email"] { display: none !important; }
.ct-info-list li:has(> a[data-site-href="business.email"]) { display: none !important; }

/* ===== Password show/hide field (shared — used by profile + login) ===== */
.password-field { position: relative; display: block; }
.password-field input {
  padding-inline-start: 4.6rem;
  direction: ltr;
  text-align: left;
}
.password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-start: 0.4rem;
  transform: translateY(-50%);
  height: calc(100% - 0.55rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border: 1px solid rgba(214, 180, 106, 0.4);
  background: rgba(214, 180, 106, 0.08);
  color: var(--champagne, var(--gold));
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.password-toggle:hover {
  background: rgba(214, 180, 106, 0.18);
  border-color: rgba(214, 180, 106, 0.65);
}
.password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
