/* Hi - Harness Intelligence | Main Stylesheet */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Guide Colors */
  --hi-orange: #F26522;
  --hi-orange-light: #f8a06a;
  --hi-gray: #7A797A;
  --hi-gray-light: #BBBCBB;
  --hi-yellow: #F2B840;
  --hi-blue: #1C75BC;
  --hi-green: #6CBE45;
  --hi-red: #C32034;
  --hi-blue-light: #1B9ED1;
  /* Functional Colors */
  --hi-dark: #1a1a1a;
  --hi-text: #333333;
  --hi-text-light: #666666;
  --hi-bg: #ffffff;
  --hi-bg-light: #f9f9f9;
  --hi-border: #e0e0e0;
  /* Brand Guide Fonts */
  --font-heading: 'Noto Serif', Georgia, serif;
  --font-body: 'Roboto', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --nav-height: 140px;
  --bs-primary: #F26522;
  --bs-body-font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--hi-text);
  background: var(--hi-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hi-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: #d4551a; }

/* Global heading font — ensures Noto Serif on ALL headings */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hi-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.15;
}

h3 {
  font-weight: 600;
  color: var(--hi-dark);
}

/* Content-split h1 (approach page and similar) */
.content-split h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ============================================
   NAVIGATION (Header: 140px height, centered links, right logo)
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hi-bg);
  border-bottom: 1px solid var(--hi-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--hi-text);
  font-size: 0.95rem;
  font-weight: 400;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--hi-dark);
  border-bottom-color: var(--hi-orange);
}

.nav-logo {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.nav-logo img { height: 90px; width: auto; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; position: absolute; right: 2rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--hi-dark); margin: 5px 0; transition: 0.3s; }

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 320px;
  padding-top: 40px;
  padding-bottom: 65px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 3rem;
}

.hero .container {
  background: var(--hi-bg);
  border-radius: 50px;
  padding: 50px;
  width: 1100px;
  max-width: 100%;
  text-align: center;
  height: 215px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--hi-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .accent { color: var(--hi-orange); }

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--hi-text);
  line-height: 1.4;
  margin: 0;
}

.hero-subtitle .accent { color: var(--hi-orange); font-weight: 600; }

.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--hi-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-section .page-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--hi-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-image {
  border-radius: 1rem;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section--light { background: var(--hi-bg-light); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hi-dark);
  margin-bottom: 1rem;
}

.section h2 .accent { color: var(--hi-orange); }

.section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hi-dark);
  margin-bottom: 0.75rem;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--hi-text);
  margin-bottom: 1rem;
}

/* Two-column text + image layout */
.content-split {
  padding: 5rem 0;
}

.content-split .container {
  max-width: var(--max-width);
}

.split-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.split-text {
  flex: 1 1 50%;
  min-width: 0;
}

.split-image {
  flex: 1 1 50%;
  min-width: 0;
}

/* 7/5 split variant */
.split-7-5 .split-text { flex: 0 0 58%; }
.split-7-5 .split-image { flex: 0 0 38%; }

/* 6/6 split is the default (50/50) */

/* Reverse order: image left, text right */
.split-reverse .split-content { flex-direction: row-reverse; }

/* ============================================
   FORM CONTROLS (Bootstrap override for underline style)
   ============================================ */
.form-control {
  border: none;
  border-bottom: 1px solid var(--hi-border);
  border-radius: 0;
  padding: 0.75rem 0;
  background: transparent;
  transition: border-color 0.2s;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  border-bottom-color: var(--hi-orange);
  box-shadow: none;
  background: transparent;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-green { color: var(--hi-green); }
.text-blue { color: var(--hi-blue); }

.accent { color: var(--hi-orange); font-weight: 600; }

.purpose-text {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
}

.purpose-text .accent {
  font-weight: 700;
}

/* ============================================
   TESTIMONIAL QUOTE MARKS
   ============================================ */
.testimonial::before {
  content: '\201C';
  display: block;
  color: var(--hi-orange);
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

/* ============================================
   CARD LINKS (with hover effects)
   ============================================ */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.card-link h2,
.card-link h3 {
  color: var(--hi-orange);
}

/* ============================================
   CONTACT BANNER LAYOUT
   ============================================ */
.contact-banner {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
}

.contact-banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.contact-form-card {
  background: var(--hi-bg);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  margin-top: -150px;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
/* Base button (secondary/outline style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  height: 53px;
  font-family: var(--font-body);
  text-decoration: none;
}

/* Secondary button — outline style */
.btn-outline {
  border: 2px solid var(--hi-orange);
  color: var(--hi-orange);
  background: transparent;
}

.btn-outline:hover {
  background: var(--hi-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

/* Primary button — filled/solid style */
.btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  border: 2px solid var(--hi-orange);
  border-radius: 50px;
  color: #fff;
  background: var(--hi-orange);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-filled:hover {
  background: #d4551a;
  border-color: #d4551a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 101, 34, 0.35);
}

.button-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--hi-bg);
  border: 1px solid var(--hi-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--hi-text-light);
  line-height: 1.6;
}

.card-date {
  font-size: 0.8rem;
  color: var(--hi-text-light);
  margin-bottom: 0.25rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial {
  font-style: italic;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--hi-text);
}

.testimonial .attribution {
  font-style: normal;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--hi-dark);
}

/* ============================================
   PARTNERS
   ============================================ */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.partner-logos img {
  max-height: 120px;
  width: auto;
  filter: grayscale(0);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.partner-logos img:hover { opacity: 1; }

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.team-member {
  display: flex;
  gap: 1.5rem;
}

.team-member img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.team-member h3 { margin-bottom: 0.25rem; }
.team-member .role { color: var(--hi-orange); font-weight: 500; margin-bottom: 0.75rem; }

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.advisor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
}

.advisor h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.advisor p { font-size: 0.85rem; color: var(--hi-text-light); }

/* ============================================
   INTELLIPRINT COMPONENTS
   ============================================ */
.ip-components {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ip-component {
  padding: 1.5rem;
  border-left: 3px solid var(--hi-orange);
}

.ip-component h4 {
  font-size: 1.05rem;
  color: var(--hi-dark);
  margin-bottom: 0.5rem;
}

.ip-component p {
  font-size: 0.95rem;
  color: var(--hi-text-light);
}

.ip-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ip-benefit h4 {
  color: var(--hi-orange);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-group { margin-bottom: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--hi-border);
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--hi-orange);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.contact-image {
  overflow: hidden;
  border-radius: 0 0 0 2rem;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   QUOTE BLOCK
   ============================================ */
.quote-block {
  text-align: center;
  padding: 4rem 2rem;
}

.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--hi-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.quote-block cite,
.quote-block .quote-author {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--hi-text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 3px solid var(--hi-orange);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--hi-text-light);
}

.site-footer a { color: var(--hi-orange); }

/* ============================================
   BLOG / INSIGHTS
   ============================================ */
.blog-search {
  max-width: 400px;
  margin: 0 auto 3rem;
  position: relative;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--hi-border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
}

.blog-search input:focus { border-color: var(--hi-orange); }

/* CTA band */
.cta-band {
  background: var(--hi-bg-light);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { margin-bottom: 2rem; font-size: 1.1rem; }

/* ============================================
   BLOG ARTICLE
   ============================================ */
.article-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--hi-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--hi-text-light);
  margin-bottom: 0;
}

.article-meta .author { font-weight: 500; color: var(--hi-text); }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.article-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--hi-text);
  margin-bottom: 1.25rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hi-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hi-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--hi-text);
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--hi-orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--hi-text-light);
  background: var(--hi-bg-light);
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-body strong { font-weight: 600; }

.article-nav {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--hi-border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .split-content,
  .hero-split {
    flex-direction: column;
  }

  .split-reverse .split-content { flex-direction: column; }
  .split-7-5 .split-text,
  .split-7-5 .split-image { flex: 1 1 100%; }

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

  .split-text, .split-image { width: 100% !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { justify-content: flex-start; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--hi-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--hi-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .ip-components { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .split-content { flex-direction: column; }

  .team-member { flex-direction: column; }
  .team-member img { width: 120px; height: 120px; }

  .button-group { flex-direction: column; gap: 1rem; }
  .btn { width: 100%; }

  .contact-form-card { margin-top: -50px; }
}
