/* ============================================
   BE LEGAL — Landing Page Styles
   Color Palette derived from brand imagery:
   - Copper/Bronze: #A0705A (logo icon)
   - Dark Charcoal: #1A1A1A (text)
   - Warm Cream: #FAF7F4 (backgrounds)
   - Deep Brown: #3D2B1F (accents)
   ============================================ */

:root {
  --copper: #A0705A;
  --copper-light: #C4977E;
  --copper-dark: #7D5643;
  --copper-glow: rgba(160, 112, 90, 0.15);
  --charcoal: #1A1A1A;
  --charcoal-soft: #2D2D2D;
  --brown-deep: #3D2B1F;
  --cream: #FAF7F4;
  --cream-dark: #F0EBE5;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #999999;
  --gray-600: #666666;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --section-padding: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::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: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--copper);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--copper);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--copper-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(160, 112, 90, 0.3);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.05rem;
}

.btn-nav {
  background-color: var(--copper);
  color: var(--white) !important;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-nav:hover {
  background-color: var(--copper-dark);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  gap: 6px;
}

.logo-be {
  color: var(--charcoal);
}

.logo-legal {
  color: var(--copper);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal-soft);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--copper);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--copper);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  background: linear-gradient(165deg, var(--white) 0%, var(--cream) 50%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--copper-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.hero-content h1 {
  margin-bottom: 28px;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-subdescription {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(160, 112, 90, 0.08);
  max-width: 460px;
  width: 100%;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--copper-light), transparent 50%);
  border-radius: 14px;
  z-index: -1;
}

.hero-image-frame img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTIONS (general)
   ============================================ */

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

/* ============================================
   EXPERIENCE / FEATURES
   ============================================ */

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

.experience-intro {
  text-align: center;
  max-width: 700px;
  margin: -32px auto 64px;
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--copper-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(160, 112, 90, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--copper);
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   CONSTRUCTION SECTION
   ============================================ */

.construction {
  background: var(--cream);
}

.construction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.construction-image-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
  position: relative;
}

.construction-image-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.construction-content h2 {
  margin-bottom: 20px;
}

.construction-content > p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.8;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--charcoal-soft);
  font-weight: 400;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.15;
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

/* ============================================
   FOUNDER SECTION
   ============================================ */

.founder {
  background: var(--white);
}

.founder-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--brown-deep) 100%);
  border-radius: 16px;
  padding: 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(160, 112, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.founder-text h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.founder-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 28px;
}

.founder-text p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 16px;
}

.founder-text .section-label {
  color: var(--copper-light);
}

.founder-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-quote {
  text-align: center;
}

.founder-quote svg {
  width: 48px;
  height: 48px;
  color: var(--copper-light);
  opacity: 0.4;
  margin-bottom: 20px;
}

.founder-quote p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 44px 36px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--copper-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(160, 112, 90, 0.08);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--copper);
  opacity: 0.2;
  margin-bottom: 20px;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Last two cards span to center */
.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 2 / 3;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  background: var(--white);
  padding: var(--section-padding) 0;
}

.cta-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

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

.footer-brand .logo {
  justify-content: center;
  margin-bottom: 8px;
}

.footer-brand .logo-be {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.feature-card.animate-in:nth-child(2) { transition-delay: 0.1s; }
.feature-card.animate-in:nth-child(3) { transition-delay: 0.2s; }
.feature-card.animate-in:nth-child(4) { transition-delay: 0.3s; }

.service-card.animate-in:nth-child(2) { transition-delay: 0.1s; }
.service-card.animate-in:nth-child(3) { transition-delay: 0.2s; }
.service-card.animate-in:nth-child(4) { transition-delay: 0.3s; }
.service-card.animate-in:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero-grid {
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  .founder-card {
    padding: 60px;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-description,
  .hero-subdescription {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 32px 28px;
  }

  .construction-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .construction-image {
    order: -1;
  }

  .founder-card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 28px;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 0.95rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .founder-card {
    padding: 36px 24px;
  }

  .founder-text h2 {
    font-size: 1.8rem;
  }

  .founder-quote p {
    font-size: 1.1rem;
  }
}
