:root {
  /* Palette matched to the Arab Friends logo (brushed steel + gold pipe),
     with a warm desert-sand background for an Oman-rooted feel —
     swap these to retheme the whole site. */
  --brand-primary: #2b3035;
  --brand-dark: #17191c;
  --brand-gold: #c9973e;
  --brand-accent: #b5602f;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f3ec;
  --color-text: #1f2420;
  --color-text-muted: #5b6660;
  --color-border: #e7e2d8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.logo img {
  height: 44px;
  width: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--brand-accent);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 7rem 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 60%, var(--brand-accent) 160%);
  background-size: 200% 200%;
  animation: heroGradientShift 14s ease-in-out infinite;
}

.hero .container {
  width: 100%;
}

@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.has-image.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 28, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  max-height: 84px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0s forwards;
}

.hero-eyebrow {
  display: block;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 400;
  margin: 0 0 0.85rem;
  line-height: 1.15;
  background: rgba(255, 187, 0, 0.998);
  background-size: 220% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.1s forwards, goldShimmer 6s linear 1s infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hero h1 {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 500;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.35s forwards;
}

.hero p:not(.hero-eyebrow) {
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.55s forwards;
}

.hero .button {
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.75s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  display: inline-block;
  background: var(--brand-gold);
  color: #1f2420;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(181, 96, 47, 0.35);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

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

.section-title {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.9rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-accent));
}

.section-title-light {
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--color-border);
}

/* Stats */

.stats-section {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-item h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin: 0;
}

/* Cards (services + why-choose-us) */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(23, 25, 28, 0.12);
  border-color: var(--brand-gold);
}

.card:hover .card-icon:not(.card-icon-round) {
  color: var(--brand-accent);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--brand-accent);
}

.card-more {
  display: inline-block;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.card:hover .card-more {
  color: var(--brand-accent);
  transform: translateX(4px);
}

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
  margin-bottom: 1rem;
  transition: color 0.25s ease;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-centered {
  text-align: center;
}

.card-icon-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: #fff;
  padding: 14px;
  margin-left: auto;
  margin-right: auto;
  transition: background 0.25s ease, transform 0.25s ease;
}

.card-centered:hover .card-icon-round {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-accent));
  transform: scale(1.08) rotate(-4deg);
}

/* Service detail page */

.card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.service-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.service-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-accent));
  color: #fff;
  padding: 16px;
  margin: 0 auto 1.5rem;
}

.service-icon-badge svg {
  width: 100%;
  height: 100%;
}

.service-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
}

.service-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  margin: 0 auto;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-detail-body p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.service-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.service-highlights li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-gold);
  font-weight: 700;
}

.service-sidebar {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.service-sidebar h3 {
  margin-top: 0;
  color: var(--brand-accent);
}

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

.service-sidebar li {
  margin-bottom: 0.6rem;
}

.service-sidebar a {
  color: var(--color-text);
}

.service-sidebar a:hover {
  color: var(--brand-accent);
}

/* Partners */

.partner-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
}

.partner-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--brand-accent);
}

.partner-card > p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  max-width: 48rem;
}

.partner-tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.partner-tech {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.partner-tech img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.partner-tech img:hover {
  opacity: 0.85;
}

.partner-tech h4 {
  margin: 0 0 0.5rem;
  color: var(--brand-accent);
  font-size: 1rem;
}

.partner-tech p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .partner-tech-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-tile:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 32px rgba(23, 25, 28, 0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.9);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Contact */

.contact-details {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  color: var(--color-text-muted);
}

.contact-details li {
  margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-top: 0;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero-logo,
  .hero-eyebrow,
  .hero h1,
  .hero p,
  .hero .button {
    animation: none;
    opacity: 1;
    transform: none;
  }

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

/* Responsive */

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text .section-title,
  .stats-section .section-title {
    display: block;
    text-align: center;
  }

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

  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav nav {
    flex-basis: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  body.nav-open .nav nav {
    max-height: 400px;
    opacity: 1;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .nav ul a {
    display: block;
    padding: 0.6rem 0;
  }

  .hero {
    min-height: 70vh;
    padding: 4.5rem 0;
  }

  .hero h1 {
    font-size: 1.15rem;
    padding: 0.6rem 1.25rem;
  }

  .hero-logo {
    max-height: 64px;
  }
}
