/* ============================================================
   Muwathiqah For General Contracting — mwathaqa/assets/css/style.css
   Serves both RTL (Arabic) and LTR (English) pages.
   Brand: gold #B08D57 · charcoal #2E3338 · gray #7D8285 · light #F5F4F2
   ============================================================ */

:root {
  --gold: #B08D57;
  --gold-dark: #977443;
  --gold-soft: rgba(176, 141, 87, 0.12);
  --charcoal: #2E3338;
  --charcoal-deep: #22262A;
  --gray: #7D8285;
  --light: #F5F4F2;
  --white: #FFFFFF;
  --line: #E7E4DF;
  --text: #43484D;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(46, 51, 56, 0.08);
  --shadow-lg: 0 18px 45px rgba(46, 51, 56, 0.14);
  --transition: all 0.25s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Tajawal", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "Tajawal", "Montserrat", system-ui, sans-serif;
}

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

a { text-decoration: none; color: var(--gold); transition: var(--transition); }
a:hover { color: var(--gold-dark); }

ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--charcoal);
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn-outline-gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(46, 51, 56, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

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

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.98rem;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--gold); }

.main-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.32rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.lang-switch:hover {
  background: var(--gold);
  color: var(--white);
}

.root-link {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
}
.root-link:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 38, 42, 0.72), rgba(34, 38, 42, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-block: 6rem;
}

.kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

html[dir="rtl"] .kicker { letter-spacing: 0; font-size: 1rem; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.hero-lead {
  color: #D8D8D5;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44vh;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 38, 42, 0.7), rgba(34, 38, 42, 0.85));
}

.page-banner .container {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
}

.page-banner p {
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.6rem;
}

/* ---------- Sections ---------- */
.section { padding: 4.75rem 0; }
.section-alt { background: var(--light); }

.section-head { max-width: 780px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
}

.section-head .lead {
  margin-top: 1rem;
  color: var(--gray);
}

.divider {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 1rem;
}
.section-head.center .divider { margin-inline: auto; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.card .num {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

/* Value cards */
.value-card { border-top: 3px solid var(--gold); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split-body p { margin-bottom: 1rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Quote / highlight panel ---------- */
.panel {
  background: var(--white);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.4rem;
  max-width: 880px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.3rem 2.2rem;
  margin-bottom: 1.6rem;
  transition: var(--transition);
}

.service:hover { border-color: var(--gold); }

.service .num {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }

.service .service-sub {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service ul {
  display: grid;
  gap: 0.5rem;
  list-style: disc;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.4rem;
}

.service li::marker { color: var(--gold); }

.service .closing {
  margin-top: 1.1rem;
  color: var(--gray);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 1rem;
  font-style: italic;
}

html[dir="rtl"] .service .closing { font-style: normal; }

/* ---------- Clients & partner chips ---------- */
.client-card {
  text-align: center;
  padding: 2.1rem 1.4rem;
}

.client-card .client-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.client-card .client-sub {
  color: var(--gray);
  font-size: 0.88rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  box-shadow: 0 3px 10px rgba(46, 51, 56, 0.05);
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 5.5rem 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 38, 42, 0.88), rgba(176, 141, 87, 0.55));
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.cta-band p {
  max-width: 820px;
  margin: 0 auto 1.8rem;
  color: #E4E2DE;
  font-size: 1.05rem;
}

/* CTA strip (plain, no image) */
.cta-strip {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1.4rem;
}

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: 2.4rem 1.6rem;
}

.contact-card .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .icon svg { width: 26px; height: 26px; }

.contact-card h3 { margin-bottom: 0.5rem; }

.contact-card p, .contact-card a {
  color: var(--gray);
  font-size: 1rem;
  direction: ltr;
  unicode-bidi: embed;
}

.contact-card a:hover { color: var(--gold); }

html[dir="rtl"] .contact-card p.addr { direction: rtl; }

.contact-actions { text-align: center; margin-top: 2.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #C9CCCF;
  padding-top: 4rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.15fr;
  gap: 2.5rem;
}

.footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  margin-bottom: 1.1rem;
}

.footer-logo img { height: 46px; width: auto; }

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.55rem;
  position: relative;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.site-footer ul { display: grid; gap: 0.5rem; }

.site-footer a { color: #C9CCCF; }
.site-footer a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.footer-contact .dot { color: var(--gold); font-weight: 800; }

.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.87rem;
}

.footer-bottom a { color: var(--gold); font-weight: 700; }

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

/* ---------- Responsive nav ---------- */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .root-link { display: none; }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 1rem;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    padding: 0.75rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.active { border-bottom-color: var(--gold); }

  .hero { min-height: 70vh; }

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

  .footer-bottom { justify-content: center; text-align: center; }
}
