/* RUFKO site styles. Layout: one column on phones, two to three on wider screens;
   slanted shapes echo the rising frame of the RUFKO logo. */
:root {
  --ink: #252B2D;      /* charcoal: text and dark bands */
  --paper: #FFFFFF;    /* page */
  --tint: #ECF2F3;     /* teal-grey band */
  --teal: #5E8D93;     /* brand teal: logo, shapes, large type */
  --brick: #A65F48;    /* call-to-action */
  --muted: #56646A;    /* secondary text */
  --teal-ink: #36636A; /* teal dark enough for links and small text */
  --rule: #D3DEE0;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Carlito", Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
}

@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("fonts/carlito-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("fonts/carlito-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.5;
  padding-bottom: 84px; /* room for the phone call-to-action bar */
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--brick); color: #FFFFFF; }
.btn-primary:hover { background: #8E4E3A; }
.btn-ghost { border-color: var(--teal-ink); color: var(--teal-ink); background: transparent; }
.btn-ghost:hover { background: var(--tint); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }
.btn-large { padding: 16px 28px; font-size: 1.15rem; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; }
.brand img { width: auto; height: 46px; }
.top .btn { display: none; }

/* Sections */
.section { padding: 56px 0; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.2rem; }

/* Hero */
.hero { padding: 36px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}
.lede { margin-top: 18px; max-width: 34em; font-size: 1.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-note { margin-top: 12px; font-size: 1rem; color: var(--muted); }
.hero-art { margin: 0; }
.art-panel { position: relative; padding: 34px 24px 30px; }
.art-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%);
}
.art-panel a {
  position: relative;
  display: block;
  width: min(74%, 340px);
  margin: 0 auto;
  transform: rotate(-3deg);
  box-shadow: 0 18px 40px rgba(37, 43, 45, 0.28);
}
.hero-art figcaption { margin-top: 14px; text-align: center; font-size: 1rem; color: var(--muted); }

/* Steps */
.step-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 24px; }
.step-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; align-items: start; }
.step-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%);
}

/* Your business */
.yours { background: var(--tint); }
.yours-grid { display: grid; gap: 28px; }
.points { display: grid; gap: 16px; }
.point { background: var(--paper); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.point p { margin-top: 6px; }

/* Toolkit */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.icon { width: 30px; height: 30px; color: var(--teal-ink); }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 18px; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--teal);
  clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}
.card-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.card-dark .icon { color: #A9C6CA; }
.card-dark li { color: #D9E3E4; }
.card-dark li::before { background: #A9C6CA; }

.build { background: var(--tint); }

/* More ways */
.more-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.more-list li { border-top: 3px solid var(--teal); padding-top: 14px; }
.more-list p { margin-top: 6px; }

/* Questions */
.faq { background: var(--tint); padding-bottom: 96px; }
.faq-list { margin: 28px 0 0; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; }
.faq-item dt { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.faq-item dd { margin: 8px 0 0; }

/* Final call to action */
.final { position: relative; background: var(--ink); color: #FFFFFF; padding: 40px 0 56px; }
.final::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(32px, 6vw, 72px);
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.final p { margin-top: 12px; max-width: 32em; font-size: 1.25rem; color: #D9E3E4; }
.final .btn { margin-top: 26px; }

/* Footer */
.foot { background: var(--ink); color: #C9D5D7; padding: 0 0 36px; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}
.foot-logo { width: auto; height: 34px; margin-right: 8px; }
.foot a { color: #FFFFFF; }

/* Policies page */
.policy { padding: 48px 0 72px; }
.policy .wrap { max-width: 760px; }
.policy h2 { margin-top: 36px; font-size: 1.4rem; }
.policy p { margin-top: 8px; }

/* Phone call-to-action bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--rule);
}
.sticky-cta .btn { width: 100%; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .top .btn { display: inline-flex; }
  .brand img { height: 54px; }
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step-list li { grid-template-columns: 1fr; }
  .step-num { grid-row: auto; margin-bottom: 10px; }
  .more-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .yours-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 56px; }
  .faq { padding-bottom: 128px; }
  .faq-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .final { padding: 48px 0 72px; }
}

@media (min-width: 1000px) {
  .cards-consult { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
