/* Shared visual system for Basaal Ventures pages. */
:root {
  --brand-ink: #10263a;
  --brand-ink-soft: #294353;
  --brand-gold: #c9953d;
  --brand-gold-light: #e7c27e;
  --brand-paper: #f7f6f2;
  --brand-line: rgba(16, 38, 58, .12);
  --brand-shadow: 0 18px 50px rgba(16, 38, 58, .09);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--brand-paper); color: var(--brand-ink); font-family: Inter, sans-serif; }
::selection { background: var(--brand-gold-light); color: var(--brand-ink); }

/* Navigation */
.navbar, .navbar.scrolled {
  min-height: 76px;
  padding: 9px 0;
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid var(--brand-line);
  box-shadow: 0 7px 28px rgba(16,38,58,.07) !important;
  backdrop-filter: blur(14px);
  transition: padding .3s ease, box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled { min-height: 68px; padding: 5px 0; }
.navbar .nav-link { color: var(--brand-ink) !important; font-weight: 650; letter-spacing: .09em; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #a57930 !important; }
.navbar .nav-link::after { background: var(--brand-gold) !important; height: 2px; }
.navbar .navbar-toggler { border-color: #d6c7ac; }
.navbar .navbar-toggler-icon { filter: none !important; }
.navbar-collapse { background: #fff !important; }
.navbar-brand .site-navbar-logo { width: 184px; max-height: 52px; }
.navbar .nav-link { text-transform:uppercase; font-size:.73rem; }
.navbar .lang-toggle { border-radius:999px; color:#9c732d; }

/* Editorial page headers and section rhythm */
.page-hero {
  min-height: clamp(390px, 52vw, 560px);
  padding: 175px 0 84px;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background-position: center 48%;
  animation: page-hero-in .85s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(8,24,37,.92),rgba(8,24,37,.45) 62%,rgba(8,24,37,.16)); }
body[data-page="about"] .page-hero { background-image:url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=85&w=2000&auto=format&fit=crop"); }
body[data-page="services"] .page-hero { background-image:url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=85&w=2000&auto=format&fit=crop"); }
body[data-page="projects"] .page-hero { background-image:url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=85&w=2000&auto=format&fit=crop"); }
body[data-page="contact"] .page-hero { background-image:url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=85&w=2000&auto=format&fit=crop"); }
body[data-project-kind="construction"] .page-hero { background-image:url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=85&w=2000&auto=format&fit=crop"); }
body[data-project-kind="transport"] .page-hero { background-image:url("https://images.unsplash.com/photo-1580901368919-7738efb0f87e?q=85&w=2000&auto=format&fit=crop"); }
body[data-project-kind="safety"] .page-hero { background-image:url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=85&w=2000&auto=format&fit=crop"); }
.page-hero .eyebrow { color:var(--brand-gold-light); }
.page-hero h1 { max-width:900px; font-size:clamp(3rem,7vw,6.2rem); line-height:.98; letter-spacing:-.055em; text-wrap:balance; }
.page-hero p { max-width:610px; font-size:1.04rem; line-height:1.8; }
.page-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:26px; }
.page-hero-actions .btn-cta { min-height:52px; padding:6px 9px 6px 23px; border-radius:999px; display:inline-flex; align-items:center; justify-content:space-between; gap:18px; }
.page-hero-actions .btn-cta::after, .hero-home .hero-secondary-cta::after { content:"↗"; display:grid; width:38px; height:38px; place-items:center; flex:none; border-radius:50%; background:var(--brand-ink); color:#fff; }
.page-hero-actions .btn-quiet { min-height:52px; padding:14px 23px; border:1px solid rgba(255,255,255,.34); border-radius:999px; color:#fff; background:rgba(8,24,37,.38); text-decoration:none; font-size:.82rem; font-weight:650; transition:background .25s,border-color .25s,transform .25s; }
.page-hero-actions .btn-quiet:hover { transform:translateY(-2px); color:#fff; border-color:var(--brand-gold-light); background:rgba(8,24,37,.72); }
.section-padding { padding:clamp(76px,9vw,126px) 0; }
.section-title { max-width:950px; color:var(--brand-ink); font-size:clamp(2.2rem,5vw,4.4rem); font-weight:680; line-height:1.03; letter-spacing:-.055em; text-wrap:balance; }
.section-title::after { background:var(--brand-gold); height:3px; }
.eyebrow { color:#a57930; font-size:.68rem; font-weight:750; letter-spacing:.18em; }
.text-muted { color:#66747b !important; }
.bg-light, #about, #process { background-color:#efeee9 !important; }
#services, #construction, #contact { background-color:#fff !important; }

/* Cards, diagrams and calls to action */
.service-card, .detail-card, .process-card {
  border:1px solid var(--brand-line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 34px rgba(16,38,58,.055);
  transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service-card { padding:38px 32px; border-top:3px solid var(--brand-gold); }
.service-card::before { background:linear-gradient(110deg,transparent,rgba(201,149,61,.07),transparent); }
.service-card:hover, .detail-card:hover, .process-card:hover { transform:translateY(-6px); box-shadow:var(--brand-shadow); border-color:rgba(201,149,61,.42); }
#services .service-icon {
  width:76px; height:76px; margin:0 0 22px; border:1px solid rgba(201,149,61,.42); border-radius:50%;
  display:grid; place-items:center; color:var(--brand-ink); background:#fbf7ed;
}
#services .service-icon .pillar-svg { display:block; width:39px; height:39px; fill:none; stroke:var(--brand-ink); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#services .service-icon .pillar-svg .pillar-accent { stroke:var(--brand-gold); }
body[data-page="home"] #services .service-icon { color:var(--brand-ink); background:#fbf7ed; }
body[data-page="home"] #services .service-card { background:#fff; border:1px solid var(--brand-line); border-top:3px solid var(--brand-gold); box-shadow:0 10px 34px rgba(16,38,58,.055); }
body[data-page="home"] #services .service-card:hover { box-shadow:var(--brand-shadow); }
.service-details-link { color:#9b702b; border-color:var(--brand-line); }
.btn-cta, .btn-warning { border-radius:999px; font-weight:700; letter-spacing:.035em; box-shadow:0 8px 20px rgba(201,149,61,.2); transition:transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn-cta, .btn-warning { background:var(--brand-gold); border-color:var(--brand-gold); color:var(--brand-ink); }
.btn-cta:hover, .btn-warning:hover { transform:translateY(-2px); background:var(--brand-gold-light); border-color:var(--brand-gold-light); color:var(--brand-ink); box-shadow:0 12px 28px rgba(201,149,61,.28); }
.project-card { min-height:360px; border-radius:12px; }
.project-card::before { background:linear-gradient(0deg,rgba(6,20,31,.91),rgba(6,20,31,.06) 80%); }
.project-card h3 { font-size:clamp(1.65rem,3vw,2.5rem); line-height:1.05; letter-spacing:-.04em; }
.detail-card { padding:31px 28px; }
.process-card { height:100%; padding:30px 25px; }
.process-num { color:var(--brand-gold); }

/* Data strip and contact close */
.stats-section { padding:clamp(50px,7vw,92px) 0 !important; background:var(--brand-ink) !important; color:#fff !important; }
body[data-page="home"] .stats-section { background:var(--brand-ink) !important; color:#fff !important; }
.stats-section::before { background:radial-gradient(circle,rgba(201,149,61,.14),transparent 69%); }
.stats-section .stat-item { background:transparent !important; border:0 !important; border-left:1px solid rgba(255,255,255,.18) !important; box-shadow:none !important; }
.stats-section .stat-number { color:var(--brand-gold-light) !important; font-size:clamp(2.6rem,5vw,4.4rem); letter-spacing:-.06em; }
body[data-page="home"] .stats-section .stat-number { color:var(--brand-gold-light) !important; }
.stats-section .stat-item>p:not(.stat-number) { color:#fff !important; }
body[data-page="home"] .stats-section .stat-item>p:not(.stat-number) { color:#fff !important; }
.stats-section .stat-item .text-light { color:rgba(255,255,255,.68) !important; }
#contact { background:#efeee9 !important; color:var(--brand-ink); }
#contact .section-title { color:var(--brand-ink) !important; }
#contact .section-title::after { background:var(--brand-gold) !important; }
#contact .text-muted, #contact a.text-muted { color:#5c6b72 !important; }
body[data-page="home"] #contact { background:#efeee9 !important; color:var(--brand-ink) !important; }
body[data-page="home"] #contact .section-title { color:var(--brand-ink) !important; }
body[data-page="home"] #contact .section-title::after { background:var(--brand-gold) !important; }
body[data-page="home"] #contact .text-muted, body[data-page="home"] #contact a.text-muted { color:#5c6b72 !important; }
#contact .bg-light { background:#fff !important; border:1px solid var(--brand-line); border-radius:12px; box-shadow:var(--brand-shadow) !important; }
.form-control, .form-select { min-height:48px; border-color:#d9dfe0; border-radius:6px; }
textarea.form-control { min-height:120px; }
.form-control:focus, .form-select:focus { border-color:var(--brand-gold); box-shadow:0 0 0 .22rem rgba(201,149,61,.16); }

/* Footer */
footer { padding:56px 0 22px; background:#fff !important; color:#53616a !important; border-top:1px solid var(--brand-line); box-shadow:0 -8px 30px rgba(16,38,58,.035); }
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6, footer .text-white { color:var(--brand-ink) !important; }
footer p, footer li, footer .text-muted, footer a { color:#596a72 !important; }
footer a:hover { color:#9b702b !important; }
footer .site-footer-logo { width:178px; background:#fff; }
footer .social-icon { background:#f4f1eb !important; color:var(--brand-ink) !important; border:1px solid var(--brand-line); }
footer .social-icon:hover { background:var(--brand-gold) !important; color:#fff !important; }
footer hr { border-color:var(--brand-gold) !important; opacity:.5; }
#backToTop { background:var(--brand-ink) !important; }
#backToTop:hover { background:var(--brand-gold) !important; color:var(--brand-ink) !important; }

/* Smooth, short reveals; reduced-motion users see content immediately. */
.motion-ready .anim { transition:opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1) !important; }
.hero-home .hero-subtitle, .hero-home .hero-btn { animation-duration:6s !important; }
.hero-home .hero-replay { animation-duration:6s !important; }
.hero-home .hero-btn { display:flex; flex-wrap:wrap; align-items:center; gap:11px; }
.hero-home .hero-secondary-cta { display:inline-flex; min-height:51px; padding:13px 20px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.3); border-radius:999px; color:#fff; background:rgba(8,24,37,.36); text-decoration:none; font-size:11px; font-weight:700; letter-spacing:.07em; transition:transform .25s,background .25s,border-color .25s; }
.hero-home .hero-secondary-cta:hover { transform:translateY(-2px); border-color:var(--brand-gold-light); background:rgba(8,24,37,.7); color:#fff; }
body[dir="rtl"] .page-hero-actions .btn-cta::after, body[dir="rtl"] .hero-home .hero-secondary-cta::after { content:"↖"; }
.hero-region-map { border-radius:10px; }
.project-card img, .about-img-wrap img { will-change:transform; }
@keyframes page-hero-in { from {opacity:0; transform:translateY(14px)} to {opacity:1; transform:translateY(0)} }
@media (max-width:991px) { .navbar-collapse { padding:12px 18px 18px; margin-top:8px; border:1px solid var(--brand-line); border-radius:8px; box-shadow:var(--brand-shadow); } }
@media (max-width:767px) {
  .page-hero { min-height:420px; padding:150px 0 62px; }
  .section-padding { padding:72px 0; }
  .service-card { padding:30px 25px; }
  .project-card { min-height:300px; }
  .page-hero-actions { gap:9px; margin-top:21px; }
  .page-hero-actions .btn-cta, .page-hero-actions .btn-quiet { min-height:48px; }
  .hero-home .hero-btn { gap:9px; }
  .hero-home .hero-secondary-cta { min-height:48px; padding:12px 16px; }
  .stats-section .stat-item { border-left:0 !important; border-top:1px solid rgba(255,255,255,.18) !important; }
  footer { padding-top:44px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .anim, .motion-ready .anim, .motion-ready .anim.visible { opacity:1 !important; transform:none !important; }
}
