/* ============================================================
   Tributary Solutions - styles.css
   ============================================================ */

/* -- Variables ----------------------------------------------- */
:root {
  --misty-blue:    #c3ceda;
  --blue-gray:     #738fa7;
  --midnight-blue: #0c4160;
  --dark-blue:     #071330;

  --page-bg:      #f7f9fb;
  --surface:      #ffffff;
  --surface-soft: #eef3f7;
  --text:         var(--dark-blue);
  --text-muted:   #3f5668;
  --heading:      var(--dark-blue);
  --accent:       var(--midnight-blue);
  --accent-soft:  var(--misty-blue);
  --border:       rgba(12, 65, 96, 0.18);
  --shadow:       0 18px 45px rgba(7, 19, 48, 0.12);

  --max-width: 1100px;
  --radius:    16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.19rem, 1.1rem + 0.38vw, 1.38rem);
  line-height: 1.7;
}

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* -- Layout -------------------------------------------------- */
.wrap {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

/* -- Typography ---------------------------------------------- */
h1, h2, h3 {
  color: var(--heading);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(3rem, 7vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.65rem); }

.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--midnight-blue);
  line-height: 1.38;
  margin-bottom: 1.4rem;
}

/* -- Header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark-blue);
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--midnight-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dark-blue);
  border-bottom-color: var(--midnight-blue);
}

/* -- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--midnight-blue);
  color: #fff;
  border: 2px solid var(--midnight-blue);
  box-shadow: 0 4px 14px rgba(12, 65, 96, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  box-shadow: 0 6px 20px rgba(7, 19, 48, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* -- Hero ---------------------------------------------------- */
.hero {
  padding: 100px 0 88px;
  background:
    linear-gradient(145deg, rgba(234, 240, 247, 0.88) 0%, rgba(216, 230, 242, 0.82) 55%, rgba(195, 215, 232, 0.78) 100%),
    url("banner_photo.jpg") center center / cover no-repeat;
  border-bottom: 1px solid rgba(12, 65, 96, 0.12);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.hero-text {
  max-width: 760px;
}

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-cta {
  width: 100%;
  justify-content: center;
}

/* "Water Resources Consulting" — styled as a small descriptor */
.hero-text h1 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-gray);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

/* "Modeling and decision support..." — the big hero statement */
.hero-text .lede {
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 800;
  color: var(--dark-blue);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-support {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);
  line-height: 1.72;
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero logo panel */
.hero-logo-box {
  background: var(--surface);
  border: 1px solid rgba(12, 65, 96, 0.14);
  border-radius: 24px;
  box-shadow:
    0 2px 8px rgba(12, 65, 96, 0.06),
    0 20px 50px rgba(7, 19, 48, 0.14);
  padding: 36px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.hero-logo-box img {
  max-height: 260px;
  width: auto;
  max-width: 100%;
}

/* -- Section base -------------------------------------------- */
.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--surface-soft);
}

.section-header {
  margin-bottom: 52px;
  max-width: 780px;
}

.section-header h2 {
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);
  max-width: 65ch;
  line-height: 1.65;
}

/* -- Service cards ------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--midnight-blue);
  border-radius: var(--radius-sm);
  padding: 28px 26px 30px;
  box-shadow: 0 2px 14px rgba(12, 65, 96, 0.07);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(12, 65, 96, 0.13);
}

.service-card h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
  line-height: 1.28;
}

.service-card p {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* -- Principals ---------------------------------------------- */
.principal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Horizontal card: photo left, text right */
.profile-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-photo {
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  flex-shrink: 0;
  align-self: stretch;
  object-position: 50% 20%;
  transform-origin: center center;
}

.photo-jordan  { object-position: 30% 30%; transform: scale(1.05);}
.photo-marlena { object-position: 40% 60%; transform: scale(1.08);}
.photo-hank    { object-position: 50% 45%; }

.profile-body {
  padding: 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-body h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.45rem);
  margin-bottom: 4px;
  line-height: 1.2;
}

.role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--midnight-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}

.profile-body p {
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

/* -- Hank ---------------------------------------------------- */
.hank-section {
  padding: 60px 0 76px;
  background: var(--surface-soft);
}

.hank-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--misty-blue);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(12, 65, 96, 0.08);
}

.hank-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--misty-blue);
}

.hank-body {
  padding-top: 6px;
}

.hank-body h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  margin-bottom: 4px;
}

.hank-body .role {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.hank-body p {
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.72;
}

/* -- Contact CTA --------------------------------------------- */
.cta-section {
  background: var(--dark-blue);
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1.1rem;
}

.cta-section p {
  color: var(--misty-blue);
  max-width: 52ch;
  margin: 0 auto 2.75rem;
  font-size: clamp(1.15rem, 1.3vw, 1.3rem);
  line-height: 1.68;
}

/* -- Contact page -------------------------------------------- */
.contact-hero {
  padding: 100px 0 88px;
  background: linear-gradient(145deg, #eaf0f7 0%, #d8e6f2 55%, #c3d7e8 100%);
  text-align: center;
}

.contact-hero h1 { margin-bottom: 0.85rem; }

.contact-hero p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.75rem;
  font-size: clamp(1.15rem, 1.3vw, 1.3rem);
  line-height: 1.68;
}

/* -- Footer -------------------------------------------------- */
.site-footer {
  background: var(--dark-blue);
  padding: 40px 0;
}

.site-footer p {
  color: var(--misty-blue);
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  margin: 0 0 6px;
}

.site-footer p:last-child { margin: 0; }

/* -- Responsive ---------------------------------------------- */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    max-width: 380px;
    width: 100%;
  }

  .hero-text {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-logo-box {
    display: none;
  }

  .hero-cta {
    width: auto;
  }

  .brand-name {
    display: none;
  }

  .site-nav { gap: 20px; }

  .profile-card {
    flex-direction: column;
  }

  .profile-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 220px;
  }

  .hank-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 28px 24px;
    border-left: 1px solid var(--border);
    border-top: 5px solid var(--misty-blue);
  }

  .hank-photo {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cta-section { padding: 72px 0; }
  .contact-hero { padding: 64px 0 56px; }
}