/* ===== ROOT & VARIABLES ===== */
:root {
  --primary-color: #5d4e37;
  --secondary-color: #6b5b45;
  --accent-color: #c17a4a;
  --accent-light: #d4956a;
  --text-dark: #3d3226;
  --text-light: #6b5b45;
  --bg-light: #f1ede8;
  --bg-white: #f9f7f4;
  --border-color: #e2ddd6;
  --success-color: #7b9e6e;
  --warning-color: #d4a574;
  --error-color: #a85d4f;

  --font-primary:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  --font-accent: "Segoe UI", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== TYPOGRAPHY ===== */
/* ===== TYPOGRAPHY REFINEMENTS ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* Matching your logo's weight and cinematic tracking */
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.3em;
}

h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  font-weight: 300;
  letter-spacing: 0.2em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
}

/* Paragraphs remain legible but slightly more spaced to match the airy feel */
p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  letter-spacing: 0.02em;
  justify-content: left;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-color);
}

ul,
ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}
li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

/* ===== NAVIGATION ===== */
.navbar {
  /* Using a slightly transparent white with a blur effect for a modern, minimal glass look */
  background-color: var(--accent-light);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Replaced the heavy shadow with a crisp, subtle border */
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 300; /* Lighter weight to match the landing page */
  text-transform: uppercase;
  letter-spacing: 0.3em; /* Wide tracking for that cinematic feel */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.85rem; /* Slightly smaller for a refined look */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--spacing-xs) 0; /* Removed the heavy block padding */
  transition: var(--transition);
  position: relative;
  opacity: 0.6; /* Softer initial state */
}

/* Minimal hover state */
.nav-links a:hover,
.nav-links a.active {
  background-color: transparent; /* No more blocky backgrounds */
  color: var(--text-dark);
  opacity: 1; /* Brightens up on hover */
}

/* Elegant animated underline for hover/active states */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--bg-white);
  padding: 6rem var(--spacing-md) 4rem; /* Added height for a more premium look */
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Matches the nav-link "refined" look */
}

/* ===== SHARED FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: var(--bg-white);
  padding: var(--spacing-xxl) var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h5 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.footer-section ul {
  list-style: none;
  margin-left: 0;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001; /* Keeps it above the menu */
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* ===== GLOBAL RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  /* Keep logo and hamburger inline */
  .navbar .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  /* Show the hamburger menu on mobile */
  .hamburger {
    display: flex;
  }

  /* Hide nav links by default, stack them, and prepare for toggle */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-md);
  }

  /* Class toggled by JavaScript to show the menu */
  .nav-links.active {
    display: flex;
  }

  /* Optional: Animate hamburger into an "X" when open */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
