/* 
===============================================
House of Daniels - Variables & Design System 
===============================================
*/

:root {
  --primary: #c19649; /* Dark Tan */
  --primary-light: #d4ae68;
  --primary-dark: #977435;
  
  --bg-beige: #e9d7bb; /* Exact light tan/beige from houseofdaniels.life */
  --bg-green: #A1AE9C; /* Sage Green */
  
  --dark-accent: #404350; /* Theme 5 */
  
  --text-main: #5f5a5a; /* Dark Grey */
  --text-dark: #000000;
  --text-light: #ffffff;
  
  /* Typography */
  --font-heading: 'Cambria', serif;
  --font-body: 'Book Antiqua', serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-beige);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Global Alternating Sections */
.section-padding {
  padding: 5rem 0;
}

.bg-beige {
  background-color: var(--bg-beige);
  color: var(--text-main);
}
.bg-beige h1, .bg-beige h2, .bg-beige h3, .bg-beige h4 {
  color: var(--primary-dark);
}

.bg-green {
  background-color: var(--bg-green);
  color: var(--text-main);
}
.bg-green p, .bg-green li {
  color: var(--text-main) !important;
}
.bg-green h1, .bg-green h2, .bg-green h3, .bg-green h4, .bg-green strong {
  color: var(--primary-dark);
}

/* Typography Utilities */
.text-center { text-align: center; }
.section-title { font-size: 3rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.2rem; font-style: italic; max-width: 700px; margin: 0 auto 3rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Global Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(233, 215, 187, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.seal-img {
  width: 115px;
  height: 115px;
  object-fit: contain;
  border-radius: 50%;
  overflow: hidden;
  transition: var(--transition);
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

/* Global Footer */
.site-footer {
  background-color: #706e60;
  color: var(--bg-beige);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-dark);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-nav a:hover {
  color: var(--primary);
}

.mission-house-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
}

.mission-house-badge a {
  font-size: 1.25rem;
}

.mission-house-badge img {
  width: 112px;
  border-radius: 8px;
}

/* Layout Utilities */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
  /* Header & Navigation */
  .site-header {
    position: relative; /* Prevent fixed header from covering content on tiny screens */
  }
  .page-hero-section {
    padding-top: 0 !important;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding-bottom: 1rem;
  }
  
  .seal-img {
    width: 80px;
    height: 80px;
  }
  
  .logo-text h1 {
    font-size: 1.4rem;
  }
  
  /* Hero Sections */
  .page-title {
    font-size: 2.5rem !important;
  }
  
  .hero-content h2, .section-title {
    font-size: 2rem !important;
  }
  
  .hero-content p, .section-subtitle {
    font-size: 1.1rem !important;
  }
  
  /* Grids & Layouts */
  .two-column-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Footer */
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
