/* ==========================================================================
   Pure Palette – site styles
   BRAND VALUES: everything a rebrand needs to change is in :root below
   (see BRANDING.md). Nothing further down hard-codes a brand colour or font.
   ========================================================================== */
:root {
  /* colours (measured from the Wix site) */
  --brand-navy: #2C3954;        /* main text, headings, buttons, logo text */
  --brand-navy-dark: #20303C;   /* secondary text */
  --brand-navy-mid: #3E5075;    /* "SOLD!" badge */
  --brand-accent: #A0138E;      /* accent (magenta) – link hover / focus */
  --brand-soft: #AABCBF;        /* light script-y headings: "Interested in investing?" */
  --brand-band: #E6E6E6;        /* grey panels (contact band, investment cards) */
  --brand-panel: #FCFCFC;       /* very light panel behind the featured testimonial */
  --brand-muted: #8F8F8F;       /* small grey testimonial text */
  --brand-bg: #FFFFFF;          /* page background */
  --brand-nav-active: #8A98A8;  /* current page in the menu */
  --brand-ink: #000000;         /* name under the featured testimonial */

  /* fonts (loaded from Google Fonts in each page <head>) */
  --font-body: 'Questrial', 'Helvetica Neue', Arial, sans-serif;            /* headings + body */
  --font-nav: 'Nunito Sans', 'Avenir Next', Avenir, Arial, sans-serif;       /* stands in for Avenir LT 35 Light */
  --font-nav-weight: 300;
  --font-small: 'Work Sans', Arial, sans-serif;                              /* featured testimonial */

  /* logo (images/logo.svg – wordmark incl. name) */
  --logo-width: 360px;

  /* layout */
  --content: 1280px;
  --gutter: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-navy);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.4;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--brand-accent); }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
p { margin: 0; }
p.gap { height: 1.4em; }
h1, h2, h3 { font-weight: 400; margin: 0; }
figure { margin: 0; }
blockquote { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header / nav ---------- */
.site-header {
  position: relative;
  text-align: center;
  padding: 24px var(--gutter) 0;
}
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--brand-navy); }
.brand img { width: var(--logo-width); max-width: 100%; height: auto; }
.brand:hover { color: var(--brand-navy); }

.site-nav { margin-top: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 21px; }
.site-nav a, .site-nav .more > button {
  font-family: var(--font-nav); font-weight: var(--font-nav-weight);
  font-size: 21.5px; line-height: 1.6; color: var(--brand-navy); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.site-nav a[aria-current="page"], .site-nav .more > button.is-current { color: var(--brand-nav-active); }
.site-nav a:hover, .site-nav .more > button:hover { color: var(--brand-accent); }
.site-nav .more { position: relative; }
.site-nav .more > ul {
  display: none; position: absolute; top: 100%; right: -16px; z-index: 20;
  background: var(--brand-bg); padding: 8px 16px; min-width: 150px; text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.site-nav .more:hover > ul, .site-nav .more:focus-within > ul, .site-nav .more.open > ul { display: block; }
.nav-toggle { display: none; }

/* ---------- shared blocks ---------- */
main { display: block; }
.script-title { margin: 100px auto 90px; padding: 0 var(--gutter); }
.script-title img { margin: 0 auto; width: var(--w); max-width: 100%; height: auto; }
.btn-wrap { text-align: center; margin-top: 36px; }
.btn-wrap.left { text-align: left; }
.btn {
  display: inline-block; border: 1px solid var(--brand-navy); color: var(--brand-navy);
  background: transparent; font-family: var(--font-body); font-size: 19px; line-height: 1.2;
  padding: 20px 26px; min-width: 0; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--brand-navy); color: var(--brand-bg); }
.btn-block { display: block; width: 100%; padding: 12px; }
.soft-title { color: var(--brand-soft); font-size: 31px; line-height: 1.3; text-align: center; }
.soft-title.big { font-size: 50px; text-align: left; }

/* ---------- home ---------- */
.home-hero { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
.hslider { position: relative; margin-top: 60px; }
.hslider-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  height: 600px;
}
.hslider-track::-webkit-scrollbar { display: none; }
.hslide { flex: 0 0 auto; height: 100%; scroll-snap-align: start; }
.hslide a, .hslide img { height: 100%; width: auto; max-width: none; }
.hslider-btn, .tc-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: none; border: 0; color: var(--brand-navy); font-size: 56px; line-height: 1; cursor: pointer; padding: 8px 14px;
}
.hslider-btn { color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, .4); }
.hslider-btn.prev, .tc-btn.prev { left: 10px; }
.hslider-btn.next, .tc-btn.next { right: 10px; }

.tcarousel { position: relative; max-width: 1440px; margin: 90px auto 0; padding: 0 140px 70px; }
.tc-track { max-width: 920px; margin: 0 auto; }
.tslide { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.tslide[hidden] { display: none; }
.tslide img { width: 300px; height: 380px; object-fit: cover; }
.tslide blockquote p { font-size: 21px; line-height: 1.5; }
.tslide blockquote footer, .testimonial footer { font-size: 28px; margin-top: 22px; }
.tc-btn { top: calc(50% - 35px); }
.tc-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 12px; }
.tc-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--brand-navy); background: var(--brand-navy); cursor: pointer; }
.tc-dots button[aria-current="true"] { background: transparent; width: 10px; height: 10px; }

.contact-band {
  display: grid; grid-template-columns: 1fr 1fr; max-width: var(--content); margin: 90px auto 0;
  min-height: 360px;
}
.cb-text { background: var(--brand-band); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; font-size: 20px; line-height: 1.85; }
.cb-text a, .contact-details a { text-decoration: none; }
.cb-img { height: 360px; overflow: hidden; }
.cb-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: 450px 460px; gap: 70px; justify-content: center; align-items: start; padding: 0 var(--gutter); margin-top: -8px; }
.about-text { padding-top: 8px; }
.about-photo img { width: 460px; height: 620px; object-fit: cover; }
.about-collage { margin-top: 300px; }

/* ---------- galleries ---------- */
.gallery-intro { max-width: 790px; margin: 40px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 20.5px; line-height: 1.12; }
.gallery-intro .btn { min-width: 232px; }
.gallery-intro p.gap { height: 1.12em; }
.gallery { margin-top: 56px; }
.gallery a.lb { display: block; cursor: zoom-in; }
.gallery img, .about-collage img { width: 100%; height: 100%; object-fit: cover; }

/* justified rows ("collage") */
.jgal { margin: 0 auto; display: flex; flex-direction: column; gap: var(--gap); }
.jrow { display: flex; gap: var(--gap); }
.jrow figure { flex-basis: 0; min-width: 0; overflow: hidden; }
.jrow figure a { height: 100%; }
.jfill { flex-basis: 0; }

/* masonry (The Gallery) */
.mgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; }
.mcol { display: flex; flex-direction: column; gap: 80px; }
.mgal img { height: auto; }

/* squares (Grocery Pop) */
.sgal { display: grid; grid-template-columns: repeat(3, 184px); gap: 10px; justify-content: center; }
.sgal figure { aspect-ratio: 1; overflow: hidden; }
.sgal a { height: 100%; }

.gallery-tail { margin: 110px auto 0; text-align: center; }

/* ---------- pure praise ---------- */
.praise-feature { display: grid; grid-template-columns: 620px 1fr; height: 570px; }
.pf-quote { background: var(--brand-panel); padding: 150px 190px 60px 104px; font-family: var(--font-small); font-size: 14px; line-height: 1.85; color: var(--brand-muted); }
.pf-quote footer { color: var(--brand-ink); margin-top: 22px; font-size: 13px; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; }
.praise-list { max-width: 940px; margin: 0 auto; padding: 0 var(--gutter); }
.testimonial { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: center; margin-top: 140px; }
.testimonial:first-child { margin-top: 30px; }
.testimonial a.lb { cursor: zoom-in; }
.testimonial img { width: 300px; height: auto; }
.testimonial blockquote p { font-size: 21px; line-height: 1.5; }

/* ---------- investment ---------- */
.works { max-width: var(--content); margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 140px; }
.work { display: grid; grid-template-columns: 1fr 1fr; }
.work + .work:last-child { margin-top: -128px; }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work:nth-child(1) .work-img { height: 482px; }
.work:nth-child(2) .work-img { height: 812px; }
.work:nth-child(3) .work-img { height: 616px; }
.work-img a { display: block; height: 100%; }
.work-info { position: relative; background: var(--brand-band); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px 140px; }
.work-info h2 { font-size: 37px; margin-bottom: 22px; }
.work-info p { font-size: 21px; line-height: 1.4; }
.work-info strong { font-weight: 700; }
.work-info .sold {
  position: absolute; left: 0; top: 50%; transform: translate(-3%, -82%);
  width: 270px; height: 270px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-navy-mid); color: #fff; font-size: 52px; letter-spacing: -1px;
  clip-path: polygon(50% 0%, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 86% 55%, 98% 75%, 76% 77%, 70% 98%, 52% 86%, 33% 100%, 27% 79%, 5% 79%, 15% 59%, 0% 42%, 20% 33%, 16% 11%, 38% 18%);
}

/* ---------- contact ---------- */
.contact-main { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.contact-col { max-width: 500px; width: 100%; justify-self: center; padding: 0 var(--gutter); }
.contact-details { text-align: center; font-size: 20px; line-height: 1.95; margin-bottom: 14px; }
.contact-form .field { display: block; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--brand-navy); background: transparent;
  font-family: var(--font-nav); font-size: 14px; color: var(--brand-navy); padding: 12px 12px 6px; margin-bottom: 6px; border-radius: 0;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--brand-navy); opacity: .9; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-width: 2px; border-color: var(--brand-accent); }
.contact-form .btn-block { margin-top: 24px; font-size: 20px; }
.hp { position: absolute; left: -9999px; }
.contact-img img { width: 100%; height: 850px; object-fit: cover; }
.contact-sign { display: grid; grid-template-columns: 460px 1fr; gap: 60px; max-width: 980px; margin: 70px auto 0; padding: 0 var(--gutter); }
.cs-img img { width: 460px; height: auto; }
.cs-text { padding-top: 40px; }
.cs-text h2 { font-size: 28px; margin-top: 24px; }

.thanks { max-width: 700px; margin: 80px auto 0; padding: 0 var(--gutter); text-align: center; }
.thanks .soft-title.big { text-align: center; margin-bottom: 24px; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 120px var(--gutter) 40px; font-family: var(--font-nav); font-weight: var(--font-nav-weight); font-size: 14px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; box-shadow: 0 4px 30px rgba(0, 0, 0, .15); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--brand-navy); cursor: pointer; font-size: 48px; line-height: 1; padding: 12px 18px; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 40px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 14px; font-family: var(--font-nav); }

/* ==========================================================================
   Mobile (Wix's mobile layout kicks in below desktop widths)
   ========================================================================== */
@media (max-width: 1100px) {
  .about-intro { grid-template-columns: 1fr 1fr; }
  .about-photo img { width: 100%; height: auto; }
  .praise-feature { grid-template-columns: 1fr 1fr; }
  .pf-quote { padding: 80px 40px 40px; }
  .work-info { padding: 50px 40px; }
  .tcarousel { padding-left: 70px; padding-right: 70px; }
}

@media (max-width: 767px) {
  :root { --gutter: 18px; --logo-width: 220px; }
  body { font-size: 20px; }
  .site-header { padding: 14px 64px 0; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    position: absolute; top: 36px; right: 12px; width: 44px; height: 44px; padding: 8px;
    background: none; border: 0; cursor: pointer; z-index: 40;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--brand-navy); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 30; margin: 0; background: var(--brand-bg);
    padding: 110px 24px 40px; overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: center; gap: 6px; }
  .site-nav a { font-size: 24px; }
  .site-nav .more > button { display: none; }
  .site-nav .more > ul { display: flex; flex-direction: column; align-items: center; gap: 6px; position: static; box-shadow: none; padding: 0; min-width: 0; text-align: center; }
  body.nav-open { overflow: hidden; }

  .script-title { margin: 70px auto 64px; }
  .script-title img { width: calc(var(--w) * .33); }
  .btn { font-size: 20px; padding: 16px 4px; min-width: 180px; }

  .hslider { margin-top: 60px; }
  .hslider-track { height: 78vw; gap: 0; }
  .hslide { width: 100%; height: 100%; }
  .hslide a, .hslide img { width: 100%; height: 100%; object-fit: cover; }
  .tcarousel { padding: 0 var(--gutter) 60px; margin-top: 60px; }
  .tc-btn { display: none; }
  .tslide { grid-template-columns: 1fr; gap: 18px; }
  .tslide img { width: 100%; height: auto; }
  .tslide blockquote p { font-size: 20px; }
  .contact-band { grid-template-columns: 1fr; margin-top: 40px; }
  .cb-text { padding: 40px var(--gutter); }
  .cb-img { height: auto; }

  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-collage { margin-top: 60px; }
  .gallery-intro { font-size: 20px; }
  .gallery { padding: 0 var(--gutter); margin-top: 40px; }
  .jgal, .jrow { flex-direction: column; }
  .jgal, .jrow, .mgal, .mcol, .about-collage .jgal { gap: 10px; }
  .jrow figure { flex: none !important; aspect-ratio: auto !important; }
  .jfill { display: none; }
  .gallery img, .about-collage img { height: auto; }
  .about-collage { padding: 0; }
  .about-collage .jgal, .about-collage .jrow { gap: 0; }
  .about-collage .jrow figure img { width: 100%; }
  .mgal { grid-template-columns: 1fr; }
  .sgal { grid-template-columns: 1fr; }

  .praise-feature { grid-template-columns: 1fr; height: auto; }
  .pf-quote { padding: 40px var(--gutter); order: 2; }
  .testimonial { grid-template-columns: 1fr; margin-top: 60px; }
  .testimonial img { width: 100%; }

  .works { gap: 50px; }
  .work, .work + .work:last-child { grid-template-columns: 1fr; margin-top: 0; }
  .work-info { padding: 40px var(--gutter) 50px; }
  .work-info h2 { font-size: 28px; }
  .work-info p { font-size: 19px; }
  .work-info .sold { width: 190px; height: 190px; font-size: 38px; left: 50%; top: 0; transform: translate(-50%, -40%); }
  .work .work-img { height: auto !important; }
  .work-info h2 { margin-top: 40px; }
  .work:nth-child(2) .work-info { padding-top: 110px; }

  .contact-main { grid-template-columns: 1fr; }
  .contact-details { text-align: left; }
  .contact-form .btn-block { width: 120px; margin: 24px auto 0; }
  .contact-img { margin-top: 50px; }
  .contact-img img { height: auto; }
  .contact-sign { grid-template-columns: 1fr; gap: 24px; margin-top: 60px; }
  .cs-img img { width: 100%; }
  .soft-title.big { font-size: 38px; }

  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); box-shadow: none; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
