/* ============================================================
   Superior Building — bespoke styles
   Bone background, charcoal text, warm clay accent.
   Architectural / residential / hospitality register.
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-soft: #efe9df;
  --bg-dark: #1c1816;
  --line: rgba(28, 24, 22, 0.10);
  --line-strong: rgba(28, 24, 22, 0.20);
  --clay: #b85c38;
  --clay-2: #9b4a2a;
  --clay-soft: rgba(184, 92, 56, 0.10);
  --text: #1c1816;
  --text-2: #4a423b;
  --text-dim: #8a8378;
  --text-on-dark: #f5efe4;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --container: 1240px;
  --r: 4px;
  --r-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--clay); }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 24px;
  padding: 16px 32px;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 38px; width: auto; }
.nav-primary { display: none; gap: 32px; font-size: 14px; }
.nav-primary a { color: var(--text-2); transition: color .2s; }
.nav-primary a:hover { color: var(--clay); }
.nav-primary .nav-cta {
  padding: 9px 18px; background: var(--bg-dark); color: var(--bg);
  border-radius: var(--r); transition: background .2s;
}
.nav-primary .nav-cta:hover { background: var(--clay); color: var(--bg); }
.nav-call {
  display: none;
  font-weight: 600; font-size: 14px; color: var(--clay);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: 0; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-menu {
  position: fixed; top: 70px; left: 0; right: 0; z-index: 25;
  display: flex; flex-direction: column;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 32px;
}
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .mobile-cta { color: var(--clay); }
@media (min-width: 980px) {
  .nav-primary { display: flex; }
  .nav-call { display: inline-block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-gallery { position: absolute; inset: 0; z-index: -2; }
.hero-gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroCycle 24s infinite;
}
.hero-gallery img:nth-child(1) { animation-delay: 0s; }
.hero-gallery img:nth-child(2) { animation-delay: 6s; }
.hero-gallery img:nth-child(3) { animation-delay: 12s; }
.hero-gallery img:nth-child(4) { animation-delay: 18s; }
@keyframes heroCycle {
  0%, 16%, 100% { opacity: 0; }
  4%, 22% { opacity: 1; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,24,22,0.35) 0%, rgba(28,24,22,0.85) 100%);
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 80px 32px 64px; width: 100%; color: var(--text-on-dark); }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px;
  color: var(--clay); margin: 0 0 28px; font-weight: 600;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-title em { font-family: var(--serif); font-weight: 400; color: var(--clay); }
.hero-sub {
  max-width: 640px; font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(245, 239, 228, 0.88); margin: 0 0 36px; line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-primary, .cta-ghost {
  display: inline-flex; align-items: center;
  padding: 16px 28px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .15s, color .15s, transform .15s;
}
.cta-primary { background: var(--clay); color: #fff; }
.cta-primary:hover { background: var(--clay-2); transform: translateY(-1px); }
.cta-ghost { color: var(--text-on-dark); border: 1px solid rgba(255,255,255,0.3); }
.cta-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* SECTION HEADS */
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 11px;
  color: var(--clay); margin: 0 0 16px; font-weight: 600;
}
.section-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 20px; color: var(--text);
}
.section-title em { font-family: var(--serif); font-weight: 400; color: var(--clay); }
.section-blurb { font-size: 17px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* TRUST STRIP */
.trust-strip { padding: 56px 32px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-strip-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 36px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .trust-strip-inner { grid-template-columns: auto auto auto 1fr; gap: 48px; } }
.trust-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.trust-logo img { height: 64px; width: auto; max-width: 120px; object-fit: contain; }
.trust-logo p { font-size: 12px; color: var(--text-dim); margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
.trust-text { padding-left: 0; }
@media (min-width: 900px) { .trust-text { border-left: 2px solid var(--clay); padding-left: 32px; } }
.trust-headline { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; color: var(--text); margin: 0 0 8px; line-height: 1.3; }
.trust-sub { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* SERVICES */
.services { padding: clamp(80px, 9vw, 130px) 32px; }
.service-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 64px;
}
.service { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .service--alt { grid-template-columns: 1fr 1.2fr; }
  .service--alt .service-media { order: 2; }
  .service--wide { grid-template-columns: 1fr; max-width: 100%; }
  .service--wide .service-media { aspect-ratio: 16/6; }
  .service--wide .service-body { max-width: 760px; margin: 0 auto; text-align: center; }
}
.service-media {
  aspect-ratio: 5/4; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg-soft);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.service:hover .service-media img { transform: scale(1.04); }
.service-num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; color: var(--clay); margin: 0 0 12px; }
.service-body h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(26px, 3vw, 36px); margin: 0 0 16px; color: var(--text); letter-spacing: -0.01em; line-height: 1.15; }
.service-body p { font-size: 17px; color: var(--text-2); margin: 0 0 20px; line-height: 1.6; }
.service-link {
  display: inline-block; font-weight: 600; font-size: 14px; color: var(--clay);
  border-bottom: 1px solid var(--clay); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.service-link:hover { color: var(--clay-2); border-color: var(--clay-2); }

/* PROCESS */
.process { padding: clamp(80px, 9vw, 130px) 32px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-list {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.process-list li {
  padding: 32px; background: var(--bg); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.process-list li:hover { border-color: var(--clay); transform: translateY(-3px); }
.step-num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 36px; color: var(--clay); margin: 0 0 12px; line-height: 1; }
.process-list h3 { font-family: var(--sans); font-weight: 500; font-size: 21px; margin: 0 0 12px; color: var(--text); letter-spacing: -0.01em; }
.process-list p { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.6; }

/* ABOUT */
.about { padding: clamp(80px, 9vw, 130px) 32px; }
.about-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .about-inner { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.about-text .section-title { margin: 8px 0 24px; }
.lede { font-size: 21px; color: var(--text); line-height: 1.55; font-weight: 400; margin: 0 0 18px; }
.about-text p { font-size: 17px; color: var(--text-2); line-height: 1.65; margin: 0 0 18px; }
.about-photo { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CONTACT STRIP */
.contact-strip {
  padding: clamp(80px, 9vw, 130px) 32px;
  background: var(--bg-dark); color: var(--text-on-dark);
  text-align: center;
}
.contact-strip .section-eyebrow { color: var(--clay); }
.contact-strip-inner { max-width: var(--container); margin: 0 auto; }
.contact-strip-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 16px 0 18px; color: var(--text-on-dark);
}
.contact-strip-title em { font-family: var(--serif); font-weight: 400; color: var(--clay); font-style: italic; }
.contact-strip-blurb { font-size: 17px; color: rgba(245, 239, 228, 0.8); margin: 0 0 32px; }
.contact-strip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { padding: 56px 32px 24px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-blurb { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.footer-eyebrow {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px;
  color: var(--clay); margin: 0 0 14px; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--clay); }
.footer-base {
  max-width: var(--container); margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.footer-fineprint a { color: var(--clay); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-gallery img { opacity: 1; }
  .hero-gallery img:nth-child(n+2) { display: none; }
}

@media (max-width: 700px) {
  .topbar { padding: 12px 18px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .nav-call { display: none; }
  .hero-inner { padding: 56px 18px 36px; }
  .trust-strip { padding: 40px 18px; }
  .services, .process, .about, .contact-strip { padding-left: 18px; padding-right: 18px; }
  .footer { padding-left: 18px; padding-right: 18px; }
  .footer-base { flex-direction: column; gap: 10px; }
}
