/*
Theme Name: OWRSP
Theme URI: https://owrsp.com
Author: Oregon Water Rights Solutions and Planning LLC
Description: A responsive one-page WordPress theme for OWRSP.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: owrsp
*/

:root {
  --ink: #102f3a;
  --ink-deep: #082630;
  --blue: #087eae;
  --blue-bright: #3ec1ee;
  --blue-pale: #dff4f8;
  --aqua: #87dbe4;
  --purple: #702382;
  --purple-light: #b874ca;
  --sand: #f3f0e8;
  --paper: #fbfaf6;
  --line: #c8d7d8;
  --muted: #587078;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

svg { display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid rgba(16, 47, 58, .12);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header { top: 32px; }

.hero-visual > img,
.approach-photo > img,
.selected-projects-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 45px; height: 45px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 20px; line-height: 1; letter-spacing: .14em; }
.brand small { max-width: none; color: var(--muted); font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .11em; white-space: nowrap; }

nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); font-size: 13px; font-weight: 700; }
nav > a:not(.nav-cta) { position: relative; padding: 9px 0; }
nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 0; height: 1px; background: var(--blue); transition: width .25s ease; }
nav > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { padding: 14px 19px; color: white; background: var(--ink); transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  padding-left: clamp(24px, 7vw, 112px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 68px clamp(40px, 6vw, 100px) 62px 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 7% 0 auto -45%;
  height: 390px;
  z-index: -1;
  opacity: .34;
  background-image:
    repeating-radial-gradient(ellipse at 30% 75%, transparent 0 20px, rgba(37, 183, 223, .18) 21px 22px, transparent 23px 36px);
  transform: rotate(-6deg);
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--purple); }

.hero h1 {
  max-width: 740px;
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(32px, 2.75vw, 40px);
  line-height: 1.08;
  letter-spacing: -.045em;
  white-space: normal;
}

.hero h1 em { color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy > p { max-width: 670px; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.65; }

.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 0 23px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button svg, .text-link svg, .service-card > a svg { width: 18px; height: 18px; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover svg, .text-link:hover svg, .service-card > a:hover svg { transform: translateX(4px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }

.credentials { display: flex; flex-wrap: wrap; gap: 0; margin-top: 52px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.credentials span { padding: 0 14px; border-right: 1px solid var(--line); }
.credentials span:first-child { padding-left: 0; }
.credentials span:last-child { border-right: 0; }
.credentials span:first-child { color: var(--purple); }

.hero-visual { position: relative; min-height: 620px; overflow: hidden; }
.hero-visual > img { object-fit: cover; object-position: 52% center; transition: transform .8s ease; }
.hero-visual:hover > img { transform: scale(1.025); }
.image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 28, 37, .02) 44%, rgba(4, 28, 37, .64)); }
.project-note { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 24px; padding: 28px 34px; color: white; border-top: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(7px); }
.project-note div { display: flex; flex-direction: column; gap: 5px; }
.project-note small { color: rgba(255,255,255,.72); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.project-note strong { font-size: 15px; }

.services { padding: 112px clamp(24px, 7vw, 112px) 124px; background: var(--sand); }
.section-intro { display: grid; grid-template-columns: 1.5fr .7fr; align-items: end; gap: 70px; margin-bottom: 56px; }
.section-label { display: block; margin-bottom: 22px; color: var(--blue); font-size: 18px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.section-intro h2, .approach-copy h2 { max-width: 800px; margin: 0; font-size: clamp(32px, 2.75vw, 40px); line-height: 1.03; letter-spacing: -.045em; }
.section-intro p { margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 510px; display: flex; flex-direction: column; padding: 34px; background: rgba(255,255,255,.48); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.service-card:hover { z-index: 1; background: white; transform: translateY(-7px); box-shadow: 0 24px 70px rgba(20, 55, 63, .11); }
.service-card.featured { background: var(--ink-deep); color: white; }
.service-card.featured:hover { background: #0b3541; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; color: var(--blue); }
.service-card.featured .service-top { color: var(--aqua); }
.service-top svg { width: 50px; height: 50px; }
.service-card h3 { margin: 44px 0 16px; font-size: clamp(28px, 2.2vw, 38px); letter-spacing: -.035em; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.service-card.featured p { color: #b9cdd0; }
.service-card ul { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.45; }
.service-card.featured ul { color: #d4e3e5; }
.service-card li { position: relative; padding-left: 16px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); }
.service-card > a { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; margin-top: auto; padding-bottom: 6px; color: var(--blue); border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 800; }
.service-card.featured > a { color: var(--aqua); }

.core-services { position: relative; display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(35px, 6vw, 90px); margin-top: 48px; padding: clamp(30px, 4vw, 52px); overflow: hidden; background: radial-gradient(circle at 0 100%, rgba(37,183,223,.13), transparent 34%), var(--paper); border: 1px solid var(--line); }
.core-services::after { content: ""; position: absolute; right: -105px; top: -115px; width: 230px; height: 230px; border: 38px solid rgba(112,35,130,.07); border-radius: 50%; pointer-events: none; }
.core-services-heading { position: relative; z-index: 1; }
.core-services-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 28px; color: var(--blue); background: var(--blue-pale); border: 1px solid rgba(112,35,130,.25); border-radius: 50%; }
.core-services-mark svg { width: 38px; height: 38px; }
.core-services-heading .section-label { margin-bottom: 15px; }
.core-services-heading p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.core-services ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 42px; margin: 0; padding: 0; list-style: none; }
.core-services li { position: relative; padding: 14px 0 14px 20px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.core-services li::before { content: ""; position: absolute; left: 0; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.approach { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 760px; background: var(--paper); }
.approach-photo { position: relative; min-height: 680px; }
.approach-photo > img { object-fit: cover; object-position: center; }
.approach-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 37, 46, .66)); }
.photo-label { position: absolute; z-index: 2; left: 42px; bottom: 38px; display: flex; flex-direction: column; gap: 6px; color: white; }
.photo-label strong { font-size: 21px; }
.photo-label span { color: rgba(255,255,255,.78); font-size: 12px; }
.approach-copy { display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(35px, 7vw, 110px); }
.approach-copy h2 { color: var(--ink-deep); }
.lead { max-width: 650px; margin: 26px 0 36px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 0 19px; border-right: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border: 0; }
.stats strong { font-size: clamp(31px, 3.5vw, 51px); line-height: 1; letter-spacing: -.05em; }
.stats strong span { color: var(--blue); font-weight: 400; }
.stats small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 35px; }
.principles > div { display: block; }
.principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.principles strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; }

.selected-projects { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 520px; background: var(--sand); }
.selected-projects-photo { position: relative; min-height: 440px; overflow: hidden; }
.selected-projects-photo img { object-fit: cover; object-position: 52% center; }
.selected-projects-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(35px, 7vw, 110px); }
.selected-projects-copy .section-label { margin-top: 0; }
.selected-projects-copy ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.selected-projects-copy li { position: relative; padding: 17px 40px 17px 22px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.3; }
.selected-projects-copy li::before { content: ""; position: absolute; left: 0; top: 25px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }

.contact { position: relative; overflow: hidden; padding: 105px clamp(24px, 9vw, 145px); color: white; background: var(--blue); }
.contact::after { content: ""; position: absolute; width: 520px; height: 520px; top: -215px; right: -70px; border: 85px solid rgba(112,35,130,.28); border-radius: 50%; }
.contact-kicker { margin-bottom: 20px; color: var(--aqua); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.contact h2 { position: relative; z-index: 1; max-width: none; margin: 0; font-size: clamp(42px, 4.7vw, 68px); line-height: .98; letter-spacing: -.05em; white-space: nowrap; }
.contact > p { max-width: 630px; margin: 22px 0 32px; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; }
.contact-actions { display: flex; align-items: center; gap: 30px; }
.button-light { min-width: 280px; color: var(--ink); background: white; }
.button-light:hover { background: var(--blue-pale); }
.phone-link { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.7); font-weight: 700; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; padding: 30px clamp(24px, 5vw, 80px); color: var(--muted); background: var(--ink-deep); border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; }
.footer-brand img { width: 39px; height: 39px; object-fit: contain; border-radius: 50%; }
.footer-brand span { display: flex; flex-direction: column; gap: 3px; }
.footer-brand strong { font-size: 15px; letter-spacing: .15em; }
.footer-brand small { color: #87a1a7; font-size: 8px; }
footer p { margin: 0; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .82fr; padding-left: 48px; }
  .hero h1, .section-intro h2, .approach-copy h2 { font-size: clamp(28px, 2.85vw, 34px); }
  .service-card { padding: 28px; }
  .approach-copy { padding: 80px 48px; }
}

@media (max-width: 820px) {
  .site-header { height: 74px; padding: 0 20px; }
  .brand small { display: none; }
  nav { gap: 17px; }
  nav > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 12px 14px; font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-left: 0; }
  .hero-copy { padding: 68px 24px 55px; }
  .hero-copy::before { inset: 4% -20% auto -40%; }
  .hero h1, .section-intro h2, .approach-copy h2 { font-size: clamp(38px, 8vw, 52px); }
  .hero h1 { white-space: normal; }
  .contact h2 { white-space: normal; }
  .hero-visual { min-height: 520px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .core-services { grid-template-columns: 1fr; gap: 25px; }
  .approach { grid-template-columns: 1fr; }
  .approach-photo { min-height: 520px; }
  .approach-copy { padding: 80px 24px; }
  .selected-projects { grid-template-columns: 1fr; }
  .selected-projects-photo { min-height: 380px; }
  .selected-projects-copy { padding: 70px 24px; }
  footer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 540px) {
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 17px; }
  .hero-copy { padding-top: 54px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .button-primary { align-self: flex-start; }
  .text-link { align-self: flex-start; }
  .credentials { display: grid; gap: 9px; margin-top: 38px; }
  .credentials span { padding: 0; border: 0; }
  .hero-visual { min-height: 430px; }
  .project-note { padding: 22px; }
  .services { padding: 82px 20px; }
  .section-intro h2, .approach-copy h2 { font-size: 42px; }
  .service-card { padding: 27px 23px; }
  .service-card h3 { margin-top: 30px; }
  .core-services { padding: 27px 22px; }
  .core-services ul { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats div { padding-left: 15px; }
  .stats div:nth-child(3) { grid-column: 1 / -1; padding: 0; border: 0; }
  .principles { grid-template-columns: 1fr; gap: 22px; }
  .contact { padding: 80px 20px; }
  .contact h2 { font-size: 48px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .button-light { min-width: 0; width: 100%; justify-content: space-between; }
  .phone-link { align-self: flex-start; }
}

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