:root {
  --forest: #163728;
  --forest-deep: #0d251b;
  --forest-soft: #24533d;
  --coffee: #642f0e;
  --coffee-soft: #8a4c24;
  --cream: #f5efe4;
  --sand: #e9decb;
  --paper: #fffdf8;
  --ink: #17231d;
  --muted: #67756d;
  --line: rgba(22, 55, 40, .14);
  --white: #fff;
  --whatsapp: #25d366;
  --shadow: 0 24px 70px rgba(17, 42, 30, .13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 9999; background: var(--white); color: var(--forest); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 90px;
  transition: background .25s, box-shadow .25s, height .25s;
}
.site-header.scrolled { background: rgba(255, 253, 248, .94); box-shadow: 0 10px 35px rgba(13, 37, 27, .08); backdrop-filter: blur(14px); height: 76px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { position: relative; display: inline-flex; align-items: center; min-width: 142px; }
.brand img { width: 122px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); transition: filter .25s, width .25s; }
.site-header.scrolled .brand img { filter: none; width: 105px; }
.brand-badge { position: absolute; inset-inline-end: -6px; top: 8px; font-family: var(--font-en); font-size: 10px; font-weight: 800; letter-spacing: .12em; background: var(--coffee); color: var(--white); padding: 3px 7px; border-radius: 99px; }
.main-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.9); }
.main-nav a { font-size: 14px; font-weight: 700; position: relative; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.site-header.scrolled .main-nav { color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle { border: 1px solid rgba(255,255,255,.45); color: var(--white); background: rgba(255,255,255,.08); border-radius: 999px; min-width: 45px; height: 42px; font-family: var(--font-en); font-weight: 800; }
.site-header.scrolled .language-toggle { border-color: var(--line); color: var(--forest); background: var(--white); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--white); transition: .25s; }
.site-header.scrolled .menu-toggle span { background: var(--forest); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 23px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; height: 20px; fill: currentColor; }
.button-primary { background: var(--coffee); color: var(--white); box-shadow: 0 16px 36px rgba(100,47,14,.25); }
.button-primary:hover { background: #7a3a12; box-shadow: 0 20px 42px rgba(100,47,14,.32); }
.button-ghost { border-color: rgba(255,255,255,.45); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.16); }
.button-small { min-height: 42px; padding: 0 17px; font-size: 13px; }
.button-large { min-height: 60px; padding-inline: 32px; }

.hero { min-height: 820px; height: 100vh; max-height: 980px; position: relative; color: var(--white); display: flex; align-items: center; overflow: hidden; }
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image { background: url("assets/images/hero.webp") center 44% / cover no-repeat; transform: scale(1.03); }
.hero-overlay { background: linear-gradient(90deg, rgba(5,22,15,.16), rgba(5,22,15,.72) 55%, rgba(5,22,15,.92)), linear-gradient(0deg, rgba(5,22,15,.55), transparent 44%); }
html[dir="ltr"] .hero-overlay { background: linear-gradient(-90deg, rgba(5,22,15,.16), rgba(5,22,15,.72) 55%, rgba(5,22,15,.92)), linear-gradient(0deg, rgba(5,22,15,.55), transparent 44%); }
.hero-content { position: relative; z-index: 2; padding-top: 90px; display: grid; grid-template-columns: minmax(0, 720px) 1fr; align-items: end; gap: 60px; }
.hero-copy h1 { margin: 16px 0 22px; font-size: clamp(46px, 5.3vw, 82px); line-height: 1.18; letter-spacing: -.04em; max-width: 820px; }
.hero-copy p { margin: 0; max-width: 660px; color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.9; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #e9d2b9; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--coffee); }
.eyebrow.light { color: #e8c9a5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.hero-stats { align-self: end; margin-bottom: 20px; border-inline-start: 1px solid rgba(255,255,255,.22); padding-inline-start: 36px; display: grid; gap: 24px; }
.hero-stats div { display: grid; gap: 1px; }
.hero-stats strong { font-size: 27px; line-height: 1.3; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.62); }
.hero-scroll { position: absolute; z-index: 3; bottom: 30px; inset-inline-start: 50%; transform: translateX(-50%); width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; }
.hero-scroll span { position: absolute; width: 4px; height: 8px; border-radius: 10px; background: #fff; top: 8px; left: 11px; animation: scroll-dot 1.8s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(17px); } }

.intro-strip { padding: 88px 0; background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: end; }
.section-heading h2 { font-size: clamp(35px, 4.3vw, 58px); line-height: 1.28; letter-spacing: -.035em; margin: 14px 0 0; color: var(--forest); }
.section-heading.centered { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered p { color: var(--muted); max-width: 660px; margin: 18px auto 0; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }

.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card.feature-card { grid-column: span 2; display: grid; grid-template-columns: .92fr 1.08fr; min-height: 390px; }
.service-image { min-height: 100%; background-size: cover; background-position: center; }
.roasting-image { background-image: url("assets/images/roasting.webp"); }
.packaging-image { background-image: url("assets/images/packaging.webp"); }
.service-content { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.service-number { font-family: var(--font-en); font-size: 11px; font-weight: 800; color: var(--coffee-soft); letter-spacing: .16em; }
.service-card h3 { color: var(--forest); margin: 18px 0 10px; font-size: 23px; line-height: 1.35; }
.service-card p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.service-card.compact { min-height: 310px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.service-card.compact .service-number { margin-top: 14px; }
.service-card.compact p { flex: 1; }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); color: var(--coffee); font-size: 20px; }
.price-pill { margin-top: auto; display: inline-block; background: #edf4ef; color: var(--forest); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 800; }

.showcase { background: var(--forest); color: var(--white); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.showcase-image { position: relative; }
.showcase-image::before { content: ""; position: absolute; inset: -24px 24px 24px -24px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); }
html[dir="rtl"] .showcase-image::before { inset: -24px -24px 24px 24px; }
.showcase-image img { position: relative; width: 100%; height: 570px; object-fit: cover; border-radius: var(--radius-lg); }
.image-caption { position: absolute; z-index: 2; inset-inline-end: -30px; bottom: 30px; background: var(--cream); color: var(--forest); padding: 20px 24px; border-radius: 18px; box-shadow: var(--shadow); display: grid; }
.image-caption strong { font-size: 15px; }
.image-caption span { font-size: 12px; color: var(--muted); }
.showcase-copy h2 { font-size: clamp(39px, 4vw, 58px); line-height: 1.28; margin: 17px 0 20px; letter-spacing: -.035em; }
.showcase-copy > p { color: rgba(255,255,255,.72); font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-inline-start: 32px; color: rgba(255,255,255,.88); }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #e8c9a5; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #f0d2ad; font-weight: 800; border-bottom: 1px solid rgba(240,210,173,.35); padding-bottom: 5px; }

.pricing { background: var(--cream); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pricing-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; border: 1px solid rgba(100,47,14,.09); display: flex; align-items: end; justify-content: space-between; min-height: 190px; }
.pricing-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.pricing-card h3 { color: var(--coffee); font-family: var(--font-en); font-size: 31px; margin: 18px 0 0; direction: ltr; text-align: start; }
.pricing-card h3 small { font-family: var(--font-ar); font-size: 12px; color: var(--muted); margin-inline-start: 5px; }
html[lang="en"] .pricing-card h3 small { font-family: var(--font-en); }
.pricing-card p { margin: 0; writing-mode: vertical-rl; color: #99a39d; font-size: 11px; letter-spacing: .08em; }
.pricing-note { margin-top: 18px; padding: 20px 24px; border-radius: var(--radius-sm); background: rgba(22,55,40,.06); display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); font-size: 13px; }
.pricing-note a { color: var(--coffee); font-weight: 800; white-space: nowrap; }

.process { background: var(--paper); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-grid::before { content: ""; position: absolute; top: 31px; inset-inline: 9% 9%; height: 1px; background: var(--line); }
.process-step { position: relative; padding: 0 25px; text-align: center; }
.process-step > span { position: relative; z-index: 1; margin: 0 auto 26px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--white); font-family: var(--font-en); font-weight: 800; box-shadow: 0 0 0 9px var(--paper); }
.process-step h3 { color: var(--forest); font-size: 19px; margin: 0 0 8px; }
.process-step p { color: var(--muted); font-size: 13px; margin: 0; }

.contact { position: relative; background: var(--forest-deep); color: var(--white); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,37,27,.98), rgba(13,37,27,.77)), url("assets/images/roasting.webp") center / cover; opacity: .75; }
html[dir="ltr"] .contact-bg { background: linear-gradient(-90deg, rgba(13,37,27,.98), rgba(13,37,27,.77)), url("assets/images/roasting.webp") center / cover; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.contact-copy h2 { margin: 15px 0 20px; font-size: clamp(39px, 4.5vw, 63px); line-height: 1.25; max-width: 760px; }
.contact-copy p { max-width: 650px; color: rgba(255,255,255,.72); font-size: 17px; margin-bottom: 30px; }
.contact-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius-lg); padding: 10px 30px; backdrop-filter: blur(16px); }
.contact-item { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; gap: 4px; }
.contact-item:last-child { border-bottom: 0; }
.contact-item span { color: rgba(255,255,255,.55); font-size: 12px; }
.contact-item a, .contact-item strong { font-size: 15px; word-break: break-word; }

.site-footer { background: #071710; color: rgba(255,255,255,.72); padding: 70px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .65fr 1fr; gap: 80px; }
.footer-brand img { width: 135px; height: 90px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 430px; font-size: 13px; margin: 14px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-links strong { color: var(--white); margin-bottom: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }

.floating-whatsapp { position: fixed; z-index: 900; inset-inline-end: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--whatsapp); color: var(--white); box-shadow: 0 15px 38px rgba(37,211,102,.35); transition: transform .2s; }
.floating-whatsapp:hover { transform: scale(1.08); }
.floating-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .18s; }

/* Privacy page */
.inner-page { background: var(--cream); min-height: 100vh; padding-top: 130px; }
.inner-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 70px); box-shadow: var(--shadow); margin-bottom: 80px; }
.inner-card h1 { color: var(--forest); font-size: clamp(38px, 5vw, 64px); margin: 0 0 24px; }
.inner-card h2 { color: var(--forest); margin-top: 35px; }
.inner-card p { color: var(--muted); }
.inner-header { background: var(--paper); box-shadow: 0 10px 35px rgba(13,37,27,.08); }
.inner-header .brand img { filter: none; }
.inner-header .main-nav { color: var(--forest); }
.inner-header .language-toggle { color: var(--forest); border-color: var(--line); }
.inner-header .menu-toggle span { background: var(--forest); }

@media (max-width: 1050px) {
  .main-nav { gap: 19px; }
  .header-whatsapp { display: none; }
  .hero-content { grid-template-columns: 1fr .35fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.feature-card { grid-column: span 1; grid-template-columns: 1fr; }
  .service-image { min-height: 260px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid, .contact-inner { gap: 55px; }
}

@media (max-width: 820px) {
  .site-header { height: 76px; }
  .brand img, .site-header.scrolled .brand img { width: 94px; height: 62px; }
  .brand-badge { top: 5px; inset-inline-end: 6px; }
  .menu-toggle { display: block; order: 2; }
  .main-nav { position: fixed; top: 76px; inset-inline: 14px; background: var(--paper); color: var(--forest); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 4px; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: .22s; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 11px 8px; }
  .main-nav a::after { display: none; }
  .header-actions { margin-inline-start: auto; }
  .language-toggle { height: 38px; min-width: 42px; }
  .hero { min-height: 760px; height: auto; padding: 130px 0 85px; }
  .hero-content { padding-top: 0; grid-template-columns: 1fr; gap: 38px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 23px 0 0; margin: 0; gap: 14px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 61px); }
  .intro-grid, .showcase-grid, .contact-inner { grid-template-columns: 1fr; gap: 45px; }
  .section { padding: 82px 0; }
  .showcase-image { max-width: 620px; }
  .showcase-image img { height: 480px; }
  .contact-card { max-width: 620px; width: 100%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 46px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { gap: 10px; }
  .brand { min-width: 105px; }
  .hero { padding-top: 115px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(5,22,15,.94), rgba(5,22,15,.37)), linear-gradient(90deg, rgba(5,22,15,.85), rgba(5,22,15,.25)); }
  html[dir="ltr"] .hero-overlay { background: linear-gradient(0deg, rgba(5,22,15,.94), rgba(5,22,15,.37)), linear-gradient(-90deg, rgba(5,22,15,.85), rgba(5,22,15,.25)); }
  .hero-copy p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-stats strong { font-size: 20px; }
  .hero-stats span { font-size: 10px; line-height: 1.5; }
  .section-heading h2 { font-size: 35px; }
  .services-grid, .pricing-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card.feature-card { min-height: 0; }
  .pricing-note { align-items: flex-start; flex-direction: column; }
  .showcase-image img { height: 390px; }
  .image-caption { inset-inline-end: -5px; bottom: 18px; padding: 15px 18px; }
  .showcase-image::before { display: none; }
  .contact-card { padding-inline: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp { width: 52px; height: 52px; inset-inline-end: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
