/*
Theme Name: OC Architects
Theme URI: https://ocbdc.com/
Author: OC Architects
Description: A focused healthcare planning and design theme for OC Architects.
Version: 1.0.0
Text Domain: oc-architects
*/

:root {
  --ink: #18332f;
  --ink-deep: #0d2623;
  --sage: #9bb6a5;
  --sage-light: #dfe9e2;
  --moss: #5f7e6d;
  --sand: #ece6dc;
  --paper: #f8f6f1;
  --white: #ffffff;
  --charcoal: #24302e;
  --muted: #65726f;
  --line: rgba(24, 51, 47, 0.15);
  --radius: 22px;
  --shadow: 0 20px 60px rgba(12, 39, 35, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--ink-deep);
  color: var(--white);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 246, 241, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 39, 35, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1200px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.08em;
}

.brand-name {
  font-size: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--ink);
  transition: right 180ms ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  right: 0;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  background: var(--ink-deep);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--white);
  color: var(--ink-deep) !important;
}

.button-light:hover {
  background: var(--sand);
}

.button-ghost {
  background: transparent;
  color: var(--ink) !important;
}

.button-ghost:hover {
  background: var(--sage-light);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 24px;
  height: 1px;
  display: block;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  min-height: 820px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sand);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 35, 31, 0.84) 0%, rgba(9, 35, 31, 0.58) 37%, rgba(9, 35, 31, 0.06) 72%),
    url("assets/healthcare-planning-hero.jpg") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(0deg, rgba(8, 29, 26, 0.32), transparent);
}

.hero-inner {
  width: min(1200px, calc(100% - 48px));
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 180px 0 96px;
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7.1vw, 102px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.5vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 94px;
  width: 220px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section {
  padding: 120px 0;
}

.section-tight {
  padding: 90px 0;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 58px;
}

.section-head h2,
.split-copy h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 67px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-head p {
  max-width: 600px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 380px;
  position: relative;
  padding: 34px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  transition: background 180ms ease, transform 180ms ease;
}

.service-card:hover {
  z-index: 2;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-number {
  color: var(--moss);
  font-family: var(--serif);
  font-size: 14px;
}

.service-card h3 {
  margin: 105px 0 15px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.08;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  min-height: 690px;
  background: var(--ink-deep);
}

.split-image {
  min-height: 560px;
  background: url("assets/healing-interior.jpg") center / cover no-repeat;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(38px, 7vw, 100px);
  color: var(--white);
}

.split-copy .eyebrow {
  color: var(--sage);
}

.split-copy h2 {
  color: var(--white);
}

.split-copy > p {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.metric {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 400;
}

.metric span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process {
  background: var(--sand);
}

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

.process-step {
  padding-top: 23px;
  border-top: 2px solid var(--sage);
}

.process-step small {
  color: var(--moss);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-step h3 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.market-card {
  min-height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sage-light);
}

.market-card:nth-child(2),
.market-card:nth-child(3) {
  background: var(--sand);
}

.market-card::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  top: -75px;
  right: -45px;
  border: 1px solid rgba(24, 51, 47, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(24, 51, 47, 0.03), 0 0 0 70px rgba(24, 51, 47, 0.025);
}

.market-card small {
  color: var(--moss);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.market-card h3 {
  max-width: 440px;
  margin: 13px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.04;
}

.principles {
  background: var(--white);
}

.principle-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 70px 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--moss);
  font-family: var(--serif);
}

.principle h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding: 24px 0 0;
  background: var(--paper);
}

.contact-panel {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(45px, 8vw, 100px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--ink);
  color: var(--white);
}

.contact-panel::after {
  content: "";
  width: 460px;
  height: 460px;
  position: absolute;
  right: -180px;
  bottom: -270px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
}

.contact-panel > div {
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow {
  color: var(--sage);
}

.contact-panel h2 {
  max-width: 720px;
  color: var(--white);
}

.contact-panel p {
  max-width: 620px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}

.contact-action {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.site-footer {
  padding: 38px 0 46px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.64);
}

.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
  font-size: 13px;
}

.footer-brand {
  color: var(--white);
  font-family: var(--serif);
  font-size: 19px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 44px;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;
  }

  .site-nav .nav-cta {
    min-height: 54px;
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 15px;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-note {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .split {
    grid-template-columns: 1fr;
  }

  .split-image {
    min-height: 520px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 50px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-inner,
  .container,
  .footer-inner {
    width: min(100% - 32px, 1200px);
  }

  .header-inner {
    height: 74px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(9, 35, 31, 0.86), rgba(9, 35, 31, 0.4)),
      url("assets/healthcare-planning-hero.jpg") 58% center / cover no-repeat;
  }

  .hero-inner {
    padding: 145px 0 62px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 69px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .section,
  .section-tight {
    padding: 82px 0;
  }

  .service-grid,
  .process-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 300px;
  }

  .service-card h3 {
    margin-top: 70px;
  }

  .split-image {
    min-height: 400px;
  }

  .split-copy {
    padding: 70px 24px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .principle {
    grid-template-columns: 42px 1fr;
  }

  .principle p {
    grid-column: 2;
  }

  .contact-panel {
    min-height: 520px;
    padding: 54px 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
