/* ==========================================================================
   One Third — Balanced Food
   Design tokens — official brand palette (Primary Orange #C66B38)
   ========================================================================== */

:root {
  --color-bg: #f8f8f8;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-text: #262626;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-accent: #c66b38;
  --color-accent-bright: #d96a21;
  --color-accent-dark: #b85e2c;
  --color-accent-darker: #b85e2c;
  --color-border: #e5e5e5;

  --font-base:
    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1180px;
  --radius: 14px;
  --shadow-soft: 0 20px 45px -25px rgba(38, 38, 38, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.9em;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--color-accent-bright);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

.btn-secondary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 248, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 68px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-tagline {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a.btn {
  border-bottom: none;
}

.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current='page'] {
  color: var(--color-text);
  border-bottom-color: var(--color-accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Language dropdown ------------------------------------------------------- */

.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.lang-dropdown-toggle:hover,
.lang-dropdown.open .lang-dropdown-toggle {
  border-color: var(--color-accent);
}

.lang-dropdown-toggle [data-current-flag] {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-dropdown-toggle .chevron {
  width: 14px;
  height: 14px;
  color: var(--color-text-light);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-menu li + li {
  margin-top: 2px;
}

.lang-dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-dropdown-menu button:hover {
  background: var(--color-bg-alt);
}

.lang-dropdown-menu button.active {
  color: var(--color-accent);
  font-weight: 700;
}

.lang-dropdown-menu .flag {
  font-size: 1.15rem;
  line-height: 1;
}

[dir='rtl'] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir='rtl'] .lang-dropdown-menu button {
  text-align: right;
}

/* Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy p {
  font-size: 1.08rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-soft);
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature grid ------------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--color-accent-darker);
  color: #fff;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 6px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-accent-darker);
}

.cta-band .btn-primary:hover {
  background: var(--color-bg-alt);
}

/* Split section (image/text) ------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-visual {
  aspect-ratio: 4/3.2;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Value / mission panels ------------------------------------------------ */

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
}

.panel + .panel {
  margin-top: 28px;
}

.panel .eyebrow {
  margin-bottom: 0.4em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-item {
  border-top: 3px solid var(--color-accent);
  padding-top: 18px;
}

.value-item h3 {
  font-size: 1.05rem;
}

.value-item p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Stats row -------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.stat .stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-accent-darker);
  display: block;
}

.stat .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  font-style: italic;
}

/* Contact page ------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .icon-badge {
  flex-shrink: 0;
  margin-bottom: 0;
}

.contact-info-item h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row svg {
  width: 17px;
  height: 17px;
  stroke: var(--color-text);
}

.form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent-dark);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  background: #222222;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name,
.footer-brand .brand-tagline {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* Partner strip (parent company credit) ----------------------------------- */

.partner-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}

.partner-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-strip span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.partner-strip img {
  height: 30px;
  width: auto;
}

/* Page header (About / Mission / Contact hero strip) --------------------- */

.page-header {
  padding: 56px 0 20px;
  text-align: center;
}

.page-header .eyebrow {
  display: block;
}

.page-header p {
  max-width: 560px;
  margin: 0 auto;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero .container,
  .split,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .grid-3,
  .grid-4,
  .values-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    position: fixed;
    top: 81px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: flex;
  }

  .nav .btn {
    margin-top: 10px;
  }

  .lang-dropdown {
    align-self: flex-start;
    margin-top: 12px;
  }

  .lang-dropdown-menu {
    right: auto;
    left: 0;
  }

  [dir='rtl'] .nav {
    align-items: flex-end;
  }

  [dir='rtl'] .lang-dropdown {
    align-self: flex-end;
  }

  [dir='rtl'] .lang-dropdown-menu {
    left: auto;
    right: 0;
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-4,
  .values-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

  .cta-band {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   RTL (Arabic) support
   Wide letter-spacing and negative tracking are a Latin-typography habit that
   breaks Arabic's connected letterforms, so those are neutralized here. The
   brand name itself ("ONE THIRD") stays in Latin script in both languages,
   so it keeps its own spacing untouched.
   ========================================================================== */

[dir='rtl'] body {
  font-family: 'Cairo', var(--font-base);
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4 {
  letter-spacing: 0;
}

[dir='rtl'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

[dir='rtl'] .brand-tagline {
  letter-spacing: 0;
  text-transform: none;
}

[dir='rtl'] .footer-col h4 {
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  [dir='rtl'] .nav {
    transform: translateX(-100%);
  }

  [dir='rtl'] .nav.open {
    transform: translateX(0);
  }

  [dir='rtl'] .nav a:not(.btn) {
    width: 100%;
  }
}
