/* ============================================================
   CurbSofa — Shared Styles
   Used by: blog, faq, terms, privacy, about, cookie-policy
   ============================================================ */

/* ── Accessibility: keyboard focus ───────────────────────── */
:focus-visible { outline: 2px solid var(--green-dark, #2C6E49); outline-offset: 2px; border-radius: 4px; }

/* ── Variables ───────────────────────────────────────────── */
:root {
  --green:       #3D9970;
  --green-dark:  #2C6E49;
  --green-mid:   #2E8B57;
  --green-light: #E8F5EE;
  --bg:          #F5F0E8;
  --text:        #1A1A1A;
  --muted:       #666;
  --border:      #E0E0E0;
  --gold:        #F5C842;
  --red:         #E84040;
  --red-dark:    #C92E2E;
  --white:       #fff;
}

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

/* ── Body ────────────────────────────────────────────────── */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo,
.site-header .nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .nav-links {
  display: flex;
  gap: 20px;
}
.site-header .nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  padding: 8px 0;
}
.site-header .nav-links a:hover { color: var(--green-dark); }
.site-header .nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ── Hamburger menu ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  z-index: 99;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--green-dark); }
.site-header .nav-links a.active { color: var(--green-dark); font-weight: 700; }
.nav-mobile a.active { color: var(--green-dark); font-weight: 700; }
@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .site-header .nav-links { display: none; }
  .site-header .nav-cta { margin-left: auto; margin-right: 8px; }
  .site-header .nav-cta .btn-signin { display: none; }
  .site-header .nav-cta .btn-app { padding: 11px 16px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
  .nav-hamburger { display: flex; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-signin {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  background: none;
  border: 2px solid var(--green-dark);
  border-radius: 10px;
  padding: 7px 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
  font-family: 'Poppins', sans-serif;
}
.btn-signin:hover { background: var(--green-dark); color: var(--white); }

.btn-app,
.btn-open-app {
  background: var(--green);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  font-family: 'Poppins', sans-serif;
}
.btn-app:hover,
.btn-open-app:hover { background: var(--green-dark); }

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
  font-family: 'Poppins', sans-serif;
}
.btn-red:hover { background: var(--red-dark); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: var(--green-dark); color: rgba(255,255,255,.86); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 36px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: white;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  text-decoration: none;
  color: white;
  transition: background .18s;
}
.social-btn:hover { background: rgba(255,255,255,.22); }
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: white;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .6px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,.88);
  text-decoration: none; margin-bottom: 10px; transition: color .18s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.88); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.88); text-decoration: none; }
.footer-bottom-links a:hover { color: white; }
