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

/* ── VARIABLES ── */
:root {
  --ink:    #0f1117;
  --paper:  #f7f6f2;
  --mist:   #e8e6df;
  --accent: #1b7a42;
  --accent2: #7a5f20;
  --mid:    #6b6b6b;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 4rem;
  width: auto;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }

/* ── NAV CTA ── */
.nav-cta {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: #153d2d; transform: translateY(-1px); }

/* ── SECTION BASE ── */
section { padding: 7rem 4rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.2rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #153d2d; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ── FOOTER ── */
footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--mist);
  background: #fff;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand .footer-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--mid);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 0.5rem;
}
.footer-links {
  display: flex;
  gap: 3rem;
  align-items: start;
}
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-col .footer-contact-email {
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.footer-col .footer-contact-email:hover { color: var(--accent); }
.footer-linkedin {
  font-size: 0.82rem;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.footer-linkedin:hover { color: var(--accent); }

@media (max-width: 900px) {
  footer { padding: 2.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { gap: 2rem; }
}
@media (max-width: 540px) {
  footer { padding: 2rem 1.25rem; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.8s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

.nav-links-cta { display: none; }

/* ── NAV TOGGLE (hamburger) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  z-index: 101;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

/* ── RESPONSIVE: NAV & GLOBALS ── */
@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .logo-img { height: 3.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247,246,242,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mist);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
  }
  .nav-links.open { max-height: 24rem; padding: 0.5rem 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
  .nav-links a:hover { background: var(--mist); color: var(--accent); }
  section { padding: 5rem 2rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-cta { display: none; }
  .nav-links-cta { display: list-item; }
  .nav-links-cta a {
    margin: 0.5rem 2rem 0.25rem;
    padding: 0.7rem 1.4rem;
    background: var(--accent);
    color: #fff !important;
    text-align: center;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-links-cta a:hover { background: #153d2d !important; }
}

@media (max-width: 540px) {
  nav { padding: 0.75rem 1.25rem; }
  .logo-img { height: 2.8rem; }
  section { padding: 4rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
}
