:root {
  --site-background: #fbfaf7;
  --site-surface: #ffffff;
  --site-surface-soft: #f3f6f2;
  --site-primary: #1d6048;
  --site-primary-dark: #154b38;
  --site-primary-soft: #e8f2ec;
  --site-heading: #17231d;
  --site-text: #526159;
  --site-muted: #748078;
  --site-border: #e1e7e2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--site-background);
  color: var(--site-heading);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}
h2 {
  font-weight: 300;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-right: auto;
  margin-left: auto;
}

/* Shared header */

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(251, 250, 247, 0.95);
  border-bottom: 1px solid var(--site-border);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--site-heading);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* background: var(--site-primary-soft); */
  border-radius: 15px;
  flex-shrink: 0;
}

.brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1.25;
}

.brand-text small {
  color: var(--site-muted);
  font-size: 0.77rem;
  margin-top: 0.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a,
.footer-links a {
  color: #46534c;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--site-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.login-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--site-heading);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 650;
}

.login-link:hover {
  background: var(--site-primary-soft);
}

/* Shared buttons */

.primary-button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button {
  background: var(--site-primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(29, 96, 72, 0.17);
}

.primary-button:hover {
  background: var(--site-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(29, 96, 72, 0.22);
}

.secondary-button {
  background: transparent;
  color: var(--site-heading);
  border-color: #cdd6d0;
}

.secondary-button:hover {
  background: #ffffff;
  color: var(--site-primary);
  border-color: #aabbb0;
}

.large-button {
  min-height: 54px;
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
}

/* Shared section headings */

.section-label {
  display: inline-flex;
  align-items: center;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  border: 1px solid #d4e5da;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 3rem;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 1rem 0 1.15rem;
}

.section-heading h2 span {
  color: var(--site-primary);
  font-style: italic;
}

.section-heading p {
  color: var(--site-text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Shared footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--site-border);
}

.footer-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.95rem;
}

.footer-brand p {
  color: var(--site-muted);
  font-size: 0.78rem;
  margin: 0.15rem 0 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  color: var(--site-muted);
  font-size: 0.75rem;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .copyright {
    grid-column: 1 / -1;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-text small,
  .login-link {
    display: none;
  }

  .header-actions .primary-button {
    min-height: 40px;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
    padding-bottom: 0;
  }
}

@media (max-width: 575px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-logo img {
    width: 28px;
    height: 28px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }
}
