/*
Theme Name: Rootwork Solutions
Theme URI: https://rootworksolutions.com/
Author: Rootwork Solutions
Description: Custom responsive WordPress theme built from the Rootwork Solutions website mockup.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rootwork-solutions
*/

:root {
  --cream: #f5f2e8;
  --cream-deep: #ebe6d7;
  --green: #0e3b2a;
  --green-dark: #082c20;
  --green-soft: #1c4d39;
  --ink: #18372c;
  --muted: #5f6c64;
  --line: rgba(24,55,44,.18);
  --white: #fffdf7;
  --container: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,253,247,.97);
  border-bottom: 1px solid rgba(24,55,44,.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 104px;
  padding: 15px 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-logo img { width: 230px; }
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.main-nav a:hover { opacity: .68; }
.header-cta { margin-left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; min-height: 46px; padding: 12px 20px;
  border-radius: 3px; text-decoration: none; font-weight: 700;
  font-size: 13px; border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 43% 57%;
  min-height: 505px;
}
.hero-copy {
  position: relative; padding: 70px 55px 60px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-copy::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/botanical/leaves-left.webp") left center / 190px auto no-repeat;
  opacity: .45; pointer-events: none;
}
.hero-copy > * { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 12px; font-size: 11px; letter-spacing: .22em;
  font-weight: 700; text-transform: uppercase;
}
.serif { font-family: var(--serif); font-weight: 400; }
.hero h1 {
  max-width: 610px; margin: 0 0 20px;
  font-family: var(--serif); font-size: clamp(42px, 4vw, 65px);
  line-height: .98; font-weight: 400; letter-spacing: -.025em;
}
.hero p { max-width: 590px; margin: 0 0 28px; font-size: 15px; line-height: 1.55; }
.hero-media {
  min-height: 505px;
  background: #ddd center center / cover no-repeat;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.section { padding: 72px 28px; }
.container { max-width: var(--container); margin: 0 auto; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(35px, 3.2vw, 50px); line-height: 1.02;
  letter-spacing: -.025em; margin: 0 0 18px;
}
.section-intro { max-width: 620px; font-size: 14px; color: var(--muted); }
.challenge { background: var(--cream); }
.challenge-grid {
  display: grid; grid-template-columns: 35% 65%; gap: 35px; align-items: center;
}
.challenge-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.icon-card {
  min-height: 205px; padding: 0 22px;
  border-left: 1px solid var(--line);
}
.icon-card:first-child { border-left: 0; }
.icon {
  width: 58px; height: 58px; margin-bottom: 15px;
}
.icon-card h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 400; margin: 0 0 9px;
}
.icon-card p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.text-link {
  display: inline-flex; gap: 9px; margin-top: 22px;
  font-size: 12px; font-weight: 700; text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.solutions {
  color: #fff; position: relative; overflow: hidden;
  background: var(--green-dark);
}
.solutions::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/solutions/solutions-bg.webp") center / cover no-repeat;
  opacity: .48;
}
.solutions .container { position: relative; z-index: 1; }
.solutions-grid {
  display: grid; grid-template-columns: 33% 67%; gap: 40px; align-items: center;
}
.solutions .section-title { color: #fff; }
.solutions .section-intro { color: rgba(255,255,255,.82); }
.solution-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.solution-card {
  min-height: 255px; background: var(--white); color: var(--ink);
  padding: 30px 25px; display: flex; flex-direction: column;
}
.solution-card img { width: 47px; height: 47px; margin-bottom: 20px; }
.solution-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; margin: 0 0 10px; }
.solution-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.solution-card .text-link { margin-top: auto; }

.method { background: var(--cream); }
.method-grid { display: grid; grid-template-columns: 30% 70%; gap: 35px; align-items: center; }
.method-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.method-step {
  position: relative; padding: 0 28px; border-left: 1px solid var(--line);
}
.method-step:first-child { border-left: 0; }
.method-icon { width: 67px; height: 67px; margin-bottom: 15px; }
.method-step h3 {
  letter-spacing: .18em; font-size: 14px; margin: 0 0 13px;
}
.method-step ul { margin: 0; padding-left: 15px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.method-arrow {
  position: absolute; width: 48px; right: -24px; top: 28px; z-index: 2;
}

.bring { background: var(--cream); padding-top: 0; }
.bring-grid { display: grid; grid-template-columns: 36% 64%; }
.bring-image img { width: 100%; height: 100%; object-fit: cover; }
.bring-copy { padding: 68px 55px; }
.bring-items { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 38px; }
.bring-item { text-align: center; padding: 0 12px; border-left: 1px solid var(--line); }
.bring-item:first-child { border-left: 0; }
.bring-item img { width: 43px; height: 43px; margin: 0 auto 12px; }
.bring-item span { display: block; font-size: 11px; line-height: 1.35; font-weight: 700; }

.industries { padding-top: 48px; }
.industries-grid { display: grid; grid-template-columns: 32% 68%; gap: 30px; align-items: center; }
.industry-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.industry-card { position: relative; overflow: hidden; aspect-ratio: .78; }
.industry-card img { width: 100%; height: 100%; object-fit: cover; }
.industry-card span {
  position: absolute; inset: auto 0 0; padding: 32px 10px 10px;
  color: #fff; font-size: 10px; font-weight: 700; line-height: 1.15;
  background: linear-gradient(transparent, rgba(0,0,0,.68));
}

.result {
  background: var(--green-dark); color: #fff;
  position: relative; overflow: hidden;
}
.result::before {
  content: ""; position: absolute; left: 0; top: 0; width: 230px; height: 100%;
  background: url("../assets/botanical/roots-left.webp") left center / contain no-repeat;
  opacity: .7;
}
.result-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 55% 45%; gap: 45px; align-items: center;
}
.result .section-title { color: #fff; max-width: 650px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.5; }
.quote-attribution { font-size: 11px; margin-top: 15px; }
.dots { margin-top: 16px; letter-spacing: 5px; }

.cta-band {
  background: var(--cream); position: relative; overflow: hidden;
  padding: 48px 28px;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 170px;
  background: url("../assets/botanical/leaves-left.webp") left center / contain no-repeat;
  opacity: .35;
}
.cta-inner {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 26% 48% 26%; align-items: center; gap: 25px;
}
.cta-logo img { width: 205px; }
.cta-title {
  font-family: var(--serif); font-size: 25px; line-height: 1.15; margin: 0;
}
.cta-button { justify-self: end; }

.site-footer {
  background: var(--green-dark); color: #fff; padding: 28px;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-nav { display: flex; gap: 23px; flex-wrap: wrap; }
.footer-nav a { font-size: 11px; text-decoration: none; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { font-size: 11px; text-decoration: none; }
.footer-bottom { margin-top: 28px; display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.75); }
.footer-mark { opacity: .6; width: 90px; }

.mobile-toggle { display: none; background: transparent; border: 0; font-size: 24px; color: var(--green); }

@media (max-width: 1000px) {
  .header-inner { min-height: 82px; }
  .site-logo img { width: 185px; }
  .main-nav ul { gap: 17px; }
  .main-nav a { font-size: 11px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 35px; min-height: 420px; }
  .hero-media { min-height: 440px; }
  .challenge-grid, .solutions-grid, .method-grid, .industries-grid, .result-grid { grid-template-columns: 1fr; }
  .challenge-cards { margin-top: 15px; }
  .solutions-grid { gap: 30px; }
  .method-grid { gap: 30px; }
  .bring-grid { grid-template-columns: 1fr; }
  .bring-image { max-height: 380px; }
  .cta-inner { grid-template-columns: 1fr 1.5fr; }
  .cta-button { justify-self: start; }
}

@media (max-width: 700px) {
  .header-inner { padding: 12px 20px; }
  .mobile-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 82px;
    background: var(--white); padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-cta { display: none; }

  .section { padding: 55px 20px; }
  .hero-copy { padding: 52px 25px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 14px; }
  .hero-media { min-height: 330px; }

  .challenge-cards, .solution-cards, .method-steps { grid-template-columns: 1fr; }
  .icon-card, .method-step { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0; min-height: auto; }
  .icon-card:first-child, .method-step:first-child { border-top: 0; }
  .method-arrow { display: none; }

  .bring-copy { padding: 48px 25px; }
  .bring-items { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .bring-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .bring-item:nth-child(-n+2) { border-top: 0; }

  .industry-cards { grid-template-columns: repeat(2, 1fr); }
  .industry-card:last-child { display: none; }

  .result-grid { gap: 30px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-button { justify-self: start; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
