/* ============================================================
   INTEGRITY STRUCTURAL — Shared Stylesheet
   Loaded by all pages. Page-specific overrides live inline.
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* VARIABLES */
:root {
  --green: #026b4f;
  --green-bright: #039770;
  --bg: #f5f5f5;
  --bg2: #ececec;
  --bg3: #e4e4e4;
  --border: rgba(0,0,0,0.1);
  --rule: rgba(0,0,0,0.1);
  --text: #111111;
  --muted: rgba(0,0,0,0.5);
  --dim: rgba(0,0,0,0.3);
  --serif: 'Montserrat', sans-serif;
  --body: 'Inter', sans-serif;
}

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 18px;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); }

a { text-decoration: none; color: inherit; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 5rem;
  background: #f2f2f2;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: padding 0.3s;
}
nav.scrolled { padding: 1.25rem 5rem; }
nav.scrolled .nav-social { opacity: 0; max-height: 0; pointer-events: none; }
nav.scrolled .nav-logo { max-width: 26px; }
nav.scrolled .nav-logo img { transition: height 0.3s ease; height: 46px; }

.nav-logo {
  overflow: hidden;
  max-width: 400px;
  transition: max-width 0.4s ease;
}
.nav-logo img {
  transition: height 0.3s ease;
  height: 68px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.nav-social {
  overflow: hidden;
  max-height: 50px;
  opacity: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-link {
  display: flex;
  align-items: center;
  color: rgba(0,0,0,0.35);
  transition: color 0.2s;
}
.social-link:hover { color: var(--green); }
.social-link svg { width: 15px; height: 15px; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--body);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.5);
  transition: color 0.2s;
}
.nav-links a:hover { color: #111; }
.nav-links a.active { color: var(--green); }

/* LABEL */
.label {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green-bright);
  flex-shrink: 0;
}

/* FOOTER */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-bright); }

/* ANIMATIONS */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(0,0,0,0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE — nav + footer (all pages) */
@media (max-width: 960px) {
  nav { padding: 1.25rem 2.5rem; }
  nav.scrolled { padding: 1rem 2.5rem; }
  .nav-social { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #f2f2f2;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2.5rem 1.5rem;
    z-index: 199;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    list-style: none;
  }
  .nav-links.open { transform: translateY(0); display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; font-size: 1rem; color: var(--text); }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
