/* ============================================================
   ARIX — Architecture & Construction
   Dark/light editorial design with orange accent
   ============================================================ */

:root {
  --dark: #0a0a0a;
  --panel: #121212;
  --line-dark: #232323;
  --light: #f5f5f5;
  --card-light: #ede5d6;
  --white: #ffffff;
  --ink: #121212;
  --muted-on-dark: #9c9c9c;
  --muted-on-light: #6d6d6d;
  --accent: #b85838;
  --accent-deep: #9d4628;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 130px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}
.site-header.scrolled .header-mail,
.site-header.solid .header-mail { color: rgba(18, 18, 18, 0.72); }
.site-header.scrolled .main-nav a,
.site-header.solid .main-nav a { color: #121212; }
.site-header.scrolled .main-nav a:hover,
.site-header.solid .main-nav a:hover,
.site-header.scrolled .main-nav a.active,
.site-header.solid .main-nav a.active { color: #000; }
.site-header.scrolled .burger,
.site-header.solid .burger { background: #121212; }
.site-header.scrolled .burger span,
.site-header.solid .burger span,
.site-header.scrolled .burger span::before,
.site-header.solid .burger span::before { background: #fff; }
.header-inner {
  width: 100%;
  height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
  transition: color 0.3s;
}
.header-mail:hover { color: var(--accent); }

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 6px;
  transition: transform 0.3s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo-img {
  display: block;
  height: 84px;
  width: auto;
  transition: filter 0.4s var(--ease);
}

.burger {
  justify-self: end;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.burger:hover { transform: scale(1.06); }
.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s;
}
body.menu-open .burger span { transform: rotate(45deg); }
body.menu-open .burger span::before { top: 0; transform: rotate(90deg); }

/* Visible primary nav, right of the logo */
.main-nav {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.menu-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 36px;
}
.menu-sub a {
  font-size: 15px;
  color: var(--muted-on-dark);
  transition: color 0.3s;
}
.menu-sub a:hover { color: var(--accent); }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after { right: 0; }

@media (min-width: 861px) {
  .burger { display: none; }
}

/* ---------------- Menu overlay ---------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8vw 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.menu-nav a em {
  font-style: normal;
  font-size: 0.32em;
  color: var(--accent);
  font-weight: 600;
}
.menu-nav a:hover { color: var(--accent); }
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: 0.26s; }

.menu-foot {
  margin-top: 7vh;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  color: var(--muted-on-dark);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.5s 0.3s;
}
body.menu-open .menu-foot { opacity: 1; }
.menu-foot a:hover { color: var(--accent); }

/* ---------------- Badges / buttons ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 88, 56, 0.18);
}
.on-dark { color: rgba(255, 255, 255, 0.8); }
.on-light { color: var(--muted-on-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn .btn-arrow {
  width: 38px;
  height: 38px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s;
}
.btn:hover .btn-arrow { background: var(--accent-deep); }
.btn .btn-arrow svg { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.25) 45%, rgba(5, 5, 5, 0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-h) + 40px) 0 64px;
}
.hero-inner .badge {
  margin-bottom: 22px;
  margin-inline-start: clamp(10px, 4.5vw, 80px);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  color: #fff;
}
.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: none;
  margin-inline-start: clamp(10px, 4.5vw, 80px);
}

/* ---------------- Sections base ---------------- */
.section { padding: 110px 0; }
.section.light { background: var(--light); color: var(--ink); }
.section.dark { background: var(--dark); color: #fff; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.sec-head .badge { margin-bottom: 18px; }
.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.about-stats { display: grid; gap: 20px; }
.stat-card {
  background: var(--card-light);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  flex: 1;
}
.stat-num {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { color: var(--muted-on-light); font-size: 14px; }
.about-img {
  overflow: hidden;
  min-height: 320px;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about-img:hover img { transform: scale(1.05); }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  padding: 34px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(184, 88, 56, 0.5); }
.service-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.service-icon img { max-height: 96px; }
.service-num {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--muted-on-dark); font-size: 14.5px; }

/* ---------------- Process ---------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.process-item { text-align: left; }
.process-media {
  width: min(340px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 30px;
}
.process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.process-item:hover .process-media img { transform: scale(1.07); }
.process-num {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
}
.process-item h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }
.process-item p { color: var(--muted-on-light); font-size: 15px; max-width: 34ch; }

/* ---------------- Projects ---------------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 32px;
}
.project-card { display: flex; flex-direction: column; gap: 14px; }
.project-meta {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.project-meta .year { color: var(--muted-on-dark); }
.project-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.project-card > p { color: var(--muted-on-dark); font-size: 14.5px; max-width: 52ch; }
.project-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.06); }

/* ---------------- Why choose us ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-stat {
  margin: 34px 0;
  padding: 34px 0;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
}
.why-stat .stat-num { font-size: clamp(2.8rem, 4vw, 3.8rem); }
.why-feature { padding: 22px 0; border-bottom: 1px solid rgba(18, 18, 18, 0.12); }
.why-feature:first-of-type { border-top: 1px solid rgba(18, 18, 18, 0.12); }
.why-feature h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.why-feature p { color: var(--muted-on-light); font-size: 14.5px; max-width: 48ch; }
.why-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-media .about-img { min-height: 300px; }

.quote-block {
  margin-top: 96px;
  padding-top: 72px;
  border-top: 1px solid rgba(18, 18, 18, 0.12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.quote-block blockquote {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.quote-block blockquote::before { content: "“"; color: var(--accent); }
.quote-block blockquote::after { content: "”"; color: var(--accent); }
.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}
.founder img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.founder strong { display: block; font-size: 15px; }
.founder span { color: var(--muted-on-light); font-size: 13px; }

/* ---------------- Testimonials ---------------- */
.testi-card {
  background: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 40px;
  align-items: center;
}
.testi-media { aspect-ratio: 1; overflow: hidden; }
.testi-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s; }
.testi-body { display: flex; flex-direction: column; gap: 20px; padding-right: 8px; }
.stars { color: var(--accent); letter-spacing: 4px; font-size: 15px; }
.testi-quote {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.testi-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.testi-name strong { display: block; font-size: 15px; }
.testi-name span { color: var(--muted-on-light); font-size: 13px; }
.testi-switch { display: flex; gap: 10px; }
.testi-switch button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s;
  padding: 0;
}
.testi-switch button img { width: 100%; height: 100%; object-fit: cover; }
.testi-switch button:hover { opacity: 0.8; }
.testi-switch button.active {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.06);
}

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-head .sec-title { margin: 16px auto 0; max-width: 20ch; }
.faq-item {
  background: var(--card-light);
  margin-bottom: 12px;
  transition: background 0.3s;
}
.faq-item.open { background: #e4e4e4; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px 28px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 28px 26px;
  color: var(--muted-on-light);
  font-size: 14.5px;
  max-width: 70ch;
}

/* ---------------- CTA ---------------- */
.cta {
  text-align: center;
  padding: 130px 0;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(184, 88, 56, 0.14), transparent 70%),
    var(--dark);
}
.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 22px auto 40px;
  max-width: 16ch;
}
.cta h2 span { color: var(--accent); }

/* ---------------- Footer ---------------- */
.site-footer { background: #050505; padding: 90px 0 0; overflow: hidden; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, auto) 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 70px;
}
.footer-col h4 {
  font-size: 13px;
  color: var(--muted-on-dark);
  font-weight: 500;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-word {
  font-size: clamp(5rem, 21vw, 21rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.78;
  text-align: center;
  color: #fff;
  user-select: none;
  transform: translateY(6%);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-on-dark);
  font-size: 13px;
}

/* ---------------- Page hero (sub pages) ---------------- */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 80px;
  background:
    radial-gradient(70% 100% at 80% 0%, rgba(184, 88, 56, 0.1), transparent 60%),
    #f1eae0;
  color: var(--ink);
}
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 22px;
  max-width: 14ch;
}
.page-hero p { color: var(--muted-on-light); max-width: 56ch; margin-top: 22px; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
}
.contact-info li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  font-size: 15px;
}
.contact-info li:first-child { border-top: 1px solid rgba(18, 18, 18, 0.12); }
.contact-info span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-on-light);
  margin-bottom: 6px;
}
.contact-info a:hover { color: var(--accent); }
.contact-form { display: grid; gap: 26px; }
.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-on-light);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.25);
  padding: 12px 2px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.form-success {
  display: none;
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
  font-size: 14.5px;
}
.form-success.show { display: block; }

/* ---------------- About page ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--panel);
  border: 1px solid var(--line-dark);
  padding: 36px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(184, 88, 56, 0.5); }
.value-card .service-num { display: block; margin-bottom: 16px; }
.value-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.value-card p { color: var(--muted-on-dark); font-size: 14.5px; }

/* ---------------- Reveal animations ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 64px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .quote-block { grid-template-columns: 1fr; gap: 32px; }
  .founder { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 13px; }
}

@media (max-width: 860px) {
  :root { --header-h: 92px; }
  .header-mail { display: none; }
  .main-nav { display: none; }
  .logo-img { height: 54px; }
  .projects-grid { grid-template-columns: 1fr; }
  .testi-card { grid-template-columns: 1fr; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-thumb { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: none; }
  .hero-row { align-items: flex-start; flex-direction: column; }
}

/* ---------------- Header right cluster & language toggle ---------------- */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: color 0.3s, border-color 0.3s;
}
.lang-toggle:hover { color: #fff; border-color: var(--accent); }
.lang-toggle svg { display: block; }
.site-header.scrolled .lang-toggle,
.site-header.solid .lang-toggle { color: #121212; border-color: rgba(18, 18, 18, 0.3); }
.site-header.scrolled .lang-toggle:hover,
.site-header.solid .lang-toggle:hover { color: #000; border-color: var(--accent); }

/* ---------------- Arabic / RTL ---------------- */
html[lang="ar"] body {
  font-family: "Cairo", "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}
html[lang="ar"] * { letter-spacing: 0 !important; }
/* Keep the physical header layout: mail left, logo centered, menu right */
html[dir="rtl"] .header-inner,
html[dir="rtl"] .header-right,
html[dir="rtl"] .main-nav { direction: ltr; }
/* Keep latin/numeric snippets readable inside RTL text */
html[dir="rtl"] a[href^="tel"],
html[dir="rtl"] .header-mail,
html[dir="rtl"] .service-num,
html[dir="rtl"] .project-meta span,
html[dir="rtl"] .menu-nav a em,
html[dir="rtl"] .stars { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .hero h1,
html[lang="ar"] .page-hero h1,
html[lang="ar"] .cta h2 { line-height: 1.12; }
html[lang="ar"] .sec-title { line-height: 1.3; }

@media (max-width: 640px) {
  .header-right { gap: 12px; }
  .lang-toggle { padding: 6px 12px; font-size: 13px; gap: 6px; }
}

@media (max-width: 1200px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 12.5px; }
}

/* ---------------- Explore dropdown ---------------- */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-drop-btn svg { transition: transform 0.3s var(--ease); }
.nav-drop-btn:hover,
.nav-drop:hover .nav-drop-btn,
.nav-drop.open .nav-drop-btn { color: #fff; }
.nav-drop:hover .nav-drop-btn svg,
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.site-header.scrolled .nav-drop-btn,
.site-header.solid .nav-drop-btn { color: #121212; }
.site-header.scrolled .nav-drop-btn:hover,
.site-header.solid .nav-drop-btn:hover,
.site-header.scrolled .nav-drop.open .nav-drop-btn,
.site-header.solid .nav-drop.open .nav-drop-btn { color: #000; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 230px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  padding: 10px;
  display: grid;
  gap: 2px;
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.nav-drop-menu a {
  padding: 10px 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
}
.nav-drop-menu a::after { content: none; }
.nav-drop-menu a:hover { background: #1d1d1d; color: #fff; }
.site-header.scrolled .nav-drop-menu a,
.site-header.solid .nav-drop-menu a { color: rgba(255, 255, 255, 0.8); }
.site-header.scrolled .nav-drop-menu a:hover,
.site-header.solid .nav-drop-menu a:hover { color: #fff; }
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1200px) {
  .nav-drop-btn { font-size: 12.5px; }
  .nav-drop-menu a { font-size: 12.5px; }
}

/* ---------------- Warm sections (logo palette) ---------------- */
.section.warm { background: #f1eae0; color: var(--ink); }
.section.warm .service-card,
.section.warm .value-card {
  background: #fff;
  border-color: rgba(32, 48, 56, 0.1);
}
.section.warm .service-card p,
.section.warm .value-card p { color: var(--muted-on-light); }
.section.warm .service-card:hover,
.section.warm .value-card:hover { border-color: var(--accent); }
.section.warm .project-card h3 { color: var(--ink); }
.section.warm .project-card > p { color: var(--muted-on-light); }
.section.warm .project-meta .year { color: var(--muted-on-light); }
.faq-item.open { background: #e7dcc6; }

/* ---------------- Light Explore dropdown ---------------- */
.nav-drop-menu {
  background: #fff;
  border-color: rgba(32, 48, 56, 0.12);
  box-shadow: 0 24px 60px rgba(32, 48, 56, 0.18);
}
.nav-drop-menu a { color: #203038; }
.nav-drop-menu a:hover { background: #f1eae0; color: #203038; }
.site-header.scrolled .nav-drop-menu a,
.site-header.solid .nav-drop-menu a { color: #203038; }
.site-header.scrolled .nav-drop-menu a:hover,
.site-header.solid .nav-drop-menu a:hover { color: #203038; background: #f1eae0; }

/* ---------------- Lang toggle: same line as menu (desktop), header row (mobile) ---------------- */
.mobile-only { display: none; }
.contact-narrow { max-width: 720px; margin-inline-start: clamp(10px, 4.5vw, 80px); }
@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
}
.main-nav .header-mail { margin-right: auto; }
.header-inner > .logo { grid-column: 2; }
.header-inner > .header-right { grid-column: 3; }
.page-hero h1.hero-sm { font-size: clamp(1.7rem, 3.6vw, 2.8rem); max-width: none; }
.story-lead { font-size: 15px; max-width: 1000px; margin-bottom: 48px; }

@media (max-width: 640px) {
  .stat-card { padding: 32px 24px; }
}
@media (max-width: 400px) {
  .about-stats { grid-template-columns: 1fr; }
}
.footer-thumb {
  justify-self: end;
  width: 220px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.footer-thumb img { width: 100%; height: 100%; object-fit: contain; }
.page-hero.compact { padding: calc(var(--header-h) + 46px) 0 8px; }
.page-hero.compact + .section { padding-top: 48px; }
.page-hero .projects-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
