/* ==========================================================================
   IGB Holistic — Integrated Systems Design
   Homepage stylesheet
   Light theme · olive accent · floating card nav · growing tree hero
   ========================================================================== */

:root {
  --cream: #F7F6F0;
  --cream-2: #F1EFE6;
  --cream-3: #ECEAE0;
  --ink: #1F211B;
  --ink-soft: #3A3D32;
  --muted: #5C604E;
  --white: #FFFFFF;
  --olive: #4D7C0F;
  --olive-deep: #3F6212;
  --olive-dark: #2E4808;
  --lime: #84CC16;
  --olive-tint: #EAF0DA;
  --olive-tint-2: #F0F4E3;
  --line: #DDE3CB;
  --wood: #6B5230;
  --wood-dark: #4E3B20;
  --card-shadow: 0 18px 45px rgba(31, 33, 27, 0.10);
  --nav-shadow: 0 12px 34px rgba(31, 33, 27, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--ink-soft);
}

a {
  color: var(--olive);
  text-decoration: none;
}

a:hover {
  color: var(--olive-deep);
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Floating card navigation
   ========================================================================== */

.site-nav {
  position: relative;
  z-index: 50;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-nav .nav-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 18px 12px 24px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--nav-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: var(--olive);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--olive);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--olive-tint-2);
  color: var(--olive-deep);
}

.nav-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--olive);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(77, 124, 15, 0.28);
}

.btn-primary:hover {
  background-color: var(--olive-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(77, 124, 15, 0.34);
}

.btn-outline {
  background-color: transparent;
  color: var(--olive-deep);
  border: 2px solid var(--olive);
}

.btn-outline:hover {
  background-color: var(--olive);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: var(--olive-tint-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--olive-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero — growing tree
   ========================================================================== */

.hero-section {
  padding: 56px 0 90px;
  background-color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--olive-tint);
  color: var(--olive-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--olive);
  position: relative;
}

.hero-copy .lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.hero-trust .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lime);
}

/* Tree visual */

.hero-tree {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 480px;
  margin: 0 auto;
}

.tree-ground {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 26px;
  background-color: var(--olive-tint);
  border-radius: 50%;
}

.trunk {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 170px;
  background: linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
  border-radius: 10px 10px 4px 4px;
}

.trunk::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 22px;
  background-color: var(--wood-dark);
  border-radius: 8px;
}

.branch {
  position: absolute;
  height: 10px;
  background: linear-gradient(90deg, var(--wood) 0%, var(--wood-dark) 100%);
  border-radius: 6px;
  transform-origin: left center;
}

.branch-1 { width: 130px; left: 50%; bottom: 150px; transform: rotate(-32deg); }
.branch-2 { width: 120px; left: 50%; bottom: 175px; transform: rotate(30deg); }
.branch-3 { width: 105px; left: 50%; bottom: 118px; transform: rotate(-52deg); }
.branch-4 { width: 100px; left: 50%; bottom: 200px; transform: rotate(54deg); }
.branch-5 { width: 90px; left: 50%; bottom: 214px; transform: rotate(-10deg); }

.leaf {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset 0 -6px 10px rgba(46, 72, 8, 0.22);
}

.leaf-l { background-color: var(--olive); }
.leaf-m { background-color: var(--olive-deep); }
.leaf-s { background-color: var(--lime); }

.leaf-1 { width: 58px; height: 58px; left: 20%; top: 62px; }
.leaf-2 { width: 46px; height: 46px; left: 34%; top: 96px; }
.leaf-3 { width: 62px; height: 62px; left: 50%; top: 40px; }
.leaf-4 { width: 44px; height: 44px; left: 66%; top: 84px; }
.leaf-5 { width: 56px; height: 56px; left: 78%; top: 54px; }
.leaf-6 { width: 40px; height: 40px; left: 30%; top: 150px; }
.leaf-7 { width: 52px; height: 52px; left: 58%; top: 132px; }
.leaf-8 { width: 36px; height: 36px; left: 72%; top: 156px; }

.tree-badge {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  font-weight: 700;
  color: var(--olive-deep);
  font-size: 14px;
}

.tree-badge .pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.leaf {
  animation: sway 5s ease-in-out infinite;
}

/* ==========================================================================
   Statement row
   ========================================================================== */

.statement-section {
  padding: 90px 0;
  background-color: var(--olive-deep);
  color: var(--white);
}

.statement-section h2 {
  color: var(--white);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  line-height: 1.25;
}

.statement-section h2 span {
  color: var(--lime);
}

.statement-meta {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.statement-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 600;
}

.statement-meta .meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--lime);
  font-weight: 800;
  font-size: 18px;
}

/* ==========================================================================
   Services — numbered feature columns
   ========================================================================== */

.services-section {
  padding: 100px 0;
  background-color: var(--cream);
}

.section-head {
  max-width: 680px;
  margin-bottom: 54px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 34px 30px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--olive);
}

.service-num {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--olive-tint);
  -webkit-text-stroke: 1.5px var(--olive);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--lime);
}

/* ==========================================================================
   Comparison table
   ========================================================================== */

.compare-section {
  padding: 100px 0;
  background-color: var(--cream-2);
}

.compare-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.compare-copy h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

.compare-copy p {
  font-size: 16px;
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background-color: var(--olive-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.compare-table .col-olive {
  background-color: var(--olive-tint-2);
}

.check {
  color: var(--olive);
  font-weight: 800;
}

.cross {
  color: #B4543A;
  font-weight: 800;
}

/* ==========================================================================
   Stats / counters
   ========================================================================== */

.stats-section {
  padding: 70px 0;
  background-color: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat .stat-value {
  font-size: 46px;
  font-weight: 800;
  color: var(--olive);
  letter-spacing: -0.02em;
}

.stat .stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Process — numbered list
   ========================================================================== */

.process-section {
  padding: 100px 0;
  background-color: var(--cream);
}

.process-list {
  counter-reset: step;
  list-style: none;
  max-width: 820px;
}

.process-list li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
  border-top: 1px solid var(--line);
}

.process-step {
  font-size: 20px;
  font-weight: 800;
  color: var(--olive);
}

.process-step::before {
  content: "0" counter(step);
}

.process-list h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.process-list p {
  font-size: 15px;
  max-width: 620px;
}

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion-section {
  padding: 100px 0;
  background-color: var(--cream-2);
}

.accordion {
  max-width: 820px;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.accordion-btn .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--olive-tint);
  color: var(--olive-deep);
  font-weight: 800;
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-btn .icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel-inner {
  padding: 0 26px 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Testimonial
   ========================================================================== */

.testimonial-section {
  padding: 100px 0;
  background-color: var(--olive-deep);
  color: var(--white);
}

.testimonial-section .quote {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--white);
  max-width: 900px;
}

.testimonial-section .quote span {
  color: var(--lime);
}

.testimonial-author {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--lime);
  color: var(--olive-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.testimonial-author .who .name {
  font-weight: 700;
  color: var(--white);
}

.testimonial-author .who .role {
  font-size: 14px;
  color: var(--cream);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  padding: 100px 0;
  background-color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-detail .c-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--olive-tint);
  color: var(--olive-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.contact-detail .c-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-detail .c-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 38px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px var(--olive-tint);
}

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

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background-color: var(--olive-tint);
  color: var(--olive-deep);
}

.form-status.error {
  display: block;
  background-color: #F7E4DE;
  color: #8A3D26;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-section {
  background-color: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 180px;
  font-weight: 800;
  line-height: 1;
  color: #2A2D22;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

.footer-main {
  position: relative;
  padding: 70px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--cream-2);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--cream-2);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--cream-2);
}

.footer-bottom a {
  color: var(--lime);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .leaf {
    animation: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: 44px;
  }
  .hero-tree {
    max-width: 400px;
    height: 420px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .compare-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--nav-shadow);
    padding: 10px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 13px 16px;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .statement-section h2 {
    font-size: 30px;
  }
  .section-head h2 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-copy .lead {
    font-size: 17px;
  }
  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-watermark {
    font-size: 110px;
  }
  .contact-form {
    padding: 24px;
  }
}
