/* =============================================
   NAVARRO-MOSSENTA ARQUITECTOS — Main Stylesheet
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
}

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

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

/* --- Typography --- */
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }

.hero-title { font-size: 60px; font-weight: 700; line-height: 1.1; }

/* --- Layout Utilities --- */
.container-xl { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container     { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 80px 0; }

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 0 20px 5px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo img {
  height: 56px;
  width: auto;
}

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

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #000000;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  text-decoration: underline;
  color: #000000;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-dark-custom {
  display: inline-block;
  background: #333333;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-dark-custom:hover { background: #000; color: #fff; }

.btn-light-custom {
  display: inline-block;
  background: #E5E5E5;
  color: #000000;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0,0,0,0.3);
  transition: background 0.2s;
  text-decoration: none;
}

.btn-light-custom:hover { background: #d0d0d0; color: #000; }

.btn-white-custom {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-white-custom:hover { background: #E5E5E5; color: #000; }

/* =============================================
   HERO SLIDER (index.html)
   ============================================= */
.hero-slider {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: #051D4B;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 60px 60px 80px;
  max-width: 800px;
  color: #fff;
}

.hero-content .hero-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ccc;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content .hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #ddd;
  max-width: 600px;
}

.hero-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hero-cta:hover {
  background: #fff;
  border-color: #fff;
  color: #051D4B;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 36px;
  right: 60px;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.slider-btn:hover { background: rgba(255,255,255,0.3); }

.slider-dots {
  position: absolute;
  bottom: 44px;
  left: 60px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.slider-dot.active { background: #fff; }

/* =============================================
   HEADING ACCENT (left border)
   ============================================= */
.heading-accent {
  border-left: 5px solid #646868;
  padding-left: 20px;
}

.section-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #646868;
  margin-bottom: 8px;
}

/* =============================================
   INTRO / ABOUT SECTION (index.html)
   ============================================= */
.intro-section { padding: 80px 0; }

.intro-text-col { padding-right: 40px; }

.intro-images {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  height: 100%;
}

.intro-img-item {
  overflow: hidden;
  border-radius: 0;
}

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

.intro-img-item:first-child img { height: 260px; }

.intro-img-item img:hover { transform: scale(1.03); }

/* =============================================
   ABOUT TEAM SECTION
   ============================================= */
.about-section {
  padding: 80px 0;
  background: #FAFAFA;
}

.about-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
}

.about-img-wrap:hover::after {
  background: rgba(0,0,0,0.18);
}

.about-img-wrap .zoom-icon {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-img-wrap:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, background 0.4s ease;
  cursor: zoom-out;
}

.lightbox-overlay.lb-active {
  opacity: 1;
  visibility: visible;
  background: rgba(5,5,5,0.93);
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform: scale(0.88) translateY(16px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.lightbox-overlay.lb-active .lightbox-inner img {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

/* =============================================
   PROJECTS GRID SECTION
   ============================================= */
.projects-section { padding: 80px 0; }

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #ddd;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  z-index: 1;
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  color: #fff;
}

.project-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.project-card-info p {
  font-size: 13px;
  color: #ccc;
  margin: 0;
}

/* =============================================
   AWARDS / NAVY SECTION
   ============================================= */
.section-navy {
  background: #051D4B;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.section-navy h2, .section-navy h3 { color: #fff; }

/* =============================================
   SERVICES SECTION (index.html light)
   ============================================= */
.section-light {
  background: #FAFAFA;
  padding: 80px 0;
}

.service-box {
  background: #ffffff;
  padding: 36px 28px;
  border-top: 4px solid #646868;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  height: 100%;
  transition: box-shadow 0.3s;
}

.service-box:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.12); }

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-section {
  background: #051D4B;
  padding: 70px 24px;
  text-align: center;
  color: #fff;
}

.cta-section h2 { font-size: 32px; margin-bottom: 28px; color: #fff; }

/* =============================================
   INNER PAGE HERO
   ============================================= */
.page-hero {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px;
}

.page-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-hero-content p {
  font-size: 18px;
  max-width: 680px;
  color: #ddd;
}

/* =============================================
   RECONOCIMIENTOS PAGE
   ============================================= */
.awards-section { padding: 80px 0; }

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e5e5e5;
}

.award-badge {
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
  background: #051D4B;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.award-badge.second { background: #646868; }
.award-badge.third { background: #333; }
.award-badge.mention { background: #444; font-size: 12px; }

.award-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}

.award-info .award-year {
  font-size: 14px;
  color: #646868;
  font-weight: 600;
  margin-bottom: 4px;
}

.award-info p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* =============================================
   SERVICIOS PAGE
   ============================================= */
.service-detail-section { padding: 80px 0; }
.service-detail-section.alt { background: #FAFAFA; }

.service-detail-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.service-detail-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.service-detail-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.service-detail-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* CTA accent bg */
.cta-accent {
  background: #646868;
  padding: 70px 24px;
  text-align: center;
  color: #fff;
}

.cta-accent h2 { font-size: 32px; margin-bottom: 28px; color: #fff; }

/* =============================================
   PROYECTOS PAGE
   ============================================= */
.projects-page-section { padding: 80px 0; }

/* ── Wrapper: Bootstrap container-lg with custom max-width ── */
.projects-gallery-wrap {
  max-width: 1140px;
}

/* ── Row: 6px horizontal gap, 16px vertical gap between rows ── */
.projects-row {
  --bs-gutter-x: 6px;
  --bs-gutter-y: 16px;
}

/* ── Project card ── */
.project-card-link {
  text-decoration: none;
  display: block;
}

.project-page-card {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Image: 100% of column width, 4:3 ratio */
.project-card-img-wrap {
  overflow: hidden;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio = 75% */
  position: relative;
  background: #e4e4e4;
}

.project-card-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card-link:hover .project-page-card {
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  transform: translateY(-3px);
}

.project-card-link:hover .project-card-img-wrap img {
  transform: scale(1.05);
}

.project-page-card-info {
  padding: 12px 14px 14px;
  border-top: 2px solid var(--gold, #C9A84C);
}

.project-page-card-info h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy, #051D4B);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.project-page-card-info p {
  display: none;
}

/* Placeholder bg when no image */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #646868 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
}

/* =============================================
   CONTACTO PAGE
   ============================================= */
.contact-info-cards {
  background: #646868;
  padding: 60px 0;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  height: 100%;
  border-top: 3px solid rgba(255,255,255,0.5);
}

.contact-card .card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
}

.contact-card h3 { font-size: 17px; margin-bottom: 10px; }
.contact-card p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0; }

.contact-form-section { padding: 80px 0; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus { border-color: #646868; }

.form-textarea { min-height: 160px; resize: vertical; }

.form-input.error,
.form-textarea.error { border-color: #cc0000; }

.form-error {
  display: none;
  font-size: 13px;
  color: #cc0000;
  margin-top: 4px;
}

.form-error.visible { display: block; }

.form-success {
  display: none;
  background: #e6f4ea;
  border: 1px solid #34a853;
  color: #1e7e34;
  padding: 16px;
  margin-top: 20px;
  font-weight: 600;
}

.form-success.visible { display: block; }

.contact-info-col {
  padding: 40px;
  background: #FAFAFA;
  height: 100%;
}

.contact-info-col h3 { font-size: 20px; margin-bottom: 24px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info-item .ci-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #051D4B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.contact-info-item .ci-text { font-size: 15px; line-height: 1.6; color: #555; }

/* =============================================
   FOOTER (unificado — editar partials.js para cambiar contenido)
   ============================================= */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

.footer-top {
  padding: 60px 40px 50px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
}

.footer-logo { height: 34px; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); }

.footer-col p { line-height: 1.7; font-size: 13px; color: rgba(255,255,255,0.45); margin: 0 0 4px; }

.footer-kit { height: 28px; margin-top: 20px; display: block; filter: brightness(0) invert(1) opacity(0.4); }

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-contact li h5 {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.footer-contact li a { color: rgba(255,255,255,0.6); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-contact li a:hover { color: #fff; }
.footer-contact li { margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .hero-content { padding: 40px 32px 80px; }
  .hero-title { font-size: 36px; }
  .service-detail-img { height: 300px; }
  .service-detail-text { padding: 32px 24px; }
  .slider-dots, .slider-controls { left: 24px; right: 24px; bottom: 24px; }
  .slider-controls { right: 24px; }
}

@media (max-width: 767px) {
  .navbar-nav-list { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 28px; }
  .hero-content h1 { font-size: 24px; }
  .section-pad { padding: 56px 0; }
  .intro-text-col { padding-right: 0; margin-bottom: 32px; }
  .service-detail-text { padding: 24px 16px; }
  .cta-section h2, .cta-accent h2 { font-size: 24px; }
  .page-hero-content h1 { font-size: 28px; }
  .about-img-wrap img { height: auto; }
  .award-item { flex-direction: column; gap: 12px; }
  .award-badge { width: 100%; text-align: left; padding: 8px 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px 30px; }
  .footer-bottom { padding: 16px 24px; }
  .contact-info-col { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 28px 16px 70px; }
  .slider-dots { left: 16px; }
  .slider-controls { right: 16px; }
  .btn-dark-custom, .btn-light-custom, .btn-white-custom { padding: 12px 22px; font-size: 14px; }
}

/* ===== PROJECT CARD LINKS (index.html) ===== */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.project-card-link:hover .project-card {
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}
.project-card { transition: box-shadow 0.3s, transform 0.3s; }

/* ===== LANGUAGE SWITCHER — DROPDOWN ===== */
.lang-dropdown {
  position: relative;
  margin-right: 12px;
  font-family: inherit;
}

/* Trigger button */
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(5,29,75,0.22);
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy, #051D4B);
  letter-spacing: 0.5px;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--accent, #C2974C);
  background: rgba(194,151,76,0.06);
}
.lang-flag  { font-size: 16px; line-height: 1; }
.lang-code  { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.lang-caret { font-size: 9px; opacity: 0.6; transition: transform 0.2s; }
.lang-dropdown.open .lang-caret { transform: rotate(180deg); }

/* Dropdown menu */
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 9999;
}
.lang-dropdown.open .lang-menu { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-option:hover    { background: #f5f5f5; }
.lang-option.selected { background: #f0f4ff; color: var(--navy, #051D4B); font-weight: 600; }
.lang-option .lang-flag { font-size: 18px; }

/* Scrolled / dark header */
.site-header.scrolled .lang-trigger {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.site-header.scrolled .lang-trigger:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
}
.site-header.scrolled .lang-caret { opacity: 0.8; }

/* Mobile variant (inside mobile nav) */
.lang-switcher-mobile { padding: 12px 0 8px; text-align: center; }
.lang-dropdown--mobile { display: inline-block; margin-right: 0; }
.lang-dropdown--mobile .lang-trigger {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  padding: 7px 14px;
}
.lang-dropdown--mobile .lang-trigger:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
}
.lang-dropdown--mobile .lang-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
