/* ================================================================
   Crown & Oak parent page (/) and Crown & Oak Energy (/energy).
   Loaded AFTER co-public.css. It wears that file's tokens, fonts and
   type scale and adds only the layout the real estate page has no
   class for. Not the final structure: delete this file and the two
   pages and nothing else on the site changes.
   ================================================================ */

.ch-hero { padding: 10rem 3rem 5rem; position: relative; background: var(--bg-primary); }
.ch-hero-inner { max-width: 1200px; margin: 0 auto; }
.ch-title {
  font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 230; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 1.5rem; max-width: 900px;
}
.ch-lede {
  color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7;
  max-width: 640px; font-weight: 300;
}
.ch-entity {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  max-width: 640px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
}

.ch-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Three business panels */
.ch-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ch-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 2.25rem 2rem; display: flex; flex-direction: column; gap: 0.85rem;
  text-decoration: none; color: inherit; transition: border-color 0.3s;
}
.ch-panel:hover { border-color: var(--border-hover); }
.ch-panel-kicker {
  font-family: var(--condensed); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.ch-panel-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 420; letter-spacing: -0.01em; line-height: 1.2; }
.ch-panel-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }
.ch-panel-source { font-size: 0.72rem; color: var(--text-muted); }
.ch-panel-go {
  margin-top: auto; padding-top: 0.75rem;
  font-family: var(--condensed); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.ch-panel-go span { font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--text-muted); margin-left: 0.5rem; }

/* How we work: numbered commitments */
.ch-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.ch-point { background: var(--bg-card); border: 1px solid var(--border); padding: 1.75rem 1.75rem 1.6rem; }
.ch-point-num { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); font-weight: 500; display: block; margin-bottom: 0.75rem; }
.ch-point-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 420; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.ch-point-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }

/* Company details for a counterparty check */
.ch-details { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--border); max-width: 860px; margin: 0; }
.ch-details dt, .ch-details dd { padding: 0.95rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.ch-details dt {
  font-family: var(--condensed); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); padding-top: 1.15rem;
}
.ch-details dd { font-size: 0.95rem; color: var(--text-primary); line-height: 1.6; }
.ch-details a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-hover); transition: border-color 0.3s; }
.ch-details a:hover { border-bottom-color: var(--accent); }

.ch-fineprint { margin-top: 2rem; font-size: 0.78rem; color: var(--text-muted); max-width: 640px; line-height: 1.6; }

/* Contact buttons: the host's buttons, without the hero's entrance animation */
.ch-cta { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.ch-cta .btn-primary, .ch-cta .btn-secondary { text-transform: none; letter-spacing: 0.05em; }

/* Leadership card: the host's .team-card, with a photo in the avatar box */
.ch-team { max-width: 720px; }
.ch-team .team-avatar { width: 96px; height: 96px; overflow: hidden; }
.ch-team .team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-team .team-link { margin-right: 1.25rem; }

/* Crest only nav logo on the parent page */
.ch-crest .nav-logo-img { width: 44px; }

/* in page anchors stop below the tab bar (36px, set in the bar's own block) and the fixed header */
.ch-page section { scroll-margin-top: 74px; }

@media (max-width: 900px) {
  .ch-panels { grid-template-columns: 1fr; }
  .ch-points { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ch-hero { padding: 8.5rem 1.25rem 3rem; }
  .ch-page section { padding: 3.5rem 1.25rem; }
  .ch-points { grid-template-columns: 1fr; }
  .ch-cta { flex-direction: column; align-items: stretch; }
  .ch-cta .btn-primary, .ch-cta .btn-secondary { justify-content: center; }
  .ch-details { grid-template-columns: 1fr; }
  .ch-details dt { border-bottom: none; padding-bottom: 0; }
  .ch-details dd { padding-top: 0.3rem; }
  .ch-team .team-card { flex-direction: column; }
  .ch-page footer { padding: 2.5rem 1.25rem; }
  .ch-page .footer-right { flex-wrap: wrap; gap: 2rem; }
}
@media (max-width: 480px) {
  /* the phone number is in Company details and the footer; the bar has no room for it */
  .ch-page .nav-direct { display: none; }
  .ch-page .theme-toggle { margin-left: auto; margin-right: 0.5rem; }
}
@media (min-width: 901px) {
  /* four standards sit two by two */
  .ch-points.ch-points-4 { grid-template-columns: repeat(2, 1fr); }
}

/* The host centres #contact; centre every line in it, not only the heading */
.ch-page #contact .section-desc, .ch-page #contact .ch-fineprint { margin-left: auto; margin-right: auto; }
.ch-page #contact .ch-cta { justify-content: center; }

/* Several short paragraphs in one section: the host's spacing is built for one */
.ch-page #role .section-desc { margin-bottom: 1.1rem; }
.ch-page #role .section-desc:last-child { margin-bottom: 0; }

/* "What we never do": a plain list under the role section, in the host's type */
.ch-never-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 420; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.ch-never { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.ch-never li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; font-weight: 300; padding: 0.55rem 0; border-top: 1px solid var(--border); }
.ch-never li:last-child { border-bottom: 1px solid var(--border); }
