/* Cirinno — Circular Economy Consulting
   Brand palette + Roboto. Roboto is loaded via Google Fonts link tags in index.html. */

:root {
  --bg: #ffffff;
  --bg-alt: #eefbe6;
  --panel: #ffffff;
  --ink: #14170f;
  --ink-soft: #454f40;
  --ink-faint: #7c8676;
  --green-900: #2a3a24;
  --green-700: #5c8255;
  --green-600: #729468;
  --green-500: #8fae82;
  --mint: #baffad;
  --amber: #bd7b2c;
  --line: #dcecd3;
  --radius: 18px;
  --serif: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Highlighter-marker heading treatment, borrowed from the Cirinno slide deck:
   a solid color bar sitting behind the lower portion of bold text. */
.mark {
  background-image: linear-gradient(var(--mint) 0 0);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 96%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.06em;
}

.mark-white { background-image: linear-gradient(#fff 0 0); }
.mark-sage { background-image: linear-gradient(var(--green-700) 0 0); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 2px solid var(--mint);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--green-700);
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
}

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

.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links a:not(.btn):hover { color: var(--green-700); }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
}
.btn-primary:hover { background: var(--green-900); }

.btn-ghost {
  background: transparent;
  border-color: var(--green-700);
  color: var(--green-700);
}
.btn-ghost:hover { background: var(--green-700); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green-900);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero .wrap { position: relative; z-index: 1; }

/* Decorative circle-arc motif, borrowed from the Cirinno slide deck */
.deco-arc {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero .deco-arc.tr { top: -60px; right: -110px; }
.hero .deco-arc.bl { bottom: -120px; left: -120px; }

.tool-panel .deco-arc {
  bottom: -70px;
  right: -70px;
  z-index: 0;
  opacity: 0.5;
}

.eyebrow-plain {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 20px;
  color: var(--ink);
  max-width: 18ch;
}

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 34px;
}

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

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 46px; }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 10px;
}

h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 14px;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Two-track intro ---------- */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.track-card {
  background: var(--panel);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  padding: 32px;
}

.track-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 12px;
}

.track-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--panel);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  padding: 30px;
}

.service-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--green-900);
  font-weight: 800;
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 10px;
}

.service-card > p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.service-card li { margin-bottom: 7px; }

/* ---------- Tool spotlight ---------- */
.tool-panel {
  background: var(--mint);
  color: var(--ink);
  border-radius: 24px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tool-copy { position: relative; z-index: 1; }

.tool-panel .kicker { color: var(--green-900); }
.tool-panel h2 { color: var(--ink); }
.tool-panel p { color: var(--green-900); font-size: 1.02rem; }

.tool-mock {
  background: #fff;
  border: 2px solid var(--green-900);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  z-index: 1;
}

.tool-mock-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 12px;
}

.tool-mock-textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink-faint);
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: 92px;
  margin-bottom: 16px;
}

.tool-mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tool-mock-hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.tool-mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.tool-actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

.tool-panel .btn-primary {
  background: var(--ink);
  color: #fff;
}
.tool-panel .btn-primary:hover { background: var(--green-900); }

/* ---------- Clients carousel ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee-scroll 32s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.client-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 18px 30px;
  text-decoration: none;
  cursor: default;
  white-space: nowrap;
}

.client-chip img {
  height: 34px;
  width: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.avatar-ring {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  padding: 12px;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--mint);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-500), var(--green-900));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.2rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  background: var(--panel);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  padding: 34px 38px;
}

.about-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-panel {
  background: var(--panel);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info p { color: var(--ink-soft); }

.contact-link {
  display: block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: none;
  font-size: 1.05rem;
}

form.contact-form { display: grid; gap: 14px; }

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}

.contact-form textarea { min-height: 110px; resize: vertical; }

.contact-form button {
  justify-self: start;
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 6px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.form-status-sent {
  background: var(--bg-alt);
  color: var(--green-900);
  border: 1px solid var(--line);
}

.form-status-error {
  background: #fdecea;
  color: #8a2c22;
  border: 1px solid #f3c6c0;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--green-700); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .tool-panel { grid-template-columns: 1fr; padding: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar-ring { width: 140px; height: 140px; }
  .avatar { font-size: 2.2rem; }
  .contact-panel { grid-template-columns: 1fr; padding: 30px; }
  .tracks { grid-template-columns: 1fr; }
  .hero .deco-arc { display: none; }
}

@media (max-width: 620px) {
  .nav-links { position: fixed; inset: 64px 16px auto 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; display: none; box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
