/* Lebanon Construction */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #101010;
  --ink-soft: #55524c;
  --line: #e2dfd8;
  --accent: #e8730a;
  --accent-dark: #c45f05;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 72px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/*  Custom cursor  */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(232,115,10,0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s;
}
.cursor-ring.grow { width: 56px; height: 56px; border-color: var(--accent); }
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/*  Navigation  */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(247,246,243,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
  letter-spacing: 0.06em; text-decoration: none; display: flex; align-items: baseline; gap: 5px;
}
.nav-logo-mark { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.04em; color: var(--ink-soft); position: relative;
  padding: 4px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
  background: var(--ink); color: #fff; padding: 12px 24px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-2px); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 12px 8px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 990; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem);
  text-decoration: none; letter-spacing: -0.02em; padding: 6px 16px;
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--accent); }

/*  Hero  */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16,16,16,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16,16,16,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 40%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px;
}
.tick { width: 34px; height: 2px; background: var(--accent); display: inline-block; flex-shrink: 0; }
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.5rem, 11.5vw, 10.5rem);
  line-height: 0.94; letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 32px; max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.03em;
  padding: 16px 32px; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.btn-lg { padding: 20px 40px; font-size: 1.05rem; }

.hero-scroll-hint {
  position: absolute; bottom: 36px; left: clamp(20px, 6vw, 80px); z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4em; color: var(--ink-soft);
}
.hero-scroll-line { width: 2px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent); animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }
.hero-coords {
  position: absolute; bottom: 36px; right: clamp(20px, 6vw, 80px); z-index: 2;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/*  Marquee  */
.marquee {
  background: var(--ink); color: rgba(255,255,255,0.9);
  overflow: hidden; padding: 22px 0; white-space: nowrap;
}
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.22em;
}

/*  Stats  */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: var(--space-6) clamp(20px, 6vw, 80px);
  gap: var(--space-4);
  background: var(--surface);
}
.stat { border-left: 2px solid var(--line); padding-left: 24px; transition: border-color 0.4s; }
.stat:hover { border-color: var(--accent); }
.stat-num {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num em { font-style: normal; color: var(--accent); font-size: 0.6em; }
.stat-label { margin-top: 10px; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/*  Shared section bits  */
.section-tag {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 5.5rem); letter-spacing: -0.035em; line-height: 1;
  text-transform: uppercase;
}
.section-title em, .about-headline em { font-style: normal; color: var(--accent); }

/*  About  */
.about { padding: var(--space-7) clamp(20px, 6vw, 80px); }
.about-inner { max-width: 1280px; margin: 0 auto; }
.about-headline {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.15;
  max-width: 1050px; margin-bottom: var(--space-5);
}
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 1050px; }
.about-col p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.about-image { margin-top: var(--space-6); }
.parallax-frame { overflow: hidden; position: relative; }
.parallax-frame img { width: 100%; height: clamp(320px, 60vw, 640px); object-fit: cover; will-change: transform; transform: scale(1.15); }
.about-image-caption {
  padding: 14px 0 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
}

/*  Projects  */
.projects { padding: var(--space-7) clamp(20px, 6vw, 80px); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.projects-head { max-width: 1280px; margin: 0 auto var(--space-6); }
.project-list { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-7); }
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.project-alt { grid-template-columns: 1fr 1.25fr; }
.project-alt .project-media { order: 2; }
.project-alt .project-info { order: 1; }
.project-media img { height: clamp(300px, 42vw, 560px); transition: transform 0.8s var(--ease-out); }
.project:hover .project-media img { transform: scale(1.22); }
.project-meta {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.project-index {
  font-family: var(--font-head); font-weight: 900; font-size: clamp(3rem, 6vw, 5rem);
  color: transparent; -webkit-text-stroke: 1.5px var(--line); line-height: 1; margin-bottom: 18px;
  transition: -webkit-text-stroke-color 0.4s;
}
.project:hover .project-index { -webkit-text-stroke-color: var(--accent); }
.project-info h3 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 16px;
  text-transform: uppercase;
}
.project-info > p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 28px; max-width: 460px; }
.project-specs { list-style: none; display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.project-specs li {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  border-top: 2px solid var(--line); padding-top: 12px; min-width: 90px;
}
.project-specs b {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: 2px; font-variant-numeric: tabular-nums;
}

/*  Services  */
.services { padding: var(--space-7) clamp(20px, 6vw, 80px); }
.services-head { max-width: 1280px; margin: 0 auto var(--space-6); }
.services-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.service-card {
  background: var(--bg); padding: clamp(28px, 3.5vw, 48px);
  transition: background 0.35s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { transform: scaleY(1); }
.service-card svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 22px; }
.service-card h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.01em; margin-bottom: 12px; text-transform: uppercase;
}
.service-card p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.7; }

/*  Process / timeline  */
.process { padding: var(--space-7) clamp(20px, 6vw, 80px); background: var(--ink); color: #f5f3ef; }
.process .section-tag { color: rgba(245,243,239,0.6); }
.process-head { max-width: 1280px; margin: 0 auto var(--space-6); }
.timeline { max-width: 1280px; margin: 0 auto; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); padding-top: 28px; }
.timeline-line {
  position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: rgba(245,243,239,0.15);
}
.timeline-line::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(var(--draw, 0)); transform-origin: left;
}
.timeline-dot {
  position: absolute; top: -33px; left: 0; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
}
.timeline-step { position: relative; }
.timeline-num {
  font-family: var(--font-head); font-weight: 900; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245,243,239,0.35); line-height: 1; margin-bottom: 16px;
}
.timeline-step h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.timeline-step p { color: rgba(245,243,239,0.65); font-size: 0.94rem; line-height: 1.7; }

/*  Trust strip  */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: var(--space-5) clamp(20px, 6vw, 80px); gap: var(--space-4);
}
.trust-item { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.trust-item b {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--ink); letter-spacing: 0; text-transform: none; margin-bottom: 4px;
}

/*  Testimonials  */
.testimonials { padding: var(--space-7) clamp(20px, 6vw, 80px); background: var(--bg); }
.testimonials-head { max-width: 1280px; margin: 0 auto var(--space-6); }
.testimonial-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px);
}
.testimonial {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(16,16,16,0.18); }
.testimonial-mark {
  font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; line-height: 0.6;
  color: var(--accent); margin-bottom: 20px;
}
.testimonial p { color: var(--ink-soft); line-height: 1.75; font-size: 0.98rem; flex: 1; }
.testimonial footer {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}
.testimonial footer b {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.92rem;
  color: var(--ink); letter-spacing: 0.02em; margin-bottom: 2px;
}

/*  Contact  */
.contact { padding: var(--space-7) clamp(20px, 6vw, 80px); text-align: center; }
.contact-inner { max-width: 1100px; margin: 0 auto; }
.contact-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2rem, 8vw, 7rem); letter-spacing: -0.04em; line-height: 0.98;
  text-transform: uppercase;
}
.contact-title .line { display: block; overflow: hidden; }
.contact-title .accent { color: var(--accent); }
.contact-sub { margin: 28px auto 40px; color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-meta {
  margin-top: var(--space-6); display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-5);
  text-align: left;
}
.contact-meta > div { font-size: 0.98rem; color: var(--ink-soft); }
.contact-meta b {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
}

/*  Footer  */
.footer {
  background: var(--ink); color: rgba(245,243,239,0.65);
  padding: 64px clamp(20px, 6vw, 80px) 32px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px;
  max-width: 1280px; margin: 0 auto 48px;
}
.footer-brand p { margin-top: 14px; font-size: 0.92rem; max-width: 320px; line-height: 1.7; }
.footer-logo { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.22em; color: #fff; font-size: 1.05rem; }
.footer-logo span { color: var(--accent); margin-left: 8px; letter-spacing: 0.4em; font-size: 0.72rem; }
.footer-nav { display: flex; gap: clamp(16px, 2.5vw, 36px); flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none; color: rgba(245,243,239,0.7); font-weight: 500; font-size: 0.92rem;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(245,243,239,0.12); padding-top: 24px;
}
.footer-copy { font-size: 0.85rem; }
.footer-wa {
  text-decoration: none; color: #fff; font-weight: 700; font-size: 0.9rem;
  font-variant-numeric: tabular-nums; transition: color 0.25s;
}
.footer-wa:hover { color: var(--accent); }

/*  Reveal helpers (JS sets final state)  */
.reveal-line .tick { transform: scaleX(0); transform-origin: left; }

/*  Responsive  */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 640px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .timeline-line { display: none; }
  .timeline-dot { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-eyebrow { letter-spacing: 0.18em; font-size: 0.72rem; }
  .section-tag { letter-spacing: 0.18em; font-size: 0.72rem; }
  .about-headline { font-size: clamp(1.4rem, 6.4vw, 3.2rem); }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-left: 20px; padding-right: 20px; }
  .stat { padding-left: 14px; }
  .stat-num { font-size: clamp(2rem, 9vw, 4.5rem); }
  .stat-label { font-size: 0.72rem; letter-spacing: 0.04em; }
  .project-specs { gap: 14px; }
  .project-specs li { min-width: 76px; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .marquee-track span { font-size: 1rem; letter-spacing: 0.16em; }
  .btn { padding: 14px 24px; font-size: 0.9rem; }
  .btn-lg { padding: 16px 26px; font-size: 0.95rem; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { justify-content: center; }
  .hero-grid-lines { background-size: 48px 48px; }
  .footer { padding-top: 44px; text-align: left; }
  .footer-bottom { justify-content: center; text-align: center; }
  .project, .project-alt { grid-template-columns: 1fr; }
  .project-alt .project-media { order: 0; }
  .project-alt .project-info { order: 1; }
  .about-cols { grid-template-columns: 1fr; gap: var(--space-3); }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 48px; }
  .contact-meta { grid-template-columns: 1fr; text-align: center; }
  .footer { justify-content: center; text-align: center; }
  .hero-coords { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .parallax-frame img { transform: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
