/* ============================================
   ORDER HERE — Main Stylesheet
   Editorial / Butcher & Bee Aesthetic
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
  --color-primary: #0F2027;
  --color-secondary: #FF6B35;
  --color-accent: #2C5364;
  --color-bg: #FAFAF8;
  --color-text: #1A1A1A;
  --color-text-light: #6B7280;
  --color-white: #FFFFFF;
  --color-border: #E5E7EB;
  --color-card-bg: #FFFFFF;
  --color-cream: #F5F0EB;
  --color-charcoal: #2A2A2A;
  --color-stone: #B8AFA6;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --spacing-4xl: 8rem;
  --spacing-5xl: 10rem;
  --spacing-6xl: 14rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-white p { color: rgba(255, 255, 255, 0.8); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section-sm {
  padding: var(--spacing-3xl) 0;
}

/* --- Editorial Section Patterns --- */

/* Full-bleed image section */
.section-image {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.section-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

/* Centered prose section */
.section-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-5xl) var(--spacing-lg);
  text-align: center;
}

.section-prose h2 {
  margin-bottom: var(--spacing-lg);
}

.section-prose p {
  font-size: var(--fs-md);
  line-height: 1.9;
}

/* Split section (50/50 image + text) */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.section-split-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.section-split-reverse .split-image {
  order: 2;
}

.section-split-reverse .split-text {
  order: 1;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-3xl);
}

/* Editorial number (large step numbers) */
.editorial-number {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: 400;
  color: var(--color-stone);
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

/* Editorial pull-quote */
.editorial-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--color-primary);
  border-left: 3px solid var(--color-secondary);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  line-height: 1.6;
}

/* CTA link (editorial underlined text-link) */
.cta-link-editorial {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-charcoal);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cta-link-editorial:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.cta-link-editorial-light {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cta-link-editorial-light:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Feature tag (small uppercase label) */
.feature-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

/* --- Buttons (kept minimal for forms) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: #e55a28;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--fs-md);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-base);
  height: var(--header-height);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header .container {
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition-base);
}

.nav-logo span {
  color: var(--color-secondary);
}

.header.scrolled .nav-logo {
  color: var(--color-primary);
}

/* Nav right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-login-link {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.nav-login-link:hover {
  color: var(--color-white);
}

.header.scrolled .nav-login-link {
  color: var(--color-text-light);
}

.header.scrolled .nav-login-link:hover {
  color: var(--color-primary);
}

.nav-demo-link {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.nav-demo-link:hover {
  color: var(--color-white);
}

.header.scrolled .nav-demo-link {
  color: var(--color-text-light);
}

.header.scrolled .nav-demo-link:hover {
  color: var(--color-primary);
}

.nav-menu-btn {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-menu-btn:hover {
  color: var(--color-white);
}

.header.scrolled .nav-menu-btn {
  color: var(--color-text-light);
}

.header.scrolled .nav-menu-btn:hover {
  color: var(--color-primary);
}

/* Full-screen overlay nav */
.overlay-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 32, 39, 0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay-nav.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-nav-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color var(--transition-fast);
}

.overlay-nav-close:hover {
  color: var(--color-white);
}

.overlay-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.overlay-nav-links a {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 400;
  color: var(--color-white);
  transition: color var(--transition-fast);
  line-height: 1.3;
}

.overlay-nav-links a:hover {
  color: var(--color-secondary);
}

.overlay-nav-links a.active {
  color: var(--color-secondary);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 32, 39, 0.3) 0%, rgba(15, 32, 39, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  padding: var(--spacing-lg);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-md);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page hero (shorter, for inner pages) */
.hero-page {
  min-height: 60vh;
}

.hero-page .hero-content h1 {
  font-size: var(--fs-4xl);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: var(--spacing-lg);
}

.footer-logo span {
  color: var(--color-secondary);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-xl); }

  .section-split,
  .section-split-reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section-split-reverse .split-image {
    order: 0;
  }

  .section-split-reverse .split-text {
    order: 0;
  }

  .split-image {
    position: relative;
    min-height: 50vh;
  }

  .split-image img {
    position: absolute;
  }

  .split-text {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }

  .hero-content p { font-size: var(--fs-base); }

  .section { padding: var(--spacing-3xl) 0; }
  .container { padding: 0 var(--spacing-sm); }

  .section-prose {
    padding: var(--spacing-3xl) var(--spacing-sm);
  }

  .section-image {
    min-height: 50vh;
  }

  .split-text {
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .overlay-nav-links a {
    font-size: var(--fs-2xl);
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }

  .editorial-number {
    font-size: var(--fs-4xl);
  }
}
