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

:root {
  --green:       #1C2E1D;
  --green-mid:   #34522e;
  --green-light: #e8f0e8;
  --cream:       #F5F1E8;
  --cream-dark:  #ece7db;
  --white:       #ffffff;
  --text:        #1C2E1D;
  --text-muted:  #55685a;
  --border:      #d8d1c4;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  --section-pad: 100px;
  --container:   1160px;
  --radius:      4px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(44px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 500; }
h4 { font-size: 20px; font-weight: 500; }

em { font-style: italic; color: var(--green-mid); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
}

.eyebrow--light { color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--cream);
}

.btn--full { width: 100%; text-align: center; }

/* ===== LOGO ===== */
.nav__logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.logo-word {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  display: block;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin-top: 1px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(36,51,36,0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo { color: var(--green); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 7px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--green); }
.lang-btn.active {
  color: var(--green);
  background: rgba(28,46,29,0.08);
}

.lang-switcher--mobile {
  margin-top: 16px;
  border-left: none;
  padding-left: 0;
  border-top: 1px solid rgba(240,235,225,0.15);
  padding-top: 16px;
  justify-content: center;
}
.lang-switcher--mobile .lang-btn {
  color: rgba(240,235,225,0.6);
}
.lang-switcher--mobile .lang-btn:hover,
.lang-switcher--mobile .lang-btn.active {
  color: var(--cream);
  background: rgba(240,235,225,0.1);
}

.nav__links a:not(.btn) {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color var(--transition);
}
.nav__links a:not(.btn):hover { color: var(--green-mid); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--green);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 24px 32px;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.nav__mobile a {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
}
.nav__mobile.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(240,235,225,0.97) 0%,
    rgba(240,235,225,0.88) 45%,
    rgba(240,235,225,0.3) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 780px;
}

.hero__inner .eyebrow { margin-bottom: 24px; }

.hero__inner h1 {
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--green) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background: var(--green);
  color: var(--cream);
  margin-top: 48px;
}

.section--tinted {
  background: var(--cream-dark);
}

.section__header {
  max-width: 680px;
  margin-bottom: 72px;
}

.section__header--light h2,
.section__header--light p { color: var(--cream); }

.section__desc {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.card {
  background: var(--cream);
  padding: 48px 36px;
  transition: background var(--transition);
}
.card:hover { background: var(--white); }

.card__num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 300;
}

.card h3 { margin-bottom: 14px; font-size: 20px; }

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== SPLIT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.feature {
  padding: 36px 0;
  border-top: 1px solid rgba(240,235,225,0.15);
}
.feature:last-child { border-bottom: 1px solid rgba(240,235,225,0.15); }

.feature h3 {
  color: var(--cream);
  margin-bottom: 12px;
  font-size: 22px;
}

.feature p {
  color: rgba(240,235,225,0.7);
  font-size: 15px;
  line-height: 1.8;
}

.quote-block {
  background: rgba(240,235,225,0.07);
  border: 1px solid rgba(240,235,225,0.15);
  border-radius: var(--radius);
  padding: 48px 44px;
  position: sticky;
  top: 100px;
}

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 24px;
}

cite {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(240,235,225,0.5);
  font-style: normal;
  text-transform: uppercase;
}

/* ===== STEPS ===== */
.steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}

.step__dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--green);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.step__line {
  position: absolute;
  left: 6px;
  top: 20px;
  width: 1px;
  height: calc(100% + 16px);
  background: var(--border);
  z-index: 0;
}

.step__content {
  padding-bottom: 48px;
}

.step__content h4 {
  font-family: var(--font-serif);
  margin-bottom: 8px;
  font-size: 22px;
}

.step__content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== PERSONAS ===== */
.personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.persona {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.persona:hover {
  box-shadow: 0 8px 32px rgba(36,51,36,0.08);
  transform: translateY(-2px);
}

.persona__icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.persona h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.persona p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== TEAM ===== */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.team__card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.team__card:hover {
  box-shadow: 0 12px 40px rgba(36,51,36,0.1);
  transform: translateY(-3px);
}

.team__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.team__card:hover .team__photo img {
  transform: scale(1.03);
}

.team__info {
  padding: 32px 36px 36px;
  border-top: 1px solid var(--border);
}

.team__info h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

.team__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 24px;
}

.team__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.team__icon {
  color: var(--green-mid);
  font-size: 14px;
  flex-shrink: 0;
}

.team__contact a {
  color: var(--text);
  transition: color var(--transition);
}

.team__contact a:hover {
  color: var(--green-mid);
}

@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; }
}

/* ===== CONTACT ===== */
.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__info h2 { margin-bottom: 20px; }

.contact__info > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.contact__list a {
  color: var(--green-mid);
  font-size: 15px;
}
.contact__list a:hover { text-decoration: underline; }

.contact__list span:last-child { font-size: 15px; }

/* ===== FORM ===== */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6b5a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: #a8b4a8; }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(58,92,58,0.1);
}

.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: #c0392b;
}

.form__success {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  color: var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.form__success.visible { display: block; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
  margin-bottom: 28px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-dark);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(240,235,225,0.9);
  background: linear-gradient(to top, rgba(36,51,36,0.65) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
}

.gallery__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-serif);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery__item--wide { grid-column: span 1; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--green);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__logo .logo-word,
.footer__logo .logo-sub {
  color: var(--cream);
}

.footer__tagline {
  color: rgba(240,235,225,0.6);
  font-size: 14px;
  margin-top: 8px;
}

.footer__copy {
  color: rgba(240,235,225,0.35);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .quote-block { position: static; }

  .contact__wrap { grid-template-columns: 1fr; gap: 52px; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }

  .cards { grid-template-columns: 1fr; }
  .personas { grid-template-columns: 1fr; }

  .hero__inner { padding-top: 40px; padding-bottom: 60px; }
}

/* ===== ARABIC / RTL ===== */
[lang="ar"] body,
[lang="ar"] p,
[lang="ar"] li,
[lang="ar"] label,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] select,
[lang="ar"] button {
  font-family: 'Cairo', system-ui, sans-serif;
}
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] h4 {
  font-family: 'Cairo', system-ui, sans-serif;
  font-weight: 600;
}
[lang="ar"] .eyebrow {
  font-family: 'Cairo', system-ui, sans-serif;
  letter-spacing: 0;
}
[lang="ar"] .btn {
  font-family: 'Cairo', system-ui, sans-serif;
  letter-spacing: 0;
}
[lang="ar"] .nav__links a:not(.btn) {
  letter-spacing: 0;
}
