/* ==========================================================================
   LEDE GROUP — Clean Zero-Build Stylesheet
   Rewritten from Divi export for pixel-accurate cPanel deployment
   ========================================================================== */

:root {
  --font-sans: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --color-forest: #2f3d2e;
  --color-forest-deep: #212b20;
  --color-forest-nav: #0a2b00;
  --color-sand: #dcceb7;
  --color-cream: #f4f0e8;
  --color-sage: #959d93;
  --color-sage-hover: #88aa99;
  --color-charcoal: #1c1c1c;
  --color-espresso: #3c2f28;
  --color-slate: #8f8f8f;
  --color-shadow-teal: #104657;
  --color-footer-bg: #dfe0e5;

  --text-dark: #1f1f1f;
  --text-heading: #333333;
  --text-body: #666666;
  --text-social: #2a2a2a;
  --white: #ffffff;

  --header-height: 129px;
  --header-height-scrolled: 128px;
  --container-width: 80%;
  --container-max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7em;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  z-index: 1000;
  transition: background-color 0.3s ease, height 0.3s ease;
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-container a {
  height: 90%;
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item a {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

.nav-item a:hover {
  opacity: 0.7;
}

.nav-item.is-current a,
.nav-item a[aria-current="page"] {
  color: var(--color-forest-nav);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-forest);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  background-color: var(--white);
  border-top: 3px solid var(--color-forest);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 16px 5%;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-list li:last-child {
  border-bottom: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 6px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
}

.mobile-nav-list a.is-current {
  color: var(--color-forest-nav);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7em;
  letter-spacing: 1px;
  padding: 15px 40px;
  border: 2px solid transparent;
  border-radius: 0;
  color: var(--white);
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}

.btn-primary {
  background-color: var(--color-forest);
}

.btn-primary:hover {
  background-color: var(--color-sand);
}

.btn-sand {
  background-color: var(--color-sand);
}

.btn-sand:hover {
  background-color: var(--color-sage-hover);
}

/* ==========================================================================
   Section 0: Hero
   ========================================================================== */
.hero-section {
  background-image:
    linear-gradient(90deg, #1c1c1c 30%, rgba(244, 240, 233, 0) 100%),
    url('../images/00-Lede-Header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6.3% 0 14%;
}

.hero-inner {
  padding-top: 27px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 151px;
  font-weight: 500;
  line-height: 1em;
  letter-spacing: -2px;
  color: var(--color-sand);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.8em;
  color: var(--color-sand);
  max-width: 500px;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Section 1: Approach
   ========================================================================== */
.approach-section {
  background-color: var(--white);
  padding: 90px 0 80px;
}

.approach-inner {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5%;
  align-items: start;
}

.approach-heading p {
  font-family: var(--font-sans);
  font-size: 41px;
  line-height: 1.6em;
  color: var(--text-dark);
  font-weight: 400;
}

.approach-heading strong {
  font-weight: 700;
}

.approach-copy p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9em;
  color: var(--text-body);
  text-align: left;
}

.approach-copy p + p {
  margin-top: 1em;
}

/* ==========================================================================
   Section 2: Services
   ========================================================================== */
.services-section {
  background-color: var(--color-cream);
  width: 90%;
  padding-top: 54px;
  padding-bottom: 0;
  padding-left: 10vw;
}

.services-header-row {
  width: 80%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 5.5%;
  align-items: start;
}

.services-intro h2 {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.05em;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.services-intro p {
  font-size: 17px;
  line-height: 1.8em;
  color: var(--text-body);
}

.services-intro p + p {
  margin-top: 1em;
}

.services-cta {
  padding-top: 12px;
}

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  background-color: transparent;
  padding: 80px 30px 200px 30px;
  border-right: 1px solid rgba(51, 51, 51, 0.1);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--color-shadow-teal);
  transition:
    box-shadow 300ms ease,
    color 300ms ease,
    background-color 300ms ease;
}

.service-icon {
  margin-bottom: 30px;
}

.service-icon img {
  width: 80px;
  height: auto;
  transition: filter 300ms ease;
}

.service-card h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2em;
  color: var(--text-heading);
  margin-bottom: 14px;
  transition: color 300ms ease;
}

.service-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.8em;
  color: var(--text-body);
  transition: color 300ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  z-index: 2;
  outline: none;
  box-shadow: 0 20px 0 0 var(--color-shadow-teal);
}

.service-card:hover h4,
.service-card:hover p,
.service-card:focus-visible h4,
.service-card:focus-visible p {
  color: var(--white);
}

.service-card:hover .service-icon img,
.service-card:focus-visible .service-icon img {
  filter: brightness(0) invert(1);
}

.service-card--forest:hover,
.service-card--forest:focus-visible {
  background-color: var(--color-forest);
}

.service-card--charcoal:hover,
.service-card--charcoal:focus-visible {
  background-color: var(--color-charcoal);
}

.service-card--espresso:hover,
.service-card--espresso:focus-visible {
  background-color: var(--color-espresso);
}

.service-card--slate:hover,
.service-card--slate:focus-visible {
  background-color: var(--color-slate);
}

/* ==========================================================================
   Section 3: Capabilities Strip
   ========================================================================== */
.capabilities-strip {
  background-color: var(--color-sage);
  padding: 27px 0;
}

.capabilities-inner {
  text-align: center;
}

.capabilities-inner h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.5em;
  color: var(--white);
}

/* ==========================================================================
   Section 4: Meet the Engineer
   ========================================================================== */
.engineer-section {
  background-color: #264059;
  background-image:
    linear-gradient(90deg, #212b20 30%, rgba(38, 64, 89, 0) 100%),
    url('../images/01-Lede-Feature-Ad.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 16% 0;
}

.engineer-inner {
  width: 80%;
  max-width: 80%;
  margin: 0 auto;
  padding-top: 27px;
}

.engineer-inner h2 {
  font-family: var(--font-serif);
  font-size: 82px;
  font-weight: 500;
  line-height: 1.05em;
  color: var(--white);
  margin-bottom: 24px;
}

.engineer-inner p {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8em;
  color: var(--white);
  max-width: 500px;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Section 5: Ready To Get Started
   ========================================================================== */
.cta-section {
  background-color: var(--white);
  padding: 54px 0;
}

.cta-inner {
  max-width: 750px;
  text-align: center;
  padding: 27px 0;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 70px;
  font-weight: 500;
  line-height: 1.1em;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 18px;
  line-height: 1.8em;
  color: var(--text-body);
  margin-bottom: 28px;
}

.social-links {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-social);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* ==========================================================================
   Section 6: Closing & Bottom Showcase
   ========================================================================== */
.closing-section {
  background-color: var(--color-footer-bg);
  padding: 104px 0 110px;
}

.closing-text {
  max-width: 700px;
  text-align: center;
  margin-bottom: 48px;
}

.closing-text p {
  font-size: 16px;
  line-height: 1.8em;
  color: var(--text-body);
}

.closing-text p + p {
  margin-top: 1em;
}

.closing-image-wrap {
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.closing-image-wrap img {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
  height: auto;
}

.site-footer {
  background-color: #222222;
  min-height: 0;
}

/* ==========================================================================
   Responsive Breakpoints (Matching Divi 980px & 767px)
   ========================================================================== */
@media only screen and (max-width: 1200px) {
  .nav-list {
    gap: 16px;
  }

  .nav-item a {
    font-size: 16px;
  }

  .hero-title {
    font-size: 112px;
  }
}

@media only screen and (max-width: 980px) {
  :root {
    --header-height: 80px;
    --header-height-scrolled: 80px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .approach-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-section {
    width: 100%;
    padding-left: 0;
  }

  .services-header-row {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid {
    width: 90%;
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 40px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
  }

  .cta-inner h2 {
    font-size: 48px;
  }
}

@media only screen and (max-width: 767px) {
  .container {
    width: 90%;
  }

  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-title {
    font-size: 60px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .approach-section {
    padding: 60px 0;
  }

  .approach-heading p {
    font-size: 32px;
  }

  .services-intro h2 {
    font-size: 46px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .capabilities-inner h2 {
    font-size: 20px;
  }

  .engineer-section {
    padding: 80px 0;
  }

  .engineer-inner {
    width: 90%;
    max-width: 90%;
  }

  .engineer-inner h2 {
    font-size: 60px;
  }

  .cta-inner h2 {
    font-size: 32px;
  }

  .closing-section {
    padding: 64px 0 72px;
  }

  .closing-image-wrap {
    width: 90%;
  }
}
