/* ══════════════════════════════════════════════════════
   AMI DO — INTERIOR DESIGN
   Design System + Full Stylesheet
   ══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #0f0f0f;
  --bg-2:         #171717;
  --bg-3:         #1f1f1f;
  --fg:           #f0ece6;       /* warm white */
  --fg-muted:     #8a8278;       /* muted warm grey */
  --fg-dim:       #4a4642;
  --accent:       #c9a96e;       /* warm gold */
  --accent-light: #dfc08f;
  --border:       rgba(201, 169, 110, 0.15);
  --border-dim:   rgba(240, 236, 230, 0.07);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Playfair Display', Georgia, serif;

  /* Spacing */
  --nav-h:        72px;
  --gap:          12px;
  --section-py:   clamp(80px, 10vw, 140px);
  --content-max:  1320px;
  --content-px:   clamp(20px, 5vw, 80px);

  /* Motion */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur:          0.5s;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ── VISUALLY HIDDEN (honeypot etc.) ─────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── SKIP LINK ───────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

/* ── FOCUS VISIBLE ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ── SHARED / UTILITY ────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* ── FADE-IN ON SCROLL ───────────────────────────────── */
.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-px);
  transition: background-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease),
              border-bottom var(--dur) var(--ease);
}

/* Nav scrolled state */
.nav.scrolled {
  background-color: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--fg);
  transition: color var(--dur) var(--ease);
}

.nav__logo:hover {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover {
  color: var(--fg);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;   /* shown only on mobile via media query */
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  transition: color 0.25s var(--ease);
}

.mobile-menu__link:hover {
  color: var(--accent);
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
}

.hero.loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.3) 0%,
    rgba(15, 15, 15, 0.55) 60%,
    rgba(15, 15, 15, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 var(--content-px);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.3s forwards;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.08em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--fg-muted);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease-out) 0.7s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out) 1s forwards;
}

.hero__scroll:hover {
  color: var(--accent);
  transform: translateX(-50%) translateY(4px);
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── ABOUT ───────────────────────────────────────────── */
.about {
  background: var(--bg-2);
  padding: var(--section-py) var(--content-px);
}

.about__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about__text {
  max-width: 560px;
}

.about__company {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.about__text .section-title {
  margin-bottom: 8px;
}

.about__text p {
  color: var(--fg-muted);
  line-height: 1.9;
}

.about__text p + p {
  margin-top: 20px;
}

.about__portrait {
  width: clamp(260px, 30vw, 440px);
  flex-shrink: 0;
}

.about__portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PORTFOLIO ───────────────────────────────────────── */
.portfolio {
  padding: var(--section-py) var(--content-px);
  max-width: var(--content-max);
  margin: 0 auto;
}

.portfolio__header {
  margin-bottom: 32px;
}

/* Filter Buttons */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border-dim);
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--fg);
  border-color: var(--fg-dim);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* CSS columns masonry */
.portfolio__grid {
  columns: 3;
  column-gap: var(--gap);
}

.portfolio__item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio__item--hidden {
  display: none;
}

.portfolio__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.portfolio__item:hover img {
  transform: scale(1.04);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.75) 0%,
    rgba(15, 15, 15, 0) 50%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__overlay span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── SERVICES ────────────────────────────────────────── */
.services {
  background: var(--bg-2);
  padding: var(--section-py) var(--content-px);
}

.services__header {
  max-width: var(--content-max);
  margin: 0 auto 60px;
}

.services__grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
}

.service-card {
  background: var(--bg-2);
  padding: clamp(32px, 4vw, 56px);
  transition: background-color 0.3s var(--ease);
}

.service-card:hover {
  background: var(--bg-3);
}

.service-card__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.3s var(--ease);
}

.service-card:hover .service-card__num {
  color: var(--accent);
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 14px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* ── CONTACT ─────────────────────────────────────────── */
.contact {
  padding: var(--section-py) var(--content-px);
}

.contact__inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact__inner .section-title {
  margin-bottom: 24px;
}

.contact__intro {
  color: var(--fg-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 56px;
}

.contact__link {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact__address {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fg-dim);
  font-style: italic;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-field input,
.form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-dim);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 18px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
  resize: none;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-dim);
}

/* WhatsApp link accent */
.contact__link--whatsapp {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
.contact__link--whatsapp:hover {
  color: #4ade80;
  border-color: #4ade80;
}

/* Form actions row */
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-submit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.form-status--ok  { color: #4ade80; }
.form-status--err { color: #f87171; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-dim);
  padding: 40px var(--content-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.footer__copy {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* ── LANGUAGE TOGGLE ─────────────────────────────────── */
.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch--mobile {
  margin-top: 20px;
}

.lang-switch__sep {
  font-size: 11px;
  color: var(--fg-dim);
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--fg);
}

.lang-btn.active {
  color: var(--accent);
}

/* ── RTL OVERRIDES ───────────────────────────────────── */

/* Hebrew: Frank Ruhl Libre — classical high-contrast serif matching Playfair Display */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

/* Nav link underline: flip to grow from right in RTL */
[dir="rtl"] .nav__links a::after {
  left: auto;
  right: 0;
}

/* About portrait: in RTL grid reverses, portrait appears on left — correct */

/* Service card numbers: keep gold numerals consistent */
[dir="rtl"] .service-card__num {
  text-align: right;
}

/* Contact details: right-align in RTL */
[dir="rtl"] .contact__details {
  flex-direction: column;
  align-items: flex-end;
}

/* Form: labels and inputs right-aligned */
[dir="rtl"] .form-field input,
[dir="rtl"] .form-field textarea {
  text-align: right;
}

/* Submit button: align to right in RTL */
[dir="rtl"] .btn-submit {
  align-self: flex-end;
}

/* Footer: reverse order in RTL */
[dir="rtl"] .footer {
  flex-direction: row-reverse;
}

/* ── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__bg {
    transform: scale(1) !important;
    transition: none !important;
  }
}

/* ── GLIGHTBOX OVERRIDES ─────────────────────────────── */
.glightbox-clean .gslide-description {
  background: rgba(15, 15, 15, 0.92);
}

.glightbox-clean .gdesc-inner .gslide-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio__grid {
    columns: 2;
  }

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

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
    padding: 10px;
    margin: -6px;
  }

  .lang-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 4px;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__portrait {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .portfolio__grid {
    columns: 2;
  }

  .filter-btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__details {
    flex-direction: column;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .portfolio__grid {
    columns: 1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── FLOATING SOCIAL BUBBLES ─────────────────────────── */
.social-bubbles {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

/* Bubbles stay bottom-right in both languages so they never
   overlap the accessibility widget on the left. */

.social-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.social-bubble svg {
  width: 24px;
  height: 24px;
}

.social-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

.social-bubble--whatsapp  { background: #25d366; }
.social-bubble--instagram { background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
