:root {
  /* Brand Colors */
  --primary: #cc4125;
  --primary-rgb: 204, 65, 37;

  /* Banner */
  --banner-bg: #f5f5f5;
  --banner-text: #333;

  /* Stat */
  --stat-border: #e0e0e0;

  /* Text */
  --body-text: #333;
  --light-text: #666;

  /* Button */
  --button-hover-bg: #333;

  /* About */
  --light-bg: #f9fafb;
  --icon-size: 80px;
  --icon-bg: #e5e5e5;
  --card-bg: #fff;

  /* Privacy */
  --privacy-border: #e0e0e0;

  /* Footer */
  --footer-bg: #f8f9fa;
  --footer-border: #e9ecef;
  --footer-text: #6c757d;

  /* Social */
  --linkedin: #0077b5;
}

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

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  background: white;
  color: var(--body-text);
  text-align: center;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: black;
}

.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--body-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links .link-button {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-links .link-button:hover,
.nav-links .link-button.active {
  background-color: var(--button-hover-bg);
  color: white;
}

.page {
  min-height: calc(100vh - 80px);
}

.container {
  box-shadow: inset 0 7px 7px 3px rgba(0, 0, 0, 0.07);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 20px 0;
  @media screen and (max-width: 991px) {
    grid-template-columns: 1fr;
  }
}

.stat {
  border: 1px solid var(--stat-border);
  max-width: 550px;
  width: 100%;
  margin-inline: auto;
}

.stat:hover {
  box-shadow: inset 0 0 0 5px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-5px);
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.container-stat {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 45px;
  padding: 40px 30px 20px;
}

.bg-stat-box {
  position: relative;
}

.stat-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-style: normal;
  font-size: 30px;
  color: var(--primary);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 60px;
  margin-right: 4px;
}

.stat-percentage {
  font-size: 30px;
  position: relative;
  bottom: -8px;
}

.stat-description {
  font-size: 20px;
  line-height: 1.5;
  max-width: 470px;
  text-wrap: balance;
}

header {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

header img {
  width: 240px;
  height: auto;
}

.home-header img {
  width: 400px;
  height: auto;
}

.header-logo {
  height: 2px;
  width: 100%;
  object-fit: contain;
}

.hero-wrapper {
  /* background-color: var(--banner-bg); */
  background: url("/images/low-poly-grid-haikei.svg") repeat;
  padding: 60px 20px;
  /* border-bottom: 3px solid var(--primary); */
  min-height: min(80vh, 625px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-wrapper.inner {
  background-color: var(--primary);
  background-image: none;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: min(50vh, 150px);
}

.hero {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary);
  text-transform: uppercase;
}

.inner .hero h1 {
  font-size: 36px;
  text-align: center;
  color: #fff;
}

.hero-text {
  font-size: 24px;
  margin-bottom: 40px;
}

.hero-lead {
  font-size: 30px;
}

.button-group {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.hero-button {
  margin-top: 40px;
}

.button {
  background-color: var(--primary);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
}

.button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
}

.red-text {
  color: var(--primary);
}

/* Contact Page Styles */
.contact-page {
  justify-content: flex-start;
  min-height: 100vh;
  height: auto;
}

.contact-section {
  display: flex;
  gap: 2rem;
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 100px);
}

.contact-form-section,
.meeting-scheduler-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-form-section h2,
.meeting-scheduler-section h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.airtable-embed,
.meeting-scheduler-section iframe {
  width: 100%;
  height: calc(100vh - 200px);
  border: none;
  border-radius: 8px;
  background: transparent;
  flex-grow: 1;
}

.airtable-embed {
  background: transparent !important;
  border: none !important;
}

.airtable-embed iframe {
  background: transparent !important;
  border: none !important;
}

.contact-form-section {
  background: transparent !important;
}

.contact-form-section iframe {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* About Styles */
.three-column-section {
  display: flex;
  gap: 30px;
}

.features {
  margin-top: 60px;
  gap: 40px;
}

.three-column-section .column {
  flex: 1;
  min-width: 0;
}

.feature {
  flex: 1;
  position: relative;
}

.feature-card {
  background: var(--card-bg);
  height: calc(100% - var(--icon-size) + 30px); /* 30px - padding */
  border-radius: 12px;
  padding: calc(var(--icon-size) / 2) 30px 20px;
  margin-top: -40px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: balance;
}

.feature-icon {
  background: var(--icon-bg);
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, background-color .2s ease;
}

.feature:hover .feature-card {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature:hover .feature-icon {
  background-color: rgb(204 65 37 / 20%);
  transform: translateY(-10px);
}

.feature-icon img {
  width: 48px;
  height: 48px;
}

.team-section {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  justify-content: center;
  gap: 20px;
}

.team-section h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.team-img {
  background-color: var(--banner-bg);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border 0.3s ease;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.team-img:hover {
  border: 7px solid rgba(var(--primary-rgb), 0.2);
}

.team-img:hover img {
  transform: scale(1.05);
}

.team-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.team-role {
  font-size: 16px;
  font-weight: 600;
  color: var(--light-text);
  margin: 0;
}

.team-social svg {
  width: 20px;
  height: 20px;
}

.team-social .linkedin {
  color: var(--linkedin);
}

/* Blog Styles */
.newsletter {
  width: 50%;
  margin: 40px auto 0;
  background-color: var(--banner-bg);
  padding: 20px 20px 10px;
  text-align: center;
}

/* Privacy styles */
.privacy-page {
  text-align: left;
}

.privacy-list {
  padding-left: 20px;
  margin: 0;
}

.privacy-list > li {
  border-bottom: 1px solid var(--privacy-border);
  padding-bottom: 15px;
}

.privacy-list ul li {
  margin-bottom: 10px;
}

.privacy-list h4 {
  margin-bottom: 5px;
}

.privacy-list h4 + p {
  margin-top: 0;
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--footer-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 150px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--body-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .right-links {
  display: flex;
  gap: 1rem;
}

.right-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-bottom .right-links a:hover {
  color: var(--body-text);
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    width: 95%;
    min-height: auto;
  }

  .contact-form-section,
  .meeting-scheduler-section {
    margin-bottom: 2rem;
  }

  .airtable-embed,
  .meeting-scheduler-section iframe {
    height: 600px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }
}

.careers-section {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.careers-section h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.careers-intro {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
}

.careers-form {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.careers-form iframe {
  width: 100%;
  height: calc(100vh - 300px);
  min-height: 600px;
  border: none;
  background: transparent !important;
}

/* Contact and Careers Page Header */
.contact-page header {
  position: absolute;
  top: 20px;
  left: 25px;
  transform: none;
}

.contact-page header img {
  width: 240px;
  height: auto;
}

#nav-fill {
  position: relative;
  border-bottom: 1px solid #fff;
  height: 80px;
}

.nav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.hamburger-icon {
  cursor: pointer;
  padding: 4px 8px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid var(--primary);
}

.hamburger-icon .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

.hamburger-icon.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

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

.section-inset {
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-container {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 20px;
  line-height: 1.5;
}

.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section-list li {
  background-color: var(--banner-bg);
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  position: relative;
}

@media (max-width: 1024px) {
  .nav-bar {
    padding: 0 20px;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #nav-fill {
    height: 60px;
  }

  .nav-bar {
    height: 60px;
    padding: 0 10px;
  }

  .nav-logo {
    height: 30px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active + .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: start;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
  }

  .nav-links a:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
  }

  .section-container {
    padding-left: 0;
    padding-right: 0;
  }

  .section-list {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-bottom .right-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Ensure hamburger menu is hidden on desktop */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-text {
    font-size: 18px;
  }

  .home-header img,
  header img {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
    gap: 15px;
  }

  .button {
    width: 100%;
    font-size: 16px;
    padding: 12px 0;
  }
}

@media (max-width: 600px) {
  .contact-section,
  .careers-section {
    width: 100%;
    padding: 10px;
  }

  .airtable-embed,
  .meeting-scheduler-section iframe,
  .careers-form iframe {
    height: 350px;
    min-height: 350px;
  }

  .careers-section h2 {
    font-size: 1.5em;
  }

  .contact-form-section h2,
  .meeting-scheduler-section h2 {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  header,
  .contact-page header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
  }
}
