/* ==========================================================================
   Urban Exteriors & Interiors — site styles
   Static build. Edit tokens in :root to retheme.
   ========================================================================== */

/* Archivo (SIL Open Font License), self-hosted. Variable: weight 100–900, width 62–125%. */
@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #132a40;
  --ink-2: #1f3850;
  --steel: #4c5f72;
  --paper: #f8fafc;
  --concrete: #e8eef4;
  --line: #cdd8e2;
  --accent: #1f6fb2;
  --accent-dark: #17578c;
  --accent-tint: #dcebf7;
  --accent-light: #6cc6e8;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: "wdth" 112;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.7rem + 3.6vw, 4.25rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1240px;
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 4px;
  --header-h: 116px;
}
@media (max-width: 900px) { :root { --header-h: 92px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }

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

h1, h2, h3, h4 {
  font-variation-settings: var(--wide);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--concrete { background: var(--concrete); }
.section--ink { background: var(--ink); color: #e6eef6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a:not(.btn) { color: var(--accent-light); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 58ch; }
.section--ink .lede { color: #b4c4d4; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--steel); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: #b4c4d4; }

.kicker {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section--ink .kicker { color: var(--accent-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { border-color: #fff; color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 92px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.nav__list a:hover { border-bottom-color: var(--line); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav__phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav__phone:hover { color: var(--accent); }
.nav .btn { padding: 0.8rem 1.1rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink);
  margin-right: -0.5rem;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1060px) {
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 1.25rem; }
  .nav__phone { display: block; padding: 0.5rem 0; }
}
@media (max-width: 900px) { .brand__logo { height: 72px; } }

/* ---------- Hero (arch) ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: end;
}
.hero__copy { padding-bottom: 1rem; }
.hero__copy .lede { margin-top: 1.5rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 2.5rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid var(--line); list-style: none; color: var(--steel); font-size: var(--step--1);
}
@media (max-width: 600px) { .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.hero__meta strong { display: block; color: var(--ink); font-size: 1rem; }

/* The arch echoes the logo: photo set inside a stroked arch, standing on a rule. */
.arch {
  position: relative;
  padding: 14px 14px 0;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}
.arch::after {
  content: ""; position: absolute; left: -24px; right: -24px; bottom: -14px; height: 3px; background: var(--ink);
}
.arch__img {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover;
  border-radius: 999px 999px 0 0;
}
.arch figcaption {
  position: absolute; left: 100%; bottom: 0; margin-left: 1rem;
  font-size: 0.8rem; color: var(--steel); line-height: 1.35;
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap;
}

.hero--page .wrap { align-items: center; }
.hero--page .arch { max-width: 400px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .arch::after { left: -12px; right: -12px; }
  .arch { justify-self: center; max-width: 380px; margin-bottom: 14px; }
  .arch figcaption { position: static; writing-mode: horizontal-tb; transform: none; margin: 1.5rem 0 0; white-space: normal; text-align: center; }
  .hero__copy { padding-bottom: 0; }
}

/* ---------- Clients strip ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.clients .wrap {
  display: flex; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.clients__label { color: var(--steel); font-size: var(--step--1); max-width: 16ch; line-height: 1.35; margin: 0; }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 3.5rem; list-style: none; margin: 0; padding: 0; }
.clients__list li { display: flex; align-items: center; }
.clients__list img { width: auto; height: 40px; }
.clients__list .logo-prg { height: 50px; }
.clients__list .logo-gumenick { height: 38px; }
@media (max-width: 600px) {
  .clients__list { gap: 1.25rem 2rem; }
  .clients__list img { height: 30px; }
  .clients__list .logo-prg { height: 38px; }
  .clients__list .logo-gumenick { height: 28px; }
}

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
.sector {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sector__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; flex: 1; }
.sector__body p { color: var(--steel); }
.sector__body ul { margin: 0 0 1.75rem; padding-left: 1.1rem; color: var(--ink-2); }
.sector__body li { margin-bottom: 0.3rem; }
.sector__link { margin-top: auto; font-weight: 600; }
.sector--lead { background: var(--accent); border-color: var(--accent); color: #fff; }
.sector--lead h3 { font-size: var(--step-3); color: #fff; }
.sector--lead p, .sector--lead ul { color: #dcebf7; }
.sector--lead .sector__link { color: #fff; }
.sector--lead .sector__link:hover { color: #fff; text-decoration-thickness: 2px; }
@media (max-width: 960px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- Service list ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); list-style: none; margin: 0; padding: 0; }
.services li { border-top: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.services h3 { margin-bottom: 0.4rem; }
.services p { margin: 0; color: var(--steel); }
.services ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--steel); }
.services ul li { border: 0; padding: 0.15rem 0; }
.section--ink .services li { border-top-color: #2c4560; }
.section--ink .services p, .section--ink .services ul { color: #b4c4d4; }
.services--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .services--three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ---------- Project feature ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.project__copy { position: sticky; top: calc(var(--header-h) + 32px); }
.project__facts { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.project__facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.project__facts span { color: var(--steel); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 16 / 11; }
.gallery figcaption { font-size: 0.85rem; color: var(--steel); margin-top: 0.5rem; }
.gallery--three { grid-template-columns: repeat(3, 1fr); }
.gallery--pair figure:first-child { grid-column: auto; }
.gallery--pair figure:first-child img { aspect-ratio: 3 / 4; }
.project h2 { font-size: var(--step-3); }
.gallery--three figure:first-child { grid-column: auto; }
.gallery--three figure:first-child img { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project__copy { position: static; }
  .gallery--three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .project__facts li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- Occupied-building band ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Concierge feature ---------- */
.concierge {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3.5rem);
}
.concierge__name { font-variation-settings: "wdth" 125; font-weight: 800; font-size: var(--step-3); letter-spacing: 0.02em; line-height: 1; margin-bottom: 1rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.services .checks { padding: 0; margin-top: 0.75rem; }
.services .checks li { padding: 0.55rem 0 0.55rem 1.9rem; border-top: 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.services .checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
@media (max-width: 860px) { .concierge { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.quote { margin: 0; padding-top: 1.75rem; border-top: 3px solid var(--ink); }
.quote blockquote { margin: 0 0 1.25rem; font-size: var(--step-1); line-height: 1.5; }
.quote blockquote p { max-width: none; }
.quote figcaption { color: var(--steel); font-size: 0.95rem; }
.quote figcaption strong { color: var(--ink); display: block; font-size: 1rem; }
.quotes--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quotes--three blockquote { font-size: var(--step-0); }
@media (max-width: 900px) { .quotes, .quotes--three { grid-template-columns: 1fr; } }

/* ---------- Residential strip ---------- */
.aside-strip { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem 2rem; align-items: center; padding: 1.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aside-strip img { width: 120px; height: 120px; object-fit: cover; border-radius: 999px 999px 0 0; }
.aside-strip h3 { margin-bottom: 0.25rem; }
.aside-strip p { margin: 0; color: var(--steel); }
@media (max-width: 720px) {
  .aside-strip { grid-template-columns: 80px 1fr; }
  .aside-strip img { width: 80px; height: 80px; }
  .aside-strip .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact-card { border-top: 3px solid var(--ink); padding-top: 1.5rem; }
.contact-card + .contact-card { margin-top: 2.25rem; }
.contact-card h3 { margin-bottom: 0.2rem; }
.contact-card .role { color: var(--steel); margin-bottom: 0.9rem; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.contact-card dt { color: var(--steel); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.contact-links { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.contact-links li { border-bottom: 1px solid var(--line); }
.contact-links a {
  display: block; padding: 1rem 0; font-size: var(--step-2); font-weight: 600;
  font-variation-settings: var(--wide); letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
.contact-links a:hover { color: var(--accent); }
@media (max-width: 480px) { .contact-links a { font-size: var(--step-1); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b4c4d4; padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #e6eef6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer__logo { width: 120px; margin-bottom: 1.25rem; }
.footer__grid h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9rem; font-variation-settings: normal; letter-spacing: 0; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2c4560; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.875rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .btn-row { margin: 0; }

/* ---------- Page-load moment: arch draws in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .arch { animation: arch-rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .arch::after { animation: rule-draw .7s .35s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  @keyframes arch-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
