:root {
  color-scheme: dark;
  --bg: #07100b;
  --bg-alt: #0d1811;
  --panel: rgba(17, 28, 20, 0.82);
  --panel-strong: rgba(24, 39, 29, 0.94);
  --border: rgba(205, 224, 198, 0.16);
  --text: #f3f7ef;
  --muted: #b7c4b0;
  --accent: #b7e46f;
  --accent-deep: #69a642;
  --earth: #c9a261;
  --water: #5ea39d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 16, 11, 0.55), rgba(7, 16, 11, 0.94)),
    url("assets/rhodes-pivot-irrigation.png") center top / cover fixed,
    var(--bg);
  color: var(--text);
}

html:lang(ar) body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 100%);
  opacity: 0.24;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(7, 13, 9, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

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

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 14px;
  margin-left: auto;
}

.site-nav {
  gap: 18px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-option {
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.language-option.is-active {
  color: #0b140d;
  font-weight: 800;
  background: linear-gradient(135deg, #e5f6a9, #86c753);
}

.section {
  padding: 48px 0;
}

.section-alt {
  margin: 10px 0;
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 30, 21, 0.9), rgba(8, 15, 11, 0.94));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 150px);
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-text,
.section-note,
.card p,
.contact-card p,
.expertise-list p,
.team-card p,
.snapshot-card p,
#modalSummary {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #0b140d;
  font-weight: 700;
  background: linear-gradient(135deg, #e5f6a9, #86c753);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.hero-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.hero-image,
.field-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(6, 12, 8, 0.05), rgba(4, 8, 5, 0.82)),
    url("assets/rhodes-pivot-irrigation.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-image-label,
.field-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-image-label {
  position: absolute;
  inset: auto 0 0;
}

.hero-image-label span,
.field-visual span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.hero-image-label strong,
.field-visual strong {
  margin-top: 8px;
  font-size: 1.7rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.card,
.team-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.65rem;
}

.metric-card span {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.split-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  align-items: end;
  gap: 24px;
}

.section-note span {
  color: var(--text);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.snapshot-card {
  cursor: pointer;
  width: 100%;
  min-height: 360px;
  padding: 24px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(7, 13, 9, 0.1), rgba(5, 9, 6, 0.88)),
    url("assets/rhodes-field-premium.png") center / cover;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

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

.snapshot-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(7, 13, 9, 0.1), rgba(5, 9, 6, 0.88)),
    url("assets/rhodes-bales-field.png") center / cover;
}

.snapshot-card:hover,
.snapshot-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(183, 228, 111, 0.55);
  outline: none;
}

.snapshot-card strong {
  display: block;
  max-width: 14ch;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.snapshot-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.snapshot-card dt {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.snapshot-card dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.snapshot-action {
  display: inline-flex;
  color: #0b140d;
  font-weight: 700;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5f6a9, #86c753);
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.card,
.team-card {
  padding: 22px;
}

.card-tag,
.project-kicker,
.contact-details span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.snapshot-kicker {
    color: #ffffff;
}

.expertise-section {
  padding-bottom: 28px;
}

.expertise-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.field-visual {
  background:
    linear-gradient(180deg, rgba(6, 12, 8, 0.05), rgba(4, 8, 5, 0.82)),
    url("assets/rhodes-field-sunset.png") center / cover;
}

.expertise-list {
  display: grid;
  gap: 12px;
}

.expertise-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.expertise-list article > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #0b140d;
  font-weight: 800;
  background: var(--accent);
}

.team-grid {
  display: flex;
  justify-content: center;
}

.team-card {
  max-width: 500px;
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--panel-strong);
}

.team-photo {
  position: relative;
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(183, 228, 111, 0.16), rgba(94, 163, 157, 0.1)),
    rgba(255, 255, 255, 0.035);
}

.team-photo::before,
.team-photo::after {
  content: "";
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(243, 247, 239, 0.82), rgba(183, 196, 176, 0.48));
}

.team-photo::before {
  top: 42px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.team-photo::after {
  bottom: -18px;
  width: 128px;
  height: 94px;
  border-radius: 64px 64px 22px 22px;
}

.contact-layout {
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-card,
.contact-form {
  padding: 24px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-details div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-details span {
  margin-bottom: 6px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(183, 228, 111, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(17, 28, 20, 0.9);
  transition: all 0.2s ease;
}

.contact-form select:hover {
  border-color: var(--accent);
  background: rgba(24, 39, 29, 0.95);
}

.contact-form select option {
  color: var(--text);
  background: #142018;
}

.contact-form select {
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(183, 228, 111, 0.55);
  box-shadow: 0 0 0 3px rgba(183, 228, 111, 0.12);
}

.site-footer {
  padding: 24px 0 8px;
  color: var(--muted);
  text-align: center;
}

html[dir="rtl"] .hero-points {
  padding-right: 18px;
  padding-left: 0;
}

html[dir="rtl"] .expertise-list article {
  grid-template-columns: 1fr 58px;
}

html[dir="rtl"] .expertise-list article > span {
  order: 2;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .modal-heading {
  padding-right: 0;
  padding-left: 90px;
}

.project-modal {
  width: min(1040px, calc(100vw - 24px));
  max-height: min(860px, calc(100vh - 24px));
  padding: 0;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8, 14, 10, 0.98);
  box-shadow: var(--shadow);
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.modal-heading {
  padding-right: 90px;
}

.modal-media-grid,
.modal-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.modal-image {
  min-height: 210px;
  display: flex;
  align-items: end;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background-position: center;
  background-size: cover;
}

.modal-image span,
.video-placeholder span {
  display: inline-flex;
  padding: 8px 10px;
  color: #0b140d;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
}

.video-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(183, 228, 111, 0.34);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(183, 228, 111, 0.14), rgba(255, 255, 255, 0.04));
}

.video-placeholder p {
  margin: 0;
  color: var(--muted);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #09120d;
}

@media (max-width: 1080px) {
  .hero,
  .three-up,
  .expertise-layout,
  .team-grid,
  .contact-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .modal-media-grid,
  .modal-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    border-radius: 28px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 12px;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 24px;
    gap: 12px;
  }

  .brand small {
    max-width: 190px;
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 6px;
  }

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

  .language-switch {
    order: 1;
  }

  .site-nav.is-open {
    display: flex;
  }

  .section,
  .section-alt {
    padding-left: 0;
    padding-right: 0;
  }

  .section-alt {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
  }

  .hero-image,
  .field-visual {
    min-height: 330px;
  }

  .metric-grid,
  .snapshot-grid,
  .snapshot-card dl,
  .modal-media-grid,
  .modal-video-grid {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    padding: 18px;
  }

  .modal-heading {
    padding-right: 0;
    padding-top: 46px;
  }

  html[dir="rtl"] .modal-heading {
    padding-left: 0;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100vw - 16px, 1180px);
  }

  .brand {
    width: 100%;
  }

  .brand small {
    max-width: none;
  }

  h1 {
    font-size: clamp(2.25rem, 15vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.65rem, 10vw, 2.35rem);
  }

  .hero-actions,
  .button,
  .snapshot-action {
    width: 100%;
  }

  .snapshot-card,
  .card,
  .team-card,
  .contact-card,
  .contact-form {
    padding: 18px;
  }

  .expertise-list article {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .expertise-list article {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .expertise-list article > span {
    order: 0;
  }

  .modal-image,
  .video-placeholder {
    min-height: 160px;
  }
}
