:root {
  --color-primary: #16202B;
  --color-primary-light: #243444;
  --color-primary-dark: #0D141C;
  --color-accent: #C77F35;
  --color-accent-dark: #A9682A;
  --color-accent2: #C77F35;
  --color-ink: #16202B;
  --color-accent-ink: #16202B;
  --color-accent2-ink: #16202B;
  --hero-scrim-boost: 0.20;
}
/* The engine injects :root{--color-primary / --color-primary-light / --color-primary-dark /
   --color-accent / --color-accent-dark / --color-accent2 / --color-ink / --color-accent-ink}
   at the marker above. Everything below references brand color ONLY via those vars
   (mapped to this concept's own --navy/--gold naming through the aliases just below).

   Anchor: Roofly (roofly.framer.website). Premium national-brand roofer look —
   navy hero + footer bookends, gold accent, large soft shadows, generous white
   space, a signature in-hero quote card. Keep this feel exactly; it must read
   like an expensive premium brand, not a generic local template. */

:root {
  /* Aliases onto the injected brand vars, named the way this design already
     thinks about itself (--navy / --gold). No raw brand hex below this block. */
  --white: #FFFFFF;
  --offwhite: #F9F8F7;
  --gold: var(--color-accent);
  --gold-dark: var(--color-accent-dark);
  --navy: var(--color-primary);
  --navy-soft: var(--color-primary-light);
  --ink: var(--color-ink);
  --muted: #5C6579;
  --line: #E8E6E3;
  --radius: 8px;
  --radius-md: 14px;
  --shadow-card: 0 24px 60px rgba(11, 19, 39, 0.16);
  --shadow-soft: 0 12px 32px rgba(11, 19, 39, 0.08);
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Wix Madefor Display', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Wix Madefor Display', sans-serif; line-height: 1.14; font-weight: 700; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--color-accent-ink); font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-lg { padding: 17px 30px; font-size: 16px; width: 100%; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #f1efec; }

/* Secondary text link on a light section. --gold-dark alone lands around 4.2:1 on
   off-white for mid-bright accents (copper, orange), just under AA for 15px text,
   so it is darkened here. The plain declaration first is the pre-color-mix fallback. */
.gold-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); color: color-mix(in srgb, var(--gold-dark) 76%, #000); font-weight: 700; font-size: 15px; }
.gold-link:hover { color: var(--gold); }

/* ---------- Nav ---------- */
header.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 40; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 40px; max-width: var(--maxw); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--white); }
.logo .mark { width: 38px; height: 38px; display: grid; place-items: center; }
.logo .mark svg { width: 38px; height: 38px; }
.logo .mark img { width: 38px; height: 38px; object-fit: contain; }
.logo .name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.94); font-weight: 500; font-size: 16px; transition: color .15s; }
.nav-links a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--white); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nav-phone svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 150px 0 100px;
  min-height: 760px;
  display: flex; align-items: center;
}
.hero__bg {
  content: ''; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,19,39,0.82) 0%, rgba(11,19,39,0.60) 50%, rgba(11,19,39,0.42) 100%),
              linear-gradient(180deg, rgba(11,19,39,0.45) 0%, rgba(11,19,39,0.15) 40%),
              linear-gradient(0deg, rgba(11,19,39,calc(0.20 + var(--hero-scrim-boost, 0))) 0%, rgba(11,19,39,calc(0.20 + var(--hero-scrim-boost, 0))) 100%);
}
.hero > *:not(.hero__bg) { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 470px; gap: 60px; align-items: center; width: 100%;
}
.hero-copy { color: var(--white); max-width: 640px; }
.hero-copy h1 { font-size: 64px; font-weight: 700; color: var(--white); line-height: 1.08; letter-spacing: -0.015em; text-shadow: 0 2px 26px rgba(11,19,39,0.35); }
.hero-copy p.sub {
  font-size: 18px; color: rgba(255,255,255,0.92); margin-top: 24px; max-width: 500px; line-height: 1.65;
}

/* Signature in-hero form card */
.quote-card {
  background: var(--white); border-radius: var(--radius-md); padding: 34px 34px 30px;
  box-shadow: var(--shadow-card); position: relative; border-top: 4px solid var(--gold);
}
.quote-card h3 { font-size: 30px; font-weight: 700; }
.quote-card .lead { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.quote-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote-form input, .quote-form select {
  width: 100%; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  transition: border-color .15s;
}
.quote-form input:focus, .quote-form select:focus { outline: none; border-color: var(--gold); }
.quote-form select { appearance: none; color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6579' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ---------- Section shells ---------- */
section { padding: 120px 0; }
.sec-alt { background: var(--offwhite); }

/* ---------- Commitment split ---------- */
.commit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.commit-photo img { border-radius: var(--radius-md); width: 100%; height: 480px; object-fit: cover; box-shadow: var(--shadow-soft); }
.commit-copy h2 { font-size: 40px; }
.commit-copy p { color: var(--muted); font-size: 16.5px; margin-top: 20px; line-height: 1.7; }
.commit-pills { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.pill .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center;
}
.pill .tick svg { width: 12px; height: 12px; stroke: var(--gold); }

/* ---------- Stats strip ---------- */
.stats-strip { padding: 0 0 120px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.stat { padding: 40px 44px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .lab { font-size: 14.5px; color: var(--muted); margin-top: 10px; max-width: 180px; }

/* ---------- Section head row (h2 left, note+link right) ---------- */
.head-row {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: end; margin-bottom: 54px;
}
.head-row h2 { font-size: 40px; }
.head-row .aside { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.head-row .aside .gold-link { margin-top: 12px; }

/* ---------- Services (premium image cards, title overlaid) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
/* 3-up variant for card counts that divide by 3 (e.g. 6 services), so no row is ragged. */
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.svc-grid--3 .svc-card { aspect-ratio: 4 / 3.4; }
.svc-card { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-soft); isolation: isolate; }
.svc-card .ph { position: absolute; inset: 0; }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.svc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,39,0) 34%, rgba(11,19,39,0.28) 62%, rgba(11,19,39,0.82) 100%); z-index: 1; }
.svc-card:hover .ph img { transform: scale(1.07); }
.svc-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 24px; color: var(--white); }
.svc-overlay .cap { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; text-shadow: 0 1px 12px rgba(11,19,39,0.4); }
.svc-arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.svc-arrow svg { width: 18px; height: 18px; color: var(--white); }
.svc-card:hover .svc-arrow { background: var(--gold); transform: translateX(3px); }

/* ---------- Projects auto-scrolling slider ---------- */
.proj-strip { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.proj-track { display: flex; width: max-content; animation: proj-scroll 42s linear infinite; will-change: transform; }
.proj-strip:hover .proj-track { animation-play-state: paused; }
.proj-track .cell { position: relative; flex: none; width: 460px; height: 340px; margin-right: 18px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.proj-track .cell img { width: 100%; height: 100%; object-fit: cover; }
.proj-track .cell figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: var(--white); font-weight: 600; font-size: 15px; text-shadow: 0 1px 12px rgba(11,19,39,0.6); }
@keyframes proj-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .proj-strip { overflow-x: auto; } .proj-track { animation: none; } }

/* ---------- FAQ ---------- */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-col { display: grid; gap: 14px; align-content: start; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .ic { flex: none; width: 22px; height: 22px; transition: transform .2s; color: var(--gold-dark); font-size: 22px; line-height: 1; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Testimonials (dark masonry) ---------- */
.testi { background: var(--navy); color: var(--white); }
.testi h2 { font-size: 40px; color: var(--white); text-align: center; max-width: 640px; margin: 0 auto; }
.testi-masonry { columns: 4; column-gap: 20px; margin-top: 56px; }
.testi-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-md);
  padding: 22px 22px; margin-bottom: 20px; break-inside: avoid;
}
.testi-card p { font-size: 14.5px; line-height: 1.6; color: #2A3245; }
.testi-who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.testi-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.testi-who .n { font-weight: 700; font-size: 14px; }
.testi-who .m { font-size: 12.5px; color: var(--muted); }
.testi-rating {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 48px;
  flex-wrap: wrap; color: rgba(255,255,255,0.92); font-size: 15px; font-weight: 600;
}
.g-logo { width: 26px; height: 26px; flex: none; }
.testi-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 17px; }
.testi-rating .cnt { color: rgba(255,255,255,0.62); font-weight: 500; }

/* ---------- News / articles ---------- */
.news-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.news-lead { display: block; }
.news-lead .ph { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 10; }
.news-lead .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-lead:hover .ph img { transform: scale(1.04); }
.news-lead .date, .news-mini .date { font-size: 13px; color: var(--muted); margin-top: 18px; font-weight: 500; }
.news-lead h3 { font-size: 24px; margin-top: 8px; }
.news-list { display: grid; gap: 22px; }
.news-mini { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.news-mini .ph { border-radius: 10px; overflow: hidden; width: 120px; height: 92px; }
.news-mini .ph img { width: 100%; height: 100%; object-fit: cover; }
.news-mini .date { margin-top: 0; }
.news-mini h3 { font-size: 16.5px; margin-top: 6px; line-height: 1.3; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.news-lead .ph { position: relative; }
.news-tag { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(255,255,255,0.94); color: var(--navy); font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; }
.news-excerpt { color: var(--muted); font-size: 15px; margin-top: 10px; line-height: 1.6; }
.news-more { margin-top: 14px; font-size: 14px; }
.news-mini .news-more { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, rgba(255,255,255,0) 2px 22px),
    var(--gold);
  color: var(--navy);
}
.cta-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.cta-band h2 { font-size: 40px; color: var(--navy); }
.cta-band p { color: rgba(11,19,39,0.78); font-size: 17px; margin-top: 14px; max-width: 520px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 80px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
footer .logo .name { color: var(--white); }
footer .about-blurb { font-size: 14.5px; margin-top: 20px; max-width: 300px; line-height: 1.7; }
.foot-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; letter-spacing: 0.02em; }
.foot-col a { display: block; font-size: 14.5px; color: rgba(255,255,255,0.72); margin-bottom: 12px; transition: color .15s; }
.foot-col a:hover { color: var(--gold); }
.foot-col span { display: block; font-size: 14.5px; color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.55);
}
.foot-bottom .links { display: flex; gap: 24px; }
.foot-bottom a:hover { color: var(--gold); }

/* ---------- Sticky mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 24px; }
  .hero { padding: 132px 0 90px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: 42px; }
  .quote-card { max-width: 470px; }
  .commit-grid { grid-template-columns: 1fr; gap: 40px; }
  .commit-photo img { height: 360px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
  .head-row { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-track .cell { width: 340px; height: 250px; margin-right: 14px; }
  .faq-cols { grid-template-columns: 1fr; }
  .testi-masonry { columns: 2; }
  .news-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 82px; left: 16px; right: 16px;
    background: var(--white); border-radius: 16px; padding: 20px 24px; gap: 4px; box-shadow: var(--shadow-card);
  }
  .nav-links.mobile-open a { color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links.mobile-open a:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  /* The header CTA collides with the wordmark on narrow phones, and the sticky
     call bar already carries both "Zadzwoń" and the quote CTA. Drop it here. */
  .nav-cta > .btn { display: none; }
  .stats-strip { padding: 0 0 72px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p.sub { font-size: 16px; }
  .quote-card { padding: 28px 22px; }
  .quote-card h3 { font-size: 26px; }
  .commit-copy h2, .head-row h2, .testi h2, .cta-band h2 { font-size: 30px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .proj-track .cell { width: 78vw; height: 220px; }
  .testi-masonry { columns: 1; }
  .news-mini { grid-template-columns: 96px 1fr; }
  .news-mini .ph { width: 96px; height: 74px; }
  .foot-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 68px; }
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--navy); box-shadow: 0 -6px 24px rgba(0,0,0,0.22);
  }
  .call-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; font-weight: 700; font-size: 15px; }
  .call-bar .cb-phone { color: var(--white); }
  .call-bar .cb-phone svg { width: 17px; height: 17px; }
  .call-bar .cb-quote { background: var(--gold); color: var(--color-accent-ink); }
}
