/* FILE: css/style.css */
/* ==========================================================================
   Bytewillow Logic LLC — design system
   Tech x nature B2B palette. Willow branch = circuit trace motif.
   ========================================================================== */

:root {
  --bg: #F7F9F6;
  --bg-soft: #EFF3EC;
  --ink: #1F2A28;
  --muted: #5E6B64;
  --line: #DCE3DA;
  --willow: #3E7C5B;
  --willow-deep: #2E5F45;
  --sage: #A9C4B2;
  --amber: #D9A441;
  --white: #FFFFFF;

  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow-lift: 0 10px 24px rgba(31, 42, 40, 0.08);
  --wrap-max: 1120px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--willow-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--willow);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

strong {
  font-weight: 600;
}

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--willow);
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--willow-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--willow);
  color: var(--willow-deep);
}

.btn-light {
  background: var(--white);
  color: var(--willow-deep);
}

.btn-light:hover {
  background: var(--bg-soft);
  color: var(--willow-deep);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.site-nav {
  margin-left: auto;
}

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

.site-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--willow-deep);
  text-decoration: none;
  background: var(--bg-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--willow-deep);
  font-weight: 600;
}

.nav-cta {
  flex: none;
  padding: 11px 20px;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 5px 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 80px;
  overflow: hidden;
}

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

.hero h1 {
  margin-bottom: 0.5em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.8em;
}

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

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  border-radius: 16px;
}

/* ---------- Cards ---------- */

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--willow);
  box-shadow: var(--shadow-lift);
}

.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--willow);
}

.card h3 {
  margin-bottom: 0.5em;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0.9em;
}

.card .text-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -15px;
  left: 0;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--willow);
  background: var(--bg);
  padding-right: 10px;
}

.section--soft .step::before {
  background: var(--bg-soft);
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Example engagements ---------- */

.engagement .badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.engagement h3 {
  margin-bottom: 0.4em;
}

/* ---------- Stat band ---------- */

.stat-band {
  background: var(--ink);
  color: var(--bg);
  padding: 34px 0;
}

.stat-band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
}

.stat-band .item {
  display: flex;
  align-items: center;
}

.stat-band .item + .item::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  margin: 0 22px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--willow);
  color: var(--white);
  padding: 56px 0;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 0.2em;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44em;
  margin: 0;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type {
  border-bottom: 0;
}

.service-block .icon {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  color: var(--willow);
}

.service-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
}

.service-block .body p {
  color: var(--ink);
  max-width: 62em;
}

.deliverables {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.section--soft .deliverables {
  background: var(--bg);
}

.deliverables h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--willow);
  margin-bottom: 0.8em;
}

.deliverables ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 32px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.deliverables li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--willow);
  border-bottom: 2px solid var(--willow);
  transform: rotate(-45deg);
}

.timeline-line {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.timeline-line strong {
  color: var(--ink);
}

/* ---------- Scope note ---------- */

.scope-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 26px 30px;
  font-size: 0.98rem;
}

.scope-note h2 {
  font-size: 1.2rem;
}

.scope-note p:last-child {
  margin-bottom: 0;
}

/* ---------- Pricing ---------- */

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

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--willow);
  box-shadow: var(--shadow-lift);
}

.price-card.is-featured {
  border-color: var(--willow);
  border-width: 2px;
  position: relative;
}

.price-card.is-featured::before {
  content: "Most chosen";
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--willow);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 {
  margin-bottom: 0.2em;
}

.price-card .price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15em;
}

.price-card .price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card .tagline {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.1em;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  flex: 1;
}

.price-card ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  margin-bottom: 0.5em;
}

.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--willow);
  border-bottom: 2px solid var(--willow);
  transform: rotate(-45deg);
}

.price-card .fine {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}

.anchor-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.anchor-table th,
.anchor-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.anchor-table th {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}

.anchor-table tr:last-child td {
  border-bottom: 0;
}

.anchor-table .from {
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}

.policy-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.policy-block h3 {
  color: var(--willow-deep);
  font-size: 1.02rem;
  margin-top: 1.1em;
}

.policy-block h3:first-child {
  margin-top: 0;
}

.policy-block p {
  font-size: 0.96rem;
  margin-bottom: 0.4em;
}

/* ---------- About ---------- */

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

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.info-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--willow);
  margin-bottom: 1em;
}

.info-card dl {
  margin: 0;
}

.info-card dt {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 14px;
}

.info-card dt:first-child {
  margin-top: 0;
}

.info-card dd {
  margin: 2px 0 0;
  font-size: 0.97rem;
}

.about-figure {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.about-figure img {
  width: 100%;
}

/* ---------- FAQ accordion ---------- */

.faq-list {
  border-top: 1px solid var(--line);
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  padding: 22px 4px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-q:hover {
  color: var(--willow-deep);
}

.faq-q .chev {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq-q .chev::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--willow);
  border-bottom: 2px solid var(--willow);
  transform: rotate(-45deg);
}

.faq-q[aria-expanded="true"] .chev {
  transform: rotate(180deg);
  border-color: var(--willow);
}

.faq-a {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 62em;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

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

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}

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

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--willow);
  outline: 2px solid var(--willow);
  outline-offset: 1px;
}

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

.form-status {
  display: none;
  margin-top: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--willow-deep);
}

.form-status.is-visible {
  display: block;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 24px;
}

.contact-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--willow);
  margin-bottom: 1em;
}

.contact-card p {
  font-size: 0.97rem;
  margin-bottom: 0.9em;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal pages ---------- */

.legal-body {
  max-width: 780px;
  padding: 56px 0 80px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 0.97rem;
}

.legal-body .updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 26em;
  margin: 12px 0 0;
}

.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.5em;
}

.site-footer ul a {
  color: var(--ink);
  font-size: 0.94rem;
}

.site-footer ul a:hover {
  color: var(--willow-deep);
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.footer-legal p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Willow branch divider ---------- */

.branch-divider {
  width: 180px;
  color: var(--sage);
  margin-bottom: 28px;
}

/* ---------- Motion (reduced-motion safe) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .fade-in.is-visible {
    opacity: 1;
    transform: none;
  }

  .draw-line {
    stroke-dasharray: var(--draw-len, 1200);
    stroke-dashoffset: var(--draw-len, 1200);
    animation: draw 1s ease-out 0.15s forwards;
  }

  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .site-nav a {
    padding: 13px 12px;
    border-radius: 8px;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure {
    order: -1;
    max-width: 520px;
  }

  .card-grid,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 56px 0 52px;
  }

  .card-grid,
  .price-grid,
  .steps,
  .deliverables ul {
    grid-template-columns: 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block .icon {
    grid-row: auto;
    margin-bottom: 8px;
  }

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

  .cta-band .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
