/* ============================================================
   Sharooq Al-Fajer (Al-Arabiya Trading Company)
   Stylesheet
   ============================================================ */

:root {
  --navy:        #1B2A4A;
  --navy-light:  #27406B;
  --gold:        #A87B43;
  --gold-light:  #C79A5B;
  --cream:       #F7F5F2;
  --white:       #FFFFFF;
  --ink:         #1B2331;
  --muted:       #5B6473;
  --line:        #E3DED7;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px rgba(27, 42, 74, .10);
  --shadow-lg:   0 20px 50px rgba(27, 42, 74, .16);
  --container:   1180px;
  --header-h:    78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; line-height: 1.18; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600; font-size: .95rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--gold); color: #fff; box-shadow: 0 8px 20px rgba(168,123,67,.35); }
.btn-accent:hover { background: var(--gold-light); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247,245,242,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 22px rgba(27,42,74,.08);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 50px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Montserrat", sans-serif; font-size: 1.08rem; color: var(--navy); letter-spacing: .2px; }
.brand-text small { font-size: .68rem; color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.7rem; }
.nav-link {
  font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: .35rem 0;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 3px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(circle at 80% 20%, rgba(168,123,67,.35), transparent 45%),
    linear-gradient(135deg, #16243f 0%, #1B2A4A 45%, #27406B 100%);
  color: #fff;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; padding-top: 2rem; padding-bottom: 3rem; }
.hero-eyebrow {
  display: inline-block; font-family: "Montserrat", sans-serif;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  font-size: .78rem; color: var(--gold-light);
  border: 1px solid rgba(199,154,91,.5); border-radius: 50px;
  padding: .45rem 1.1rem; margin-bottom: 1.6rem;
}
.hero-title { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-family: "Montserrat", sans-serif; font-size: 1.7rem; color: var(--gold-light); }
.hero-badges span { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .5px; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.kicker {
  display: inline-block; font-family: "Montserrat", sans-serif;
  font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: .4rem; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3.5rem; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.06rem; }
.about-text .btn { margin-top: .8rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.about-stats li {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.about-stats li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.about-stats strong { display: block; font-family: "Montserrat", sans-serif; font-size: 2rem; color: var(--gold); }
.about-stats span { font-size: .88rem; color: var(--muted); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.7rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.card-arabic { font-size: .92rem; color: var(--gold); margin-bottom: .7rem; direction: rtl; }
.card p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Why ---------- */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item {
  padding: 2rem 1.5rem; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: rgba(168,123,67,.12); color: var(--gold);
}
.why-icon svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.why-item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 2.5rem; align-items: stretch; }

.contact-info {
  background: linear-gradient(150deg, var(--navy), var(--navy-light));
  color: #fff; border-radius: var(--radius); padding: 2.6rem 2.2rem;
}
.contact-info h3 { color: #fff; font-size: 1.3rem; margin-bottom: 1.6rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--gold-light);
}
.ci-icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .15rem; }
.contact-list a, .ci-plain { color: #fff; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--gold-light); }
.contact-list em { color: rgba(255,255,255,.55); font-style: normal; font-size: .85em; }
.contact-note { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); font-size: .9rem; }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2.2rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(168,123,67,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: .3rem; }
.form-status { margin: 1rem 0 0; font-size: .92rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-status.success { color: #1a7a4a; }
.form-status.error { color: #c0392b; }
.form-status.info { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding: 3.5rem 24px 2.5rem;
}
.footer-logo { height: 56px; width: auto; border-radius: 8px; background: #fff; padding: 6px; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; max-width: 360px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-nav ul li { margin-bottom: .6rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact p { margin-bottom: .5rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 24px 1.6rem;
    transform: translateY(-120%); transition: transform .35s var(--ease);
    height: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: .9rem 0; }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 4.2rem 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
  .hero-badges { gap: 1.8rem; }
}

@media (max-width: 540px) {
  .cards, .why-grid, .footer-inner, .form-row, .about-stats { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .hero-actions .btn { flex: 1; }
  .contact-info, .contact-form { padding: 1.8rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .why-item:hover, .about-stats li:hover { transform: none; }
}
