/* ==========================================================================
   CSS SYSTEM FOR RUMBO PATAGONIA - STATIC RESCUE
   ========================================================================== */

/* Variables */
:root {
  --primary: #E09900;          /* Patagonia Golden/Orange */
  --primary-light: #ffb61a;
  --primary-dark: #b37a00;
  --dark-bg: #121212;          /* Deep Carbon Dark */
  --card-bg: #1b1b1b;          /* Charcoal grey */
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --nav-bg: rgba(18, 18, 18, 0.9);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 25px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 30px rgba(224, 153, 0, 0.2);
}

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

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

body {
  font-family: 'Roboto', 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Acme', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

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

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

/* Header & Navbar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 90px;
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* Page Layout */
.page-content {
  margin-top: 90px;
  min-height: calc(100vh - 90px - 300px);
}

/* Grid Layouts (Divi translation) */
.et_section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.section_content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.et_row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto 3rem auto;
}

.et_row:last-child {
  margin-bottom: 0;
}

/* Grid Structures */
@media (min-width: 768px) {
  .cols-1-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols-1-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cols-1-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cols-1-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .cols-1-4-3-4 {
    grid-template-columns: 1fr 3fr;
  }
  .cols-3-4-1-4 {
    grid-template-columns: 3fr 1fr;
  }
  .cols-1-3-2-3 {
    grid-template-columns: 1fr 2fr;
  }
  .cols-2-3-1-3 {
    grid-template-columns: 2fr 1fr;
  }
}

.et_column {
  width: 100%;
}

/* Divi Modules styling */
.et_text {
  font-size: 1.05rem;
  color: var(--text-main);
  text-align: justify;
}

.et_text p {
  margin-bottom: 1.5rem;
}

.et_text p:last-child {
  margin-bottom: 0;
}

.et_text h1, .et_text h2, .et_text h3, .et_text h4, .et_text h5, .et_text h6 {
  color: var(--text-main);
}

/* Custom Card2 (Home cards) */
.card2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 580px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.card2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.2) 60%, transparent 100%);
  z-index: 1;
  transition: var(--transition);
}

.card2 > div {
  position: relative;
  z-index: 2;
  width: 100%;
}

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

.card2:hover::before {
  background: linear-gradient(to top, rgba(224, 153, 0, 0.8) 0%, rgba(18, 18, 18, 0.4) 70%, transparent 100%);
}

/* Button Card */
.button_label {
  display: inline-block;
  padding: 10px 24px;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.card2:hover .button_label {
  background-color: #ffffff;
  color: var(--primary-dark);
}

.et_text_card_link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Image Module */
.et_image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.et_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.et_image:hover img {
  transform: scale(1.05);
}

/* Button Module */
.et_button_wrapper {
  margin-top: 1.5rem;
}

.et_button_wrapper.align_center { text-align: center; }
.et_button_wrapper.align_left { text-align: left; }
.et_button_wrapper.align_right { text-align: right; }

.et_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.5rem;
  background-color: var(--primary);
  color: #ffffff;
  font-family: 'Acme', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(224, 153, 0, 0.3);
  transition: var(--transition);
}

.et_button:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(224, 153, 0, 0.4);
}

/* Divider Module */
.et_divider {
  border: 0;
  border-top-style: solid;
  margin: 1.5rem auto;
  opacity: 0.9;
}

/* Sliders */
.et_slider {
  position: relative;
  overflow: hidden;
  height: 60vh;
  min-height: 400px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.et_slider_slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.et_slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.55);
  z-index: 1;
}

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

.slide_content h2 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.slide_content p {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.slider_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider_btn:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.slider_btn.prev { left: 20px; }
.slider_btn.next { right: 20px; }

/* Galleries */
.et_gallery {
  margin: 3rem 0;
}

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

@media (min-width: 768px) {
  .gallery_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery_grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery_item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery_item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox_content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,0.1);
  transform: scale(0.9);
  transition: var(--transition);
}

.lightbox.open .lightbox_content {
  transform: scale(1);
}

.lightbox_close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox_close:hover {
  color: var(--primary);
}

/* Footer */
.main-footer {
  background-color: #0d0d0d;
  color: var(--text-muted);
  padding: 5rem 2rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  max-height: 55px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-links li {
  margin-bottom: 0.8rem;
  list-style: none;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 4rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
}

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

/* Responsive Header Toggle */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--dark-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    left: 0;
  }
}
