:root {
  --bg: #f6f3ec;
  --bg-alt: #ece6d9;
  --surface: #fffdf9;
  --surface-soft: #f8f4ec;

  --text: #233129;
  --muted: #5f6c64;

  --primary: #2f4c3f;
  --primary-dark: #22392f;
  --primary-light: #3e6251;

  --accent: #a99957;
  --accent-dark: #8f7f45;
  --accent-soft: rgba(169, 153, 87, 0.12);

  --border: rgba(47, 76, 63, 0.14);
  --border-strong: rgba(47, 76, 63, 0.28);

  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 20px rgba(24, 33, 28, 0.05);
  --shadow: 0 16px 38px rgba(24, 33, 28, 0.08);
  --shadow-lg: 0 24px 58px rgba(24, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

body.lang-en {
  font-family: "Inter", "Cairo", sans-serif;
}

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

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

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section.alt {
  background: var(--bg-alt);
}

.centered {
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -80px;
  inset-inline-start: 1rem;
  background: #000;
  color: #fff;
  z-index: 999;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(47, 76, 63, 0.08);
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  box-shadow: 0 8px 18px rgba(24, 33, 28, 0.06);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img,
.logo-box {
  height: 80px !important;
  width: auto !important;
}

.logo-box {
  background: url("assets/images/papero_logo.png") center/contain no-repeat;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.brand-text span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Nav */
.nav ul {
  list-style: none;
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(47, 76, 63, 0.08);
  color: var(--primary-dark);
}

.lang-switch {
  display: inline-flex;
  background: rgba(169, 153, 87, 0.12);
  border: 1px solid rgba(169, 153, 87, 0.18);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-dark);
}

/* Headings */
.section-head {
  max-width: 770px;
  margin: 0 auto 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.3px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.45rem);
}

p {
  margin-top: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(34, 57, 47, 0.88), rgba(47, 76, 63, 0.78)),
    url("papero_logo.png") right 8% center / 380px auto no-repeat,
    linear-gradient(90deg, #324f42 0%, #2b463a 62%, #a99957 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #f7f5ee;
  text-align: center;
  max-width: 920px;
}

.hero-kicker {
  margin: 0 auto 0.8rem;
  width: fit-content;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero .lead {
  max-width: 720px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(247, 245, 238, 0.92);
}

.hero .btn {
  margin-top: 1rem;
}

.hero-overlay-cards {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  text-align: start;
}

.overlay-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.overlay-card h3 {
  color: #fff;
}

.overlay-card p {
  margin: 0.2rem 0 0;
  color: rgba(247, 245, 238, 0.86);
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.18rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #233129;
}

.btn-primary:hover {
  background: #b4a15d;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Cards general */
.info-card,
.product-card,
.viz-card,
.blog-post,
.industry-card,
.social-card,
.contact-form,
.process-card,
.timeline li,
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* About */
.about-visual-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  border-radius: var(--radius);
  padding: 1.15rem;
  text-align: start;
  transition: 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.info-card.with-image {
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Products */
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  border-radius: var(--radius);
  padding: 1rem;
  text-align: start;
}

.product-main {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(47, 76, 63, 0.1);
  margin-bottom: 0.75rem;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.7rem 0 0.8rem;
}

.thumb-row img {
  border-radius: 10px;
  border: 1px solid rgba(47, 76, 63, 0.1);
}

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px; 
  margin: auto; 
  padding: 2rem 1rem;
}

.industry-card {
  border-radius: 14px;
  overflow: hidden;
}

.industry-card h3 {
  padding: 0.9rem;
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

/* Visual section */
.viz-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.viz-card {
  border-radius: var(--radius);
  padding: 1rem;
  text-align: start;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.flow-steps span {
  background: rgba(169, 153, 87, 0.12);
  border: 1px solid rgba(169, 153, 87, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.circular-diagram {
  width: 180px;
  height: 180px;
  margin: 0.2rem auto 0.6rem;
  border-radius: 50%;
  position: relative;
  border: 2px dashed rgba(169, 153, 87, 0.35);
}

.circular-diagram div {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  box-shadow: 0 8px 18px rgba(47, 76, 63, 0.18);
}

.circular-diagram div:nth-child(1) {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.circular-diagram div:nth-child(2) {
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
}

.circular-diagram div:nth-child(3) {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.circular-diagram div:nth-child(4) {
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
}

.indicator-list p {
  margin: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(169, 153, 87, 0.3);
  padding-bottom: 0.35rem;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline li {
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Partners */
.partner-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.partner-card {
  min-height: 120px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.partner-card span {
  font-weight: 800;
  opacity: 0.58;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-post {
  border-radius: 14px;
  overflow: hidden;
  text-align: start;
  transition: 0.25s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-content {
  padding: 1rem;
}

.blog-date {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-title {
  font-size: 1.08rem;
}

.blog-excerpt {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.blog-link {
  color: var(--primary);
  font-weight: 800;
}

.blog-actions {
  margin-top: 1.3rem;
}

/* Social */
.social-section {
  position: relative;
}

.social-intro {
  max-width: 700px;
  margin: 0.75rem auto 0;
  opacity: 0.85;
}

.social-grid,
.social-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(169, 153, 87, 0.14);
  color: var(--primary-dark);
  flex-shrink: 0;
}

.social-content {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.social-content strong {
  font-size: 1rem;
  line-height: 1.2;
}

.social-content span {
  font-size: 0.92rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

html[dir="rtl"] .social-content {
  text-align: right;
}

html[dir="ltr"] .social-content {
  text-align: left;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1.2fr;
}

.contact-info {
  text-align: start;
}

.contact-list p {
  margin: 0.8rem 0;
  display: grid;
  gap: 0.2rem;
}

.contact-list strong {
  color: var(--primary-dark);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: start;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid rgba(47, 76, 63, 0.16);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 76, 63, 0.1);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  grid-column: 1 / -1;
}

/* Footer */
.site-footer {
  background: #22392f;
  color: #f6f3ec;
  padding: 2.8rem 0 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  align-items: start;
}

.footer-grid .brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-grid .brand img,
.footer-grid .footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px;
}

.footer-grid .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  color: #fff;
  font-weight: 700;
}

.footer-grid .brand-text span {
  color: rgba(246, 243, 236, 0.78);
  font-weight: 400;
  font-size: 0.92rem;
}

.site-footer h3 {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  color: #ffffff;
}

.site-footer p {
  margin: 0 0 0.75rem;
  color: rgba(246, 243, 236, 0.8);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(246, 243, 236, 0.86);
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: #a99957;
}

.socials {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  transition: 0.25s ease;
}

.socials a:hover {
  background: #a99957;
  color: #22392f;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.87rem;
  color: rgba(246, 243, 236, 0.72);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Process */
.process-section {
  padding: 90px 0;
}

.process-timeline {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.process-card {
  position: relative;
  min-height: 260px;
  padding: 32px 24px 28px;
  border-radius: var(--radius-lg);
  text-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(47, 76, 63, 0.09) 0%,
    rgba(169, 153, 87, 0.08) 42%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(169, 153, 87, 0.28);
  background: rgba(169, 153, 87, 0.14);
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.process-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(169, 153, 87, 0.12) 100%);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.process-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 1.16rem;
  line-height: 1.5;
  font-weight: 800;
}

.process-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.9;
}

/* Responsive */
@media (max-width: 1120px) {
  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 78px 1rem auto 1rem;
    background: #fffdf9;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97);
    transition: 0.2s;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav ul {
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-overlay-cards,
  .about-visual-grid,
  .product-grid,
  .viz-layout,
  .blog-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-bg {
    background:
      linear-gradient(110deg, rgba(34, 57, 47, 0.9), rgba(47, 76, 63, 0.82)),
      url("papero_logo.png") center top 90px / 220px auto no-repeat,
      linear-gradient(180deg, #324f42 0%, #2b463a 70%, #a99957 100%);
  }

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

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

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

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

  .logo-box {
    width: 52px;
    height: 52px;
  }
}

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

  .process-card {
    min-height: auto;
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}