/* Ibrahim Al Najran Co. — shared site styles */

:root{
  --bg: #0B0E0D;
  --bg-panel: #101413;
  --bg-panel-2: #151a18;
  --ink: #F4EEE0;
  --muted: #a89a82;
  --muted-2: #8b9490;
  --gold: #C9A768;
  --brass: #A9803F;
  --border: rgba(201,167,104,.18);
  --border-soft: rgba(201,167,104,.1);
  --radius: 10px;
  --maxw: 1320px;
  --pad: 56px;
  --tex-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.065 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-grid:
    repeating-linear-gradient(90deg, rgba(201,167,104,.09) 0, rgba(201,167,104,.09) 1px, transparent 1px, transparent 120px),
    repeating-linear-gradient(0deg, rgba(201,167,104,.09) 0, rgba(201,167,104,.09) 1px, transparent 1px, transparent 120px);
}

@media (max-width: 768px){
  :root{ --pad: 22px; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background-color: var(--bg);
  background-image:
    var(--tex-noise),
    var(--tex-grid),
    radial-gradient(900px 600px at 85% 0%, rgba(201,167,104,.09), transparent 60%),
    radial-gradient(700px 500px at 0% 40%, rgba(169,128,63,.08), transparent 60%);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tex-panel{ background-color: var(--bg-panel); background-image: var(--tex-noise), var(--tex-grid); }
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{ font-family: 'Bricolage Grotesque', sans-serif; margin: 0; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section{ padding: 64px 0; }
@media (max-width: 768px){ .section{ padding: 42px 0; } }

.eyebrow{
  font-size: 11px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 18px; display: inline-block;
}

.page-hero{ position: relative; overflow: hidden; padding: 70px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero::before{ content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--gold); opacity: .12; filter: blur(110px); top: -210px; right: -60px; pointer-events: none; }
.page-hero::after{ content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--brass); opacity: .08; filter: blur(100px); bottom: -200px; left: 8%; pointer-events: none; }
.page-hero > *{ position: relative; z-index: 1; opacity: 0; animation: pageHeroUp .7s ease forwards; }
.page-hero > *:nth-child(1){ animation-delay: .04s; }
.page-hero > *:nth-child(2){ animation-delay: .14s; }
.page-hero > *:nth-child(3){ animation-delay: .24s; }
@keyframes pageHeroUp{ from{ opacity: 0; transform: translateY(16px); } to{ opacity: 1; transform: none; } }
@media (max-width: 768px){ .page-hero{ padding: 48px 0 36px; } }
.h-hero{ font-weight: 700; font-size: 52px; max-width: 780px; line-height: 1.08; }
@media (max-width: 768px){ .h-hero{ font-size: 34px; } }
.h-section{ font-weight: 700; font-size: 36px; }
@media (max-width: 768px){ .h-section{ font-size: 26px; } }
.lede{ font-size: 15px; color: var(--muted); max-width: 560px; margin-top: 18px; line-height: 1.7; }

.btn{
  font-family: 'Sora', sans-serif; letter-spacing: .03em; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0; cursor: pointer;
  border-radius: 4px; font-weight: 700; font-size: 12px; padding: 16px 30px;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; border: 1px solid transparent;
}
.btn::after{ content: "\2192"; display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .25s ease, opacity .2s ease, margin-left .25s ease; }
.btn:hover::after{ max-width: 20px; opacity: 1; margin-left: 8px; }
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--gold); color: var(--bg); }
.btn-primary:hover{ opacity: .92; box-shadow: 0 10px 26px rgba(201,167,104,.3); }
.btn-ghost{ border-color: rgba(244,238,224,.3); color: var(--ink); }
.btn-ghost:hover{ border-color: rgba(244,238,224,.6); }

/* Header */
.topbar{
  position: relative; background: #0F0D0A; color: var(--gold); display: flex; justify-content: space-between;
  align-items: center; padding: 9px var(--pad); font-size: 12px; letter-spacing: .04em; gap: 12px;
}
.topbar::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.topbar a{ color: var(--gold); text-decoration: none; transition: color .15s ease; }
.topbar a:hover{ color: var(--ink); }
@media (max-width: 640px){ .topbar{ flex-wrap: wrap; gap: 6px; font-size: 11px; } }

.navbar{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--pad); background: rgba(11,14,13,.7); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled{ background: rgba(11,14,13,.92); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark{ background: var(--ink); padding: 5px 7px; border-radius: 3px; line-height: 0; flex-shrink: 0; transition: transform .2s ease; }
.brand:hover .brand-mark{ transform: rotate(-4deg) scale(1.05); }
.brand-mark img{ height: 30px; }
.brand-text{ display: flex; flex-direction: column; }
.brand-name{ font-weight: 600; font-size: 12.5px; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.brand-sub{ font-size: 9px; letter-spacing: .11em; color: var(--brass); text-transform: uppercase; margin-top: 2px; font-weight: 500; white-space: nowrap; }

.navlinks{ display: flex; gap: 22px; }
.navlinks a{ position: relative; text-decoration: none; font-size: 13px; font-weight: 400; color: var(--muted); white-space: nowrap; transition: color .15s ease; padding-bottom: 3px; }
.navlinks a::after{ content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: width .25s ease; }
.navlinks a:hover{ color: var(--ink); }
.navlinks a:hover::after{ width: 100%; }
.navlinks a.active{ color: var(--ink); font-weight: 600; }
.navlinks a.active::after{ width: 100%; }
@media (max-width: 900px){ .navlinks a::after{ display: none; } }

.nav-cta{ position: relative; overflow: hidden; background: var(--brass); color: var(--bg); padding: 11px 20px; font-size: 11px; font-weight: 700; border-radius: 4px; text-decoration: none; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; transition: transform .18s ease, box-shadow .18s ease; }
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(169,128,63,.35); }

.nav-toggle{ display: none; -webkit-appearance: none; appearance: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span{ width: 22px; height: 3px; border-radius: 1px; background: var(--ink); display: block; }

@media (max-width: 900px){
  .navlinks{
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .navlinks.open{ max-height: 400px; }
  .navlinks a{ padding: 16px var(--pad); border-top: 1px solid var(--border-soft); width: 100%; }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }
}

/* Cards */
.card{ background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); border-color: rgba(201,167,104,.4); }
.cat-card{ position: relative; border-radius: 8px; overflow: hidden; height: 280px; transition: box-shadow .3s ease; }
.cat-card:hover{ box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.cat-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img{ transform: scale(1.06); }
.cat-overlay{ position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,14,13,.88) 10%, rgba(11,14,13,.05) 60%); }
.cat-label{ position: absolute; bottom: 20px; left: 22px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); }

.p-card img{ width: 100%; height: 260px; object-fit: cover; transition: transform .5s ease; }
.p-card:hover img{ transform: scale(1.05); }
.p-card .p-body{ padding: 22px; }
.p-kicker{ font-size: 10.5px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; font-weight: 600; }
.p-title{ font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 8px; }
.p-desc{ font-size: 13px; color: var(--muted-2); margin-top: 8px; line-height: 1.6; }

.grid{ display: grid; gap: 20px; }
.grid-2{ grid-template-columns: 1fr 1fr; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* Reveal-on-scroll */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: none; }

/* Footer */
.footer-cta{ position: relative; overflow: hidden; padding: 54px var(--pad); text-align: center; background: linear-gradient(135deg, #241F1A, var(--bg)); }
.footer-cta::before{ content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: var(--gold); opacity: .12; filter: blur(110px); top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.footer-cta h3{ position: relative; font-weight: 700; font-size: 28px; color: var(--ink); margin-bottom: 20px; }
.footer-cta-btns{ position: relative; }
.footer-cta-btns{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer-main{ padding: 40px var(--pad) 28px; background-color: var(--bg); background-image: var(--tex-noise), var(--tex-grid); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; border-top: 1px solid var(--border); }
@media (max-width: 900px){ .footer-main{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-main{ grid-template-columns: 1fr; } }
.footer-col-title{ font-weight: 600; font-size: 12px; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links{ display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ color: #8b8578; font-size: 13px; text-decoration: none; }
.footer-links a:hover{ color: var(--gold); }
.footer-bottom{ padding: 18px var(--pad); background-color: var(--bg); background-image: var(--tex-noise); color: #5c645f; font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.06); gap: 12px; flex-wrap: wrap; }

/* Misc */
.map-embed{ border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe{ width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) invert(.9) contrast(.85); }
