/* ===========================================================
   BYAN AL FAJR — General Contracting
   Theme: "Blueprint at Dawn"
   =========================================================== */

:root {
  --navy:      #0a0e94;
  --navy-deep: #060829;
  --navy-700:  #1218b8;
  --amber:     #f5b942;
  --amber-700: #e09e1f;
  --paper:     #f4f6fb;
  --steel:     #8b93b8;
  --ink:       #0b0e2a;
  --white:     #ffffff;
  --line:      rgba(10, 14, 148, 0.12);
  --line-dark: rgba(255, 255, 255, 0.10);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --nav-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }

.container-x {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--amber);
}

/* ===========================================================
   NAVBAR — solid white, fixed
   =========================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(6, 8, 41, 0.05);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-text { line-height: 1.1; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand-text .sub {
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  padding: 12px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10,14,148,.28); color: var(--white); }
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { background: var(--amber-700); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,185,66,.4); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line-dark); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: all .3s var(--ease); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero-grid { position: absolute; inset: 0; opacity: .5; }
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  right: -10%; top: -15%;
  background: radial-gradient(circle, rgba(245,185,66,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow.two {
  left: -15%; right: auto;
  top: auto; bottom: -20%;
  background: radial-gradient(circle, rgba(18,24,184,.45) 0%, transparent 65%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: var(--nav-h); }
.hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: 26px 0; max-width: 16ch; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: rgba(255,255,255,.75);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 56px; margin-top: 80px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  display: flex;
  align-items: baseline;
}
.hero-stat .num .plus { color: var(--amber); }
.hero-stat .label {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); margin-top: 6px;
}

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================================================
   SECTIONS
   =========================================================== */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 22px 0 18px; }
.section-head p { font-size: 1.1rem; color: #4a4f6e; max-width: 58ch; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,.7); }
.bg-navy .eyebrow { color: var(--amber); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-visual { position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; background: var(--navy); }
.split-visual .frame-label { position: absolute; bottom: 24px; left: 24px; z-index: 3; color: var(--white); font-family: var(--font-display); }
.split-visual .frame-label .big { font-size: 2.4rem; font-weight: 800; color: var(--amber); }
.split-visual .frame-label .small { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

.feature-list { list-style: none; margin-top: 32px; }
.feature-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-list .ico { width: 44px; height: 44px; border-radius: 10px; background: rgba(10,14,148,.07); display: grid; place-items: center; flex-shrink: 0; color: var(--navy); }
.feature-list h4 { font-size: 1.06rem; margin-bottom: 4px; }
.feature-list p { color: #555a78; font-size: .94rem; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative; padding: 38px 32px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line);
  overflow: hidden; transition: all .4s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(6,8,41,.12); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--amber); margin-bottom: 24px; }
.svc-ico { width: 56px; height: 56px; margin-bottom: 22px; color: var(--navy); }
.svc-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.svc-card p { color: #555a78; font-size: .96rem; }

/* ---------- Stats strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat-cell { background: var(--white); padding: 44px 28px; text-align: center; }
.stat-cell .num { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; color: var(--navy); }
.stat-cell .label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; background: var(--navy); color: var(--white);
  border-radius: 18px; padding: 72px 64px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; }
.cta-band .glow { position: absolute; right: -5%; top: -40%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,185,66,.25), transparent 65%); }

/* ===========================================================
   NEWS
   =========================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .4s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(6,8,41,.1); }
.news-thumb { aspect-ratio: 16/10; background: var(--navy); position: relative; overflow: hidden; }
.news-thumb .tag { position: absolute; top: 16px; left: 16px; background: var(--amber); color: var(--navy-deep); font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.news-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: .78rem; color: var(--steel); letter-spacing: .06em; margin-bottom: 12px; }
.news-body h3 { font-size: 1.22rem; margin-bottom: 12px; line-height: 1.25; }
.news-body p { color: #555a78; font-size: .94rem; margin-bottom: 20px; flex: 1; }
.news-link { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.news-link .arrow { transition: transform .3s var(--ease); }
.news-link:hover .arrow { transform: translateX(4px); }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-info-card { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.contact-info-card .ico { width: 48px; height: 48px; border-radius: 10px; background: rgba(245,185,66,.12); color: var(--amber); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-card .label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.contact-info-card .val { font-size: 1.05rem; font-weight: 500; }

.form-card { background: var(--white); border-radius: 16px; padding: 44px; box-shadow: 0 30px 60px rgba(6,8,41,.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: .96rem; color: var(--ink); background: var(--paper);
  transition: all .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(10,14,148,.08);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .val-error { color: #c0392b; font-size: .82rem; margin-top: 6px; display: block; }

.alert-success { margin-top: 18px; padding: 14px 16px; background: rgba(245,185,66,.15); border: 1px solid var(--amber); border-radius: 8px; color: var(--navy-deep); font-weight: 500; }
.alert-error { margin-top: 18px; padding: 14px 16px; background: rgba(192,57,43,.08); border: 1px solid #c0392b; border-radius: 8px; color: #c0392b; font-weight: 500; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 80px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 22px; max-width: 36ch; font-size: .96rem; }
.footer-col h5 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .95rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.5); font-size: .86rem; }
.social-row { display: flex; gap: 12px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: rgba(255,255,255,.7); transition: all .3s var(--ease); }
.social-row a:hover { background: var(--amber); color: var(--navy-deep); border-color: var(--amber); transform: translateY(-3px); }

/* ===========================================================
   PAGE HEADER (interior pages) — offset for fixed nav
   =========================================================== */
.page-header { background: var(--navy-deep); color: var(--white); padding: calc(var(--nav-h) + 80px) 0 90px; position: relative; overflow: hidden; }
.page-header .hero-grid { opacity: .4; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); position: relative; z-index: 2; margin-top: 18px; }
.breadcrumb { position: relative; z-index: 2; margin-top: 20px; font-size: .9rem; color: var(--steel); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { margin: 0 10px; color: rgba(255,255,255,.3); }

/* ===========================================================
   AUTH (login) + ADMIN
   =========================================================== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--navy-deep); padding: calc(var(--nav-h) + 40px) 20px 40px; position: relative; overflow: hidden; }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 420px; background: var(--white); border-radius: 16px; padding: 44px; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; color: var(--ink); }
.auth-card .sub { color: #555a78; font-size: .95rem; margin-bottom: 30px; }

.admin-wrap { padding: calc(var(--nav-h) + 60px) 0 100px; min-height: 100vh; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-table th { background: var(--paper); text-align: left; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); padding: 16px 18px; }
.admin-table td { padding: 16px 18px; border-top: 1px solid var(--line); font-size: .94rem; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(10,14,148,.02); }
.badge { display: inline-block; font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: rgba(10,14,148,.08); color: var(--navy); }
.badge.amber { background: rgba(245,185,66,.18); color: var(--amber-700); }
.table-actions { display: flex; gap: 10px; }
.icon-btn { font-family: var(--font-display); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--navy); transition: all .2s var(--ease); }
.icon-btn:hover { background: var(--navy); color: var(--white); }
.icon-btn.danger { color: #c0392b; border-color: rgba(192,57,43,.3); }
.icon-btn.danger:hover { background: #c0392b; color: var(--white); border-color: #c0392b; }

/* ===========================================================
   REVEAL ANIMATIONS
   =========================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  * { animation-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 992px) {
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    justify-content: center; padding: 0 40px; gap: 28px;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 1100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--white); font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1200; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 80px 0; }
  .svc-grid, .news-grid, .stat-strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 48px 32px; }
  .form-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .nav-right .btn { display: none; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
}
