/* HP Development Partners — site styles */

:root {
  --orange: #f47529;
  --orange-deep: #e85d04;
  --orange-soft: #f4a261;
  --cream: #f6efe6;
  --cream-deep: #eadfcf;
  --paper: #faf6f0;
  --burgundy: #2a1012;
  --burgundy-mid: #4a1c22;
  --charcoal: #121010;
  --charcoal-mid: #1c1918;
  --ink: #2a1012;
  --muted: #5c4e48;
  --muted-soft: #7a6c64;
  --line: rgba(42, 16, 18, 0.12);
  --line-strong: rgba(42, 16, 18, 0.22);
  --overlay: rgba(12, 8, 8, 0.48);
  --white: #fffaf5;
  --danger: #8a2e1f;
  --focus: #e85d04;
  --header-h: 4.75rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --measure: 40rem;
  --wide: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--burgundy);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.75rem); font-weight: 420; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 500; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38rem;
}

.wrap {
  width: min(var(--wide), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.prose { max-width: var(--measure); }

/* Header — dark so the lockup (and original PNG) read cleanly */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 16, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 117, 41, 0.18);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(12, 10, 10, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(var(--wide), 100% - var(--gutter) * 2);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 2.55rem;
  width: auto;
  max-width: min(240px, 52vw);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(243, 230, 220, 0.28);
  background: transparent;
  cursor: pointer;
  position: relative;
  color: var(--cream);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; }

.nav-toggle-bar::before { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle-bar::after { transform: translate(-50%, calc(-50% + 6px)); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(243, 230, 220, 0.86);
  padding: 0.25rem 0;
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem !important;
  border: 1px solid var(--orange);
  color: var(--cream) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--charcoal) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--orange-deep);
  color: var(--white);
  border-color: var(--orange-deep);
}

.btn-primary:hover { background: var(--burgundy); border-color: var(--burgundy); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 230, 0.45);
}

.btn-ghost:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

.btn-line {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-line:hover { background: var(--burgundy); color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 8, 8, 0.22) 0%, rgba(12, 8, 8, 0.32) 40%, rgba(12, 8, 8, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--wide), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 5rem 0 4.25rem;
}

.hero .eyebrow { color: var(--orange-soft); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: rgba(246, 239, 230, 0.88); }

.page-hero { min-height: min(62vh, 34rem); }
.page-hero h1 { max-width: 18ch; }

/* Sections */
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-cream { background: var(--cream); }

.section-charcoal {
  background: var(--charcoal);
  color: var(--cream);
}

.section-charcoal h2,
.section-charcoal h3 { color: var(--white); }

.section-charcoal .eyebrow { color: var(--orange-soft); }
.section-charcoal p { color: rgba(246, 239, 230, 0.8); }

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-5);
}

.split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

.frame { position: relative; }

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.frame.wide img { aspect-ratio: 16 / 10; }
.frame.square img { aspect-ratio: 1; }

.frame figcaption,
.caption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Service paths */
.paths {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .paths { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.path-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
  overflow: hidden;
  min-height: 28rem;
}

.path-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.path-card:hover img { transform: scale(1.04); }

.path-body { padding: 1.75rem 1.75rem 2rem; }
.path-body h2 { margin-bottom: 0.5rem; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.path-body p { color: var(--muted); }

.path-more {
  margin-top: 1.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* Process teaser / steps */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.step {
  padding: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 1rem; }

.section-charcoal .step { border-top-color: rgba(246, 239, 230, 0.16); }
.section-charcoal .step p { color: rgba(246, 239, 230, 0.72); }
.section-charcoal .step-num { color: var(--orange-soft); }

/* Gallery */
.gallery {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .gallery {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery .span-2 { grid-column: 1 / -1; }
  .gallery img { height: 100%; min-height: 16rem; }
}

.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.gallery-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-soft);
  font-style: italic;
}

/* Listings */
.listing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .listing-grid { grid-template-columns: 1fr 1fr; }
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.listing-card .listing-photo {
  position: relative;
  display: block;
  text-decoration: none;
}

.listing-card .listing-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.listing-status {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
}

.listing-status.is-ready { background: var(--orange-deep); color: var(--white); }

.listing-body { padding: 1.4rem 1.4rem 1.6rem; }

.listing-body h2,
.listing-body h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.listing-price {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--orange-deep);
  margin: 0.35rem 0 0.2rem;
}

.listing-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--burgundy-mid);
  margin-bottom: 0.85rem;
}

.listing-facts {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
}

.listing-facts li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
}

.listing-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 2px;
  background: var(--orange);
}

.listing-office {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.home-detail {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.photo-strip figure { margin: 0; }

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 640px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* List */
.plain-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.plain-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 2px;
  background: var(--orange);
}

/* CTA band */
.cta-band {
  padding: var(--space-7) 0;
  text-align: center;
}

.cta-band h2 { max-width: 16ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Form */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy-mid);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 0.8rem 0.9rem;
  border-radius: 0;
  appearance: none;
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--orange-deep); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--orange-deep);
}

.field .hint { font-size: 0.85rem; color: var(--muted-soft); }
.field-error { color: var(--danger); font-size: 0.85rem; }

.form-success {
  display: none;
  padding: 1.5rem 0;
}

.form-success.is-visible { display: block; }
.form.is-sent { display: none; }

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.hp-website {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note.is-error { color: var(--danger); }


/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(246, 239, 230, 0.72);
  padding: var(--space-6) 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 3rem;
  }
}

.site-footer .brand-logo { height: 2.4rem; }

.footer-brand p {
  margin-top: 1.1rem;
  max-width: 24rem;
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 1rem;
}

.footer-nav { list-style: none; display: grid; gap: 0.45rem; }
.footer-nav a { text-decoration: none; color: rgba(246, 239, 230, 0.78); }
.footer-nav a:hover { color: var(--white); }

.footer-base {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 239, 230, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.8rem;
  color: rgba(246, 239, 230, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .path-card img { transition: none; }
}

.rule {
  width: 3rem;
  height: 2px;
  background: var(--orange);
  border: 0;
  margin: 0 0 1.5rem;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Mobile nav */
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--charcoal);
    padding: 1.5rem var(--gutter) 2rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
    overflow: auto;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav li { width: 100%; border-bottom: 1px solid rgba(246, 239, 230, 0.1); }

  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: -0.02em;
  }

  .site-nav a::after { display: none; }

  .nav-cta {
    margin-top: 1.25rem;
    width: 100%;
    justify-content: center;
    font-family: var(--sans) !important;
    font-size: 0.8rem !important;
  }

  body.nav-open { overflow: hidden; }

  .path-card { min-height: 0; }
}
