/* ================================
   CSS RESET & BASE STYLES
   =============================== */

* {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Enhanced CSS Reset/Normalize */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color: var(--brand-black);
  background: var(--brand-white);
  text-align: center;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

h2 {
  font-weight: bold;
}

p,
ul,
ol,
li,
blockquote,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Ensure consistent text alignment inheritance */
* {
  text-align: inherit;
}

/* Remove default margins from common elements */
address,
article,
aside,
blockquote,
details,
dialog,
dd,
div,
dl,
dt,
fieldset,
form,
hr,
main,
nav,
pre,
section {
  margin: 0;
  padding: 0;
}

/* ================================
   CSS CUSTOM PROPERTIES
   =============================== */

:root {
  --brand-orange: #ff8c00;
  --brand-orange-dark: #ff7300;
  --brand-black: rgb(17, 24, 39);
  --brand-dark-grey: rgb(119, 119, 119);
  --brand-grey: rgb(156, 163, 175);
  --brand-light-grey: rgb(211, 211, 211);
  --brand-white: #ffffff;
  --brand-off-white: var(--brand-off-white);
  --brand-lighter-grey: var(--brand-lighter-grey);
  --brand-very-light-orange: #fff9f5;
}

/* ================================
   VIEW TRANSITIONS API SUPPORT
   =============================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.3s ease-out;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease-in;
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

main {
  padding: 0;
}/* ================================
   LAYOUT COMPONENTS
   =============================== */

/* Container Width Rules */
.container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

/* Top Spacer */
.spacer {
  height: 8vw; /* Scale with viewport width like the flow container */
  min-height: 2rem; /* Minimum height to prevent it from becoming too small */
  max-height: 5rem; /* Maximum height to match original size on larger screens */
}

/* Normal Spacer - scales from 0 on mobile to 2rem on desktop */
.normal-spacer {
  height: calc(2vw + 0.5rem); /* Scales with viewport width */
  min-height: 0; /* 0 height on mobile */
  max-height: 2rem; /* Maximum 2rem on desktop */
}

/* Flow Banner */
.flow {
  /* Use a percentage of viewport width for height, or a vw unit */
  height: 15vw; /* Adjust this value as needed to control the initial height */
  min-height: 5rem; /* Minimum height to prevent it from becoming too small */
  max-height: 9rem; /* Optional: Maximum height to prevent it from getting too large on very wide screens */
  width: 100%;
  background: linear-gradient(
    to right,
    var(--brand-black) 0%,
    var(--brand-dark-grey) 30%,
    var(--brand-white) 50%,
    var(--brand-dark-grey) 70%,
    var(--brand-black) 100%
  );
}

/* Logo */
.logo-container {
  position: absolute;
  top: 1rem; /* Fixed vertical position - adjust this value to match your desired placement */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  max-width: 1000px;
}

.logo {
  max-width: 700px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Content */
.content {
  max-width: 800px;
  margin: 0 auto; /* Center the content block */
  padding: 0 1rem; /* 1rem left and right spacing */
  text-align: center;
  width: calc(100% - 2rem); /* Ensure proper width calculation with padding */
  box-sizing: border-box; /* Include padding in width calculation */
  position: relative;
  z-index: 2; /* Higher than logo z-index (1) */
}

.content p {
  font-size: 1.3rem;
  line-height: 1.5;
  opacity: 0.9;
}/* ================================
   REUSABLE COMPONENTS
   =============================== */

/* Buttons */
.cta-button {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--brand-orange),
    var(--brand-orange-dark)
  );
  color: white !important;
  padding: 1rem 2.5rem;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(17, 24, 39, 0.3);
  text-decoration: none !important;
}

.cta-button:focus {
  text-decoration: none !important;
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
}

/* Direct navigation button - same styling as cta-button but bypasses JavaScript */
.cta-button-direct {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--brand-orange),
    var(--brand-orange-dark)
  );
  color: white !important;
  padding: 1rem 2.5rem;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-button-direct:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(17, 24, 39, 0.3);
  text-decoration: none !important;
}

.cta-button-direct:focus {
  text-decoration: none !important;
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
}

.learn-more {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.learn-more:hover {
  color: var(--brand-orange-dark);
}

.learn-more:focus {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
}

/* Service Catchphrase */
.service-catchphrase {
  color: var(--brand-orange);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.4;
}

/* Clickable Service Items */
.service-item {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.service-item:focus {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  text-decoration: none;
  color: inherit;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 2px solid var(--brand-light-grey);
  border-radius: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--brand-off-white);
  text-align: left;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
  background: var(--brand-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group:not(.form-row .form-group) {
  margin-bottom: 1.5rem;
}

.submit-button {
  background: linear-gradient(
    45deg,
    var(--brand-orange),
    var(--brand-orange-dark)
  );
  color: var(--brand-white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
  width: 100%;
  margin-top: 1rem;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form validation and messages */
.error-message {
  color: var(--brand-orange);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
  display: block;
}

.field-help {
  color: var(--brand-dark-grey);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-style: italic;
  line-height: 1.4;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus) {
  border-color: var(--brand-orange);
  background-color: var(--brand-very-light-orange);
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--brand-dark-grey);
}

.form-group input:required:invalid,
.form-group textarea:required:invalid {
  box-shadow: none;
}

.form-group input:required:valid,
.form-group textarea:required:valid {
  background-image: none;
}

.submit-status {
  text-align: center;
  margin-top: 1rem;
  min-height: 1.2rem;
  font-weight: 600;
}

.submit-status.success {
  color: var(--brand-dark-grey);
}

.submit-status.error {
  color: var(--brand-orange);
}

.success-message {
  text-align: center;
  padding: 2rem;
  background: var(--brand-very-light-grey);
  border: 1px solid var(--brand-light-grey);
  border-radius: 8px;
  margin-top: 2rem;
}

.success-message h3 {
  color: var(--brand-dark-grey);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.success-message p {
  color: var(--brand-dark-grey);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-message a {
  color: var(--brand-orange);
  text-decoration: underline;
}

.success-message a:hover {
  text-decoration: none;
}


/* Customer Quote */
.customer-quote {
  background: var(--brand-very-light-grey);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0 2rem auto;
  text-align: center;
  position: relative;
  width: 80%;
}

.customer-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--brand-orange);
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.customer-quote-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--brand-dark-grey);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.customer-quote-attribution {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
}

.customer-quote-attribution::before {
  content: "— ";
  color: var(--brand-dark-grey);
}

/* Loading states */
.button-loading {
  display: none;
}

.submit-button.loading .button-text {
  opacity: 0;
}

.submit-button.loading .button-loading {
  display: inline;
  opacity: 1;
}

/* Service Navigation */
.service-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem 0 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--brand-light-grey);
}

.service-nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--brand-orange);
  font-weight: 600;
  transition: color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
}

.service-nav-link:hover {
  color: var(--brand-orange-dark);
  text-decoration: none;
}

.service-nav-link:focus {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
  text-decoration: none;
}

.service-nav-link.prev::before {
  content: "←";
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.service-nav-link.next::after {
  content: "→";
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.service-nav-spacer {
  flex: 1;
}

/* Utility Classes */
.text-center {
  text-align: center;
}/* ================================
   PAGE SECTIONS
   =============================== */

/* Value Proposition Section */
.value-proposition {
  text-align: center;
  margin: 1rem auto;
  padding: 0 1rem;
  /*
  max-width: 800px;
  background: linear-gradient(135deg, var(--brand-off-white) 0%, rgba(255, 153, 51, 0.05) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(255, 153, 51, 0.1);
  box-shadow: 0 4px 15px rgba(17, 24, 39, 0.08);
  */
}

.value-proposition h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(17, 24, 39, 0.1);
}

.value-proposition p {
  font-size: 1.2rem;
  color: var(--brand-dark-grey);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Hero Section */
/* Hero section h1 - more specific selector */
#hero-heading {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(17, 24, 39, 0.3);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Typewriter text styling */
#typewriter-text {
  color: var(--brand-orange);
  display: inline-block;
  min-width: 300px;
  text-align: left;
  vertical-align: top;
  font-size: 1.6rem;
  min-height: 1.6rem; /* Prevent layout shift when text is empty */
  line-height: 1;
}

.email {
  font-weight: bold;
}

/* Milestones Section */
.milestones {
  background: transparent;
  padding: 2rem 1rem;
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background-color: var(--brand-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.1);
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.chart-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.2);
}

.svg-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curve {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  animation-fill-mode: forwards;
}

.higher-curve {
  stroke: var(--brand-orange);
}

.higher-curve.animate {
  animation: drawHigherCurve 2.5s ease-out forwards;
}

.lower-curve {
  stroke: var(--brand-black);
}

.lower-curve.animate {
  animation: drawLowerCurve 2.5s ease-out forwards;
}

@keyframes drawHigherCurve {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawLowerCurve {
  to {
    stroke-dashoffset: 0;
  }
}

.milestone {
  position: absolute;
  background-color: var(--brand-orange);
  color: var(--brand-white);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  box-shadow: 0 4px 8px rgba(17, 24, 39, 0.2);
  z-index: 10;
}

.milestone.visible {
  opacity: 1;
  transform: translate(-50%, -120%);
}

.milestone-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--brand-white);
  border-radius: 50%;
  border: 3px solid var(--brand-orange);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 5;
}

.milestone-dot.visible {
  opacity: 1;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-black);
}

.legend-line {
  width: 30px;
  height: 4px;
  border-radius: 2px;
}

.orange-line {
  background: var(--brand-orange);
  position: relative;
}

.orange-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.3) 2px,
    rgba(255, 255, 255, 0.3) 4px
  );
}

.black-line {
  background: var(--brand-black);
}

/* Services Timeline */
.services {
  background: var(--brand-white);
  padding: 2rem 1rem;
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--brand-black);
  font-weight: 700;
}

.services-timeline {
  position: relative;
  padding-top: 50px;
  padding-bottom: 50px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 800px; /* Ensure container has height for SVG */
}

.services-timeline::after {
  content: "";
  display: table;
  clear: both;
}

.timeline-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 4px; /* Just wide enough for the line */
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

#timeline-path {
  stroke: var(--brand-light-grey) !important;
  stroke-width: 4;
}

#timeline-animated-path {
  stroke: var(--brand-orange) !important;
  stroke-width: 4;
  stroke-dasharray: 0 1000;
  transition: stroke-dashoffset 0.5s ease-out;
}

.service-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out,
    box-shadow 0.3s ease, background 0.3s ease;
  padding: 2rem;
  margin-bottom: 20px; /* Reduced spacing between cards */
  background: var(--brand-white);
  box-shadow: 0 4px 15px rgba(17, 24, 39, 0.1);
  border-radius: 15px;
  position: relative;
  z-index: 2;
  border: 1px solid var(--brand-light-grey);
  width: 45%; /* Set consistent width for desktop */
  box-sizing: border-box;
  cursor: pointer;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-orange),
    var(--brand-orange-dark)
  );
  border-radius: 15px 15px 0 0;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item.visible:hover {
  background: var(--brand-white);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.2);
  transform: translateY(-4px);
}

.service-item.visible.left:hover {
  transform: translateY(-4px);
}

.service-item.visible.right:hover {
  transform: translateY(-4px);
}

/* Desktop layout - closer together with random offsets */
.service-item.left {
  float: left;
  text-align: right;
  margin-right: 10%; /* Space from center line */
  margin-top: var(--random-offset, 0);
}

.service-item.right {
  float: right;
  text-align: left;
  margin-left: 10%; /* Space from center line */
  margin-top: var(--random-offset, 0);
}

/* More varied offsets to prevent overlapping */
.service-item:nth-of-type(1) {
  --random-offset: 1rem;
}

.service-item:nth-of-type(2) {
  --random-offset: 4rem;
}

.service-item:nth-of-type(3) {
  --random-offset: 2rem;
}

.service-item:nth-of-type(4) {
  --random-offset: 3.5rem;
}

.service-item:nth-of-type(5) {
  --random-offset: 1.5rem;
}

.service-item:nth-of-type(6) {
  --random-offset: 2.5rem;
}

.service-item.visible.left,
.service-item.visible.right {
  transform: translateY(0);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--brand-black);
  font-weight: 700;
}

.service-item p {
  color: var(--brand-dark-grey);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-item:focus-within {
  outline: 2px solid var(--brand-orange);
  outline-offset: 4px;
}

/* Services Image Container */
.services-image-container {
  background-color: var(--brand-white);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.1);
  margin: 0 auto;
  max-width: 80%;
  text-align: center;
}

.services-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Contact Form */
.contact {
  background: linear-gradient(
    135deg,
    var(--brand-off-white) 0%,
    var(--brand-lighter-grey) 100%
  );
  padding: 1rem 1rem;
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-black);
  font-weight: 700;
}

.contact-description {
  text-align: center;
  font-size: 1.2rem;
  color: var(--brand-dark-grey);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--brand-white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(
    to right,
    var(--brand-white) 0%,
    var(--brand-light-grey) 30%,
    var(--brand-black) 50%,
    var(--brand-light-grey) 70%,
    var(--brand-white) 100%
  );
  color: var(--brand-white);
  padding: 2rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  text-shadow: 1px 1px 2px rgba(17, 24, 39, 0.8);
  font-weight: 500;
}

/* Footer link styling - exclude CTA buttons */
footer a:not(.cta-button) {
  color: white;
  text-decoration: none;
}

footer a:not(.cta-button):hover,
footer a:not(.cta-button):focus {
  text-decoration: underline;
}

footer a:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Privacy Policy Page */
/* Privacy Policy page h1 */
#privacy-heading {
  color: var(--brand-black);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Service Detail Pages */
/* Service page h1 styling */
#service-heading {
  color: var(--brand-black);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content h2 {
  color: var(--brand-black);
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
}

.content h3,
.section-slide h3,
.approach-content h3 {
  color: var(--brand-black);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 0 0.8rem 0;
  padding-bottom: 0.3rem;
  position: relative;
}

.content h3::after,
.section-slide h3::after,
.approach-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-dark));
  border-radius: 1px;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Deliverables list styling */
.deliverables-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.deliverables-list li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: var(--brand-dark-grey);
  font-weight: 500;
}

.content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content a {
  color: var(--brand-orange);
  text-decoration: underline;
}

.content a:hover {
  text-decoration: none;
}

/* Privacy Policy HR styling */
.content hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-light-grey),
    transparent
  );
  margin: 2rem 0;
}

/* Value proposition exceptions */

.value-proposition h2 {
  font-size: 2rem;
  margin: 0;
  padding-bottom: 0;
}

.value-proposition hr {
  margin: 1rem;
}

.value-proposition p {
  font-size: 1.3rem;
}

/* Slide-in animations for service detail sections */
.section-slide {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 3rem 0;
  padding: 2rem 0;
}

.section-slide.slide-right {
  transform: translateX(100px);
}

.section-slide.visible {
  opacity: 1;
  transform: translateX(0);
}

.section-slide h2 {
  margin-bottom: 1.5rem;
}

.section-slide p {
  margin-bottom: 1.2rem;
}

.section-slide .section-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 0.8rem;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 15px rgba(17, 24, 39, 0.1);
}

/* Desktop layout for section with image */
@media (min-width: 768px) {
  .section-slide:has(.section-image) {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    text-align: left;
  }
  
  .section-slide:has(.section-image) .section-image {
    flex: 0 0 300px;
    margin: 0;
    max-width: 300px;
    margin-top: calc(6.8rem + 1.5rem + 1rem);
  }
  
  .section-slide:has(.section-image) .section-content {
    flex: 1;
  }
  
  .section-slide:has(.section-image) .section-content h2 {
    margin-bottom: 1.5rem;
  }
  
  /* Two-column layout for Our Approach section */
  .approach-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
  }
  
  .approach-headline {
    flex: 0 0 40%;
    text-align: left;
  }
  
  .approach-content {
    flex: 1;
    text-align: left;
  }
}

/* H3 with inline SVG icons */
.h3-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}
/* ================================
   RESPONSIVE DESIGN
   =============================== */

/* Mobile responsive h1 layout */
@media (max-width: 768px) {
  #hero-heading {
    line-height: 1.3;
    display: block;
    gap: 0;
  }

  /* Hide the pipe separator on mobile */
  .separator {
    display: none;
  }

  #typewriter-text {
    display: block;
    margin-top: 0.3rem;
    min-width: auto;
    min-height: 1.6rem; /* Maintain height on mobile too */
  }
}

/* Tablet and desktop responsive */
@media (max-width: 1000px) {
  .logo {
    width: 70%;
    max-width: none;
  }
}

/* Mobile responsive */
@media (max-width: 450px) {
  .container {
    width: 100%;
  }
  
  /* Further fine-tune flow and spacer height for very small screens if needed */
  .flow {
    height: 20vw; /* A bit taller on very small screens */
    min-height: 4rem;
  }
  
  .spacer {
    height: 12vw; /* Scale up on small screens to maintain proportions */
    min-height: 1.5rem;
    max-height: 3rem;
  }
  
  .normal-spacer {
    height: 0; /* 0 height on mobile screens */
  }

  /* Add extra spacing after value-proposition on mobile */
  .value-proposition {
    margin-bottom: 3rem;
  }

  /* Milestones responsive */
  .chart-legend {
    gap: 1rem;
    margin-top: 1rem;
  }

  .legend-item {
    font-size: 0.8rem;
  }

  .legend-line {
    width: 25px;
    height: 3px;
  }

  .chart-container {
    padding: 1rem;
  }

  .milestone {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }

  .milestone-dot {
    width: 10px;
    height: 10px;
  }

  /* Increase axis label font size on mobile */
  .milestones text {
    font-size: 40px !important;
  }

  /* Services timeline responsive - mobile layout */
  .services-timeline {
    min-height: auto;
  }

  .service-item {
    width: 80%;
    float: none;
    margin: 0 0 30px 0;
    padding: 1.5rem;
    box-sizing: border-box;
    --random-offset: 0 !important;
    margin-top: 0 !important;
  }

  .service-item.left {
    margin-left: 0;
    margin-right: 20%;
    text-align: left;
  }

  .service-item.right {
    margin-left: 20%;
    margin-right: 0;
    text-align: left;
  }

  .timeline-svg {
    left: 10%;
    transform: none;
    width: 4px;
  }

  .services-image-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Contact form responsive */
  .contact {
    padding: 2rem 1rem;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .contact-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 1.2rem;
  }

  /* Strategic Process section mobile adjustments */
  .approach-content h3 {
    text-align: left;
  }

  /* Privacy Policy mobile adjustments */
  .content ul {
    padding: 0 1rem;
    margin: 1rem 0;
    margin-left: 0;
    text-align: left;
  }

  .content ul ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
    text-align: left;
  }
}

/* Privacy Policy bullet alignment - desktop only */
@media (min-width: 451px) {
  .content ul {
    margin: 1rem 0;
    padding: 0 4rem;
    padding-left: 2rem;
    margin-left: 0;
    text-align: left;
  }

  .content ul ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    text-align: left;
  }
}

/* Reduced data mode support */
@media (prefers-reduced-data: reduce) {
  .flow {
    background: linear-gradient(
      to right,
      var(--brand-black) 0%,
      white 50%,
      var(--brand-black) 100%
    );
  }
}

/* Print styles */
@media print {
  .skip-link,
  .flow,
  .spacer,
  .normal-spacer {
    display: none;
  }

  .visually-hidden {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}/* ================================
   ACCESSIBILITY STYLES
   =============================== */

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 6px;
  background: var(--brand-black);
  color: var(--brand-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 600;
  transition: top 0.3s ease;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 0;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Screen reader only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
}

/* Screen reader announcements */
[aria-live="polite"] {
  position: relative;
}

[role="alert"] {
  font-weight: 600;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --brand-orange: #ff6600;
    --brand-black: black;
    --brand-grey: #666666;
    --brand-light-grey: #999999;
  }

  .form-group input,
  .form-group textarea {
    border-width: 3px;
    background: var(--brand-white);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--brand-black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep essential transitions for user feedback */
  .form-group input:focus,
  .form-group textarea:focus,
  .submit-button:focus,
  .cta-button:focus,
  .learn-more:focus {
    transition-duration: 0.15s !important;
  }
}/* ================================
   SELF-HOSTED FONTS
   =============================== */

/* Outfit Font - Latin Extended Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit Font - Latin Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit Font 500 - Latin Extended Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit Font 500 - Latin Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit Font 600 - Latin Extended Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit Font 600 - Latin Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit Font 700 - Latin Extended Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit Font 700 - Latin Characters */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}