/* =========================================================
   ARRIC Group — stylesheet
   Colors live in :root. Photos: see the "PHOTOS" block —
   drop a .jpg with the listed name into /images and it
   automatically replaces the illustration behind it.
   ========================================================= */

:root {
  --ivory:   #EFEBE3;
  --stone:   #D9D2C5;
  --charcoal:#1C1E1D;
  --ink:     #2A2C2B;
  --muted:   #6A6A64;
  --green:   #2E4638;
  --green-2: #243829;
  --brass:   #C29E62;
  --rule:    rgba(28, 30, 29, .14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Manrope", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 84rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--charcoal); color: var(--ivory); padding: .6rem 1rem; }
.skip:focus { left: 1rem; }

/* ---------- PHOTOS ----------
   Each slot stacks: your photo (if present) on top of the illustration. */
.hero-bg  { background-image: url("images/hero.jpg"),       url("images/placeholder-hero.svg"); }
.img-about{ background-image: url("images/about.jpg"),      url("images/placeholder-about.svg"); }
.img-p1   { background-image: url("images/property-1.jpg"), url("images/placeholder-property-1.svg"); }
.img-p2   { background-image: url("images/property-2.jpg"), url("images/placeholder-property-2.svg"); }
.img-p3   { background-image: url("images/property-3.jpg"), url("images/placeholder-property-3.svg"); }

.img-slot, .hero-bg {
  background-color: var(--stone);
  background-size: cover;
  background-position: center;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ivory);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(239, 235, 227, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-mark { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; line-height: 1; }
.nav-mark .logo-mark { height: 2.4rem; width: auto; }
.footer-legal { display: flex; align-items: center; gap: .75rem; }
.footer-legal .logo-mark { height: 1.6rem; width: auto; color: rgba(239,235,227,.6); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .9rem; }
.nav-links a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-portal {
  opacity: 1 !important;
  padding: .55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav-portal:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.nav.scrolled .nav-portal:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: 0;
  transform: scale(1.06);
  animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,21,.55) 0%, rgba(20,22,21,0) 28%),
    linear-gradient(0deg, rgba(20,22,21,.92) 0%, rgba(20,22,21,.55) 38%, rgba(20,22,21,.15) 70%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(3.5rem, 9vh, 6.5rem);
  display: grid; gap: 2rem;
  align-items: end;
}
@media (min-width: 60rem) {
  .hero-content { grid-template-columns: 1.5fr 1fr; }
}
.hero-mark {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 15vw, 13.5rem);
  line-height: .84;
  letter-spacing: -.02em;
  opacity: 0;
  animation: rise 1.2s .3s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-copy {
  padding-bottom: .6rem;
  border-left: 1px solid rgba(239,235,227,.35);
  padding-left: 1.5rem;
  opacity: 0;
  animation: rise 1.2s .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-tag { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; max-width: 18ch; }
.hero-sub { margin-top: 1rem; font-size: .95rem; color: rgba(239,235,227,.72); }

.hero-scroll {
  position: absolute; z-index: 1;
  right: var(--pad); bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .8rem; letter-spacing: .06em; text-decoration: none;
  color: rgba(239,235,227,.8);
}
.hero-scroll span { width: 1px; height: 3rem; background: rgba(239,235,227,.3); position: relative; overflow: hidden; }
.hero-scroll span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--brass);
  animation: drip 2.2s ease-in-out infinite;
}
@media (max-width: 59.99rem) { .hero-scroll { display: none; } }

@keyframes settle { to { transform: scale(1); } }
@keyframes rise   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drip   { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- Shared section bits ---------- */
section h2, .footer h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.01em;
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--rule); }
.stats-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .stats-inner { grid-template-columns: .8fr 1fr 1.2fr; } }
.stat { padding: clamp(2.25rem, 5vw, 3.75rem) var(--pad); }
.stat + .stat { border-top: 1px solid var(--rule); }
@media (min-width: 52rem) {
  .stat + .stat { border-top: 0; border-left: 1px solid var(--rule); }
}
.stat-big {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  line-height: 1;
  color: var(--charcoal);
}
.stat:first-child .stat-big { font-size: clamp(4rem, 8vw, 7rem); line-height: .8; }
.stat-label { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.stat:first-child { display: flex; align-items: flex-end; gap: 1rem; }
.stat:first-child .stat-label { margin: 0 0 .35rem; max-width: 7ch; line-height: 1.3; }
.stat:not(:first-child) { display: flex; flex-direction: column; justify-content: flex-end; }

/* ---------- About ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 56rem) { .about { grid-template-columns: 1.15fr 1fr; } }
.about-img { aspect-ratio: 4 / 5; width: 100%; }
@media (min-width: 56rem) { .about-img { margin-left: calc(var(--pad) * -1); } }
.about-text h2 { margin-bottom: 2rem; }
.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.22;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  max-width: 26ch;
}
.about-text p:last-child { color: var(--muted); max-width: 44ch; }

/* ---------- Operations ---------- */
.ops {
  background: var(--stone);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.ops-head {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
}
.ops-head p { max-width: 30ch; color: var(--muted); }
.ops-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: transparent;
}
@media (min-width: 40rem) { .ops-grid { grid-template-columns: 1fr 1fr; } .op { min-height: 19rem; } }
@media (min-width: 70rem) { .ops-grid { grid-template-columns: repeat(4, 1fr); } }
.op {
  background: var(--ivory);
  padding: 2.25rem 1.75rem 2.5rem;
  display: flex; flex-direction: column;
  transition: background-color .35s ease, color .35s ease;
}
.op svg {
  width: 2.5rem; height: 2.5rem;
  fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s ease;
}
.op h3 {
  margin-top: auto; padding-top: 2rem;
  font-family: var(--serif); font-size: 2rem; line-height: 1.05;
}
.op p { margin-top: .9rem; font-size: .95rem; color: var(--muted); transition: color .35s ease; }
.op:hover { background: var(--green); color: var(--ivory); }
.op:hover svg { stroke: var(--brass); }
.op:hover p { color: rgba(239,235,227,.75); }

/* ---------- Portfolio ---------- */
.portfolio {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
}
.portfolio-head {
  display: grid; gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .portfolio-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .portfolio-head p { justify-self: end; }
}
.portfolio-head p { max-width: 34ch; color: var(--muted); }
.portfolio-grid { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
.portfolio-grid .img-slot { aspect-ratio: 1 / 1; overflow: hidden; }
.p-large { aspect-ratio: 4 / 3 !important; }
@media (min-width: 48rem) {
  .portfolio-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
  .p-large { grid-row: span 2; aspect-ratio: auto !important; min-height: 36rem; }
  .portfolio-grid .img-slot:not(.p-large) { aspect-ratio: auto; }
}
.portfolio-grid .img-slot { transition: background-size .8s ease, filter .6s ease; filter: saturate(.92); }
.portfolio-grid .img-slot:hover { filter: saturate(1.05); }

/* ---------- Residents ---------- */
.residents {
  background: var(--green-2);
  color: var(--ivory);
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  position: relative; overflow: hidden;
}
.residents::before {
  /* faint window-grid texture, echoing a building facade */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(239,235,227,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,235,227,.045) 1px, transparent 1px);
  background-size: 64px 88px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.residents-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: 3rem;
}
@media (min-width: 56rem) { .residents-inner { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.residents h2 { font-size: clamp(3.25rem, 8vw, 7rem); }
.residents-lead {
  margin-top: 1.5rem;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2;
  color: rgba(239,235,227,.8); max-width: 20ch;
}
.residents-list { list-style: none; margin: 0 0 2.25rem; padding: 0; border-top: 1px solid rgba(239,235,227,.18); }
.residents-list li { padding: .95rem 0; border-bottom: 1px solid rgba(239,235,227,.18); }
.btn {
  display: inline-block;
  padding: 1.1rem 2.1rem;
  background: var(--brass);
  color: var(--charcoal);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--ivory); transform: translateY(-2px); }
.residents-note { margin-top: 1.5rem; font-size: .82rem; color: rgba(239,235,227,.55); }

/* ---------- Footer / contact ---------- */
.footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: clamp(4.5rem, 9vw, 7rem) 0 2rem;
  overflow: hidden;
}
.footer-top {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: 3rem;
}
@media (min-width: 56rem) { .footer-top { grid-template-columns: 1.5fr 1fr; } }
.footer-contact p { margin: 1.25rem 0 1.75rem; color: rgba(239,235,227,.6); }
.footer-email {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
  line-height: 1.1;
  text-decoration: none;
  background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat;
  transition: background-size .4s ease;
  word-break: break-word;
}
.footer-email:hover { background-size: 100% 1px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-content: start; }
.footer-cols a { display: block; padding: .3rem 0; text-decoration: none; color: rgba(239,235,227,.85); }
.footer-cols a:hover { color: var(--brass); }
.footer-h { font-size: .82rem; color: rgba(239,235,227,.45); margin-bottom: .9rem; }
.footer-mark {
  max-width: var(--max); margin: clamp(4rem, 8vw, 6rem) auto 0; padding: 0 var(--pad);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 15vw, 14.5rem);
  line-height: .8;
  letter-spacing: -.03em;
  color: rgba(239,235,227,.07);
  white-space: nowrap;
  user-select: none;
}
.footer-base {
  margin: 2rem max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(239,235,227,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(239,235,227,.5);
}

/* ---------- Scroll reveal (only when script.js runs) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .stat:nth-child(2), .js-reveal .op:nth-child(2), .js-reveal .img-p2 { transition-delay: .1s; }
.js-reveal .stat:nth-child(3), .js-reveal .op:nth-child(3), .js-reveal .img-p3 { transition-delay: .2s; }
.js-reveal .op:nth-child(4) { transition-delay: .3s; }

/* ---------- Mobile ---------- */
@media (max-width: 52rem) {
  .nav-links a:not(.nav-portal) { display: none; }
  .nav-links { gap: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-bg { transform: none; }
  .hero-mark, .hero-copy { opacity: 1; }
}
