/* ===== StableRise — style.css =====
   Light theme · warm clay / terracotta on a soft paper background */

:root {
  --bg: #FBF6EF;
  --bg-soft: #F4EBE0;
  --bg-deep: #2A1D15;
  --surface: #FFFFFF;
  --ink: #241811;
  --ink-soft: #433228;
  --muted: #775F4C;
  --accent: #C05A31;
  --accent-deep: #98431F;
  --accent-soft: #F3DFCE;
  --line: #E8D8C6;
  --green: #35764C;
  --red: #A5422E;
  --shadow: 0 18px 40px rgba(42, 29, 21, 0.10);
  --shadow-sm: 0 8px 20px rgba(42, 29, 21, 0.08);
  --radius: 16px;
  --max: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

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

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

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

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent-deep);
}

.btn-ghost:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn-sm {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 44px;
}

/* ===== Scroll reveal ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar (top-centered inline logo) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(42, 29, 21, 0.05);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.nav-left a,
.nav-right a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--accent-deep);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  justify-self: center;
}

.brand-dot {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 4px;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a.btn {
  margin-top: 10px;
  text-align: center;
  color: #FFFFFF;
  border-bottom: none;
}

/* ===== Hero ===== */
.hero-section {
  padding: 160px 0 80px;
  background: radial-gradient(1200px 500px at 50% -100px, #F6E7D8 0%, var(--bg) 70%);
}

.hero-inner {
  text-align: center;
  max-width: 840px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 68px);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Floating stat card cluster ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:nth-child(2) {
  transform: translateY(-18px);
}

.stat-card:nth-child(4) {
  transform: translateY(-18px);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stat-card:nth-child(2):hover,
.stat-card:nth-child(4):hover {
  transform: translateY(-24px);
}

.stat-value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ===== Tabs section ===== */
.tabs-section {
  padding: 90px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tab-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.tab-panels {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.tab-panel[hidden] {
  display: none;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.panel-copy h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.panel-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.panel-copy p:last-child {
  margin-bottom: 0;
}

.panel-list {
  list-style: none;
  background-color: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.panel-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.panel-list li:last-child {
  border-bottom: none;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background-color: var(--accent);
}

/* ===== About section ===== */
.about-section {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-heading {
  position: sticky;
  top: 110px;
}

.about-body p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 18px;
}

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

.about-principles {
  grid-column: 2;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.about-principles li {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  color: var(--ink-soft);
  font-size: 15px;
}

.about-principles li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 16px;
}

/* ===== Compare section ===== */
.compare-section {
  padding: 90px 0;
  background-color: var(--bg-deep);
  color: #F3EADF;
}

.compare-section .section-title {
  color: #FDF8F0;
}

.compare-section .section-sub {
  color: #CBB9A6;
}

.compare-section .section-eyebrow {
  color: #E49A72;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.compare-col {
  border-radius: var(--radius);
  padding: 36px;
}

.compare-pros {
  background-color: #35261D;
  border: 1px solid #5A4231;
}

.compare-cons {
  background-color: #2C2018;
  border: 1px solid #4A382A;
}

.compare-heading {
  font-size: 22px;
  margin-bottom: 26px;
  color: #FDF8F0;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.compare-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.compare-list .mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark-ok {
  background-color: #2E5438;
  color: #C7E8D2;
}

.mark-no {
  background-color: #5A2E22;
  color: #F0C4B4;
}

.compare-list strong {
  display: block;
  color: #FDF8F0;
  font-size: 17px;
  margin-bottom: 4px;
}

.compare-list p {
  color: #D6C4B2;
  font-size: 15px;
}

/* ===== Contact section ===== */
.contact-section {
  padding: 90px 0;
}

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

.contact-info > p {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span:not(.contact-label) {
  color: var(--ink-soft);
  font-size: 16px;
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #E7F2E9;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--bg-deep);
  color: #E7D9C8;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.brand-light {
  color: #FDF8F0;
  font-size: 26px;
}

.footer-brand-col p {
  color: #CBB9A6;
  margin-top: 14px;
  max-width: 320px;
  font-size: 15px;
}

.footer-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FDF8F0;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #CBB9A6;
  font-size: 15px;
}

.footer-col ul li a:hover {
  color: #E49A72;
}

.footer-bottom {
  border-top: 1px solid #4A382A;
  padding-top: 24px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: #B49E8A;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-inner {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .brand {
    justify-self: center;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2),
  .stat-card:nth-child(4) {
    transform: none;
  }

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

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

  .about-heading {
    position: static;
  }

  .about-principles {
    grid-column: 1;
  }

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

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

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

@media (max-width: 560px) {
  .hero-section {
    padding: 140px 0 60px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .about-principles {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .tab-panels {
    padding: 26px;
  }

  .contact-form {
    padding: 26px;
  }
}
