/* =========================================================
   MAS 58 J&L Services LLC
   Brand colors come from the logo: royal blue on white,
   near-black type. Change --blue below to retint the site.
   ========================================================= */
:root {
  --blue: #0147C9;
  --blue-700: #0239A3;
  --blue-50: #E8EFFC;
  --ink: #111418;
  --ink-2: #3C4250;
  --muted: #6B7280;
  --line: #E3E7EE;
  --bg: #FFFFFF;
  --bg-soft: #F3F5F8;
  --footer: #121418;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(10, 22, 52, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
section { scroll-margin-top: 84px; }

/* Icons */
.icon {
  width: 1em; height: 1em;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 6px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer; line-height: 1;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  font-family: inherit;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(1, 71, 201, .3); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 3px solid var(--blue);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.brand-name span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2); margin-top: 4px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--blue); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 74vh, 740px);
  display: flex; align-items: center;
  color: #fff;
  background: #0A1633 url("/assets/roof-ridge.jpg") center 58% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 14, 36, .35) 0%, rgba(7, 14, 36, 0) 30%, rgba(7, 14, 36, .55) 100%),
    linear-gradient(90deg, rgba(7, 14, 36, .94) 0%, rgba(7, 14, 36, .82) 35%, rgba(7, 14, 36, .35) 68%, rgba(7, 14, 36, .15) 100%);
}
.hero-content { max-width: 580px; padding: 88px 0; }
.hero .accent { width: 64px; height: 4px; background: var(--blue); margin-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 20px; }
.hero p { font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, .9); max-width: 440px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-perks li { display: flex; align-items: center; gap: 8px; }
.hero-perks .icon { width: 18px; height: 18px; color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; stroke-width: 3; }

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin: 0 0 24px; }
.eyebrow { display: block; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1; }
.section-head .rule { width: 52px; height: 3px; background: var(--blue); margin: 18px auto 0; }
.section-head.left .rule { margin-left: 0; }
.section-head p { color: var(--muted); margin: 18px 0 0; font-size: 16px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 18px 26px; text-align: center; display: block;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue); }
.service .icon { width: 48px; height: 48px; color: var(--blue); margin: 0 auto 18px; stroke-width: 1.6; }
.service h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.service p { font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.service .rule { width: 28px; height: 3px; background: var(--blue); margin: 0 auto; transition: width .25s; }
.service:hover .rule { width: 48px; }
.services-note { text-align: center; color: var(--muted); margin: 36px 0 0; font-size: 15px; }
.services-note a { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.services-note .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* Why choose us */
.why { background: var(--bg-soft); padding: 80px 0; }
.why .section-head { margin-bottom: 40px; }
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.why-item { display: flex; align-items: center; gap: 14px; padding: 14px 30px; border-left: 1px solid #D0D6E0; }
.why-item:first-child { border-left: 0; }
.why-item .icon { width: 46px; height: 46px; color: var(--blue); stroke-width: 1.5; }
.why-item span { font-size: 15px; font-weight: 700; line-height: 1.3; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-visual { position: relative; max-width: 480px; margin: 0 auto; }
.about-visual img { border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); width: 100%; }
.about-visual .tag {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(1, 71, 201, .35);
}
.about-copy p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.checklist .icon { width: 24px; height: 24px; background: var(--blue-50); color: var(--blue); border-radius: 50%; padding: 5px; stroke-width: 2.6; }

/* Projects */
.project { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line); }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 0; background: #0A1633; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.photo:hover img { transform: scale(1.04); }
.photo .label {
  position: absolute; top: 16px; left: 16px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 4px;
}
.photo .label.dark { background: var(--ink); }
.project-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 34px 38px; align-items: center; }
.project-body h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -.01em; }
.project-body p { color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 999px; letter-spacing: .04em; }

/* Footer */
.site-footer { background: var(--footer); color: #C9CED8; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-brand .brand-name strong { color: #fff; }
.footer-brand .brand-name span { color: #C9CED8; }
.footer-brand p { font-size: 14px; margin: 18px 0 22px; max-width: 260px; line-height: 1.6; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social .icon { width: 18px; height: 18px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer li { font-size: 14px; }
.site-footer li a { transition: color .2s; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding: 24px 0; text-align: center; font-size: 13px; color: #9AA1AE; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .why-item { border-left: 0; padding: 12px 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { margin-bottom: 8px; }
  .project-body { grid-template-columns: 1fr; gap: 20px; }
  .chips { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; stroke-width: 2.2; }
  .nav-toggle .icon-close { display: none; }
  .site-header.open .nav-toggle .icon-menu { display: none; }
  .site-header.open .nav-toggle .icon-close { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: -20px; right: -20px; top: 100%;
    background: #fff; border-bottom: 3px solid var(--blue);
    padding: 8px 20px 20px; box-shadow: var(--shadow);
  }
  .site-header.open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-header.open .nav a::after { display: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .brand-name strong { font-size: 19px; }
  .hero { min-height: 520px; }
  .hero-content { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service { padding: 24px 12px 20px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .project-photos { grid-template-columns: 1fr; }
  .project-body { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
