/* ==========================================================================
   C & Co Holdings — site styles
   ========================================================================== */

:root {
  /* Palette drawn from the C & Co wordmark: plum ink, bronze ampersand, cream paper */
  --paper: #fbf8f1;
  --paper-deep: #f4eee3;
  --surface: #fffdf9;
  --ink: #4e1d37;
  --ink-soft: #62304b;
  --muted: #6b5a62;
  --line: #e8dfd1;
  --line-strong: #cdbca6;
  --accent: #8f5d36;
  --accent-light: #dcab7b;
  --bronze: #b07d55;
  --bronze-gradient: linear-gradient(120deg, #c99a6c 0%, #a8774f 45%, #8a5a33 100%);
  --focus: #8f5d36;
  --focus-on-dark: #dcab7b;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible { outline-color: var(--focus-on-dark); }

.sr-only {
  position: absolute !important;
  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: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40rem;
}

.section-title {
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 18ch;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

.on-dark .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .btn--primary:hover { background: var(--accent-light); border-color: var(--accent-light); }

.btn .icon, .text-link .icon { width: 1em; height: 1em; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
  transition: text-decoration-color .2s var(--ease);
  padding-block: .5rem;
}
.text-link:hover { text-decoration-color: var(--ink); }

.arrow { transition: transform .25s var(--ease); }
a:hover .arrow { transform: translateX(3px); }
a:hover .arrow--out { transform: translate(2px, -2px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.wordmark {
  display: block;
  flex: none;
  padding-block: .5rem;
  text-decoration: none;
}
.wordmark img { height: 3.5rem; width: auto; }
@media (max-width: 760px) { .wordmark img { height: 2.875rem; } }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: 600 .875rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px; height: 12px;
}
.nav-toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: .625rem .875rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: .875rem; right: .875rem; bottom: .3rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(78, 29, 55, .35);
    display: none;
  }
  .js .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
  }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.0625rem;
  }
  .site-nav a::after { left: 0; right: auto; width: 1.5rem; bottom: .75rem; }

  /* Without JS, keep nav visible and wrap below wordmark */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tight-top { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--paper-deep); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .eyebrow { color: var(--accent-light); }
.section--dark .lead { color: #eadde3; }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 44rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 1.75rem;
  max-width: 52rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 em {
    background: var(--bronze-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: .08em;
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
}
.hero-grid .hero-inner { order: 1; }
.hero-mark { order: 2; justify-self: center; width: 100%; max-width: 30rem; }
.hero-mark img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { order: 0; justify-self: start; max-width: 17rem; }
}

.hero .actions { margin-top: .75rem; }

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}
.hero-lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line) 25%, var(--line) 75%, transparent);
  margin-right: clamp(3rem, 8vw, 8rem);
}
.hero-lines span:first-child { margin-right: clamp(1.5rem, 4vw, 4rem); }
@media (max-width: 900px) { .hero-lines { display: none; } }

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-intro .container { display: grid; gap: 1.5rem; }

/* ---------- Business cards (Home) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.biz-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem 2rem 2.5rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
.biz-card + .biz-card { border-left: 1px solid var(--line); }
.biz-card:hover { background: var(--surface); }

.biz-card .index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
}
.biz-card h3 { font-size: clamp(1.75rem, 2.6vw, 2.125rem); }
.biz-card p { color: var(--muted); flex: 1; }
.biz-card .text-link { align-self: flex-start; margin-top: .5rem; }

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .biz-card { padding: 2rem 0; }
  .biz-card + .biz-card { border-left: 0; }
  .biz-card:hover { background: transparent; }
}

/* ---------- CTA band ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 2rem 4rem;
}
.cta-copy { display: grid; gap: 1.25rem; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-grid .copy { display: grid; gap: 1.5rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.org-chart {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.org-root {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.2;
  padding: .875rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.org-children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.75rem;
  position: relative;
}
.org-children::before {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 0;
  bottom: 2.15rem;
  width: 1px;
  background: var(--line-strong);
  margin-left: -1px;
}
.org-children li {
  position: relative;
  padding: 1.5rem 0 0 2rem;
}
.org-children li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(1.5rem + 1.15rem);
  width: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}
.org-node {
  display: grid;
  gap: .125rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.org-node strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.3;
}
.org-node span { font-size: .9375rem; color: var(--muted); }
a.org-node {
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
a.org-node .org-text { display: grid; gap: .125rem; }
a.org-node:hover { border-color: var(--ink); background: var(--surface); }
a.org-node .icon { width: 1rem; height: 1rem; }

/* ---------- Our Businesses ---------- */

.biz-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.biz-section:nth-of-type(even) { background: var(--paper-deep); }

.biz-row {
  display: grid;
  grid-template-columns: minmax(0, 5rem) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.biz-row .index {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}
.biz-row .copy { display: grid; gap: 1.125rem; }
.biz-row h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.biz-row .desc { font-size: 1.125rem; color: var(--ink-soft); }

.biz-links {
  display: grid;
  gap: .875rem;
  justify-items: start;
  padding-top: .5rem;
}
.biz-links .btn { width: 100%; max-width: 20rem; justify-content: space-between; }

@media (max-width: 900px) {
  .biz-row { grid-template-columns: 1fr; }
  .biz-row .index { font-size: 2rem; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.config-note {
  margin: 0 0 1.75rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--muted);
  background: var(--paper);
  border-left: 2px solid var(--line-strong);
}

.contact-form { display: grid; gap: 1.375rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.375rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .5rem; }
.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .8rem .95rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible {
  background: var(--surface);
  border-color: var(--focus);
  outline-offset: 0;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.form-status {
  font-size: .9375rem;
  color: var(--ink-soft);
}
.form-status:empty { display: none; }
.form-status.is-notice {
  padding: .875rem 1rem;
  background: #fbf3e2;
  border: 1px solid #e7d3a8;
}

.direct-links { display: grid; gap: 1.5rem; }
.direct-links h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.direct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.direct-list li { border-bottom: 1px solid var(--line); }
.direct-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem .25rem;
  text-decoration: none;
  color: var(--ink);
}
.direct-list a:hover { background: var(--surface); }
.direct-list .name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
}
.direct-list .url {
  display: block;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--muted);
  margin-top: .125rem;
}
.direct-list .icon { width: 1.125rem; height: 1.125rem; flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(220, 171, 123, .28);
  color: #eadde3;
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(251, 248, 241, .16);
}
.footer-brand { margin: 0; }
.footer-brand img { width: 13rem; height: auto; }

.footer-col h2 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem 0;
  color: #f1e8ec;
  text-decoration: none;
  font-size: .9375rem;
}
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .3em; }
.footer-col .icon { width: .8em; height: .8em; opacity: .7; }

.footer-bottom {
  padding-top: 1.75rem;
  font-size: .875rem;
  color: #cdb9c3;
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
.org-chart { margin: 0; }

/* ---------- Closing line ---------- */

.closing { padding-block: clamp(3.5rem, 8vw, 6rem); }
.closing-line {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.closing-line em { font-style: italic; color: var(--accent-light); }

.footer-tagline {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: #eadde3;
}
