/* ============================================
   SteadyFrame — Shared Styles
   ============================================ */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Variables ---- */
:root {
  --white: #FFFFFF;
  --off: #F5F5F2;
  --text: #1B1B1B;
  --muted: #5C5C5C;
  --accent: #2C5F5F;
  --accent-dark: #1D4747;
  --accent-light: #EAF0F0;
  --rule: #E4E4E2;
  --dark: #152830;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---- Layout ---- */
.wrap { max-width: 720px; margin: 0 auto; }
.wrap-w { max-width: 960px; margin: 0 auto; }
section { padding: 4.5rem 1.5rem; }
.alt { background: var(--off); }

/* ---- Header / Nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 1.5rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 450;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background .15s !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-right: -.5rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform .2s, opacity .2s;
}

/* ---- Hero (homepage) ---- */
.hero {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(44, 95, 95, .2) 0%, transparent 55%),
    var(--dark);
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.03em;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  color: #fff;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .65);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero .btn-fill {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.hero .btn-fill:hover {
  background: rgba(255, 255, 255, .92);
  color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  background: var(--accent-light);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .9375rem 2.125rem;
  border-radius: 6px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, box-shadow .2s, transform .15s, opacity .15s;
}

.btn-fill {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-fill:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-inv {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.btn-inv:hover {
  opacity: .92;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transform: translateY(-1px);
}

.text-link {
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.text-link:hover { color: var(--accent-dark); }
.text-link::after { content: ' \2192'; }

/* ---- Section Text ---- */
.label {
  text-transform: uppercase;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .875rem;
}

h2 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: .375rem;
}

.body-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.body-text p:last-child { margin-bottom: 0; }

.body-text .strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Comparison Grid ---- */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.comp-col h3 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 650;
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--accent);
}

.comp-col.before-col h3 {
  color: var(--muted);
  border-color: var(--rule);
}

.comp-col.after-col h3 { color: var(--accent); }
.comp-col ul { list-style: none; }

.comp-col li {
  padding: .625rem 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.55;
}

.comp-col li:last-child { border-bottom: none; }
.before-col li { color: var(--muted); }
.after-col li { color: var(--text); font-weight: 500; }

/* ---- Steps Grid ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.step-num {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .875rem;
}

.step h3 { font-size: 1.0625rem; font-weight: 650; margin-bottom: .375rem; }
.step p { font-size: .9375rem; color: var(--muted); line-height: 1.6; }

/* ---- Service Cards (homepage summary) ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card h3 { font-size: 1rem; font-weight: 650; margin-bottom: .375rem; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* ---- Service Items (services page) ---- */
.service-list { margin-top: 1rem; }

.service-item {
  padding: 0 0 2.5rem 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
}

.service-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-item h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .375rem; }
.service-item .service-tagline { color: var(--muted); margin-bottom: 1.25rem; }

.service-deliverables { list-style: none; margin: 1.25rem 0; }

.service-deliverables li {
  padding: .3rem 0 .3rem 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
}

.service-deliverables li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-fit {
  font-size: .9375rem;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.service-fit strong { color: var(--text); font-weight: 600; }

/* ---- Fit List ---- */
.fit-list { list-style: none; margin: 1.25rem 0; }

.fit-list li {
  padding: .4rem 0 .4rem 1.375rem;
  position: relative;
  color: var(--muted);
}

.fit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.qualifier {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--muted);
}

/* ---- Waste List (how-it-works page) ---- */
.waste-list { list-style: none; margin: 1.5rem 0; }

.waste-list li {
  padding: .75rem 0 .75rem 1rem;
  font-size: .95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid var(--accent-light);
  line-height: 1.55;
}

.waste-list li:last-child { border-bottom: none; }
.waste-list strong { color: var(--text); font-weight: 600; }

/* ---- Beliefs (about page) ---- */
.beliefs { display: grid; gap: 1.5rem; margin-top: 2rem; }

.belief {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--off);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.belief h3 { font-size: 1.0625rem; font-weight: 650; margin-bottom: .375rem; }
.belief p { color: var(--muted); font-size: .9375rem; line-height: 1.65; }

/* ---- Not-list (about page) ---- */
.not-list { list-style: none; margin: 1.25rem 0; }

.not-list li {
  padding: .4rem 0 .4rem 1.375rem;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
}

.not-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: .35rem;
  font-size: .75rem;
  color: var(--muted);
}

/* ---- Founder (about page) ---- */
.founder {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.founder-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.founder-text h2 { margin-bottom: .75rem; }

/* ---- Contact Block ---- */
.contact-block {
  text-align: center;
  margin-top: 2rem;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.section-link { margin-top: 1.5rem; }

.contact-email {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: rgba(44, 95, 95, .3);
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.contact-email:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.contact-email-display {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  user-select: all;
  cursor: text;
}

.copy-btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.copy-msg {
  display: block;
  font-size: .8125rem;
  color: var(--accent);
  height: 1.25rem;
  margin-top: .5rem;
}

.footer-location {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .4);
  margin-top: .25rem;
}

.body-text-spaced { margin-top: 1.5rem; }

/* ---- CTA Section ---- */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .06) 0%, transparent 55%),
    var(--accent);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: #fff;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand { margin-bottom: 1.5rem; }

.footer-wordmark {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: .25rem;
}

.footer-tagline {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .45);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-nav a {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
}

.footer-copy a {
  color: rgba(255, 255, 255, .5);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: rgba(255, 255, 255, .2);
}

.footer-copy a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .6);
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .hero { padding: 7.5rem 1.5rem 6rem; }
  .hero h1 { font-size: 2.875rem; }
  .page-hero { padding: 5rem 1.5rem 3.5rem; }
  .page-hero h1 { font-size: 2.375rem; }
  section { padding: 5.5rem 1.5rem; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.5rem 1.25rem;
    flex-direction: column;
    gap: .75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: .9375rem; }
  .nav-cta { align-self: flex-start; margin-top: .25rem; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .comp-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-cards { grid-template-columns: 1fr; }
  .founder { flex-direction: column; gap: 1.25rem; }
  h2 { font-size: 1.375rem; }
}
