/* ============================================
   EAMES J — Global Styles
   Dark cinematic heroes + clean modern layout
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Palette */
  --obsidian: #1b2824;
  --slate: #304e4d;
  --mahogany: #6e3d23;
  --bronze: #9d7960;
  --pewter: #99b3b7;
  --alabaster: #eeece9;

  /* Mapped to site roles — warm browns + soft blue tones */
  --black: #2a2420;          /* Dark warm brown — deepest bg, footer */
  --dark: #332c27;           /* Warm brown — dark sections */
  --dark-accent: #3b332d;    /* Warm brown — card backgrounds on dark */
  --mid: #5a4f46;            /* Mid brown — borders, muted elements */
  --light-gray: #e5e3df;     /* Alabaster shade — alt section bg */
  --off-white: #eeece9;      /* Alabaster — main light bg */
  --white: #ffffff;
  --accent: #9d7960;         /* Bronze — primary accent, buttons, tags */
  --accent-light: #b08e78;   /* Bronze light — hover states */
  --accent-dark: #6e3d23;    /* Mahogany — strong accent, emphasis */
  --text-dark: #2a2420;      /* Dark brown — body text on light */
  --text-light: #eeece9;     /* Alabaster — body text on dark */
  --text-muted: #8e9da0;     /* Pewter-toned — secondary text */
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-logo: 'Alex Brush', cursive;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(42, 36, 32, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
}

.nav-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
}

.nav-logo img,
.footer .nav-logo img {
  height: 75px;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
  overflow: visible;
  clip: unset;
}

.footer .nav-logo img {
  height: 60px;
}

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

.nav-links a {
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 36, 32, 0.4) 0%,
    rgba(42, 36, 32, 0.7) 60%,
    rgba(42, 36, 32, 0.95) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* --- Page Heroes (shorter) --- */
.page-hero {
  min-height: 50vh;
  padding-top: 80px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-main);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(157, 121, 96, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--mid);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-light {
  background: var(--off-white);
  color: var(--text-dark);
}

.section-alt {
  background: var(--light-gray);
  color: var(--text-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 1rem auto 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

/* --- Cards / Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card-dark {
  background: var(--dark-accent);
}

.card-dark:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--mid);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.card-body {
  padding: 1.5rem;
}

.card-body h4 {
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 0.8rem;
}

/* --- Product Specific --- */
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  font-weight: 700;
  z-index: 2;
}

/* --- Content Filters --- */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--mid);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 169, 110, 0.08);
}

/* --- About / Split Layouts --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--mid);
  background-size: cover;
  background-position: center;
}

.split-text h2 {
  margin-bottom: 1.5rem;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- Stats --- */
.stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat h3 {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.stat p {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Services --- */
.service-item {
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--transition);
}

.service-item:hover {
  border-color: var(--accent);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-item h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--accent);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(42, 36, 32, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .hero {
    min-height: 90vh;
  }
}
