:root {
  --red: #E83C2D;
  --blue: #B4DDF1;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --black: #000000;
  --icon-size: clamp(30px, 6vw, 50px); /* min 30px, scales with viewport, max 50px */
}

@font-face {
  font-family: 'Coolvetica';
  src: url('/fonts/coolvetica.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('/fonts/GOTHIC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Century Gothic';
  src: url('/fonts/GOTHICB.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Layout for sticky footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Coolvetica', 'Century Gothic', Arial, sans-serif;
  background: var(--light-gray);
  color: var(--black);
}

.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding: 1em;
}

.hero {
  text-align: center;
  margin-top: 2em;
}

/* Header and Nav */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;

}

.centered-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-spacer {
  flex: 1 1 25%; /* 25% on mobile, will adjust on larger screens */
  height: 1px;
}

#nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  flex: 0 0 50%; /* icons take up 50% of nav bar on mobile */
  padding: 0;
  margin: 1em;
  list-style: none;
}

#nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  transition: background 0.2s;
  outline: none;
}

.nav-icon-link svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--blue);
  transition: fill 0.2s;
}

.nav-icon-link.active svg,
.nav-icon-link:focus svg,
.nav-icon-link:hover svg,
.nav-icon-link.hovering svg {
  fill: var(--red);
}

#nav-list.hovering .nav-icon-link.active svg {
  fill: var(--blue);
}

.nav-icon-link:active {
  background: rgba(232, 60, 45, 0.1);
}

/* Footer */
.site-footer {
  background: var(--white);
  color: var(--black);
  font-family: 'Century Gothic', CenturyGothic, 'AppleGothic', Arial, sans-serif;
  font-size: .7em;
  padding: 1.5em 0;
  border-top: 1px solid var(--light-gray);
  flex-shrink: 0;
  text-align: center;
}

/* Default: Desktop - left justified */
.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1em;
  gap: 2em;
  text-align: left; /* Ensures left alignment */
}

.footer-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left {
  align-items: flex-start;
  gap: 0.5em;
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 0.5em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.footer-info a {
  color: var(--red);
  text-decoration: underline;
  font-weight: bold;
  font-size: 0.95em;
}

.footer-right {
  align-items: flex-end;
  justify-content: flex-end;
}

/* Instagram icon: red by default, blue on hover */
.footer-instagram-icon {
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(32%) sepia(94%) saturate(7492%) hue-rotate(-7deg) brightness(97%) contrast(101%); /* Red */
  transition: filter 0.2s;
}

.footer-right a:hover .footer-instagram-icon,
.footer-right a:focus .footer-instagram-icon {
  filter: brightness(0) saturate(100%) invert(81%) sepia(13%) saturate(1642%) hue-rotate(168deg) brightness(100%) contrast(89%);
}

/* Responsive adjustments for larger screens */
@media (min-width: 600px) {
  .nav-spacer {
    flex-basis: 33%;
  }
  #nav-list {
    flex-basis: 34%;
    gap: 0.7em;
  }
  :root {
    --icon-size: clamp(28px, 4vw, 50px);
  }
}

@media (min-width: 768px) {
  nav ul {
    justify-content: flex-end;
    gap: 2em;
  }
  main {
    max-width: 800px;
    margin: 2em auto;
  }
}

/* Responsive: Mobile - centered */
@media (max-width: 700px) {
  .footer-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5em;
    text-align: center; /* Center text for all columns */
  }
  .footer-col {
    align-items: center; /* Center content horizontally */
  }
}

/* Typography rules */
body, p, li, ul, ol, td, th, input, textarea, select, button {
  font-family: 'Century Gothic', CenturyGothic, 'AppleGothic', Arial, sans-serif;
  font-weight: normal;
  color: var(--black);
}

h1, h2, h3 {
  font-family: 'Coolvetica', 'Century Gothic', CenturyGothic, Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
}

h4, h5, h6 {
  font-family: 'Century Gothic', CenturyGothic, 'AppleGothic', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
}

strong, b {
  font-family: 'Century Gothic', CenturyGothic, 'AppleGothic', Arial, sans-serif;
  font-weight: bold;
}

.lottie-center {
  display: flex;
  justify-content: center;   /* centers horizontally */
  align-items: center;       /* centers vertically */

  width: 100%;
}


.above-lottie-text,
.between-lottie-text {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.a4p-blue {
  color: var(--blue);
}
.a4p-red {
  color: var(--red);
}

.a4p-black {
  color: var(--black);
}

