/* Poppins is loaded via <link> in header.blade.php; an @import here would block serially. */

:root {
    --ink: #1f2933;
    --ink-soft: #52606d;
    --ink-faint: #7b8794;

    --surface: #ffffff;
    --surface-sunken: #f7f6f3;
    --line: #e4e7eb;

    --accent: #8c6d1f;
    --accent-strong: #6f5618;
    --accent-tint: #f6f1e4;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(31, 41, 51, .06), 0 2px 8px rgba(31, 41, 51, .04);
    --shadow-md: 0 2px 4px rgba(31, 41, 51, .06), 0 8px 24px rgba(31, 41, 51, .08);

  /* Retained for pages still referencing the older names. */
  --primary-color: #2c3855;
  --primary-color-dark: #435681;
  --text-dark: #333333;
  --text-light: #767268;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

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

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.footer__col a {
  color: var(--ink-soft);
}

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

img {
  width: 100%;
  display: flex;
}

body {
  font-family: "Poppins", sans-serif;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Carries what used to sit in the nav's style attribute, so that the colours can be
   restated for the overlay variant — an inline style cannot be overridden by a class. */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  color: var(--ink);
}

.site-nav a,
.site-nav button,
.site-nav .nav__logo span {
  color: inherit;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  font-weight: 500;
  color: var(--text-light);
  transition: 0.3s;
}

.link a:hover {
  color: var(--primary-color);
}

.footer {
  background-color: var(--extra-light);
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 5rem;
}

.footer__col h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__col p {
  margin-bottom: 1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: 0.3s;
}

.footer__col p:hover {
  color: var(--text-dark);
}

.footer__bar {
  position: relative;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: right;
}

@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bar {
    text-align: center;
  }
}
