/* ==========================================================================
   Grupo MABRIA - Official Color Palette + Invena Typography System
   Primary: #BD9354 (Warm Golden Ochre)
   Secondary: #1E293B (Deep Navy Slate)
   Tertiary (Bg Light): #FDFCF8 (Cream/Warm Off-White)
   Neutral: #64748B (Slate Gray)
   Headlines: Red Hat Display (Exact Invena Template Font)
   Body / Label: DM Sans (Exact Invena Template Font)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Exact Palette from Design Card Image */
  --color-primary: #BD9354;        /* Warm Golden Ochre */
  --color-primary-dark: #9e783d;
  --color-secondary: #1E293B;      /* Deep Navy Slate */
  --color-tertiary: #FDFCF8;       /* Cream Warm Background */
  --color-neutral: #64748B;        /* Muted Slate Gray */
  
  --color-body: #334155;           /* Deep Slate Body Text */
  --color-heading: #0F172A;        /* Dark Slate Heading Text */
  --bg-light: #FDFCF8;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;

  /* Invena Official Typography Pair */
  --font-headline: 'Red Hat Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-subtle: 0 10px 30px rgba(30, 41, 59, 0.05);
  --shadow-hover: 0 20px 45px rgba(30, 41, 59, 0.1);
  --border-subtle: 1px solid rgba(189, 147, 84, 0.2);

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Reveal Animations System */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--color-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Top Bar */
.top-bar {
  background: var(--color-secondary);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left {
  display: flex;
  gap: 1.5rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.04);
  border-bottom: 1px solid rgba(189, 147, 84, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Buttons System */
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(189, 147, 84, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(189, 147, 84, 0.35);
}

.btn-dark {
  background: var(--color-secondary);
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-dark:hover {
  background: #0f172a;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 80px;
  background: linear-gradient(135deg, #FDFCF8 0%, #f4eee1 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.pre-title {
  display: inline-block;
  background: rgba(189, 147, 84, 0.12);
  color: var(--color-primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: var(--font-headline);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  color: var(--color-primary);
  font-style: normal;
}

.hero-text p {
  font-size: 1.12rem;
  color: var(--color-neutral);
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-card-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid #ffffff;
}

.hero-card-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.95), transparent);
  color: #ffffff;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .sub-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Card System */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

@media (max-width: 768px) {
  .grid-2-cols {
    grid-template-columns: 1fr !important;
  }
}

.mabria-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: var(--border-subtle);
  transition: var(--transition);
}

.mabria-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.card-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(189, 147, 84, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.mabria-card h3 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.85rem;
}

/* Dedicated MABRIA Meaning */
.meaning-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
}

.meaning-block {
  background: #ffffff;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border-top: 4px solid var(--color-primary);
  box-shadow: var(--shadow-subtle);
}

.meaning-letter {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.meaning-title {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Executive Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: var(--border-subtle);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.team-img-wrapper {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  padding: 2rem;
}

.team-content h3 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.team-role {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* Video Modal */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-box {
  width: 90%;
  max-width: 800px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-section-box {
  background: #ffffff;
  padding: 4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: var(--border-subtle);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(189, 147, 84, 0.2);
}

footer {
  background: var(--color-secondary);
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
}

/* ==========================================================================
   Mobile Responsive Navigation & Styles
   ========================================================================== */

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(189, 147, 84, 0.2);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
  padding: 8px 0;
  transition: var(--transition);
}

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

@media (max-width: 992px) {
  .top-bar-hide-mobile {
    display: none !important;
  }
  
  .top-bar-inner {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-card-frame img {
    height: 340px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .contact-section-box {
    padding: 2rem 1.5rem;
  }

  .contact-section-box form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .meaning-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

