/* ============================================================
   land-clean.com — Main Stylesheet
   RTL Arabic, mobile-first, max-width 1140px
   Font: Tajawal + Cairo fallbacks
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&family=Cairo:wght@400;600;700&display=swap');

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #1a5c3a;   /* deep green — cleaning / KSA feel */
  --primary-dk: #12402a;
  --accent:     #f5a623;   /* warm amber CTA */
  --light-bg:   #f7f9f7;
  --border:     #dde6dd;
  --text:       #1f2d1f;
  --muted:      #5a6e5a;
  --white:      #ffffff;
  --radius:     8px;
  --shadow-sm:  0 2px 6px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --transition: .2s ease;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); text-decoration: underline; }
ul, ol { padding-right: 1.5rem; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--primary-dk); }

/* Top bar CTA */
.header-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition);
}
.header-cta:hover { background: #d4891a; color: #fff; text-decoration: none; }

/* NAV */
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active { background: var(--light-bg); color: var(--primary); text-decoration: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary);
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 18px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- HERO (homepage only) ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
  padding: 60px 18px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.hero p  { font-size: 1.1rem; max-width: 680px; margin: 0 auto 28px; opacity: .9; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #d4891a; color: var(--white); text-decoration: none; transform: translateY(-1px); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .88rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span + span::before { content: " › "; color: var(--muted); }

/* ---------- MAIN CONTENT ---------- */
main { padding: 40px 0 60px; }

/* Article layout */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
}

/* Article body */
.article-body h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--primary); margin-bottom: 20px; line-height: 1.4; }
.article-body h2 { font-size: 1.3rem; color: var(--primary-dk); margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 1.1rem; color: var(--text); margin: 22px 0 10px; }
.article-body p  { margin-bottom: 16px; }
.article-body ul,
.article-body ol { margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }

/* Outbound money-site link style */
.article-body a[target="_blank"] { font-weight: 700; color: var(--primary); border-bottom: 2px solid var(--accent); }
.article-body a[target="_blank"]:hover { color: var(--primary-dk); }

/* Article meta */
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-meta .author-name { font-weight: 600; color: var(--primary); }

/* Article image placeholder */
.article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 20px 0;
  background: var(--light-bg);
  overflow: hidden;
}
.article-img-caption {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  padding: 6px 8px;
  background: var(--light-bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* FAQ */
.faq-section { margin-top: 40px; }
.faq-section h2 { color: var(--primary); border-bottom: 2px solid var(--border); padding-bottom: 8px; margin-bottom: 20px; }
.faq-item { margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  background: var(--light-bg);
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.faq-q .icon { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.faq-a { padding: 14px 18px; line-height: 1.7; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 14px; font-weight: 700; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul li a { color: var(--text); font-size: .9rem; }
.sidebar-card ul li a:hover { color: var(--primary); }

/* ---------- SERVICE GRID (homepage, category index) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.card .card-link { font-weight: 600; font-size: .9rem; color: var(--primary); }
.card .card-link:hover { text-decoration: underline; }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 40px 18px;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.page-header .subtitle { font-size: 1rem; opacity: .85; margin-top: 10px; }

/* ---------- CATEGORY INDEX ---------- */
.cat-intro { font-size: 1.05rem; color: var(--muted); margin: 20px 0 32px; line-height: 1.8; }
.article-list { list-style: none; padding: 0; }
.article-list-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-item h2 { font-size: 1.1rem; margin: 0; }
.article-list-item h2 a { color: var(--text); }
.article-list-item h2 a:hover { color: var(--primary); text-decoration: none; }
.article-excerpt { color: var(--muted); font-size: .93rem; }
.article-date { font-size: .82rem; color: var(--muted); }

/* ---------- AUTHOR PAGE ---------- */
.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  flex-shrink: 0;
}
.author-bio { font-size: .95rem; color: var(--muted); margin-top: 6px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  padding: 48px 18px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto 32px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col p { font-size: .88rem; line-height: 1.7; }

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .88rem; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- UTILITY ---------- */
.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.section-subtitle { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }
.tag {
  display: inline-block;
  background: var(--light-bg);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: .8rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* skip link (a11y) */
.skip-link {
  position: absolute;
  top: -40px;
  right: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .9rem;
  z-index: 200;
}
.skip-link:focus { top: 0; }

/* 404 */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h1 { font-size: 5rem; color: var(--primary); line-height: 1; }
.page-404 p  { font-size: 1.1rem; color: var(--muted); margin: 16px 0 28px; }
