/* ===== GLOBAL VARIABLES & RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0A0F0C;
  --bg-forest: #0D1F13;
  --bg-canopy: #13261A;
  --bg-moss: #1A3624;
  --amber: #CF9F4A;
  --amber-glow: #E8C37B;
  --amber-shadow: #B27D2E;
  --text-primary: #F2EFE9;
  --text-muted: #D9D0C1;
  --text-dim: rgba(242,239,233,0.55);
  --border: rgba(207,159,74,0.2);
  --border-strong: rgba(207,159,74,0.4);
  --transition-slow: 0.9s cubic-bezier(0.2, 0.9, 0.4, 1);
  --transition-medium: 0.5s cubic-bezier(0.2, 0.9, 0.4, 1);
  --font-serif: 'Syne', sans-serif;
  --font-sans: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--amber-shadow); border-radius: 2px; }

/* Progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-shadow), var(--amber), var(--amber-glow));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ===== TYPOGRAPHY & UTILITIES ===== */
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--amber);
}

.btn-primary, .btn-outline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  display: inline-block;
}
.btn-primary {
  color: var(--bg-deep);
  background: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-glow);
  transform: translateY(-1px);
}
.btn-outline {
  color: var(--amber);
  border: 1px solid var(--border-strong);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(207,159,74,0.08);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-brand-name {
  font-family: var(--font-serif), serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-brand-name span { color: var(--amber); }
.footer-tagline {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 28ch;
}

/* Footer logo styling */
.footer-brand-name .logo {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1); /* if your logo is dark and footer background is dark */
}

/* Optional: adjust for mobile */
@media (max-width: 900px) {
    .footer-brand-name .logo {
        height: 80px;
        max-width: 150px;
    }
}

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer-social {
  display: flex;
  gap: 1.5rem;
}
.footer-social a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--amber); }

/* ===== ANIMATIONS & REVEAL HELPERS ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scanLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.9s var(--transition-slow), transform 0.9s var(--transition-slow);
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Ambient texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ===== GLOBAL RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { padding: 2rem 1.5rem; }
}