:root {
  --bg: #f8fafc;
  --surface: #fff;
  --surface-alt: #fff7ed;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

main {
  min-height: 60vh;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow,
.card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading p {
  margin-top: 0.75rem;
  max-width: 720px;
  color: var(--muted);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem max(2rem, env(safe-area-inset-left)) 1rem max(2rem, env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #9a3412;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary,
.btn-login,
.mobile-cta,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.btn-login:hover,
.mobile-cta:hover {
  transform: translateY(-1px);
}

.btn-login {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.text-link {
  color: #9a3412;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-cta {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}

.mobile-cta-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand p,
.footer-contact a,
.footer-links a,
.social-links a,
.footer-bottom p {
  color: var(--muted);
}

.footer-brand p {
  margin: 1rem 0;
  max-width: 340px;
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a,
.footer-contact a,
.social-links a {
  text-decoration: none;
}

.footer-column h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-bottom {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3,
.card p,
.card-meta {
  margin: 0;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.card h3 a {
  text-decoration: none;
}

.card p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.card-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #475569;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

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

@media (max-width: 720px) {
  .container,
  .footer-content,
  .footer-bottom {
    width: min(100% - 1.5rem, 1120px);
  }

  .footer-content,
  .footer-bottom,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}
