/* ===================================================================
   Bridgeway Developers — Emaar-inspired luxury theme
   White / charcoal / dark-navy · thin uppercase geometric typography
   =================================================================== */

:root {
  --ink: #1c1c1e;        /* near-black charcoal — headings/text */
  --ink-soft: #6c6c70;   /* grey — body copy */
  --ink-faint: #9a9a9e;  /* light grey — labels/meta */
  --line: #e3e1dc;       /* hairline borders */
  --bg: #ffffff;
  --bg-soft: #f6f5f2;    /* warm off-white sections */
  --navy: #16273d;       /* primary dark CTA */
  --navy-dark: #0e1b2c;
  --accent: #b08d57;     /* subtle bronze accent (used sparingly) */
  --shadow: 0 18px 50px -20px rgba(20, 30, 45, 0.28);
  --display: "Jost", "Century Gothic", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--body); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6.5rem 0; }

/* ---------- Buttons ---------- */
.btn-navy, .btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--display); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; cursor: pointer;
  padding: 0.95rem 1.9rem; border-radius: 2px; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.full { width: 100%; }

/* ---------- Section labels & titles ---------- */
.label {
  display: flex; align-items: center; gap: 1.25rem;
  font-family: var(--display); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.32em; color: var(--ink-faint); margin-bottom: 1.75rem;
}
.label-line { height: 1px; width: 6rem; background: var(--line); }
.section-title {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.12em; line-height: 1.1; color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 6px 24px -16px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo { height: 44px; width: auto; flex-shrink: 0; }
.logo-word { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.logo-text { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a {
  font-family: var(--display); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); transition: color 0.25s; position: relative;
}
.nav-links > a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--navy); transition: width 0.3s; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-lang { font-family: var(--display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; color: var(--ink-soft); text-transform: uppercase; cursor: pointer; }
.nav-icon { color: var(--ink-soft); display: grid; place-items: center; transition: color 0.25s; }
.nav-icon:hover { color: var(--navy); }
.nav-cta { padding: 0.7rem 1.4rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--navy-dark); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(10,18,28,0.35) 0%, rgba(10,18,28,0.15) 40%, rgba(10,18,28,0.55) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 1.5rem; }
.hero-eyebrow { font-family: var(--display); font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.4em; color: rgba(255,255,255,0.85); }
.hero-title { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: 0.18em; font-size: clamp(2.4rem, 6.5vw, 5.5rem); line-height: 1.05; margin-top: 1.25rem; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-tagline { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: 0.3em; font-size: clamp(0.85rem, 1.8vw, 1.25rem); margin-top: 1rem; color: rgba(255,255,255,0.9); }

/* search bar */
.search-bar {
  position: absolute; z-index: 2; bottom: 8.5rem; left: 50%; transform: translateX(-50%);
  width: min(1040px, calc(100% - 3rem)); display: flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 0; box-shadow: var(--shadow);
}
.search-field { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0.55rem 1.5rem; border-left: 1px solid var(--line); }
.search-field:first-child { border-left: none; }
.search-field label { font-family: var(--display); font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-faint); margin-bottom: 0.15rem; }
.search-field select { border: none; background: none; font-family: var(--body); font-size: 0.85rem; font-weight: 500; color: var(--ink); cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.search-btn { flex-shrink: 0; border-radius: 999px; }

.hero-scroll { position: absolute; z-index: 2; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); animation: bob 2s ease-in-out infinite; }
.hero-mute { position: absolute; z-index: 2; bottom: 2rem; right: 2rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.25); color: #fff; cursor: pointer; display: grid; place-items: center; transition: all 0.25s; }
.hero-mute:hover { background: rgba(0,0,0,0.5); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Intro ---------- */
.intro-lead { font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.6; color: var(--ink); max-width: 1000px; }
.intro-lead + .intro-lead { margin-top: 1.5rem; color: var(--ink-soft); }
.intro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.istat { text-align: left; }
.istat-num { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.25rem); color: var(--navy); line-height: 1; }
.istat-label { display: block; margin-top: 0.6rem; font-family: var(--display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); }

/* ---------- Featured projects carousel ---------- */
.projects { background: var(--bg-soft); }
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.carousel-nav { display: flex; gap: 0.75rem; }
.carousel-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all 0.25s; }
.carousel-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; background: none; color: var(--ink); border-color: var(--line); }
.carousel { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 2rem 1.5rem; scrollbar-width: none; -ms-overflow-style: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > :first-child { margin-left: max(0px, calc((100vw - 1280px) / 2)); }
.slide { flex: 0 0 clamp(300px, 32vw, 420px); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); }
.slide-img { position: relative; height: 280px; overflow: hidden; background: var(--bg-soft); }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.slide:hover .slide-img img { transform: scale(1.06); }
.slide-status { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,0.95); color: var(--ink); font-family: var(--display); font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; padding: 0.4rem 0.9rem; }
.slide-body { padding: 1.75rem; }
.slide-type { font-family: var(--display); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.slide-body h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.3rem; margin: 0.6rem 0 0.75rem; color: var(--ink); }
.slide-body p { font-size: 0.9rem; color: var(--ink-soft); }
.slide-link { display: inline-block; margin-top: 1.25rem; font-family: var(--display); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--navy); transition: letter-spacing 0.25s; }
.slide-link:hover { letter-spacing: 0.22em; }

/* ---------- Services ---------- */
.services .section-title { margin-bottom: 3rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 2.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.3s; }
.svc:hover { background: var(--bg-soft); }
.svc-no { font-family: var(--display); font-weight: 300; font-size: 1.5rem; color: var(--accent); }
.svc h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; margin: 1rem 0 0.75rem; color: var(--ink); }
.svc p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Why us ---------- */
.why-us { background: var(--bg-soft); }
.why-us .section-title { margin-bottom: 3rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.why { padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.why h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.1rem; color: var(--ink); }
.why p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process .section-title { margin-bottom: 3.5rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.step { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.step-num { font-family: var(--display); font-weight: 300; font-size: 2rem; color: var(--navy); }
.step h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; margin: 0.75rem 0 0.5rem; color: var(--ink); }
.step p { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonials .section-title { margin-bottom: 3rem; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.quote { padding: 2.25rem; background: var(--bg-soft); border-top: 2px solid var(--accent); }
.quote blockquote { font-family: var(--display); font-weight: 300; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { margin-top: 1.75rem; }
.quote figcaption strong { display: block; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--ink); }
.quote figcaption span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-intro p { margin-top: 1.5rem; color: var(--ink-soft); max-width: 380px; }
.contact-intro .section-title { margin-top: 0.5rem; }
.contact-list { list-style: none; margin-top: 2.5rem; }
.contact-list li { display: flex; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { flex: 0 0 60px; font-family: var(--display); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }
.contact-list a, .contact-list address { font-style: normal; font-size: 0.95rem; color: var(--ink); transition: color 0.25s; }
.contact-list a:hover { color: var(--navy); }
.contact-form-wrap { background: var(--bg-soft); padding: 2.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.5rem; font-family: var(--display); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; padding: 0.85rem 0; border: none; border-bottom: 1px solid var(--line); background: none; font-family: var(--body); font-size: 0.95rem; color: var(--ink); transition: border-color 0.25s; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field.invalid input, .field.invalid textarea { border-color: #d14343; }
.err { display: block; margin-top: 0.35rem; font-size: 0.72rem; color: #d14343; }
.contact-form-wrap .btn-navy { margin-top: 0.75rem; }
.form-success { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--navy); color: var(--navy); font-size: 1.75rem; margin-bottom: 1.5rem; }
.form-success h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.form-success p { margin: 0.75rem 0 2rem; color: var(--ink-soft); }

.map { margin-top: 4rem; border-top: 1px solid var(--line); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; padding: 4.5rem 2rem; }
.footer-logo { color: #fff; font-size: 1.5rem; }
.footer-brand p { margin-top: 1.5rem; max-width: 340px; font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: #fff; margin-bottom: 1.5rem; }
.footer-col a, .footer-col span { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-bottom: 0.85rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 2rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 0.75rem; }
.footer-socials a { margin-left: 1.5rem; font-family: var(--display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.25s; }
.footer-socials a:first-child { margin-left: 0; }
.footer-socials a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 90; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: all 0.3s; }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .svc-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; max-width: 640px; }
  .search-bar { flex-wrap: wrap; border-radius: 14px; padding: 0.5rem; }
  .search-field { flex: 1 1 45%; border-left: none; }
  .search-btn { flex: 1 1 100%; border-radius: 8px; margin-top: 0.5rem; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem 2rem 2rem; gap: 0; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform 0.35s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav-lang, .nav-icon { display: none; }
  .nav-toggle { display: flex; }
  .intro-stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .search-bar { bottom: 6.5rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 1.25rem; }
  .logo-text { font-size: 1rem; letter-spacing: 0.1em; }
  .nav-logo { height: 36px; }
  .logo-word { font-size: 0.92rem; letter-spacing: 0.1em; }
  .section { padding: 4.5rem 0; }
  .svc-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .search-bar { display: none; } /* keep mobile hero clean */
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}

/* ===================================================================
   Intro loader — plays once per session (~3s), gold BW monogram on navy
   =================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background-color: #0a1526;
  background-image: radial-gradient(circle at 50% 48%, #14233b 0%, #0a1526 45%, #060d18 100%);
  animation: loaderHide 0.7s ease 3.4s forwards;
}
.loader-svg { width: clamp(240px, 46vw, 400px); height: auto; filter: drop-shadow(0 6px 30px rgba(212, 175, 55, 0.22)); }
/* draw the monogram in with a left-to-right reveal */
.loader-svg .logo-fill { clip-path: inset(0 100% 0 0); animation: drawWipe 1.7s cubic-bezier(0.7, 0, 0.3, 1) 0.25s forwards; }
/* reveal the wordmark after the monogram is drawn */
.loader-svg .lt { opacity: 0; animation: ltReveal 0.9s ease 1.8s forwards; }

@keyframes drawWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes ltReveal { to { opacity: 1; } }
@keyframes loaderHide { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .loader-svg .logo-fill { animation: none; clip-path: none; }
  .loader-svg .lt { animation: none; opacity: 1; }
  .loader { animation: loaderHide 0.5s ease 2.2s forwards; }
}
