/* ============================================
   MANILA S.A. — Website Styles
   Clean, minimal, premium
   ============================================ */

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

:root {
  --carbon: #2F2C2B;
  --green-forest: #40543B;
  --green-water: #33796C;
  --blue-lake: #365A6E;
  --orange: #C94707;
  --gold: #F5C32B;
  --gold-dark: #C99A00;
  --cream: #EEE1B7;
  --white: #FAFAF8;
  --light-bg: #F5F3EE;
  --text-dark: #2F2C2B;
  --text-light: #EEE1B7;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.navbar-logo img {
  height: 65px;
  transition: height 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1);
}

.navbar.scrolled .navbar-logo img {
  height: 50px;
  filter: none;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: color 0.3s, text-shadow 0.3s;
}

.navbar.scrolled .navbar-links a {
  color: var(--text-dark);
  text-shadow: none;
}

.navbar-links a:hover {
  color: var(--gold);
}
.navbar.scrolled .navbar-links a:hover {
  color: var(--gold-dark);
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  align-items: center;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.lang-switch button.active {
  background: var(--gold);
  color: var(--carbon);
  text-shadow: none;
}

.navbar.scrolled .lang-switch button {
  color: var(--text-dark);
  text-shadow: none;
}

.navbar.scrolled .lang-switch button.active {
  background: var(--gold);
  color: var(--carbon);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: background 0.3s, transform 0.3s;
}

.navbar.scrolled .hamburger span {
  background: var(--text-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--carbon);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.3s ease;
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    color: var(--cream) !important;
    text-shadow: none !important;
    font-size: 1rem;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 8px;
  }

  .lang-switch button {
    text-shadow: none;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/drone-valley.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(47, 44, 43, 0.55) 0%,
    rgba(47, 44, 43, 0.4) 50%,
    rgba(47, 44, 43, 0.65) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--white);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--carbon);
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #e0b225;
  transform: translateY(-1px);
}

/* ============================================
   OUR STORY
   ============================================ */
.story {
  background: var(--white);
}

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

.story-text h2 {
  margin-bottom: 24px;
  color: var(--carbon);
}

.story-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.75;
}

.story-image {
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-image img {
    height: 280px;
  }
}

/* ============================================
   ORIGIN — Río Limay + Map
   ============================================ */
.origin {
  background: var(--carbon);
  color: var(--cream);
}

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

.origin-text .section-subtitle {
  color: var(--gold);
  opacity: 1;
}

.origin-text h2 {
  color: var(--white);
  margin-bottom: 24px;
}

.origin-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.9;
}

.origin-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-embed {
  width: 100%;
  height: 400px;
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .origin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   OUR PEOPLE
   ============================================ */
.people {
  background: var(--light-bg);
}

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

.people-text h2 {
  margin-bottom: 24px;
  color: var(--carbon);
}

.people-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.75;
}

.people-slideshow {
  border-radius: 4px;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 420px;
}

.slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow-container .slide.active {
  opacity: 1;
}

.slideshow-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slideshow-btn {
  background: rgba(47, 44, 43, 0.7);
  color: var(--white);
  border: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slideshow-btn:hover {
  background: rgba(47, 44, 43, 0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .people-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .slideshow-container {
    height: 300px;
  }
}

/* ============================================
   WHAT WE SAY NO TO
   ============================================ */
.no-section {
  position: relative;
  background: var(--green-forest);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
  overflow: hidden;
}

.no-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/drone-mountains.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.no-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(64, 84, 59, 0.82);
  z-index: 1;
}

.no-section > .container {
  position: relative;
  z-index: 2;
}

.no-section .section-subtitle {
  color: var(--gold);
  opacity: 1;
}

.no-section h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.no-section > .container > p {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 32px;
  opacity: 0.85;
}

.no-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.no-item {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}

.no-item span {
  color: var(--gold);
  margin-right: 6px;
}

@media (max-width: 768px) {
  .no-section {
    padding: 48px 0;
  }
}

/* ============================================
   DATA POINTS
   ============================================ */
.data-points {
  background: var(--light-bg);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin: 0;
  padding: 0;
}

.data-item .number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--green-forest);
  line-height: 1;
  margin-bottom: 8px;
}

.data-item .label {
  font-size: 0.9rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px) {
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  background: var(--white);
}

.products h2 {
  text-align: center;
  margin-bottom: 16px;
}

.products > .container > p {
  text-align: center;
  color: #666;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.product-categories {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.product-category h3 {
  margin-bottom: 8px;
  color: var(--carbon);
}

.product-category > p {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

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

.product-card {
  background: var(--light-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #fff;
}

.product-card .product-info {
  padding: 16px;
}

.product-card .product-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .product-info p {
  font-size: 0.85rem;
  color: #888;
}

.product-download {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--light-bg);
  border-radius: 4px;
}

.product-download p {
  margin-bottom: 16px;
  color: #666;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--carbon);
  padding: 12px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--carbon);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

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

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BRANDS
   ============================================ */
.brands {
  background: var(--light-bg);
}

.brands h2 {
  text-align: center;
  margin-bottom: 48px;
}

.brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.brand-card {
  border-radius: 6px;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-card.patagonia {
  background: var(--carbon);
  color: var(--cream);
}

.brand-card.andes {
  background: var(--blue-lake);
  color: var(--white);
}

.brand-card img {
  height: 180px;
  margin-bottom: 24px;
  object-fit: contain;
}

.brand-card.andes img {
  filter: brightness(0) invert(1);
}

.brand-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.brand-card.patagonia h3 { color: var(--cream); }
.brand-card.andes h3 { color: var(--white); }

.brand-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 380px;
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.certifications {
  background: var(--white);
  text-align: center;
}

.certifications h2 {
  margin-bottom: 16px;
}

.certifications > .container > p {
  color: #666;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.cert-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  align-items: center;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 200px;
}

.cert-item .cert-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-forest);
  border: 2px solid var(--green-forest);
}

.cert-item .cert-icon.bap {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.cert-item .cert-icon.bap img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
}

.cert-item .cert-icon.ecocert {
  background: var(--green-forest);
  color: white;
  border-color: var(--green-forest);
}

.cert-item h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.cert-item p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--carbon);
  color: var(--white);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 48px;
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}

.gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-grid .gallery-item:nth-child(6) {
    grid-column: span 1;
  }
  .gallery-item img {
    min-height: 160px;
  }
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact {
  background: var(--green-water);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.contact .btn-primary {
  background: var(--gold);
  color: var(--carbon);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--carbon);
  color: var(--cream);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 45px;
  margin-bottom: 16px;
  filter: brightness(0) invert(0.9);
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-list a:hover {
  opacity: 1;
}

.social-list svg {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(238,225,183,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

.site-version {
  text-align: center;
  font-size: 0.65rem;
  opacity: 0.3;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   BREAKPOINT 1024px — Tablets / small laptops
   ============================================ */
@media (max-width: 1024px) {
  .story-grid,
  .origin-grid,
  .people-grid {
    gap: 40px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .footer-grid {
    gap: 32px;
  }

  .data-grid {
    gap: 24px;
  }

  .brands-grid {
    gap: 24px;
  }

  .brand-card {
    padding: 36px 28px;
  }
}

/* ============================================
   ANIMATIONS (simple, subtle)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Focus & Accessibility --- */
*:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(201, 154, 0, 0.3);
}
.lang-switch button { min-width: 44px; min-height: 44px; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Picture elements in grid containers --- */
.product-card picture,
.gallery-item picture,
.story-image picture,
.slideshow-container picture { display: contents; }
.product-card picture img,
.gallery-item picture img { width: 100%; height: 100%; object-fit: cover; }
.story-image picture img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
