/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Font: Plus Jakarta Sans */
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Blog Layout - Responsive Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
  }
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-trigger:hover {
  color: #475569;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  padding-top: 0.75rem;
  z-index: 100;
}

.nav-dropdown-menu-inner {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  min-width: 160px;
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu-inner a {
  display: block;
  padding: 0.625rem 1rem;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.nav-dropdown-menu-inner a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu-inner a:hover {
  background: #f8fafc;
}

/* Two Column Sections - Responsive */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col-grid {
    gap: 3rem;
  }

  .two-col-grid.cols-50-50 {
    grid-template-columns: 1fr 1fr;
  }

  .two-col-grid.cols-60-40 {
    grid-template-columns: 3fr 2fr;
  }

  .two-col-grid.cols-40-60 {
    grid-template-columns: 2fr 3fr;
  }

  .two-col-grid.cols-30-70 {
    grid-template-columns: 30fr 70fr;
  }

  .two-col-grid.cols-70-30 {
    grid-template-columns: 70fr 30fr;
  }

  .two-col-grid.cols-40-60 {
    grid-template-columns: 40fr 60fr;
  }

  .two-col-grid.cols-60-40 {
    grid-template-columns: 60fr 40fr;
  }

  .two-col-grid.align-top {
    align-items: start;
  }

  .two-col-grid.align-center {
    align-items: center;
  }

  .two-col-grid.align-bottom {
    align-items: end;
  }
}

/* Reverse order on mobile for image-left layouts */
@media (max-width: 767px) {
  .two-col-grid.mobile-reverse {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
}

/* Hero Video Body - Force color and font-size from CSS variables */
.hero-video-body,
.hero-video-body *,
.hero-video-body .trix-content,
.hero-video-body .trix-content * {
  color: var(--hero-text-color) !important;
  font-size: var(--hero-font-size) !important;
}

.hero-video-body a {
  text-decoration: underline !important;
}

/* Text Center Section - Force color from CSS variable */
.text-center-body,
.text-center-body *,
.text-center-body .trix-content,
.text-center-body .trix-content * {
  color: var(--text-center-color) !important;
}

.text-center-body a {
  text-decoration: underline !important;
}

/* Scroll-triggered Animations */
.animate-hidden {
  opacity: 0;
}

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

.animate-fade-in-down {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section Divider - full height vertical line */
@media (min-width: 768px) {
  section.section-divider {
    position: relative;
  }
  section.section-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--divider-color, #e2e8f0);
    transform: translateX(-50%);
  }
  .two-col-grid.two-col-divider > div:first-child {
    padding-right: 2rem;
  }
  .two-col-grid.two-col-divider > div:last-child {
    padding-left: 2rem;
  }
}

/* Two Column Full Image Style */
section.two-col-full-image .two-col-grid {
  gap: 0;
}
section.two-col-full-image .two-col-grid > div {
  display: flex;
  flex-direction: column;
}
section.two-col-full-image .two-col-grid img {
  flex-shrink: 0;
}

/* Three Column Full Image Style */
section.three-col-full-image .three-col-grid {
  gap: 0;
}
section.three-col-full-image .three-col-grid > div {
  display: flex;
  flex-direction: column;
}
section.three-col-full-image .three-col-grid img {
  flex-shrink: 0;
}

/* Three Column Sections - Responsive */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .three-col-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }

  .three-col-grid.align-top {
    align-items: start;
  }

  .three-col-grid.align-center {
    align-items: center;
  }

  .three-col-grid.align-bottom {
    align-items: end;
  }

  /* Three Column Section Divider - full height */
  section.section-divider-3 {
    position: relative;
  }
  section.section-divider-3::before,
  section.section-divider-3::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--divider-color, #e2e8f0);
  }
  section.section-divider-3::before {
    left: 33.333%;
  }
  section.section-divider-3::after {
    left: 66.666%;
  }
  .three-col-grid.three-col-divider > div:first-child {
    padding-right: 1.5rem;
  }
  .three-col-grid.three-col-divider > div:nth-child(2) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .three-col-grid.three-col-divider > div:last-child {
    padding-left: 1.5rem;
  }
}

/* Gallery Section - Marquee Auto-Scroll */
.gallery-section {
  position: relative;
}

.gallery-wrapper {
  position: relative;
}

.gallery-track {
  display: flex;
  will-change: transform;
}

.gallery-item {
  flex-shrink: 0;
}

.gallery-arrow {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide arrows on mobile for better touch experience */
@media (max-width: 640px) {
  .gallery-arrow {
    display: none;
  }

  .gallery-item {
    width: 16rem; /* Smaller on mobile */
  }
}

/* Footer Grid - Newsletter left, Menu right */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 4rem;
  }
}

/* Accordion Tabs Section */
.accordion-tabs-section {
  overflow: hidden;
}

.accordion-tabs-container {
  display: flex;
  width: 100%;
  height: 450px;
}

.accordion-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: flex 0.4s ease, background-color 0.3s ease;
  border-right: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.accordion-tab:last-child {
  border-right: none;
}

.accordion-tab:hover,
.accordion-tab.accordion-tab-active {
  flex: 3;
  background: rgba(255,255,255,0.05);
}

.accordion-tab-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.accordion-tab-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.accordion-tab-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-top: auto;
  flex-shrink: 0;
}

.accordion-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.accordion-tab-active .accordion-tab-content,
.accordion-tab:hover .accordion-tab-content {
  opacity: 1;
}

.accordion-tab-image {
  height: 150px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.accordion-tab-image img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.accordion-tab-active .accordion-tab-image,
.accordion-tab:hover .accordion-tab-image {
  opacity: 1;
}

.accordion-tab-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .accordion-tabs-container {
    flex-direction: column;
    gap: 0;
  }

  .accordion-tab {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .accordion-tab:last-child {
    border-bottom: none;
  }

  .accordion-tab-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }

  .accordion-tab-name {
    flex: 1;
  }

  .accordion-tab-number {
    font-size: 1.5rem;
  }

  .accordion-tab-content {
    width: 100%;
    order: 3;
  }
}
