/* PlusBud Developer — single-page company site.
   Palette: ivory + pine + brass. Brand rule: no red/black tones anywhere. */

:root {
  --ivory: #f5f2ec;
  --paper: #fbfaf7;
  --sand: #e9e3d8;
  --pine: #2d4a42;          /* brand colour (logo) */
  --pine-deep: #1f3530;     /* dark sections */
  --pine-ink: #1e2d2a;      /* body text */
  --muted: #5b6a65;
  --brass: #b4935f;
  --brass-soft: #d6bf94;
  --brass-ink: #86683a;     /* brass text on light backgrounds */
  --line: rgba(30, 45, 42, 0.12);
  --line-light: rgba(245, 242, 236, 0.18);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--pine-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--pine);
  color: var(--ivory);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--brass-soft); }
.eyebrow--brass { color: var(--brass-soft); }
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fc4a3;
  box-shadow: 0 0 0 4px rgba(143, 196, 163, 0.18);
}
.eyebrow:has(.dot)::before { display: none; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--pine);
  text-wrap: balance;
}
.h2--light { color: var(--ivory); }

.address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}
.address svg { font-size: 18px; color: var(--brass-ink); }
.address--light { color: rgba(245, 242, 236, 0.78); }
.address--light svg { color: var(--brass-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 14px/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn svg { font-size: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--brass { background: var(--brass); color: #1b2a26; }
.btn--brass:hover { background: var(--brass-soft); }
.btn--ghost-light { border-color: rgba(245, 242, 236, 0.5); color: var(--ivory); }
.btn--ghost-light:hover { background: var(--ivory); color: var(--pine); border-color: var(--ivory); }

.tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(31, 53, 48, 0.62);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--ivory);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-solid {
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(10px);
  color: var(--pine);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand { display: block; margin-right: auto; padding-block: 6px; }
.brand__logo,
.legal__logo {
  display: block;
  background: currentColor;
  -webkit-mask: url("../img/brand/logo-horizontal.svg") center / contain no-repeat;
  mask: url("../img/brand/logo-horizontal.svg") center / contain no-repeat;
}
.brand__logo { width: 158px; aspect-ratio: 1561 / 398; }

.site-nav { display: flex; gap: 30px; }
.site-nav a,
.header-phone {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.site-nav a:hover,
.header-phone:hover { opacity: 1; }
.site-nav a { position: relative; padding-block: 6px; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}
.header-phone svg { font-size: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1000px;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  background: var(--pine-deep);
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Top: header legibility. Left: headline sits over the white façade. Bottom: lead + buttons. */
  background:
    linear-gradient(180deg, rgba(25, 44, 39, 0.6) 0%, rgba(25, 44, 39, 0) 26%),
    linear-gradient(90deg, rgba(25, 44, 39, 0.72) 0%, rgba(25, 44, 39, 0.38) 42%, rgba(25, 44, 39, 0) 72%),
    linear-gradient(0deg, rgba(25, 44, 39, 0.9) 0%, rgba(25, 44, 39, 0.55) 38%, rgba(25, 44, 39, 0) 70%);
}
.hero__content { padding-block: calc(var(--header-h) + 40px) clamp(72px, 12vh, 128px); }
.hero__title {
  max-width: 13ch;
  font-family: var(--serif);
  font-weight: 500;
  /* vh term keeps the buttons on the first screen of short laptops */
  font-size: clamp(40px, min(7.4vw, 10.5vh), 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(20, 36, 32, 0.35);
}
.hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(245, 242, 236, 0.86);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(72px, 12vh, 128px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 76px;
  border: 1px solid rgba(245, 242, 236, 0.4);
  border-radius: 24px;
}
.hero__scroll span {
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: var(--ivory);
  animation: scroll-hint 2.2s var(--ease) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-10px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Intro ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.intro__body > p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--pine-ink); }
.pillars { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.pillars li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.pillars__num { font-family: var(--serif); font-size: 22px; color: var(--brass-ink); line-height: 1.3; }
.pillars h3 { font-size: 16px; font-weight: 600; color: var(--pine); }
.pillars p { margin-top: 2px; color: var(--muted); font-size: 15px; }

/* ---------- Feature (on sale) ---------- */

.feature { padding-bottom: var(--section); }
.feature__card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pine-deep);
  box-shadow: 0 40px 80px -40px rgba(31, 53, 48, 0.45);
}
.feature__media { position: relative; overflow: hidden; }
.feature__media picture { height: 100%; }
.feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature__card:hover .feature__img { transform: scale(1.03); }
.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  color: var(--ivory);
}
.feature__lead { margin: 22px 0 34px; color: rgba(245, 242, 236, 0.8); }
.feature__url { margin-top: 14px; font-size: 13px; letter-spacing: 0.06em; color: rgba(245, 242, 236, 0.55); }

/* ---------- Completed project ---------- */

.project { background: var(--paper); border-top: 1px solid var(--line); }
.project__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.project__lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 34rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block: clamp(40px, 6vw, 64px);
  border-block: 1px solid var(--line);
}
.facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 28px clamp(12px, 3vw, 36px);
}
.facts__item + .facts__item { border-left: 1px solid var(--line); }
.facts dd {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  color: var(--pine);
  white-space: nowrap;
}
.facts dt { font-size: 14px; color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(160px, 19vw, 250px);
  gap: 12px;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item picture,
.gallery__item img { width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; transition: transform 0.9s var(--ease), filter 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 53, 48, 0);
  transition: background-color 0.4s var(--ease);
}
.gallery__item:hover::after { background: rgba(31, 53, 48, 0.12); }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 7vw, 88px);
  counter-reset: none;
}
.features li { padding: 26px 0; border-top: 1px solid var(--line); }
.features__num { font-family: var(--serif); font-size: 20px; color: var(--brass-ink); }
.features h3 { margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--pine); }
.features p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Aerial banner ---------- */

.aerial {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60vw, 640px);
  overflow: hidden;
  isolation: isolate;
  color: var(--ivory);
  background: var(--pine-deep);
}
.aerial picture { position: absolute; inset: 0; z-index: -2; }
.aerial__img { width: 100%; height: 100%; object-fit: cover; }
.aerial__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25, 44, 39, 0.82) 0%, rgba(25, 44, 39, 0.45) 45%, rgba(25, 44, 39, 0.05) 80%);
}
.aerial__title {
  max-width: 16ch;
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}
.tag--corner { left: auto; right: 16px; }

/* ---------- Footer / contact ---------- */

.site-footer {
  padding-top: var(--section);
  background: var(--pine-deep);
  color: var(--ivory);
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.contact__list { display: grid; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.contact__list li:first-child { border-top: 1px solid var(--line-light); }
.contact__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.contact__value {
  display: inline-block;
  padding-block: 7px; /* 44px+ tap target */
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.contact__value:hover { color: var(--brass-soft); }

.legal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: 40px;
  border-top: 1px solid var(--line-light);
}
.legal__logo {
  width: 120px;
  aspect-ratio: 1133 / 1513;
  color: var(--ivory);
  -webkit-mask-image: url("../img/brand/logo-vertical.svg");
  mask-image: url("../img/brand/logo-vertical.svg");
}
.legal__data {
  font-style: normal;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245, 242, 236, 0.66);
}
.legal__data strong { color: var(--ivory); font-weight: 600; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  color: rgba(245, 242, 236, 0.66);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 37, 33, 0.96);
  color: var(--ivory);
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(22, 37, 33, 0.9); }
.lightbox__figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-height: 100dvh;
  padding: 64px 0 24px;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 2px;
}
.lightbox figcaption {
  display: flex;
  gap: 16px;
  padding-inline: 16px;
  font-size: 14px;
  color: rgba(245, 242, 236, 0.75);
}
.lightbox__count { color: var(--brass-soft); white-space: nowrap; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(245, 242, 236, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox__btn:hover { background: var(--ivory); color: var(--pine); }
.lightbox__close { position: absolute; top: 14px; right: 14px; }

/* ---------- Reveal on scroll (only with JS, respects reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}

/* ---------- Responsive ---------- */

/* Short screens (laptops ~720px tall, small phones): keep hero CTA on the first screen. */
@media (max-height: 760px) {
  .hero__content { padding-block: calc(var(--header-h) + 24px) 56px; }
  .hero__lead { margin-top: 16px; }
  .hero__actions { margin-top: 24px; }
  .hero__scroll { bottom: 56px; }
}

@media (max-width: 1000px) {
  .site-nav { display: none; }
}

@media (max-width: 900px) {
  .intro__grid,
  .project__head,
  .contact { grid-template-columns: 1fr; }
  .feature__card { grid-template-columns: 1fr; min-height: 0; }
  .feature__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__logo { width: 128px; }
  .header-phone { justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; }
  .header-phone span { display: none; }
  .header-phone svg { font-size: 18px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(25, 44, 39, 0.6) 0%, rgba(25, 44, 39, 0.3) 30%, rgba(25, 44, 39, 0.55) 55%, rgba(25, 44, 39, 0.92) 100%);
  }
  .hero__scroll { display: none; }
  .hero__actions .btn { width: 100%; }
  .btn { padding-inline: 20px; }
  .feature__body { padding: 32px 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts__item + .facts__item { border-left: 0; border-top: 1px solid var(--line); }
  .facts__item { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding-inline: 0; padding-block: 18px; }
  .facts dd { font-size: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 8px; }
  .gallery__item:last-child { grid-column: span 2; }
  .legal { grid-template-columns: 1fr; }
  .legal__logo { width: 88px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__prev,
  .lightbox__next { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { left: calc(50% + 12px); }
  .lightbox__figure { padding: 64px 0 88px; }
  .lightbox__figure img { max-height: calc(100dvh - 200px); }
}

@media (max-width: 360px) {
  .hero__lead { font-size: 15px; }
}
