/* BASE SETTINGS & VARIABLES */
:root {
  --clr-bg: #100b06;
  --clr-bg-surface: #1a120b;
  --clr-bg-card: rgba(30, 20, 10, 0.4);
  --clr-primary: #945217;
  --clr-primary-light: #c27b3b;
  --clr-accent: #dcb360;
  --clr-text: #f0e6d2;
  --clr-text-muted: #af9f8c;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 24px;
  --shadow-glow: 0 0 30px rgba(220, 179, 96, 0.1);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  --glass-bg: rgba(26, 18, 11, 0.5);
  --glass-border: 1px solid rgba(220, 179, 96, 0.15);
  
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(148, 82, 23, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-accent);
}

a {
  color: var(--clr-text);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--clr-accent);
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

/* STRICT IMAGE RULE IMPLEMENTATION */
img.strict-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* UTILITY CLASSES */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.text-center { text-align: center; }
.mt-8 { margin-top: 8rem; }
.mb-8 { margin-bottom: 8rem; }
.py-8 { padding: 8rem 0; }

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--clr-accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-bottom: 4rem;
}

.btn, button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover, button:hover {
  background: var(--clr-accent);
  color: var(--clr-bg);
  box-shadow: 0 0 20px rgba(220, 179, 96, 0.4);
}

.btn-primary {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-light);
  color: #fff;
}

/* GLASSMORPHISM CARD */
.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(16, 11, 6, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 179, 96, 0.1);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-muted);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; width: 0; height: 1px;
  background: var(--clr-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-accent);
}

/* FOOTER */
.global-footer {
  background: var(--clr-bg-surface);
  border-top: 1px solid rgba(220, 179, 96, 0.1);
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(var(--clr-accent) 1px, transparent 1px);
  background-size: 50px 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-top {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-heading {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
  color: var(--clr-text-muted);
}
.footer-links a:hover {
  color: var(--clr-accent);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
}

.newsletter-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.8rem 1rem;
  color: #fff;
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 100%;
}

.newsletter-btn {
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.creaa-link {
  color: var(--clr-accent);
  font-weight: bold;
}

#back-to-top {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: var(--glass-border);
  color: var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#back-to-top:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ANIMATIONS */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container, .nav-container { padding: 0 2rem; }
}

@media(max-width: 768px) {
  .nav-links { display: none; } /* Add hamburger menu later if needed */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section-title { font-size: 2.5rem; }
}
