/* =============================================================================
   LINK 4 — rebuild of the Squarespace site (captured 2026-06-04)
   Hand-coded static HTML/CSS. No framework, no build step.

   Fonts: the original used an Adobe Typekit kit that is no longer reachable.
   Substitutes chosen to match the captured screenshots:
     headings  = Oswald      (condensed industrial gothic, was Knockout-like)
     body/nav  = Mulish      (geometric humanist, was Proxima Nova-like)
   Colours and proportions were sampled from the PDF captures.
   ========================================================================== */

:root {
  --ink:        #000000;   /* headings */
  --body:       #969696;   /* body copy */
  --body-dark:  #6b6b6b;   /* bold intro copy, captions */
  --nav:        #858585;   /* navigation */
  --rule:       #e6e6e6;   /* hairlines */
  --dark-band:  #2a2522;   /* quotes section */
  --paper:      #ffffff;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Mulish", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Widths are percentages of <main>, which is capped at --maxw. Every
     proportion below was measured off the 2026-06-04 PDF captures. */
  --maxw: 1800px;
  --wrap: 85%;    /* text + grid content   */
  --band: 92.5%;  /* full-width image bands */
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .02em;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: .01em;
}

/* ---------- layout helpers ------------------------------------------------ */
main {
  max-width: var(--maxw);
  margin-inline: auto;
  container-type: inline-size;   /* 1cqw = 1% of the page column */
}

.wrap { width: var(--wrap); margin-inline: auto; }
.band { width: var(--band); margin-inline: auto; }

/* A narrative (text) section between two image bands. The original left a lot
   of air: ~19% of the page width above the text and ~12% below it. */
.section { padding-block: 19% 12%; }
.section--tight { padding-block: 0; }
.section--pull  { padding-top: 4.7%; }   /* quotes sit close to the band above */
.section--snug  { padding-top: 1.3%; }   /* santa catarina hugs the quotes */
.section--lead  { padding-block: 12% 11%; }
.section--first { padding-block: 21.7% 12%; }
.section--foot  { padding-block: 12% 0; }

/* ---------- header -------------------------------------------------------- */
.site-header {
  max-width: var(--maxw);
  margin-inline: auto;
  container-type: inline-size;
  padding: 3.82% 1rem 0;
  text-align: center;
}

.site-header .logo img {
  width: max(58px, 4.12cqw);
  height: auto;
  margin-inline: auto;
}

.site-nav {
  margin-top: 1.5cqw;
  padding-bottom: 2.1cqw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.1cqw;
}

.site-nav a,
.site-nav .has-sub > span {
  font-size: max(9px, .70cqw);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nav);
  white-space: nowrap;
  transition: color .2s ease;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav .has-sub:hover > span { color: var(--ink); }

.site-nav a[aria-current="page"] { color: var(--ink); }

/* "Follow us" dropdown */
.has-sub { position: relative; }
.has-sub .sub {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 100%; padding-top: .9rem;
  display: none; z-index: 20;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.has-sub .sub ul {
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: .8rem 1.3rem;
  display: grid;
  gap: .65rem;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.35);
}

/* ---------- full-width image bands ---------------------------------------- */
.image-band { position: relative; overflow: hidden; }
.image-band > img,
.image-band > figure > .shot > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Rendered aspect ratios, measured band by band off the original captures. */
.ar-hero        { aspect-ratio: 1.634; }
.ar-mission     { aspect-ratio: 1.576; }
.ar-cocreative  { aspect-ratio: 1.714; }
.ar-quotes      { aspect-ratio: 1.834; }
.ar-santa       { aspect-ratio: 1.960; }
.ar-hogares     { aspect-ratio: 1.655; }
.ar-wide        { aspect-ratio: 1.75;  }

/* band with a title (and optionally a button) laid over the photo */
.image-band .overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 2vw, 1.8rem);
  text-align: center;
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
}

.image-band .overlay h1,
.image-band .overlay h2 {
  color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,.28);
  font-size: max(19px, 1.62cqw);
  max-width: 24ch;
}

.image-band .overlay h2.statement {
  max-width: 26ch;
  font-size: max(17px, 1.45cqw);
  line-height: 1.4;
}

.shot { position: relative; overflow: hidden; width: 100%; }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

figure.captioned figcaption {
  font-size: clamp(9px, .72vw, 11px);
  color: var(--body);
  letter-spacing: .04em;
  padding-top: .7rem;
}

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  border: 1px solid currentColor;
  padding: .72em 1.7em;
  font-size: clamp(8.5px, .68vw, 10px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.overlay .btn { color: #fff; }
.overlay .btn:hover { background: #fff; color: var(--ink); }

.btn--ink { color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: #fff; }

/* ---------- centred narrative text ---------------------------------------- */
.narrative { text-align: center; margin-inline: auto; }

.narrative .lede {
  font-size: max(11px, .95cqw);
  font-weight: 700;
  line-height: 2.15;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body-dark);
}

/* the third lead paragraph was set smaller in the original */
.narrative .lede--sm { font-size: max(9px, .67cqw); }

/* ---------- quotes band --------------------------------------------------- */
.quotes {
  background: var(--dark-band);
  color: #fff;
  width: var(--band);
  margin-inline: auto;
  aspect-ratio: 1.834;
  display: grid;
  place-items: center;
  padding: 3% 6%;
}
.quotes .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4% 10%;
  width: 100%;
  max-width: 72cqw;
  margin-inline: auto;
}
.quotes blockquote {
  text-align: center;
  font-size: max(10px, .80cqw);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 2.1;
  text-transform: uppercase;
  color: #fff;
}
.quotes figcaption {
  text-align: center;
  margin-top: .7rem;
  font-size: max(8px, .62cqw);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

/* ---------- beliefs (About us) -------------------------------------------- */
.beliefs { display: grid; }
.belief {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.belief:last-child { border-bottom: 1px solid var(--rule); }
.belief h3 { font-size: clamp(.95rem, 1.05vw, 1.15rem); line-height: 1.35; }
.belief h3 em { font-style: italic; }
.belief p { font-size: clamp(11px, .85vw, 13px); line-height: 1.95; }
.belief strong { color: var(--body-dark); font-weight: 700; }

/* ---------- team ---------------------------------------------------------- */
.page-title { text-align: center; font-size: clamp(1.4rem, 2.2vw, 2.15rem); }

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2%, 1.8rem);
  align-items: start;
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
}
.team figure img { width: 100%; height: 100%; object-fit: cover; }
.team figcaption { padding-top: 1.1rem; }
.team .name {
  display: block;
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 800;
  letter-spacing: .02em;
  color: #3f3f3f;
  line-height: 1.5;
}
.team .role {
  display: block;
  font-size: clamp(10px, .78vw, 12px);
  font-style: italic;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.team .bio { font-size: clamp(10px, .8vw, 12.5px); line-height: 1.9; }

/* ---------- article column (inner pages) ---------------------------------- */
.article { max-width: 640px; margin-left: auto; margin-right: auto; }
.article h2 { font-size: clamp(1.05rem, 1.35vw, 1.4rem); margin-bottom: 1.4rem; }
.article h3 {
  font-family: var(--font-body);
  font-size: clamp(10px, .82vw, 12.5px);
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--body-dark);
  margin-bottom: 1.3rem;
}
.article p { font-size: clamp(11px, .88vw, 13.5px); line-height: 2.1; }
.article p + p { margin-top: 1.5rem; }
.article strong { color: var(--body-dark); font-weight: 800; }

.rule { border: 0; border-top: 1px solid var(--rule); margin-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- galleries ----------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* slideshow — the original used a Squarespace slideshow gallery on three pages */
.slideshow { display: grid; gap: .55rem; }
.slideshow .stage {
  position: relative;
  background: #f4f4f4;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.slideshow .stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.slideshow--contain .stage img { object-fit: contain; }
.slideshow .arrow {
  position: absolute; top: 0; bottom: 0; width: 13%;
  border: 0; background: none; cursor: pointer; z-index: 3;
  color: #fff; opacity: 0; transition: opacity .25s ease;
  display: grid; place-items: center;
  font: 400 clamp(20px, 2.4cqw, 34px)/1 var(--font-body);
  text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.slideshow .arrow.prev { left: 0; }
.slideshow .arrow.next { right: 0; }
.slideshow .stage:hover .arrow,
.slideshow .arrow:focus-visible { opacity: .9; }
.slideshow .stage img.on { opacity: 1; }
.slideshow .thumbs {
  display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap;
}
.slideshow .thumbs button {
  width: clamp(44px, 5vw, 68px);
  aspect-ratio: 3 / 2;
  padding: 0; border: 0; cursor: pointer;
  background: none; opacity: .55; transition: opacity .2s ease;
}
.slideshow .thumbs button.on, .slideshow .thumbs button:hover { opacity: 1; }
.slideshow .thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact form -------------------------------------------------- */
.contact { max-width: 640px; margin-inline: auto; }
.contact h2 { font-size: clamp(1.3rem, 1.9vw, 1.85rem); margin-bottom: 1.1rem; }
.contact .sub {
  font-size: clamp(10px, .82vw, 12.5px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body-dark);
  line-height: 2;
  margin-bottom: 2.4rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field > label {
  display: block;
  font-size: clamp(9px, .72vw, 11px);
  color: var(--body-dark);
  letter-spacing: .03em;
  margin-bottom: .35rem;
}
.field .req { color: #b9b9b9; font-size: .92em; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333;
  padding: .55rem .6rem;
  border: 1px solid #cfcfcf;
  background: #fff;
  border-radius: 0;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: #8f8f8f; }
.form-msg { min-height: 1.4em; font-size: 12px; letter-spacing: .04em; padding-top: .8rem; }

/* ---------- footer -------------------------------------------------------- */
.site-footer { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 1rem clamp(2rem, 4vw, 3.2rem); }
.site-footer .mark,
.site-footer .follow {
  font-family: var(--font-body);
  font-size: clamp(9px, .74vw, 11px);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #4f4f4f;
}
.site-footer .follow { margin-top: clamp(1.8rem, 3.5vw, 3rem); }
.social { display: flex; justify-content: center; gap: 1.1rem; margin-top: 1.1rem; }
.social a { color: #2f2f2f; display: inline-flex; }
.social svg { width: 19px; height: 19px; }
.social a:hover { opacity: .55; }
.footer-nav {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(.7rem, 1.6vw, 1.4rem);
}
.footer-nav a {
  font-size: clamp(8px, .66vw, 10px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nav);
}
.footer-nav a:hover { color: var(--ink); }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  :root { --wrap: 88%; --band: 94%; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
  .belief { grid-template-columns: 1fr; gap: .6rem; }
  .quotes { display: block; aspect-ratio: auto; padding: 12% 8%; }
  .quotes .grid { display: block; max-width: none; }
  .quotes .grid figure + figure { margin-top: 9%; }
  .quotes blockquote { font-size: 11px; }
  body { font-size: 14px; }
  .site-nav { gap: .7rem 1.1rem; }
}

@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .image-band .overlay h1, .image-band .overlay h2 { font-size: 1.15rem; }
  .site-nav a, .site-nav .has-sub > span { font-size: 9px; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- per-page widths, measured off the original captures ------------ */
.band--wrap { width: 85%; }     /* Hogares Sostenibles hero            */
.band--eco  { width: 83.5%; }   /* Ecological Solutions banner         */
.band--cce  { width: 56%; }     /* Co-Creative Experiences slideshow   */

/* The original placed the running text of the inner pages in a column right of
   centre. Kept as it was. */
.article--cce  { margin-left: 36.5%; width: 33.8%; max-width: none; }
.article--wide { margin-left: 29.3%; width: 41%;   max-width: none; }

@media (max-width: 900px) {
  .band--cce, .band--eco, .band--wrap { width: 92%; }
  .article--cce, .article--wide { margin-left: auto; margin-right: auto; width: 85%; }
  .section { padding-block: 14% 10%; }
}

/* slideshow frames, measured per page */
.ar-cce-show { aspect-ratio: 1.5;   }
.ar-hs-show  { aspect-ratio: 1.647; }
