/*
Theme Name: Gal Cohen — Interior Design
Theme URI: https://galcohen.co.il/
Author: Gal Cohen Studio
Description: תבנית עברית (RTL) לאתר התדמית של גל כהן — סטודיו לעיצוב פנים. עמוד אחד, סקשנים ניתנים לעריכה וסוג תוכן ייעודי לפרויקטים.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gal-cohen
Tags: rtl-language-support, custom-logo, custom-colors, one-column
*/

/* ================================================================
   Gal Cohen — Interior Design | Stylesheet
   Warm monochrome studio look — white / soft gray / charcoal
   ================================================================ */

:root {
  --white: #ffffff;
  --bg-alt: #f6f6f4;
  --ink: #1e1e1e;
  --ink-soft: #6d6d6d;
  --line: #e7e7e4;
  --dark: #141414;
  --radius: 16px;
  --shadow-soft: 0 6px 22px rgba(20, 20, 20, 0.05);
  --shadow-med: 0 16px 40px rgba(20, 20, 20, 0.08);
  --shadow-card: 0 6px 22px rgba(20, 20, 20, 0.06);
  --font-body: "Noto Sans Hebrew", sans-serif;
  --header-h: 84px;
  --header-h-mobile: 76px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Class-level `display` beats the UA stylesheet's [hidden] rule, so state we
   toggle through the attribute has to win explicitly. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

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

a { color: var(--ink); text-decoration: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.container.narrow { width: min(920px, 92%); }

.center { text-align: center; }

/* Visible to screen readers only — the lead-form inputs carry placeholders as
   their visible label, but they still need a real one. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.section-title {
  font-weight: 400;
  font-size: 36px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 44px;
}

.section { padding: 96px 56px; }
.section-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition),
              border-color var(--transition);
}

.btn svg { width: 19px; height: 19px; flex: none; }

.btn-dark { background: rgba(20, 20, 20, 0.85); color: var(--white); }
.btn-dark:hover { background: #000; }

.btn-sm { padding: 8px 22px; font-size: 14.5px; }

.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.btn-light:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 12px 32px;
  font-size: 15px;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

.btn-insta {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(204, 35, 102, 0.35);
  direction: ltr;
}
.btn-insta:hover { box-shadow: 0 14px 32px rgba(204, 35, 102, 0.45); transform: translateY(-2px); }

.center-actions { text-align: center; margin-top: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background-color var(--transition), box-shadow var(--transition),
              color var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(20, 20, 20, 0.07);
  color: var(--ink);
}

.header-inner {
  /* Lines up with the sections below rather than running to the edges. */
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.logo { display: grid; align-items: center; }

/* Both logo variants stack in the same grid cell and cross-fade:
   white over the transparent hero header, black once the header turns solid. */
.logo-img {
  grid-area: 1 / 1;
  height: 42px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.logo-img--dark { opacity: 0; }

.site-header.scrolled .logo-img--light,
.site-header.nav-open .logo-img--light { opacity: 0; }

.site-header.scrolled .logo-img--dark,
.site-header.nav-open .logo-img--dark { opacity: 1; }

.main-nav { display: flex; align-items: center; gap: 29px; }

.nav-link {
  position: relative;
  font-weight: 400;
  font-size: 15px;
  color: inherit;
  opacity: 0.92;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}

.nav-link:hover { opacity: 1; }
.nav-link.active { border-color: currentColor; opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 11px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  color: inherit;
  transition: all var(--transition);
}

.icon-btn svg { width: 20px; height: 20px; }

.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.site-header.scrolled .icon-btn:hover { background: var(--ink); color: var(--white); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid currentColor;
  cursor: pointer;
  color: inherit;
}

.menu-toggle span {
  width: 18px;
  height: 1.8px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.site-header.nav-open { color: var(--ink); }

.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Fills the screen rather than a fixed 720px, so the photograph scales with
     the display. The floor keeps it from collapsing on a short laptop window. */
  height: 95vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 80%;
  background-color: #3a3733;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.45), rgba(10, 10, 10, 0.55));
}

.hero-content {
  /* Sits 100px below centre, so the logo, line and button clear Gal's face. */
  position: relative;
  top: 100px;
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 40px;
}

.hero-logo { height: 150px; width: auto; display: block; margin: 0 auto 36px; }

.hero-title {
  font-weight: 300;
  font-size: 35px;
  line-height: 1.55;
  margin-bottom: 38px;
}

/* ---------- Section divider ---------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 40px;
  color: #a3a19b;
}

.section-divider span {
  width: 56px;
  height: 1px;
  background: #d5d3ce;
}

.section-divider svg { width: 20px; height: 20px; }

.section-divider--warm { color: #a08c76; margin-bottom: 30px; }
.section-divider--warm span { background: #c8b8a4; }

/* ---------- What I Do ---------- */
.what-i-do {
  background-color: #e8dccd;
  /* Fine vertical pinstripe, picked up from the blazer in the hero photograph. */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.035) 0,
    rgba(0, 0, 0, 0.035) 1px,
    transparent 1px,
    transparent 9px
  );
  padding: 88px 56px;
}

.what-i-do-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.what-i-do p {
  color: #5f564c;
  font-weight: 300;
  font-size: 17px;
  line-height: 2;
}

.what-i-do p + p { margin-top: 18px; }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: center;
}

.story-photo {
  border-radius: 50%;
  overflow: hidden;
  width: 300px;
  height: 300px;
  box-shadow: var(--shadow-med);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-text p {
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 16px;
}
.story-text p:last-child { margin-bottom: 0; }

.story-quote {
  margin-top: 44px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 29px 35px;
  text-align: center;
  font-size: 18.5px;
  font-weight: 400;
}

/* ---------- Projects — mosaic ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-auto-rows: 280px;
  /* Tall cards are placed by column, so the short ones need to back-fill the
     cells left beside them rather than queue up after. */
  grid-auto-flow: dense;
  gap: 20px;
}

/* A tall card every third one, alternating sides, so the mosaic never settles
   into a run of identical cells. Six cards fill four rows exactly, and the
   pattern repeats from there. Cards past the third are collapsed until the
   "all projects" button reveals them. */
.project-card:nth-child(6n + 1) { grid-column: 1; grid-row: span 2; }
.project-card:nth-child(6n + 4) { grid-column: 2; grid-row: span 2; }

/* A last card landing beside a tall one would leave the cell under it empty. */
.project-card:nth-child(6n + 2):last-child,
.project-card:nth-child(6n + 5):last-child { grid-row: span 2; }

.project-card.is-collapsed { display: none; }

.project-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.project-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.project-open:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-card:hover img { transform: scale(1.05); }

.project-info {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: block;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.75), transparent);
  /* Tighter under the text than around it, so the two lines read as one block
     sitting on the edge rather than floating in the middle of the veil. */
  padding: 22px 22px 15px;
}

.project-card:nth-child(6n + 1) .project-info,
.project-card:nth-child(6n + 4) .project-info { padding: 28px 28px 19px; }

/* The page's 1.8 line-height would pull these two lines far apart. */
.project-name { display: block; font-weight: 500; font-size: 19px; line-height: 1.35; }
.project-card:nth-child(6n + 1) .project-name,
.project-card:nth-child(6n + 4) .project-name { font-size: 21px; }

.project-meta { display: block; font-weight: 300; font-size: 15px; line-height: 1.35; opacity: 0.85; }
.project-card:nth-child(6n + 1) .project-meta,
.project-card:nth-child(6n + 4) .project-meta { font-size: 16px; }

/* ---------- Letter viewer ---------- */
/* One image, nothing else: no strip, no arrows, no counter. */
.letterbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.letterbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.82); }

.letterbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(880px, 100%);
  max-height: 100%;
  display: flex;
  /* Without this the flex default stretches the image to the panel's height
     and the letter comes out squashed. */
  align-items: center;
  justify-content: center;
}

.letterbox-panel img {
  max-width: 100%;
  /* The panel's height is content-driven, so a percentage cap here resolves
     against nothing. The window, less the padding, is the real limit. */
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.letterbox-panel:focus-visible { outline: none; }

.letterbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  cursor: pointer;
}

.letterbox-close svg { width: 20px; height: 20px; }

/* ---------- Thank-you nudge ---------- */
/* A short detour offered right after the lead form succeeds: fill in the
   longer questionnaire while the visitor is already here. */
.thankbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.thankbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.72); }

.thankbox-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 44px 34px 34px;
  text-align: center;
}

.thankbox-panel:focus-visible { outline: none; }

.thankbox-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
}

.thankbox-mark svg { width: 26px; height: 26px; }

.thankbox-title {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 12px;
}

.thankbox-message {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.thankbox-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 15.5px;
  font-weight: 500;
  transition: background-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.thankbox-cta:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-med);
}

.thankbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  cursor: pointer;
}

.thankbox-close svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
/* Lives in lightbox.css, which the project editor in wp-admin loads too. */

/* ---------- Before / After slider ---------- */
.ba-slider {
  position: relative;
  direction: ltr;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-med);
  background: var(--line);
  user-select: none;
  touch-action: pan-y;
}

.ba-after, .ba-before { position: absolute; inset: 0; }

.ba-after img, .ba-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before { clip-path: inset(0 50% 0 0); }

.ba-tag {
  position: absolute;
  top: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(20, 20, 20, 0.65);
  color: var(--white);
}

.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  cursor: ew-resize;
  transform: translateX(-1px);
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ba-handle-btn svg { width: 22px; height: 22px; }

.ba-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Roadmap ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.roadmap-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 27px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.roadmap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-med); }

.roadmap-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
}

.roadmap-icon svg { width: 27px; height: 27px; }

.roadmap-card h3 { font-weight: 500; font-size: 17.5px; margin-bottom: 8px; }
.roadmap-card p { color: var(--ink-soft); font-weight: 300; font-size: 15px; }

/* ---------- Testimonials ---------- */
/* There are more testimonials than fit at once, so the row scrolls. Native
   scrolling carries the touch and trackpad gestures; the arrows and dots drive
   the same scrollLeft, so the three stay in step however the reader moves. */
.testimonials-rail { position: relative; }

.testimonials-viewport {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Room for the lift on hover, which would otherwise be clipped. */
  padding: 6px 2px 10px;
}

.testimonials-viewport::-webkit-scrollbar { display: none; }

.testimonials-grid { display: contents; }

.testimonial-card {
  flex: 0 0 calc((100% - 52px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 34px 29px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-med); }

.quote-mark { display: block; color: #c9c9c4; margin-bottom: 14px; }
.quote-mark svg { width: 30px; height: 30px; }

/* The quotes differ in length; this pins the name and the link to the bottom
   so the cards line up across the row. */
.testimonial-card blockquote { color: var(--ink-soft); font-weight: 300; margin-bottom: 18px; flex: 1 0 auto; }
.testimonial-card figcaption { font-weight: 500; font-size: 15px; }

.testimonial-letter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.testimonial-letter:hover { opacity: 1; }
.testimonial-letter svg { width: 16px; height: 16px; flex: none; }

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  transition: opacity var(--transition), background-color var(--transition);
}

.testimonials-nav svg { width: 20px; height: 20px; }
.testimonials-nav:hover { background: var(--bg-alt); }
.testimonials-nav[disabled] { opacity: 0; pointer-events: none; }

/* inset-inline-start is the right-hand side under RTL, which is where the
   reader goes back to. */
.testimonials-prev { inset-inline-start: -21px; }
.testimonials-next { inset-inline-end: -21px; }

.testimonials-dots { display: none; justify-content: center; gap: 8px; margin-top: 20px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d3ce;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.dot.active { background: var(--ink); }

/* ---------- Dark CTA sections ---------- */
.dark-cta {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 100px 56px;
  overflow: hidden;
}

.dark-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2b2926;
}

.dark-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.68);
  z-index: 1;
}

.style-cta .dark-cta-bg { background-image: var(--cta-style-image); }
.journey-cta .dark-cta-bg { background-image: var(--cta-final-image); }

.dark-cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

.dark-cta h2 { font-weight: 400; font-size: 36px; margin-bottom: 16px; }
.dark-cta p { color: rgba(255, 255, 255, 0.85); font-weight: 300; margin-bottom: 35px; }

/* ---------- Lead form (final CTA) ---------- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.lead-form input {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.lead-form input:focus { box-shadow: 0 0 0 2px var(--white); }
.lead-form input::placeholder { color: #8e8e8a; }

/* Digits type left-to-right even on an RTL page, but the Hebrew placeholder
   should still read right-to-left — otherwise its asterisk jumps to the wrong side. */
.lead-form input[type="tel"] { direction: ltr; text-align: right; }
.lead-form input[type="tel"]:placeholder-shown { direction: rtl; }

.lead-form button {
  background: #a08c76;
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 0;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.lead-form button:hover {
  background: #8f7c66;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

/* Contact Form 7 brings its own markup — a paragraph per field, a wrapping
   span, and an <input type="submit"> where the design has a button — so the
   look above has to be reached a second way rather than inherited. */
.lead-form--plugin { display: block; max-width: 360px; margin: 0 auto; }

/* The plugin stamps the site locale's direction onto its own wrapper, so a
   WordPress installed in en_US turns the whole form left-to-right in the
   middle of an RTL page. The section's direction wins here, whatever the
   locale says. */
.lead-form--plugin .wpcf7,
.lead-form--plugin .wpcf7-form { direction: rtl; }

.lead-form--plugin input,
.lead-form--plugin textarea,
.lead-form--plugin .wpcf7-not-valid-tip,
.lead-form--plugin .wpcf7-response-output { direction: rtl; text-align: right; }

.lead-form--plugin .wpcf7-form p { margin: 0 0 14px; }
.lead-form--plugin .wpcf7-form p:last-of-type { margin-bottom: 0; }
.lead-form--plugin .wpcf7-form-control-wrap { display: block; }

/* The plugin ships size="40" on every field, which is an intrinsic width wide
   enough to burst out of the column. */
.lead-form--plugin input[type="text"],
.lead-form--plugin input[type="tel"],
.lead-form--plugin input[type="email"],
.lead-form--plugin textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.lead-form--plugin textarea {
  border-radius: 20px;
  /* rows="10" comes from the plugin and sets an intrinsic height a min- alone
     cannot pull back. */
  height: 116px;
  min-height: 116px;
  line-height: 1.6;
  resize: vertical;
}

.lead-form--plugin input:focus,
.lead-form--plugin textarea:focus { box-shadow: 0 0 0 2px var(--white); }
.lead-form--plugin textarea::placeholder { color: #8e8e8a; }

.lead-form--plugin input[type="submit"] {
  width: 100%;
  /* The rule above right-aligns every control; the button's label is centred. */
  text-align: center;
  background: #a08c76;
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 0;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.lead-form--plugin input[type="submit"]:hover {
  background: #8f7c66;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

/* The plugin's validation tips and status line land on a dark photograph,
   where its own near-black defaults would be unreadable. */
.lead-form--plugin .wpcf7-not-valid-tip {
  color: #ffd7d1;
  font-size: 13.5px;
  margin-top: 7px;
  padding-inline: 4px;
}

.lead-form--plugin .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
}

/* The plugin renders the box on every load and fills it only on a result. */
.lead-form--plugin .wpcf7-response-output:empty { display: none; }

.lead-form--plugin .wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ---------- Instagram band ---------- */
.insta-band { padding: 72px 56px; background: var(--white); }
.insta-text { color: var(--ink-soft); font-weight: 300; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-desc { font-weight: 300; font-size: 15px; max-width: 320px; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 9px; }

.footer-links h3, .footer-contact h3 {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-links a, .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  font-size: 15px;
  transition: color var(--transition);
}

.footer-links a:hover, .footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 21px 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  direction: ltr;
}
/* The Hebrew reads right-to-left while the surrounding line is set LTR for the
   copyright, so this one states its own direction. */
.footer-credit {
  direction: rtl;
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color var(--transition), border-color var(--transition);
}

.footer-credit a:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.7); }


.copyright-short { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ================================================================
   Responsive — mobile (matches 390px reference layout)
   ================================================================ */
/* On a short laptop window the hero hits its 640px floor, and the full nudge
   would leave the button all but touching the section below. */
@media (min-width: 861px) and (max-height: 800px) {
  .hero-content { top: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: var(--header-h-mobile); }

  .section { padding: 64px 24px; }
  .section-title { font-size: 27px; }
  .section-sub { font-size: 15px; margin-bottom: 30px; }

  /* Mobile keeps its own edge padding rather than the desktop width cap. */
  .header-inner { width: 100%; padding: 16px 20px; }
  .logo-img { height: 34px; }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--white);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
    z-index: 90;
  }

  .site-header.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav .nav-link { color: var(--ink); }

  .header-actions { gap: 10px; }
  .header-actions .btn-sm { display: none; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
  .menu-toggle { display: flex; }

  /* Hero */
  /* min-height is a desktop floor; mobile keeps its own height. */
  .hero { height: 620px; min-height: 0; }
  /* The nudge is a desktop composition choice; mobile stays centred. */
  .hero-content { padding: 0 28px; top: 0; }
  .hero-logo { height: 96px; margin-bottom: 26px; }
  .hero-title { font-size: 21px; line-height: 1.6; margin-bottom: 28px; }
  .btn { padding: 13px 26px; font-size: 15px; }

  /* Gal sits to the right of frame, so the narrow crop has to slide that way
     to keep her face in it. */
  .hero-bg { background-position: 68% 30%; }
  /* The mobile crop lands on the bright curtain, so the veil works harder here. */
  .hero-overlay { background: linear-gradient(to bottom, rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.62)); }

  /* Story */
  .story { text-align: center; }
  .story-grid { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .story-photo { width: 190px; height: 190px; margin-bottom: 4px; }
  .story-text { order: 2; text-align: right; }
  .story-quote { font-size: 16px; padding: 22px; margin-top: 26px; }

  /* Projects */
  .projects-grid { display: flex; flex-direction: column; gap: 16px; }
  .project-card { height: 220px; }
  .project-card:first-child { height: 300px; }
  /* The mosaic is a single column here, so every card gets the same treatment. */
  .project-card .project-info,
  .project-card:nth-child(6n + 1) .project-info,
  .project-card:nth-child(6n + 4) .project-info { padding: 18px 18px 13px; }
  .project-name,
  .project-card:nth-child(6n + 1) .project-name,
  .project-card:nth-child(6n + 4) .project-name { font-size: 18px; }
  .project-meta,
  .project-card:nth-child(6n + 1) .project-meta,
  .project-card:nth-child(6n + 4) .project-meta { font-size: 14px; }

  /* Letter viewer */
  .letterbox { padding: 16px; }
  .letterbox-panel img { max-height: calc(100vh - 32px); }

  /* Thank-you nudge */
  .thankbox-panel { padding: 38px 24px 28px; }
  .thankbox-close { top: 10px; right: 10px; }
  .letterbox-close { top: 4px; right: 4px; }

  /* Before / After */
  .ba-slider { aspect-ratio: 4 / 3; }
  .ba-tag { top: 12px; padding: 3px 12px; font-size: 12px; }
  .ba-handle-btn { width: 44px; height: 44px; }
  .ba-handle-btn svg { width: 20px; height: 20px; }
  .ba-hint { display: none; }

  /* Roadmap */
  .roadmap-grid { grid-template-columns: 1fr; gap: 16px; }
  .roadmap-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: right;
    padding: 22px 20px;
  }
  .roadmap-icon { width: 48px; height: 48px; margin: 0; flex: none; }
  .roadmap-icon svg { width: 22px; height: 22px; }
  .roadmap-card h3 { font-size: 16.5px; margin-bottom: 4px; }
  .roadmap-card p { font-size: 14px; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; padding: 26px 22px; }
  .testimonial-card:hover { transform: none; box-shadow: none; }
  /* One card at a time here, so a short quote should not be stretched to the
     height of the longest one in the set. */
  .testimonials-viewport { gap: 16px; align-items: flex-start; }
  .testimonial-card blockquote { flex: 0 1 auto; line-height: 1.7; }
  /* The arrows would sit over the cards at this width; the swipe is enough. */
  .testimonials-nav { display: none; }
  .testimonials-dots { display: flex; }

  /* Dark CTAs */
  .dark-cta { padding: 72px 24px; }
  .dark-cta h2 { font-size: 26px; margin-bottom: 12px; }
  .dark-cta p { font-size: 15px; margin-bottom: 26px; }

  .insta-band { padding: 56px 24px; }

  /* Footer */
  .site-footer { padding: 40px 24px 0; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 22px; justify-items: center; }
  .footer-about { display: flex; flex-direction: column; align-items: center; }
  .footer-logo { margin: 0 auto 10px; }
  .footer-desc { max-width: none; }
  .footer-links { display: none; }
  .footer-contact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .footer-contact h3 { display: none; }
  .footer-bottom { padding: 16px 0; }
  .copyright-full { display: none; }
  .copyright-short { display: inline; }
}

@media (max-width: 500px) {
  .container { width: 92%; }
}
