/* הגדרת בסיס נקייה ל-html */
html {
  font-size: 100%; /* 16px כברירת מחדל */
}

/* מדרגות הגדלה */
html.font-step-1 { font-size: 110% !important; }
html.font-step-2 { font-size: 125% !important; }
html.font-step-3 { font-size: 140% !important; }

/* מדרגות הקטנה (90% ו-80%) */
html.font-step--1 { font-size: 90% !important; }
html.font-step--2 { font-size: 80% !important; }
/* ------------------- */
:root{
		--wine:#762631;
		--gold:#FAA919;
		--cream:#FAF6EE;
		--cream-deep:#F1E9D8;
		--ink:#2A241F;
		--ink-soft:#6B5D4F;
		--line: rgba(118,38,49,.15);
	}
	*{box-sizing:border-box;}
	html{ scroll-behavior:smooth; scrollbar-gutter:stable; }
	body{
		margin:0;
		background:var(--cream);
		color:var(--ink);
		font-family:'Rubik', sans-serif;
		font-weight:400;
		direction:rtl;

		/* מניעת סימון טקסט בכל האתר */
		-webkit-user-select: none; /* Safari */
 		-ms-user-select: none;     /* IE 10 and IE 11 */
 		user-select: none;         /* תקן סטנדרטי */
	}
	input, textarea {
 		-webkit-user-select: text !important;
 		-ms-user-select: text !important;
 		user-select: text !important;
	}
	a {
		color:inherit;
		text-decoration:none;
	}
	img {
		max-width:100%;
		display:block;
		-webkit-user-drag: none;
  		-ms-user-drag: none;
 		pointer-events: auto;
	}

	.heading{
		font-family:'Rubik', sans-serif;
		font-weight:500;
		color:var(--wine);
	}
	.brand{
		font-family:'Amatic SC', cursive;
		font-weight:700;
	}

	/* ---------- header ---------- */
	header{
		position:sticky; top:0; z-index:50;
		background:rgba(250,246,238,.94);
		backdrop-filter:blur(6px);
		border-bottom:1px solid var(--line);
	}
	.nav-row{
		max-width:1180px; margin:0 auto;
		display:flex; align-items:center; justify-content:space-between;
		padding:16px 32px;
	}
	.logo{
		font-family:'Amatic SC', cursive;
		font-weight:700;
		font-size: 2.125rem; /* במקום 34px */
		color:var(--wine);
		line-height:1;
	}
	nav ul{list-style:none; display:flex; gap:36px; margin:0; padding:0;}
	nav a{
		font-family:'Amatic SC', cursive;
		font-weight:700;
		font-size: 1.5rem; /* במקום 24px */
		color:var(--ink-soft);
		padding-bottom:4px;
		border-bottom:2px solid transparent;
		transition:border-color .25s ease, color .25s ease;
	}
	nav a:hover, nav a.active{color:var(--wine); border-color:var(--gold);}
	.menu-btn{display:none; background:none; border:none; cursor:pointer;}
	.menu-btn span{display:block; width:24px; height:2px; background:var(--wine); margin:5px 0;}

	/* ---------- hero ---------- */
	.hero{
		max-width:1180px; margin:0 auto;
		padding:70px 32px 90px;
		display:grid;
		grid-template-columns:.85fr 1.15fr;
		gap:56px;
		align-items:center;
	}
	.hero-portrait{
		position:relative;
		box-shadow:0 24px 50px -20px rgba(118,38,49,.35);
		border:6px solid #fff;
	}
	.hero-portrait img{width:100%; aspect-ratio:2/3; object-fit:cover;}
	.eyebrow{
		font-size:1rem;
		color:var(--ink);
		margin:0 0 10px;
	}
	.hero h1{
		font-family:'Rubik', sans-serif;
		font-weight:400;
		color:var(--wine);
		font-size: clamp(1.75rem, 3.4vw, 2.5rem); /* במקום clamp(28px, 3.4vw, 40px) */
		line-height:1.3;
		margin:0 0 20px;
	opacity: 0;
  	transform: translateY(15px);
  	filter: blur(6px);
  	animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}
	@keyframes heroTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* נגישות: ביטול האפקט למי שהגדיר הפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
  h1 {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}
	.hero p.lede{
		max-width:520px;
		font-size: 1.0625rem; /* במקום 17px */
		line-height:1.85;
		color:var(--ink-soft);
		margin:0 0 30px;
	}
	.btn{
		display:inline-flex; align-items:center; gap:8px;
		font-family:'Rubik', sans-serif;
		font-weight:500;
		font-size:0.9375rem; /* במקום 15px */
		text-align:center;
		padding:13px 28px;
		border:1px solid #000;
		color:#000;
		background:var(--gold);
		transition:transform .2s ease, background .2s ease;
		border-radius:999px;
		cursor:pointer;
	}
	.btn:hover{background:#000; color:var(--gold); border-color:#000;}
	.btn.solid{background:var(--gold); color:#000;}
	.btn.gold{background:var(--gold); color:#000;}
	.hero-actions{
		display:grid;
		grid-template-columns:repeat(2, minmax(0, 1fr));
		gap:16px;
	}
	.hero-actions .btn{width:75%; justify-content:center;}

	.divider{
		height:1px; max-width:1180px; margin:0 auto;
		background:linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
	}

	/* ---------- generic section ---------- */
	section{max-width:1180px; margin:0 auto; padding:88px 32px;}
	.section-label{
		font-size:0.875rem; letter-spacing:.08em; color:var(--gold);
		font-weight:600; margin-bottom:8px; text-transform:uppercase;
	}
	section h2{
		font-family:'Rubik', sans-serif;
		font-weight:400;
		color:var(--wine);
		font-size:clamp(1.75rem, 3.6vw, 2.5rem);
		margin:0 0 28px;
	}
	.page-title{
		font-family:'Rubik', sans-serif;
		font-weight:400;
		color:var(--wine);
		font-size:clamp(1.75rem, 3.6vw, 2.5rem);
		margin:0 0 28px;
	}

	/* ---------- about ---------- */
	.about-grid{
		display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center;
	}
	.about-text p{font-size:1.0625rem; line-height:1.85; color:var(--ink-soft); margin:0 0 28px; max-width:560px;}
	.about-portrait{
		box-shadow:0 24px 50px -20px rgba(118,38,49,.3);
		border:6px solid #fff;
		justify-self:end;
		width:80%;
	}
	.about-portrait img{aspect-ratio:2/3; object-fit:cover; width:100%;}

	/* ---------- portfolio ---------- */
	.portfolio-intro{display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; margin-bottom:36px;}
	.portfolio-grid{
		display:grid;
		grid-template-columns:repeat(3, 1fr);
		gap:18px;
	}
	.p-card{
		position:relative; overflow:hidden;
		aspect-ratio:2/3;
		box-shadow:0 14px 30px -16px rgba(42,36,31,.35);
	}
	.p-card.wide{grid-column:span 1;}
	.p-card img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
	.p-card:hover img{transform:scale(1.06);}
	.p-caption{
		position:absolute; inset:auto 0 0 0;
		padding:16px 18px;
		background:linear-gradient(0deg, rgba(42,24,20,.75), transparent);
		color:#fff;
		font-family:'Rubik', sans-serif;
		font-size:1.1875rem;
	}
	.portfolio-cta{text-align:center; margin-top:44px;}

	/* ---------- contact ---------- */
	.contact-wrap{
		background:var(--cream-deep);
		border-top:1px solid var(--line);
		border-bottom:1px solid var(--line);
	}
	.contact-grid{
		max-width:1180px; margin:0 auto; padding:88px 32px;
		display:grid; grid-template-columns:.7fr 1fr; gap:64px;
	}
	.contact-side img{
		width:100%; aspect-ratio:2/3; object-fit:cover;
		box-shadow:0 24px 50px -20px rgba(118,38,49,.3);
		border:6px solid #fff;
	}
	.contact-info h2{margin-bottom:14px;}
	.contact-info p.intro{font-size:1.0625rem; color:var(--ink-soft); margin:0 0 26px;}
	.contact-details{display:flex; flex-direction:column; gap:10px; margin-bottom:26px;}
	.contact-details a{
		font-size:1.25rem; color:var(--wine); font-weight:600;
	}
	.socials{display:flex; gap:16px; margin-bottom:34px;}
	.socials a{
		width:40px; height:40px; border-radius:50%;
		border:1.5px solid var(--wine); color:var(--wine);
		display:flex; align-items:center; justify-content:center;
		font-size:0.8125rem; font-weight:700;
		transition:background .2s ease, color .2s ease;
	}
	.socials a:hover{background:var(--wine); color:#fff;}

	.form-box{
		background:#fff;
		padding:38px 32px;
		box-shadow:0 20px 40px -24px rgba(42,36,31,.3);
	}
	.form-box h3{
		font-family:'Rubik', sans-serif; font-weight:400;
		color:var(--wine); font-size:1.375rem; margin:0 0 24px;
	}
	.form-message{
		font-family:'Rubik', sans-serif;
		color:var(--wine);
		font-size:1.5rem;
		line-height:1.6;
		margin:18px 0 0;
	}
	.two-col{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
	.field{display:flex; flex-direction:column; gap:6px; margin-bottom:18px;}
	.field label{font-size:0.8125rem; color:var(--ink-soft);}
	.field label .req{color:var(--wine);}
	.field input, .field textarea{
		border:none; border-bottom:1.5px solid var(--line);
		padding:10px 4px; font-family:'Rubik', sans-serif; font-size:0.9375rem; color:var(--ink);
		background:transparent; outline:none;
	}
	.field input:focus, .field textarea:focus{border-color:var(--wine);}

	/* ---------- footer ---------- */
	footer{padding:40px 32px;}
	.footer-row{
		max-width:1180px; margin:0 auto;
		display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
		font-size:0.99rem; color:var(--ink-soft);
	}
	.footer-links{display:flex; gap:22px;}
	.footer-links a:hover{color:var(--wine);}

	@media (max-width: 900px){
		.hero, .about-grid, .contact-grid{grid-template-columns:1fr;}
		.about-portrait{justify-self:center; width:100%;}
		.portfolio-grid{grid-template-columns:repeat(2, 1fr);}
		.two-col{grid-template-columns:1fr;}
		nav{display:none;}
		.menu-btn{display:block;}
	}
	@media (max-width: 560px){
		.portfolio-grid{grid-template-columns:1fr;}
	}

	/* =========================================================
   משתמש במשתנים הקיימים: --wine, --gold, --ink, --ink-soft, --line
   ========================================================= */

.portfolio-intro{ margin-bottom:60px; }

.portfolio-category{ margin-bottom:90px; }
.portfolio-category:last-of-type{ margin-bottom:60px; }

.cat-desc{
	max-width:520px;
	font-size:1rem;
	line-height:1.8;
	color:var(--ink-soft);
	margin:0 0 32px;
}

/* ---------- editorial grid ---------- */
h3.p-caption {
  margin: 0;
  font-weight: inherit; /* שומר על המשקל והגודל שהגדרת ל-caption */
}

.editorial-grid{
	display:grid;
	grid-template-columns:repeat(4, 1fr);
	grid-auto-rows:190px;
	grid-auto-flow:dense;
	gap:18px;
}

.g-item{
	position:relative;
	overflow:hidden;
	border-radius:2px;
}
.g-item img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	transition:transform .5s ease;
}

.g-featured{ grid-column:span 2; grid-row:span 2; }
.g-tall{ grid-row:span 2; }
.g-square{ grid-row:span 1; }

/* hover: darkening layer + caption reveal + soft zoom */
.g-item::after{
	content:"";
	position:absolute; inset:0;
	background:linear-gradient(to top, rgba(0,0,0,.6), transparent 55%);
	opacity:0;
	transition:opacity .35s ease;
}
.g-item:hover::after{ opacity:1; }
.g-item:hover img{ transform:scale(1.06); }

.g-caption{
	position:absolute;
	right:0; left:0; bottom:0;
	padding:16px 18px;
	color:#fff;
	font-family:'Rubik', sans-serif;
	font-weight:500;
	font-size:0.875rem;
	transform:translateY(10px);
	opacity:0;
	transition:transform .35s ease, opacity .35s ease;
}
.g-item:hover .g-caption{ transform:translateY(0); opacity:1; }

/* ---------- responsive ---------- */
@media (max-width:900px){
	.editorial-grid{
		grid-template-columns:repeat(2, 1fr);
		grid-auto-rows:170px;
	}
}

@media (max-width:560px){
	.editorial-grid{
		grid-template-columns:1fr;
		grid-auto-rows:240px;
		gap:14px;
	}
	.g-featured, .g-tall{ grid-column:span 1; grid-row:span 1; }
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce){
	.g-item img, .g-item::after, .g-caption{ transition:none; }
}

/* Accessibility Menu */

/* עיצוב הכפתור הצף והתפריט */
/* כפתור נגישות צף מוגדל ומורם */
.a11y-toggle-btn {
  position: fixed;
  /* מרימים את הכפתור 100px מעל תחתית המסך כדי שיצוף תמיד */
  bottom: 100px;
  right: 28px;
  
  /* הגדלת הכפתור מ-48px ל-58px */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  cursor: pointer;
  
  /* צל עמוק שנותן תחושת ציפה מעל העמוד */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* הגדלת האייקון של הנגישות בתוך הכפתור */
.a11y-toggle-btn svg {
  width: 30px;
  height: 30px;
}

/* אפקט ריחוף נעים */
.a11y-toggle-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* התאמת גובה התפריט הנפתח כך שיפתח מעל הכפתור המורם */
.a11y-menu {
  position: fixed;
  bottom: 170px; /* מותאם לגובה הכפתור החדש */
  right: 28px;
  width: 280px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  padding: 16px;
  z-index: 9999;
  direction: rtl;
  display: none;
}

.a11y-toggle-btn:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.a11y-menu.active {
  display: block;
}

.a11y-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.a11y-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.a11y-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.a11y-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-btn {
  padding: 8px;
  font-size: 0.85rem;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}

.a11y-btn.is-active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.a11y-btn.reset-btn {
  grid-column: span 2;
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.a11y-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
}

.a11y-footer a {
  color: #0284c7;
  text-decoration: underline;
}

/* === מחלקות הנגישות שמולבשות על ה-body בלחיצה === */

/* שינוי גודל פונט יחסי */
body.a11y-font-lg { font-size: 115% !important; }
body.a11y-font-sm { font-size: 90% !important; }

/* ניגודיות גבוהה (צבעים מנוגדים) */
body.a11y-contrast {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body.a11y-contrast * {
  background-color: transparent !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* גווני אפור */
/* גווני אפור: מחיל שחור-לבן על כל תוכן האתר ומחריג רק את הווידג'ט הצף */
body.a11y-grayscale > :not(#a11y-toggle-btn):not(#a11y-menu) {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
}

/* הדגשת קישורים */
body.a11y-underline a {
  text-decoration: underline 2px solid #000 !important;
  font-weight: bold !important;
}

/* פונט מערכת קריא (ביטול פונטים מסולסלים) */
body.a11y-readable-font * {
  font-family: Arial, Tahoma, sans-serif !important;
}


/* ---------- lightbox ---------- */
.g-item{ cursor:zoom-in; }
.g-item:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }
 
.lightbox{
	border:0;
	padding:0;
	margin:0;
	background:transparent;
	width:100%;
	height:100%;
	max-width:100vw;
	max-height:100vh;
	align-items:center;
	justify-content:center;
}
.lightbox[open]{ display:flex; }
 
/* החלק המוצלל: 50% שחור על שאר המסך */
.lightbox::backdrop{ background:rgba(0,0,0,.5); }
 
.lightbox-img{
	max-width:90vw;
	max-height:88vh;
	object-fit:contain;
	display:block;
	box-shadow:0 20px 60px rgba(0,0,0,.4);
	cursor:default;
}
 
.lightbox-close{
	position:fixed;
	top:18px;
	left:18px;
	width:44px;
	height:44px;
	border:0;
	border-radius:50%;
	background:rgba(0,0,0,.55);
	color:#fff;
	font-size:28px;
	line-height:1;
	cursor:pointer;
	transition:background .2s ease;
}
.lightbox-close:hover{ background:#000; }
.lightbox-close:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }
 
/* מונע גלילה של הדף שמאחורי התמונה */
body:has(.lightbox[open]){ overflow:hidden; }

/* ---------- FAQ Accordion ---------- */
.faq-section {
  padding: 50px 32px;
  /* --- background: var(--cream-deep, #f4eee6); --- */
  border-top: 1px solid var(--line, #e3ded6);
}

.faq-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: right;
}

.faq-container h2 {
  margin-bottom: 36px;
  text-align: right;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line, #e3ded6);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--wine, #782939);
  box-shadow: 0 4px 12px rgba(120, 41, 57, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: 'Rubik', sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink, #211c1d);
  cursor: pointer;
  list-style: none; /* מסיר את המשולש השחור של ברירת המחדל */
  user-select: none;
}

/* מסיר את המשולש בדפדפני ספארי ו-Chrome ישנים */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--wine, #782939);
}

.faq-arrow {
  color: var(--wine, #782939);
  transition: transform 0.28s ease;
  flex-shrink: 0;
  margin-right: 12px;
}

/* סיבוב החץ ב-180 מעלות כשהתיבה פתוחה */
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--ink-soft, #5d5556);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 560px) {
  .faq-section {
    padding: 60px 20px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 18px 18px 18px;
    font-size: 0.92rem;
  }
}


.reviews-section {
  padding: 80px 24px;
  background: transparent;
  border-top: 1px solid var(--line, #e3ded6);
}

.reviews-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.reviews-container h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  color: var(--wine, #762631);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin: 0 0 28px;
  text-align: right;
}

.slider-wrapper {
  position: relative;
  padding: 0 26px;
}

.reviews-viewport {
  overflow: hidden;
  padding: 12px 0 20px;       /* מקום לצל */
  touch-action: pan-y;        /* גלילה אנכית רגילה, אופקית שלנו */
}

.reviews-track {
  --per-view: 3;              /* ה-JS מעדכן לפי רוחב המסך */
  --gap: 20px;
  display: flex;
  gap: var(--gap);
  will-change: transform;
}

/* כרטיס אחיד: יחס קבוע שמתאים את עצמו לרוחב, רקע חם והתמונה "צפה" עליו */
.review-slide {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  aspect-ratio: 5 / 4.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--sand, #f4efe8);
  border-radius: 18px;
}

.review-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-drag: none;
}

/* חיצים */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--wine, #782939);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, color 0.2s;
}
.slider-btn:hover { background: var(--wine, #782939); color: #fff; }
.prev-btn { right: 0; }
.next-btn { left: 0; }

/* נקודות ניווט */
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.reviews-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line, #d8d1c6);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.reviews-dots button.active {
  width: 26px;
  background: var(--wine, #782939);
}

@media (max-width: 900px) {
  .reviews-track { --gap: 16px; }
}

@media (max-width: 600px) {
  .reviews-section { padding: 56px 16px; }
  .slider-wrapper { padding: 0; }
  .slider-btn { display: none; }
}