* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f1ea;
  --paper: #fcfaf6;
  --text: #1d1a17;
  --muted: #5d5751;
  --border: rgba(46, 36, 31, .12);
  --red: #8c1d18;
  --max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, .7), transparent 36%), linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22)), var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

main {
  position: relative;
  background-image: url('assets/bamboo ink wash.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 100%;
  opacity: 1;
  background-attachment: fixed;
}

/* main::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background-image: url('assets/bamboo ink wash.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: .5;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 0;
} */

main > * {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(46, 36, 31, .10);
  background: rgba(252, 250, 246, .95);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.brand-name {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .03em;
}

.brand-subtitle {
  margin-top: 8px;
  font: 0.86rem Arial, Helvetica, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #6a625b;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font: 0.96rem Arial, Helvetica, sans-serif;
}

.site-nav a.active {
  color: var(--red);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 0;
}

.hero-motto {
  text-align: center;
  color: var(--red);
  font-size: 1.16rem;
  font-style: italic;
  margin: 0 0 36px;
}

.hero-main {
  position: relative;
  min-height: 520px;
  padding: 2px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .22em;
  font: 1rem Arial, Helvetica, sans-serif;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
}

.hero h1, .page-title {
  line-height: .99;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.lead, .page-lead, .about-copy p, .content p, .card p {
  color: var(--muted);
}

.hero .lead, .page-lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.17rem;
  line-height: 1.72;
}

.hero-line {
  margin-top: 40px;
  height: 2px;
  width: 118px;
  background: #b1473f;
}

.section {
  position: relative;
  padding: 58px 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto 30px;
  max-width: 930px;
}

.divider:before, .divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(46, 36, 31, .12);
}

.divider.red:before, .divider.red:after {
  background: rgba(162, 74, 67, .45);
}

.section-heading {
  color: var(--red);
  font: 1rem Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.alt-heading {
  color: #2d2621;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #4f4842;
  max-width: 900px;
}

.about-copy p {
  margin: 0 0 20px;
}

.about-copy em, .quote em {
  color: var(--red);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(46, 36, 31, .12);
  border-bottom: 1px solid rgba(46, 36, 31, .12);
}

.principle {
  position: relative;
  padding: 26px 18px 18px;
  text-align: center;
}

.principle + .principle:before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: rgba(46, 36, 31, .12);
}

.principle-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font: 18px Arial, Helvetica, sans-serif;
}

.principle h3 {
  font-size: 1.12rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector-card, .card {
  border: 1px solid rgba(70, 55, 45, .10);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.sector-card {
  min-height: 220px;
  padding: 28px 24px;
  text-align: center;
}

.sector-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 24px;
}

.sector-card h3 {
  font-size: 1.06rem;
  line-height: 1.35;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
}

.page-title {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.content {
  max-width: 900px;
}

.content p, .content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.quote {
  margin: 26px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--red);
  background: rgba(140, 29, 24, .04);
  font-style: italic;
  font-size: 1.18rem;
  color: #3b342f;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  line-height: 1.7;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
}

.contact-card {
  border: 1px solid rgba(70, 55, 45, .10);
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(46, 36, 31, .12);
  font: 1rem Arial, Helvetica, sans-serif;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  font-weight: 700;
  color: #3e3834;
}

.site-footer {
  margin-top: 0;
  background: linear-gradient(180deg, #9b201b 0%, #7d1713 100%);
  color: #fff7f4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 10px 0;
}

.footer-left, .footer-right {
  font: 1.02rem Arial, Helvetica, sans-serif;
}

.footer-left {
  justify-self: start;
}

.footer-right {
  justify-self: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: center;
}

.footer-logo {
  width: 58px;
  height: 58px;
}

.footer-name {
  font: 1.22rem Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mandate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 32px auto 0;
}

.mandate-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(70, 55, 45, .10);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.mandate-icon {
  min-width: 48px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 22px;
  background: rgba(255, 255, 255, .8);
}

.mandate-content h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  color: var(--text);
}

.mandate-content p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.principle-icon-alt {
  background: rgba(140, 29, 24, .05);
}

.sectors-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sector-card-enhanced {
  min-height: 280px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(70, 55, 45, .10);
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.sector-icon-large {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 28px;
  background: rgba(255, 255, 255, .8);
}

.sector-card-enhanced h3 {
  font-size: 1.16rem;
  line-height: 1.4;
  margin: 0 0 16px;
}

.sector-card-enhanced p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

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

  .sectors-grid-enhanced {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 14px 18px;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .brand-subtitle {
    font-size: .75rem;
    letter-spacing: .18em;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-motto {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-main {
    min-height: auto;
  }

  .principles-grid, .sectors-grid, .cards-2, .cards-3 {
    grid-template-columns: 1fr;
  }

  .principle + .principle:before {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left, .footer-right, .footer-brand {
    justify-self: center;
  }

  .contact-row {
    flex-direction: column;
    gap: 6px;
  }

  .mandate-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .sector-card-enhanced {
    min-height: auto;
  }

  main::before {
    width: 60%;
  }
}
