:root {
  --gold: #e29a2d;
  --gold-600: #c88721;
  --gray: #6c6f73;
  --charcoal: #232323;
  --bg: #f7f5f2;
  --white: #ffffff;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
}
a { color: var(--charcoal); text-decoration: none; }
.muted { color: var(--gray); }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { height: 72px; width: auto; }
.nav { display: flex; gap: 16px; flex: 1; justify-content: center; }
.nav-link { padding: 8px 12px; border-radius: 8px; }
.nav-link:hover { background: rgba(226,154,45,.12); }
.nav-link.active { color: var(--gold-600); font-weight: 700; }
.lang-toggle { display: flex; align-items: center; gap: 8px; }
.lang-btn { background: transparent; border: none; cursor: pointer; font-weight: 600; color: var(--charcoal); }
.lang-btn.active { color: var(--gold-600); }
.divider { color: var(--gray); }
/* Utilities (language + login) aligned to the right */
.utilities { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.login-btn { background: var(--gold); color: #111827; padding: 8px 14px; border-radius: 8px; font-weight: 700; border: 1px solid transparent; }
.login-btn:hover { background: var(--gold-600); }

/* Hero */
.hero { position: relative; min-height: 60vh; display: grid; place-items: center; background: url('../assets/hero.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25)); }
.hero-content { position: relative; text-align: center; color: var(--white); padding: 40px 0; }
.hero-logo { height: 90px; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.hero-title { font-size: clamp(28px, 6vw, 48px); margin: 0 0 8px; }
.hero-slogan { font-size: clamp(18px, 3.2vw, 24px); margin: 0 0 6px; color: #f3f3f3; }
.hero-tagline { font-size: clamp(16px, 2.6vw, 20px); color: #eaeaea; }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--gold); color: var(--white); }
.btn.primary:hover { background: var(--gold-600); }
.btn.outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn.outline:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: 8px 12px; font-size: 0.95rem; }
.btn.whatsapp { background: #25d366; color: #fff; }
.btn.whatsapp:hover { filter: brightness(1.05); }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: var(--white); }
.section-title { font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 20px; }

/* Highlights grid */
.grid { display: grid; gap: 18px; }
.highlights { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.featured-grid { grid-template-columns: repeat(4, 1fr); }
.card.featured { padding: 0; border: 1px solid #eee; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.06); background: var(--white); }
.card.featured:hover { box-shadow: 0 12px 24px rgba(0,0,0,.1); border-color: rgba(226,154,45,.45); }
.section-title.featured { display: inline-block; border-bottom: 3px solid var(--gold); padding-bottom: 6px; }
.feat-media { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card-body .card-title { font-size: 1.05rem; margin: 0 0 8px; }
.card-desc { color: var(--gray); line-height: 1.7; margin: 0 0 12px; }
.card-link { color: #1f5bd8; font-weight: 600; }
.card-link:hover { text-decoration: underline; }
.card { background: var(--white); border-radius: 14px; padding: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.06); display: grid; place-items: center; text-align: center; gap: 12px; }
.card-title { font-weight: 600; }
.icon { width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-600)); box-shadow: 0 4px 12px rgba(226,154,45,.35); }

/* Thumbnail images for product highlights */
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.15); border: 1px solid #eee; background: #fafafa; }

/* About preview */
.about-preview { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center; }
.about-text p { line-height: 1.8; }
.about-media { position: relative; min-height: 220px; }
.media-bg { position: absolute; inset: 0; border-radius: 16px; background: url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; box-shadow: 0 6px 22px rgba(0,0,0,.12); }

/* Contact CTA */
.contact-cta .actions { display: flex; gap: 12px; }

/* Enquiry Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.45); z-index: 50; padding: 20px; }
.modal:not(.hidden) { display: flex; }
.modal.hidden { display: none; }
.modal-dialog { background: var(--white); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.22); width: min(560px, 92%); padding: 18px; position: relative; }
.modal-close { position: absolute; top: 8px; inset-inline-end: 8px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: var(--gray); }
.modal h3 { margin: 0 0 12px; }
.modal .actions { display: flex; gap: 10px; margin-top: 6px; }
.modal #enquiryStatus { margin-top: 8px; }

/* Products */
.products { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.product-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.product-media { height: 160px; background-size: cover; background-position: center; }
.product-body { padding: 16px; display: grid; gap: 10px; }
.product-body h3 { margin: 0; font-size: 1.2rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.contact-list { list-style: none; padding: 0; margin: 0 0 12px; }
.contact-list li { padding: 6px 0; }
.map-wrap { border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #eee; }
.map-wrap iframe { width: 100%; height: 240px; border: 0; }
.contact-form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 6px; }
label { font-weight: 600; }
input, textarea { border: 1px solid #ddd; border-radius: 10px; padding: 10px; font: inherit; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,154,45,.15); }

/* Page hero */
.page-hero { padding: 40px 0; background: var(--white); border-bottom: 1px solid #eee; }
.page-hero h1 { margin: 0; }

/* Footer */
.site-footer { background: #111; color: #ddd; padding: 30px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; }
.footer-links a { color: #ddd; margin-inline-end: 12px; }
.footer-links a:hover { color: var(--gold); }
.social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #222; color: #fff; font-size: 12px; margin-inline-start: 8px; }
.footer-copy { text-align: center; grid-column: 1/-1; margin-top: 10px; color: #bbb; }

/* Responsive */
@media (max-width: 900px) {
  .about-preview { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Direction helpers */
.dir-ltr { direction: ltr; }
.dir-rtl { direction: rtl; }
