/* Roberts WebWorks — Green Ribbon brand system */
@import url("rww-tokens.css");

:root {
  --cream: var(--rww-paper);
  --cream-deep: #edf7ee;
  --white: var(--rww-white);
  --ink: var(--rww-ink);
  --slate: #365146;
  --slate-soft: #60766a;
  --steel: var(--rww-green-700);
  --steel-deep: var(--rww-green-800);
  --steel-soft: var(--rww-green-400);
  --line: var(--rww-line);
  --shadow: none;
  --radius: var(--rww-radius-card);
  --max: 70rem;
  --font: var(--rww-font-body);
  --display: var(--rww-font-display);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink);
  background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-deep); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rww-green-400); outline-offset: 2px;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.35rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; color: var(--ink); line-height: 1.15; }
.brand-sub { font-family: var(--rww-font-mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-soft); font-weight: 500; margin-top: .12rem; }
.nav { display: flex; align-items: center; gap: 1.05rem; }
.nav a:not(.btn) { font-weight: 650; font-size: .92rem; color: var(--slate); text-decoration: none; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--ink); border-radius: var(--rww-radius-control); padding: .35rem .65rem; font-size: 1.1rem; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; gap: .75rem; padding: .75rem 0 1.1rem; border-top: 1px solid var(--line); }
.nav-mobile:not([hidden]) { display: flex; }
.nav-mobile a { font-weight: 650; text-decoration: none; color: var(--slate); }
.steel-bar { height: 6px; background: linear-gradient(90deg, var(--rww-green-400) 0%, var(--rww-green-500) 42%, var(--rww-green-700) 76%, var(--rww-green-800) 100%); }

/* Buttons: clipped right corners, never pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.15rem; border: 1px solid var(--ink); border-radius: 0; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; line-height: 1.2; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.btn-primary { background: var(--rww-green-800); color: #fff; border-color: var(--rww-green-800); }
.btn-primary:hover { background: var(--rww-green-700); color: #fff; border-color: var(--rww-green-700); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.btn-secondary:hover { background: var(--cream-deep); color: var(--ink); border-color: var(--rww-green-700); }
.btn-steel { background: var(--rww-green-700); color: #fff; border-color: var(--rww-green-700); }
.btn-steel:hover { background: var(--rww-green-800); border-color: var(--rww-green-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-slate { background: var(--steel-deep); color: #eaf7ed; }
.section-slate h2, .section-slate .section-kicker { color: #fff; }
.section-slate .section-lede { color: #d0e7d5; }
.section-kicker, .eyebrow { font-family: var(--rww-font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--steel-deep); margin: 0 0 .5rem; }
.section h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 .75rem; line-height: 1.2; color: var(--ink); }
.section-lede { max-width: 40rem; color: var(--slate); margin: 0 0 1.75rem; font-size: 1.05rem; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 3.25rem 0 3.5rem; background: var(--cream); }
.hero::after { content: ""; position: absolute; z-index: -1; width: min(48vw, 40rem); height: 18rem; right: -8rem; top: -3.5rem; background: linear-gradient(135deg, var(--rww-green-400), var(--rww-green-500) 48%, var(--rww-green-700)); clip-path: polygon(28% 0, 100% 0, 100% 52%, 72% 100%, 0 100%, 24% 50%); opacity: .88; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; margin: 0 0 1rem; color: var(--ink); }
.lede { font-size: 1.12rem; color: var(--slate); max-width: 36rem; margin: 0; }
.hero-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--rww-radius-card); padding: 1.35rem 1.4rem; }
.hero-card h3 { margin: 0 0 .65rem; font-family: var(--display); font-size: 1.15rem; }
.hero-card ul { margin: 0; padding-left: 1.15rem; color: var(--slate); }
.hero-card li { margin: .35rem 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.badge { display: inline-block; border: 1px solid var(--line); background: var(--white); padding: .28rem .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--slate); border-radius: 4px; }
.badge-hearth { border-color: #a9d9b2; color: var(--steel-deep); background: #e8f8eb; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.card, .sample-card, .price-card, .contact-card, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--rww-radius-card); }
.card { padding: 1.25rem 1.3rem; }
.card .num { font-family: var(--rww-font-mono); font-size: .7rem; letter-spacing: .1em; font-weight: 500; color: var(--steel-deep); margin-bottom: .45rem; }
.card h3 { margin: 0 0 .45rem; font-family: var(--display); font-size: 1.15rem; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.sample-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.2rem; text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.sample-card:hover { transform: translateY(-2px); border-color: var(--rww-green-700); color: inherit; }
.sample-card .industry, .price-card .tier { font-family: var(--rww-font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--steel-deep); }
.sample-card h3 { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.sample-card .meta { font-size: .88rem; color: var(--slate-soft); margin: 0; }
.sample-card .cta { font-weight: 700; font-size: .88rem; color: var(--steel-deep); margin-top: auto; }
.price-card { padding: 1.5rem 1.4rem; }
.price-card.featured { border: 2px solid var(--rww-green-700); background: #f1faf2; }
.price-card h3 { margin: .35rem 0 .5rem; font-family: var(--display); font-size: 1.35rem; }
.price-card .amount { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); margin: .4rem 0; }
.price-card .amount span { font-size: .95rem; font-weight: 600; color: var(--slate-soft); }
.price-card ul { margin: .85rem 0 0; padding-left: 1.1rem; color: var(--slate); }
.price-card li { margin: .3rem 0; }

/* FAQ, CTA, forms */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--rww-radius-card); padding: .95rem 1.15rem; margin-bottom: .75rem; }
.faq summary { font-weight: 750; cursor: pointer; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--steel-deep); font-weight: 800; }
.faq details[open] summary::before { content: "− "; }
.faq details p { margin: .65rem 0 0; color: var(--slate); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.75rem 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--rww-radius-card); }
.cta-band h2 { margin: 0 0 .35rem; font-family: var(--display); font-size: 1.45rem; }
.cta-band p { margin: 0; color: var(--slate); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
.contact-card, .form-card { padding: 1.4rem; }
label { display: block; font-weight: 700; font-size: .88rem; margin: .85rem 0 .35rem; }
input, textarea, select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--rww-radius-control); font: inherit; background: var(--cream); color: var(--ink); }
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: .85rem; color: var(--slate-soft); margin-top: .85rem; }
.page-hero { padding: 2.5rem 0 1.5rem; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 .65rem; line-height: 1.15; }
.page-hero p { margin: 0; max-width: 40rem; color: var(--slate); font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d0e7d5; padding: 2.5rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.site-footer a { color: #eaf7ed; }
.site-footer h3 { font-family: var(--display); color: #fff; font-size: 1rem; margin: 0 0 .65rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.footer-legal { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid rgba(207,226,210,.28); font-size: .85rem; color: #a9c2ae; }

@media (max-width: 900px) { .hero-grid, .grid-3, .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; } .nav-desktop { display: none; } .nav-toggle { display: inline-flex; } .hero::after { right: -13rem; opacity: .55; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sample-card { transition: none; } }
