:root {
  --teal: #0f4c5c;
  --teal-dark: #0a3540;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --cyan: #2eb8d4;
  --bg-sky: #9ecfe0;
  --bg-sky-light: #e8f4f8;
  --bg-mint: #c8e6d4;
  --bg-mint-light: #edf7f0;
  --white: #ffffff;
  --text-muted: #5a6d75;
  --shadow: 0 8px 30px rgba(15, 76, 92, 0.1);
  --radius: 16px;
  --font-ar: "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--teal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .quote-ar,
html[lang="ar"] .products-quote {
  font-family: var(--font-ar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 76, 92, 0.08);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(48px, 12vw, 64px);
  max-width: min(200px, 55vw);
  object-fit: contain;
  object-position: start center;
}

.brand-tagline {
  display: block;
  font-size: clamp(0.45rem, 1.8vw, 0.6rem);
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 200px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  background: var(--bg-sky-light);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.is-active {
  background: var(--teal);
  color: var(--white);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  width: 100%;
  order: 3;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.main-nav.is-open {
  max-height: 320px;
}

.main-nav ul {
  list-style: none;
  padding: 0.25rem 0 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 76, 92, 0.08);
}

.main-nav a:hover {
  color: var(--gold);
}

/* Contact bar */
.contact-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg-sky-light) 100%);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
}

.contact-icon:hover {
  transform: scale(1.08);
  background: var(--teal-dark);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.25rem 2.5rem;
  background: linear-gradient(160deg, var(--bg-sky) 0%, var(--bg-sky-light) 45%, var(--white) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.hero-inner {
  text-align: center;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.hero-stats li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 30%, var(--cyan) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, var(--gold) 2px, transparent 2px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 2.5rem 1.25rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.section-heading {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 1.75rem;
}

.about-card {
  background: linear-gradient(135deg, var(--bg-sky-light), var(--white));
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.about-card i {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-inline-start: 4px solid var(--gold);
  background: var(--bg-sky-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

html[dir="ltr"] .quote-block {
  border-inline-start: none;
  border-inline-end: 4px solid var(--gold);
  border-radius: var(--radius) 0 0 var(--radius);
}

.quote-ar {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--teal);
}

/* Products */
.section-products {
  background: linear-gradient(180deg, var(--bg-mint) 0%, var(--bg-mint-light) 100%);
}

.products-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sky-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1rem 1.15rem 1.25rem;
}

.product-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--teal);
}

.product-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.products-quote {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--teal);
}

/* Services */
.section-services {
  background: var(--white);
}

.services-grid {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, var(--bg-sky-light), var(--white));
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.service-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.section-contact {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-sky-light) 0%, var(--bg-sky) 100%);
}

.contact-details {
  display: grid;
  gap: 1.25rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  text-align: start;
}

.contact-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-block p {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-block a {
  color: var(--teal);
  font-weight: 600;
}

.contact-block a:hover {
  color: var(--gold);
}

.contact-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-address address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.contact-map-btn {
  margin-top: 0.25rem;
}

.contact-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-social-list a {
  font-size: 0.9rem;
}

.contact-map {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--white);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  font-weight: 700;
  color: var(--teal);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--gold);
}

.contact-email i {
  color: var(--gold);
}

.contact-domain {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.72rem;
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.88);
}

/* Desktop */
@media (min-width: 768px) {
  .site-header {
    padding: 1rem 2rem;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .main-nav {
    flex: 1;
    width: auto;
    order: 0;
    max-height: none !important;
    overflow: visible;
  }

  .main-nav.is-open {
    max-height: none;
  }

  .main-nav ul {
    display: flex;
    gap: 1.25rem;
    padding: 0;
  }

  .main-nav a {
    border: none;
    padding: 0.25rem 0;
    font-size: 0.88rem;
  }

  .menu-toggle {
    display: none;
  }

  .about-grid,
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 3rem 2rem 3.5rem;
  }

  .section {
    padding: 3rem 2rem;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .contact-details {
    max-width: 900px;
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-address {
    grid-column: 1 / -1;
  }

  .contact-map {
    max-width: 900px;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }

  html[dir="rtl"] .hero-inner {
    order: 2;
    text-align: right;
  }

  html[dir="rtl"] .hero-media {
    order: 1;
  }

  html[dir="ltr"] .hero-inner {
    text-align: left;
  }

  html[dir="ltr"] .hero-stats {
    margin-inline: 0;
  }

  html[dir="ltr"] .hero-actions {
    justify-content: flex-start;
  }

  html[dir="rtl"] .hero-actions {
    justify-content: flex-start;
  }

  html[dir="rtl"] .hero-subtitle {
    margin-inline: 0;
  }
}
