@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --red: #e31e24;
  --red-dark: #b91218;
  --ink: #161618;
  --muted: #646469;
  --paper: #ffffff;
  --soft: #f4f4f5;
  --line: #dedee1;
  --header-height: 82px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border-radius: 8px; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--paper); color: var(--ink); font-weight: 700; border-radius: 4px; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--header-height); color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.15); transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.site-header.scrolled { height: 70px; background: rgba(18,18,20,.96); box-shadow: 0 8px 35px rgba(0,0,0,.16); backdrop-filter: blur(12px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: 188px; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { position: relative; text-decoration: none; color: rgba(255,255,255,.82); font-size: .9rem; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--red); transition: right .25s ease; }
.main-nav a:focus-visible, .main-nav a.is-active { color: #fff; }
.main-nav a:focus-visible::after, .main-nav a.is-active::after { right: 0; }
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: #fff; }
  .main-nav a:hover::after { right: 0; }
}
.phone-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; color: #fff; background: var(--red); border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 800; transition: background .2s, transform .2s; }
.phone-link:hover { background: var(--red-dark); transform: translateY(-1px); }
.phone-link svg { width: 19px; height: 19px; fill: currentColor; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s, opacity .2s; }

.hero { position: relative; min-height: 760px; height: 100svh; max-height: 940px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #101113; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,9,.92) 0%, rgba(7,8,9,.70) 40%, rgba(7,8,9,.10) 70%), url('../assets/hero-instalater-topenar.jpg') center/cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42%; height: 6px; background: var(--red); }
.hero-content { position: relative; z-index: 1; padding-top: var(--header-height); }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: .74rem; line-height: 1.3; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #ff4247; }
.hero h1 { max-width: 560px; margin: 0; font-size: clamp(2.8rem, 5.2vw, 5.15rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; }
.hero h1 span { color: #ff4247; font-size: .72em; letter-spacing: -.035em; }
.hero-lead { max-width: 490px; margin: 30px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; min-height: 52px; padding: 0 24px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 800; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); }
.hero-trust { display: flex; gap: 0; margin-top: 46px; color: rgba(255,255,255,.7); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-trust span { padding: 0 20px; border-left: 1px solid rgba(255,255,255,.25); }
.hero-trust span:first-child { padding-left: 0; border-left: 0; }
.scroll-cue { position: absolute; z-index: 2; bottom: 30px; left: 50%; width: 30px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 10px; left: 50%; width: 4px; height: 8px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: scrollCue 1.8s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: translate(-50%,0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%,16px); opacity: 0; } }

.section { padding: 120px 0; }
.section-heading { max-width: 690px; margin-bottom: 54px; }
.section h2, .brands h2, .contact h2 { margin: 0; font-size: clamp(2.15rem, 4.3vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child, .brands-copy > p, .contact-copy > p, .about-copy > p { color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 310px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .3s ease, color .3s ease; }
.service-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.service-card:hover { color: #fff; background: var(--ink); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 54px; height: 54px; color: var(--red); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-number { position: absolute; top: 28px; right: 32px; margin: 0; color: #a9a9ad; font-size: .75rem; font-weight: 800; }
.service-card h3 { margin: 34px 0 10px; font-size: 1.35rem; }
.service-card > p:last-child { max-width: 430px; margin: 0; color: var(--muted); }
.service-card:hover > p:last-child { color: rgba(255,255,255,.66); }

.brands { padding: 120px 0; color: #fff; background: var(--ink); }
.brands-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.brands-copy > p { color: rgba(255,255,255,.58); }
.text-link { display: inline-flex; gap: 14px; align-items: center; margin-top: 18px; color: #fff; text-decoration: none; font-weight: 800; }
.text-link span { color: var(--red); font-size: 1.4rem; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.brand-list { border-top: 1px solid rgba(255,255,255,.18); }
.brand-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand-list strong { color: var(--red); font-size: clamp(1.6rem, 3vw, 2.65rem); letter-spacing: -.04em; }
.brand-list span { color: rgba(255,255,255,.5); font-size: .84rem; text-align: right; }
.brand-logo-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; min-height: 126px; margin-top: -38px; padding: 24px 34px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.brand-logo-strip img { width: auto; max-width: min(72%, 190px); max-height: 62px; margin-inline: auto; object-fit: contain; }

.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; }
.about-mark { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--red); overflow: hidden; }
.about-mark::before { content: ""; position: absolute; width: 65%; height: 140%; right: -32%; top: -20%; background: rgba(0,0,0,.12); transform: rotate(22deg); }
.about-mark img { position: relative; z-index: 1; width: 50%; height: auto; object-fit: contain; filter: brightness(0) invert(1); }
.check-list { display: grid; gap: 14px; padding: 0; margin: 30px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--red); font-size: 1.2rem; font-weight: 800; }

.contact { padding: 110px 0; color: #fff; background: var(--red); }
.contact .eyebrow { color: #fff; opacity: .72; }
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: start; }
.contact-copy > p { color: rgba(255,255,255,.76); max-width: 620px; }
.contact-phone { display: block; width: fit-content; margin-top: 30px; color: #fff; font-size: clamp(2rem, 5vw, 4.3rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.contact-mail { display: inline-block; margin-top: 16px; color: #fff; text-underline-offset: 5px; }
.contact-card { padding: 36px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.contact-card > div + div { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact-label { display: block; margin-bottom: 7px; color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.contact-card p { margin: 0; }
.business-id { display: flex; gap: 20px; color: var(--muted); font-size: .76rem; }

.site-footer { padding: 26px 0; color: rgba(255,255,255,.58); background: #0d0d0f; font-size: .78rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand img { width: 150px; opacity: .72; }
.site-footer a { text-underline-offset: 4px; }
.back-to-top { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #fff; background: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .3s, visibility .3s, transform .3s, background .2s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); }
.back-to-top svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --header-height: 72px; }
  .phone-link span { display: none; }
  .phone-link { width: 44px; padding: 0; justify-content: center; margin-left: auto; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-height) 0 auto; height: calc(100svh - var(--header-height)); flex-direction: column; align-items: flex-start; gap: 0; padding: 38px 24px; background: #111113; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.25rem; }
  .main-nav a.is-active::after { right: auto; bottom: -1px; width: 64px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 700px; }
  .hero-bg { background-position: 62% center; }
  .hero-content { padding-right: 26%; }
  .brands-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 54px; }
  .about-mark { max-width: 480px; width: 100%; }
  .contact-card { max-width: 580px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1160px); }
  .site-header, .site-header.scrolled { height: 66px; }
  .brand img { width: 150px; }
  .main-nav { top: 66px; height: calc(100svh - 66px); }
  .hero { min-height: 680px; max-height: none; }
  .hero-bg { background-image: linear-gradient(90deg, rgba(7,8,9,.96) 0%, rgba(7,8,9,.72) 65%, rgba(7,8,9,.30) 100%), url('../assets/hero-instalater-topenar.jpg'); background-position: 62% center; }
  .hero-content { padding: 94px 0 56px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.45rem); line-height: 1.06; }
  .hero h1 span { font-size: .68em; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; gap: 9px 0; margin-top: 30px; }
  .hero-trust span { padding: 0 12px; font-size: .64rem; }
  .hero-trust span:nth-child(3) { padding-left: 0; border-left: 0; }
  .scroll-cue { display: none; }
  .section, .brands, .contact { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 270px; padding: 30px; }
  .brand-list div { display: block; }
  .brand-list span { display: block; margin-top: 4px; text-align: left; }
  .brand-logo-strip { min-height: 100px; margin-top: -22px; padding: 20px 12px; }
  .brand-logo-strip img { max-width: 82%; max-height: 46px; }
  .contact-card { padding: 28px; }
  .business-id { flex-direction: column; gap: 2px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
