/* ---------- Fonts ---------- */
@font-face {
  font-family: 'EFT Asaf';
  src: url('fonts/eft-asaf-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EFT Asaf';
  src: url('fonts/eft-asaf-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f1e8d3;             /* paper texture cream */
  --bg-soft: #f8f1de;
  --surface: #fffaee;
  --text: #3d3a35;
  --text-muted: #6b6457;
  --primary: #9a7bc7;        /* lavender */
  --primary-dark: #7256a4;
  --primary-soft: #ede1f6;
  --accent: #a85c2e;         /* warm brown for submit */
  --accent-dark: #8c4a23;
  --border: rgba(60, 40, 20, 0.10);
  --shadow-sm: 0 2px 8px rgba(70, 50, 30, 0.08);
  --shadow-md: 0 14px 40px rgba(70, 50, 30, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --header-h: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'EFT Asaf', 'Assistant', -apple-system, system-ui, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  background:
    linear-gradient(rgba(248, 241, 222, 0.65), rgba(248, 241, 222, 0.65)),
    url('images/paper-texture.jpg') center/cover fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 2.85rem); }   /* ~45px desktop */
h2 { font-size: 1.55rem; font-weight: 400; }   /* ~25px, weight 400 like original */
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header (minimal: logo right + icons left) ---------- */
.site-header {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 22px;
  background: rgba(255, 250, 238, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand img { height: 73.14px; width: auto; }
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-dark);
}
.header-icons a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: inherit;
  transition: background 0.15s, color 0.15s;
}
.header-icons a:hover { background: var(--primary-soft); color: var(--primary-dark); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: none; border: 0; cursor: pointer; padding: 7px;
  margin-inline-start: 4px;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--primary-dark);
  margin: 6px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  top: var(--header-h);
  inset-inline-end: 12px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s;
}
.primary-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.primary-nav a {
  display: block;
  padding: 10px 22px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}
.primary-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: var(--header-h) 24px 24px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 28, 60, 0.10) 0%, rgba(40, 28, 60, 0.28) 100%),
    url('images/hero-hands.jpg') center/cover no-repeat;
  z-index: -1;
}
.hero-inner {
  max-width: 1100px;     /* wide enough to fit the tagline on one line at desktop */
  padding: 28px 32px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 0.4em;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.85rem);   /* ~45px on desktop, matching the original */
  font-weight: 700;
  letter-spacing: 0.005em;
  /* moderate shadow: visible shading but not heavy */
  text-shadow:
    -1.5px 1.5px 3px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 0, 0, 0.4);
}
.hero-tagline {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.6rem);       /* ~25px on desktop, matching the original */
  color: #fff;
  font-weight: 400;
  white-space: nowrap;                        /* one line on desktop */
  text-shadow:
    -0.75px 0.75px 3px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .hero-tagline { white-space: normal; font-size: 1.05rem; }   /* allow wrapping on narrow screens */
}

/* ---------- Scroll reveal: slide-up only, no fade ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(60px);
    transition: transform 0.7s ease-out;
    will-change: transform;
  }
  .reveal.in {
    transform: none;
  }
  /* Stagger children if a parent is the trigger */
  .reveal-stagger > * {
    transform: translateY(60px);
    transition: transform 0.6s ease-out;
  }
  .reveal-stagger.in > *           { transform: none; }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.20s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.30s; }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  position: relative;
}
/* Subtle background variation per section, like the original */
#about    { background: rgba(255, 250, 238, 0.55); }
#method   { background: rgba(232, 220, 196, 0.45); }
#faq      { background: rgba(255, 250, 238, 0.55); }
#process  { background: rgba(248, 244, 232, 0.85); }
#testimonials { background: rgba(232, 220, 196, 0.40); }
#contact  { background: rgba(255, 250, 238, 0.60); }

.section-heading {
  color: #000;
  margin: 0 0 36px;
  text-align: start;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section-heading-center { text-align: center; }
.container-narrow { max-width: 760px; }

/* Two-column layouts */
/* About: image (right) + text (left). Method (.reverse): text (right) + image (left). */
.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.two-col.reverse { grid-template-columns: 7fr 5fr; }
.col-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.two-col.reverse .col-image img { aspect-ratio: 4 / 3; }

/* ---------- FAQ (flat list) ---------- */
.faq { max-width: 880px; }
.faq-item { margin-bottom: 22px; }
.faq-item h3 {
  color: var(--text);
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item p { margin: 0; color: var(--text); }

/* ---------- Process cards ---------- */
.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.process-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.process-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.process-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.process-card:hover .process-card-img img { transform: scale(1.04); }
.process-card h3 {
  margin: 22px 24px 8px;
  color: var(--text);
}
.process-card h3 .muted { color: var(--text-muted); font-weight: 400; font-size: 0.9em; }
.process-card p { margin: 0 24px 22px; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Testimonials carousel ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;             /* prevent long content from blowing out the flex item */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* equal halves regardless of content */
  gap: 32px;
  align-items: center;
  background: var(--surface);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  min-height: 380px;
  box-sizing: border-box;
}
.slide-image {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  min-width: 0;
}
.slide-text { min-width: 0; }
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-text { padding: 8px 0; }
.slide-text blockquote {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
}
.stars {
  margin: 0 0 12px;
  display: flex;
  gap: 4px;
  color: #e8b923;
}
.stars svg { width: 18px; height: 18px; display: block; }
.slide-author {
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s;
}
.carousel-arrow:hover { background: var(--primary); color: #fff; }
.carousel-arrow.prev { right: -10px; }
.carousel-arrow.next { left: -10px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(122, 90, 160, 0.30);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots button.active { background: var(--primary-dark); transform: scale(1.2); }

/* ---------- Contact ---------- */
.contact-foot {
  display: grid;
  grid-template-columns: 1fr 2fr;   /* RTL: 1fr (info) on RIGHT, 2fr (map) on LEFT — matches original ratio */
  gap: 36px;
  align-items: center;
  margin-top: 48px;
}
.contact-map {
  display: block;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none; /* let parent <a> handle click */
}
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  justify-content: flex-start;       /* RTL: pack items toward the right edge */
  gap: 10px;
  padding: 0;
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text);
}
.contact-info a { color: inherit; }
.contact-info a:hover { color: var(--primary-dark); }

.ci-icon {
  order: -1;                         /* icon comes first in flex flow → RIGHT in RTL */
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
}

.ci-phone { font-size: 1.35rem; font-weight: 700; padding: 0; }
.ci-phone .ci-text { color: var(--accent); letter-spacing: 0.02em; }
.ci-phone .ci-icon { width: 26px; height: 26px; }

.ci-email .ci-text { color: var(--accent); }
.ci-email a:hover .ci-text { color: var(--accent-dark); text-decoration: underline; }

.contact-info li.ci-note {
  display: block;
  margin-top: 14px;
  padding: 0;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: start;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
}
.footer-brand img { height: 56px; margin: 0 auto 14px; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .section { padding: 56px 0; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 28px; }
  .col-image img, .two-col.reverse .col-image img { aspect-ratio: 4 / 3; }
  .process-cards { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1fr; padding: 28px 24px; }
  .slide-image { order: -1; max-width: 220px; margin: 0 auto; }
  .carousel-arrow.prev { right: 4px; }
  .carousel-arrow.next { left: 4px; }
  .contact-foot { grid-template-columns: 1fr; gap: 22px; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  body { font-size: 18px; }
}
