/* ==========================================================================
   Base & Fonts
   ========================================================================== */

@font-face {
  font-family: "Edmondsans Regular";
  font-style: normal;
  font-weight: normal;
  src: local("Edmondsans Regular"),
    url("EdmondsansRegular_web.woff") format("woff");
}

@font-face {
  font-family: "Edmondsans Medium";
  font-style: normal;
  font-weight: normal;
  src: local("Edmondsans Medium"),
    url("EdmondsansMedium_web.woff") format("woff");
}

@font-face {
  font-family: "Edmondsans Bold";
  font-style: normal;
  font-weight: normal;
  src: local("Edmondsans Bold"), url("EdmondsansBold_web.woff") format("woff");
}

/* ==========================================================================
   CSS Variables (Pico Overrides)
   ========================================================================== */

:root {
  --pico-font-family-sans-serif: "Edmondsans Regular", sans-serif,
    var(--pico-font-family-emoji);

  --pico-secondary: #4a7c59 !important;
  --pico-secondary-background: #4a7c59 !important;
  --pico-secondary-border: #4a7c59 !important;
  --pico-secondary-hover-border: #3b6347 !important;
  --pico-secondary-hover-background: #3b6347 !important;
  --pico-secondary-hover: #3b6347 !important;
  --pico-secondary-inverse: #ffffff !important;

  --pico-block-spacing-vertical: 4rem;
}

/* ==========================================================================
   Body & Layout
   ========================================================================== */

body {
  background-color: var(--pico-background-color);
  color: var(--pico-color);
  min-height: 100vh;
}

[hidden] {
  display: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 6px 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  z-index: 100;
}

header {
  margin-bottom: 4rem;
}

header details summary[role="button"] {
  padding: 0.5rem;
}

header svg {
  margin-bottom: 2px;
}

summary::after {
  display: none !important;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-weight: 500;
  color: #111;
  --pico-font-size: 3rem;
}

h2,
h3 {
  font-weight: 500;
  color: #111;
  text-align: center;
}

p {
  color: #777;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  text-align: center;
}

[primary] {
  color: var(--pico-primary);
}

[center] {
  text-align: center;
}

/* ==========================================================================
   Logo
   ========================================================================== */

[logo] {
  display: inline;
  cursor: pointer;
}

svg[logo] {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  margin-right: -6px;
}

/* ==========================================================================
   Cards & Grid
   ========================================================================== */

.grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: start;
  flex-wrap: wrap;
}

div[card] {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 28px;
  width: 100%;
  max-width: 330px;
  min-height: 200px;
}

div[card] svg {
  height: 48px;
  width: 48px;
  color: #777;
}

div[card] h4 {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: #777;
  margin-bottom: 0;
}

div[card] p {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Images & Gallery
   ========================================================================== */

img {
  border-radius: 28px;
  max-height: 600px;
}

[gallery-image] {
  min-height: 320px;
  background-color: #eee;
}

/* ==========================================================================
   Sections
   ========================================================================== */

section[inset] {
  place-self: center;
  width: 75%;
  display: grid;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  margin-top: 0;
  display: grid;
  text-align: center;
  padding: 2rem 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.fade-in {
  opacity: 0;
  animation: fadeIn 350ms ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.extra-margin-top-2 {
  margin-top: 2rem;
}

.extra-margin-bottom-2 {
  margin-bottom: 2rem;
}

.extra-margin-top-4 {
  margin-top: 4rem;
}

.extra-margin-bottom-4 {
  margin-bottom: 4rem;
}

a,
[link] {
  cursor: pointer;
}

/* ==========================================================================
   Hero & CTA
   ========================================================================== */

.hero-header {
  text-align: center;
  margin-top: 8rem;
}

.intro-text {
  max-width: 800px;
  margin: 2rem auto;
}

.cta-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
}

.info-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
}

/* ==========================================================================
   Responsive / Mobile
   ========================================================================== */

[mobile] {
  display: none !important;
}

[desktop] {
  display: block !important;
}

@media (max-width: 1200px) {
  nav {
    padding-top: 0;
  }

  [mobile] {
    display: block !important;
  }

  [desktop] {
    display: none !important;
  }

  section[inset] {
    width: 100%;
  }
}
