/* Sophisticated Solutions — shared styles (1:1 copy of the Wix site).
   Patterns and how to use them: see /_partials.md */
@import url("/fonts/fonts.css");

:root {
  --red: #ED2224;          /* Wix color_41 — buttons, accents */
  --red-hover: #DA1517;
  --ink: #010101;          /* headings */
  --text: #414141;         /* body text on light */
  --grey-band: #F0EFEF;    /* grey sections and cards (color_42) */
  --check: #C0C0C0;        /* check-mark icons */
  --black: #050507;        /* FAQ band, footer */
  --line-dark: #262626;    /* FAQ dividers on black */
  --shadow-band: 0 5px 39px rgba(0, 0, 0, .38);
  --font: "Manrope", Arial, Helvetica, sans-serif;
  --font-display: "Abel", "Manrope", Arial, sans-serif;
  --header-h: 94px;
  --w: 1090px;             /* main content width */
  --w-narrow: 990px;       /* cards, icon rows */
  --pattern-light: url("/img/d18f59_c5ddcf3188de47e4bfad8c3c20121ae4_mv2.webp");  /* Patterns-07 (grid) */
  --pattern-dark: url("/img/d18f59_d8e97c8f3c3f4bae9fd96adcf50593fd_mv2.webp");   /* Patterns-05 (chevrons) */
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='20 20 160 160'%3E%3Cpath d='M100 20c-44.18 0-80 35.82-80 80s35.82 80 80 80 80-35.82 80-80-35.82-80-80-80zm-9.761 113.896L63.124 107.6a2.001 2.001 0 0 1-.022-2.85l9.568-9.573a2 2 0 0 1 2.791-.037l14.776 14.01a2 2 0 0 0 2.808-.055l34.829-35.699a2 2 0 0 1 2.846-.018l9.547 9.547a2 2 0 0 1 .013 2.815l-47.22 48.12a2 2 0 0 1-2.821.036z'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M18.2546728,8.18171329 L18.9617796,8.88882007 L12.5952867,15.2537133 L12.5978964,15.2558012 L11.8907896,15.962908 L11.8882867,15.9607133 L11.8874628,15.9617796 L11.180356,15.2546728 L11.1812867,15.2527133 L4.81828671,8.88882007 L5.52539349,8.18171329 L11.8882867,14.5457133 L18.2546728,8.18171329 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.4; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; font-size: 14px; }
.skip-link:focus { top: 8px; }

/* ---------- Header (sticky, transparent over the hero, black after scroll) ----------
   site.js adds .is-scrolled (black, after a small scroll) and .is-hidden (slid up while scrolling down,
   back on scrolling up) — Wix: bg/shadow .3s, slide .2s ease-in. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); margin-bottom: calc(var(--header-h) * -1);
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .2s ease-in;
}
.site-header.is-scrolled { background: #010101; border-bottom-color: transparent; box-shadow: 0 1px 32px rgba(0, 0, 0, .16); }
html:not(.nav-open) .site-header.is-hidden:not(:has(:focus-visible)) { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 18px; }
.site-header__logo { display: block; flex: none; width: 184px; }
.site-header__logo img { width: 184px; height: auto; }
.site-nav { display: flex; align-items: center; }
.site-nav__list { display: flex; list-style: none; gap: 0 28.5px; margin-right: 27px; }
.site-nav__list a {
  display: block; padding: 6px 0; color: #fff; text-decoration: none; text-underline-offset: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .65px; text-transform: uppercase;
}
.site-nav__list a:hover { color: #F0EFEF; text-decoration: underline; transition: color .08s; }   /* Wix: underline, colour 240,239,239 */
.site-nav__list a[aria-current="page"] { color: #fff; text-decoration: underline; transition: color .08s; }
.site-nav .site-nav__cta { width: 177px; min-height: 31px; height: 31px; padding: 0; font-size: 15px; font-weight: 400; border-radius: 3px; margin-top: -2px; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .site-nav__list { gap: 0 18px; margin-right: 18px; }
  .site-nav__list a { font-size: 12px; letter-spacing: .05em; }
}
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .site-header__inner { padding: 0 12px 0 14px; }
  .site-header__logo, .site-header__logo img { width: 140px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -8px; }
  .nav-toggle__bars::after { top: 8px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 28px;
    padding: 36px 20px; background: #010101; overflow-y: auto;
  }
  .nav-open .site-nav { display: flex; }
  .nav-open .site-header { background: #010101; }
  .site-nav__list { flex-direction: column; align-items: center; gap: 6px; margin: 0; }
  .site-nav__list a { font-size: 16px; letter-spacing: .08em; padding: 10px 0; }
  .site-nav .site-nav__cta { width: auto; min-height: 42px; height: 42px; padding: 0 24px; margin-top: 0; }
}
.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 22px;
  background: var(--red); color: #fff; border: 0;
  font: 500 15px/1.2 var(--font); text-transform: uppercase; text-decoration: none; text-align: center;
  transition: all .2s ease; cursor: pointer;
}
.btn:hover { background: var(--red-hover); letter-spacing: .05em; }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid #fff; }
/* Outline buttons: on hover Wix fills them and drops the border (border kept in the bg colour so the box doesn't jump). */
.btn--outline-light:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn--outline-dark { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline-dark:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 17px; }
.btn-row--center { justify-content: center; }

/* ---------- Hero (photo under 61% black, white text, left aligned) ---------- */
.hero {
  position: relative; z-index: 2; overflow: hidden; background: #000; color: #fff;
  min-height: 640px; box-shadow: var(--shadow-band);
}
.hero--home { min-height: 833px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .39; }
.hero__content { position: relative; max-width: 800px; padding: 130px 70px 70px; }
.hero h1, .hero h2 { color: #fff; }
.hero__display {
  font: 700 120px/1em var(--font-display); letter-spacing: -.05em; margin-bottom: 23px;
}
.hero__display .accent, .accent { color: var(--red); }
.hero__title { font-size: 32px; font-weight: 600; line-height: 1.4; text-transform: uppercase; margin-bottom: 15px; max-width: 640px; }
.hero__content p { max-width: 670px; margin-bottom: 13px; }
.hero__content ul { padding-left: 20px; margin-bottom: 28px; }
.hero .btn { min-width: 197px; }

/* Hero glide-in (Wix "GlideIn" on page load): every hero item slides in from the left, 1.2s, all together.
   Only on the pages where Wix had it; picked by the canonical URL so it is in force before the first paint. */
html:has(link[rel="canonical"]:is([href$=".ca/"], [href$=".ca/about"], [href$=".ca/how-we-work"], [href$=".ca/custom-homes"], [href$=".ca/projects"], [href$=".ca/secondary-suite-requirements-bylaws-calgary"]))
  .hero__content :is(.hero__content > :not(.btn-row), .btn-row > .btn) {
  animation: hero-glide-in 1.2s cubic-bezier(.645, .045, .355, 1) both;
}
@keyframes hero-glide-in { from { transform: translateX(calc(-100% - 70px)); } }

/* Hero photo parallax (/contact, /projects): Wix keeps the photo one screen tall and site.js moves it at
   0.8x the scroll inside the section, so on screen it drifts 0.2x (70px per 350px). */
html:has(link[rel="canonical"]:is([href$=".ca/contact"], [href$=".ca/projects"])) .hero__bg {
  bottom: auto; height: max(100vh, 100%); will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero__content * { animation: none !important; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding: 86px 0; }
.sec--pattern { background: #fff; }            /* white + faint grid (Patterns-07 at 10%) */
.sec--pattern::before, .sec--dark::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.sec--pattern::before { background-image: var(--pattern-light); opacity: .1; }
.sec--grey { background: var(--grey-band); }
.sec--dark { background: #000; color: #fff; z-index: 1; box-shadow: var(--shadow-band); } /* chevron band */
.sec--dark::before { background-image: var(--pattern-dark); }
.sec--black { background: var(--black); color: #fff; z-index: 1; box-shadow: var(--shadow-band); }
.sec--dark h1, .sec--dark h2, .sec--dark h3, .sec--black h1, .sec--black h2, .sec--black h3 { color: #fff; }
.sec > * { position: relative; z-index: 1; }

.container { width: 100%; max-width: calc(var(--w) + 40px); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: calc(var(--w-narrow) + 40px); }

.sec-head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.sec-head--wide { max-width: 980px; }
.sec-title { font-size: 28px; font-weight: 600; line-height: 1.4; }
.sec-head .sec-title { margin-bottom: 10px; }
.sec-intro { font-size: 16px; line-height: 1.6; }
.sec-foot { text-align: center; margin-top: 36px; }
.note { font-size: 15px; text-align: center; margin-top: 30px; }
.lead-strong { font-size: 18px; font-weight: 500; color: var(--ink); text-align: center; }
.sec--dark .sec-intro, .sec--black .sec-intro { color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; align-items: flex-start; background: var(--grey-band); padding: 24px 23px 29px; }
.card--white { background: #fff; }
.card__icon { align-self: center; width: 72px; height: 70px; margin-bottom: 22px; }
.card__icon svg { width: 100%; height: 100%; }
.card__title { font-size: 23px; font-weight: 600; line-height: 1.4; margin-bottom: 16px; }
.card p { margin-bottom: 16px; }
.card .btn { margin-top: auto; }
.card__imglink { display: block; width: 100%; }
.card:has(> .card__imglink) { transition: transform .4s ease-in-out; }   /* project cards: Wix scales the card 1.02 on hover */
.card:has(> .card__imglink):hover { transform: scale(1.02); }
.card__img { width: 100%; aspect-ratio: 448 / 320; object-fit: cover; margin-bottom: 30px; }

/* ---------- Image + text split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split--top { align-items: start; }
.split__img { width: 100%; height: auto; object-fit: cover; }
.split--top .split__img { margin-top: 6px; }
.split .sec-title { margin-bottom: 14px; }
.split p { margin-bottom: 16px; }
.split .btn { margin-top: 26px; }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 29px; margin: 0 0 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px;
  background: var(--check); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.checklist strong, .checklist b { font-weight: 600; }
.bullets { padding-left: 20px; }
.bullets ul { padding-left: 20px; list-style: circle; }

/* ---------- Icon row (3 columns: icon, title, text) ---------- */
.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 54px; }
.icon-row__item { display: flex; flex-direction: column; }
.icon-row__icon { width: 92px; height: 80px; margin: 0 auto 20px; }
.icon-row__icon svg { width: 100%; height: 100%; }
.icon-row__title { font-size: 21px; font-weight: 600; margin-bottom: 14px; }

/* ---------- FAQ accordion (<details>) ---------- */
.faq { max-width: 980px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat; mask: var(--icon-chevron) center / contain no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary h3 { font-size: 18px; font-weight: 500; color: inherit; }
.faq .faq__a { padding: 0 0 30px; color: #C0C0C0; }
.faq .faq__a p + p { margin-top: 12px; }
.faq--light details { border-bottom-color: #d4d4d4; }
.faq--light .faq__a { color: var(--text); }
.sec--black .faq summary, .sec--dark .faq summary { color: #fff; }

/* ---------- Gallery (projects) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Footer ---------- */
/* Wix: whole footer = black + chevrons at 27 %; the upper part (298px) = black + chevrons at full strength,
   so the copyright strip below reads darker. Text light grey, phone white, links have no hover change. */
.site-footer { position: relative; z-index: 1; background: #010101; color: #C0C0C0; font-size: 15px; line-height: 1.7; box-shadow: 0 5px 38px rgba(0, 0, 0, .39); }
.site-footer::before { background-image: var(--pattern-dark); opacity: .27; }
.site-footer > * { position: relative; z-index: 1; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer__main {
  display: grid; grid-template-columns: minmax(280px, 1fr) 208px 165px 160px 250px;
  padding: 55px 27px 45.5px 21px; align-items: start;
  background: #010101 var(--pattern-dark) center / cover no-repeat;
}
.site-footer__logo { display: block; width: 220px; margin-bottom: 21px; }
.site-footer__about { max-width: 290px; line-height: 1.5; }
.site-footer__col { padding-top: 50px; }
.site-footer h6 { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; text-transform: uppercase; margin-bottom: 13px; }
.site-footer ul { list-style: none; }
.site-footer__contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer__contact svg { flex: none; width: 15px; height: 15px; fill: var(--red); }
.site-footer__contact a[href^="tel"] { color: #fff; }
.site-footer__contact a[href^="mailto"] { text-decoration: underline; }
.site-footer__bottom { padding: 22px 21px 24.5px; line-height: 1.5; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 200px 20px 140px; }
.notfound h1 { font-size: 48px; font-weight: 500; margin-bottom: 14px; }
.notfound p { margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 10px 30px; padding: 48px 20px 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col { padding-top: 22px; }
}
@media (max-width: 900px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .icon-row { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .sec { padding: 56px 0; }
  .hero, .hero--home { min-height: 0; }
  .hero__content { padding: calc(var(--header-h) + 40px) 20px 56px; }
  .hero__display { font-size: 76px; }
  .hero__title { font-size: 24px; }
  .sec-title { font-size: 24px; }
  .cards--2, .cards--3, .cards--4, .split { grid-template-columns: 1fr; }
  .split--rev-mobile .split__media { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .site-footer__main { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hero__display { font-size: 64px; }
}

/* ---------- Page-level overrides of shared behaviour (Wix measurements, qa/findings.md) ---------- */
/* A7: body text links ("Check if your suite meets…", "See permit steps…") do not change on hover on Wix. */
.sec .b2-textlink a[href]:hover { color: inherit; }
/* A9: contact Submit — Wix keeps the red, only the border colour turns grey (102,102,102). */
.btn.cform__submit:hover { background: var(--red); border-color: rgb(102, 102, 102); }
/* D12: permit page "WHY PERMIT TIMING…" band has no drop shadow on Wix (the other dark bands do). */
.sec--dark:has(.b2-split-timing) { box-shadow: none; }
