/* =========================================================
   Base
   ========================================================= */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f6f9ff;
    color: #0b1b33;
}

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

*, *::before, *::after {
    box-sizing: border-box;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    height: 32px;
    display: block;
}

/* Main navigation */
.main-nav {
    display: flex;
    gap: 32px;
    font-size: 15px;
}

.main-nav a {
    color: #0b1b33;
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

/* Utility nav container */
.header-utils {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

/* Desktop utility links */
.desktop-utils {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.header-utils a {
    color: #0b1b33;
    opacity: 0.85;
}

.header-utils a:hover {
    opacity: 1;
}


/* Hamburger (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #0b1b33;
}
/* Show hamburger on mobile */
@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }
}

/* Mobile menu container */
.header-inner {
    position: relative;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-menu.open {
    display: block;
}

/* Mobile menu utilities (language switch) */
.mobile-utils {
    padding: 16px 20px;
    border-top: 1px solid #e6e6e6;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-utils {
        display: none !important;
    }
}


/* Mobile menu utilities (language switch) */
.mobile-utils {
    display: block;
    padding: 16px 20px;
    border-top: 1px solid #e6e6e6;
}

.mobile-utils .lang-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-utils {
        display: none;
    }
}
/* Mobile nav links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 20px;
}

.mobile-nav a {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a:last-child {
    border-bottom: none;
}
.mobile-utils {
    background: #f6f9ff;
}

.mobile-utils .lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.mobile-utils .lang-icon {
    font-size: 18px;
    
}
.mobile-utils::before {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 8px;
}
.mobile-menu {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Mobile language switch (flat list) */
.mobile-language {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-language-title {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8892a5;
    margin-bottom: 4px;
}

.mobile-language-item {
    background: none;
    border: none;
    padding: 6px 0;
    text-align: left;
    font-size: 15px;
    color: #0b1b33;
    cursor: pointer;
}

.mobile-language-item.active {
    font-weight: 600;
}


/* Fix mobile menu positioning */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #ffffff;
  }

  .mobile-menu {
    position: fixed;
    top: 64px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 1500;
  }
}
/* =========================================================
   Mobile language section spacing
   ========================================================= */

.mobile-language {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e6e6e6;
}

.mobile-language-title {
  margin-bottom: 8px;
}

.mobile-language-item {
  padding: 8px 0;
}


/* =========================================================
   Hero Section
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #f6f9ff,
        #eef3ff,
        #f6f9ff
    );
    background-size: 300% 300%;
    animation: heroGradient 22s ease infinite;
}

@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 60%, rgba(255, 210, 90, 0.25) 0, transparent 120px),
        radial-gradient(circle at 70% 40%, rgba(255, 210, 90, 0.18) 0, transparent 160px);

    animation: heroDots 28s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroDots {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}


.hero-bg {
    position: absolute;
    inset: 0;
    background-repeat: repeat-x;
    background-position: center;
    background-size: cover;
    opacity: 0.35;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* Hero text */
.hero-text h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 20px;
}

.hero-text p {
    font-size: 17px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 32px;
    opacity: 0.9;
}

/* CTA button */
.btn-primary {
    display: inline-block;
    padding: 14px 26px;
    background: #f2d46b;
    color: #0b1b33;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #e8c954;
}

/* Hero image */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 480px;   /* desktop */    
    border-radius: 8px;
}


.lang-icon {
  font-size: 14px;
  opacity: 0.85;
}

/* Mobile spacing fix for hero text */
@media (max-width: 768px) {
  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}



/* =========================================================
   Trust Row
   ========================================================= */

.trust-row {
    background: #f3f7ff; /* soft light blue */
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 24px 24px;
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;        /* vertical rhythm only */
    font-size: 14px;
    color: #0b1b33;
}
.trust-icon {
    font-size: 22px;
    line-height: 1;
}
.trust-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: #5b8cff;        /* LeWorks light blue */
    stroke-width: 1.8;
    fill: none;
}
.trust-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;

    stroke: #5b8cff;        /* LeWorks light blue */
    stroke-width: 1.8;
    fill: none;
}
.trust-text {
    font-weight: 500;
    line-height: 1.3;
}

/* =========================================================
   Services Section
   ========================================================= */

.services {
    padding: 56px 24px 40px;
    background: #f6f9ff;
}

.services-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden; /* critical: lets image align with edges */
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.service-image img {
    display: block;
    width: 100%;
    height: auto;

    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.service-content {
    background: #f3f7ff; /* light LeWorks blue */
    padding: 20px 22px 26px;
}


.service-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.service-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.service-link {
    font-size: 14px;
    color: #2b6cb0;
}

.service-link:hover {
    text-decoration: underline;
}
.service-card {
    display: flex;
    flex-direction: column;
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-link {
    margin-top: auto;
}


/* =========================================================
   Why LeWorks
   ========================================================= */

.why-leworks {
    padding: 28px 20px;
    background: #f3f7ff;
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.why-text h2 {
    font-size: 28px;
    margin: 0 0 24px;
}

.why-text ul {
    padding-left: 18px;
    margin: 0;
}

.why-text li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.why-image {
    display: flex;
    justify-content: center;
}

.why-image img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .why-leworks {
        padding: 28px 16px;
    }

    .why-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }

    .why-text {
        padding-left: 4px;
        padding-right: 4px;
    }

    .why-image img {
        max-width: 100%;
        margin: 0;
    }
}


/* =========================================================
   Join LeWorks (boxed CTA)
   ========================================================= */

.join-leworks {
    padding: 60px 24px;
    background: #f6f9ff;
}

.join-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    position: relative;
}

/* Top accent line */
.join-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f2d46b;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.join-inner {
    padding: 44px 56px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.join-text h2 {
    font-size: 28px;
    margin: 0 0 16px;
}

.join-text p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 28px;
}

.join-image img {
    max-width: 100%;
    border-radius: 10px;
}



/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: #0b1b33;
    color: rgba(255,255,255,0.85);
    padding: 60px 24px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
}

.footer-brand img {
    height: 28px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);

    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85);
}

.footer-bottom a:hover {
    text-decoration: underline;
}
/* Footer social icons */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social .social-btn img {
    width: 24px;
    height: 24px;
}




/* =========================================================
   Responsive (Tablet + Mobile)
   ========================================================= */

@media (max-width: 1023px) {

    /* Header */
    .main-nav.desktop-nav {
        display: none;
    }

    .desktop-utils {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        justify-content: flex-start;
    }

    /* Trust row */
    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    /* Services */
    .services-inner {
        grid-template-columns: 1fr;
    }

  

    /* Join LeWorks */
    .join-inner {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .hero-image img {
        max-height: 360px;
        margin: 0 auto;
    }

    .join-card {
        border-radius: 12px;
    }

    .join-inner {
        padding: 32px 24px;
    }
}


input, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 14px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #5b8cff;
}
/* Contact page mobile layout fix */
@media (max-width: 768px) {
    .services-inner {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    input, textarea {
        font-size: 16px; /* prevents iOS zoom */
    }

    .service-card {
        padding: 20px;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
    }
    .services {
        padding-left: 16px;
        padding-right: 16px;
    }    
}

.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  background: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(11, 27, 51, 0.45);
}

.join-form label {
  display: block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 500;
}


.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
}

.center {
  text-align: center;
}


/* =========================================================
   Generic content pages (Manufacturing, Engineering, etc.)
   ========================================================= */

.content-section {
    padding: 72px 24px;
    background: #f6f9ff;
}

.content-section:nth-child(even) {
    background: #ffffff;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================
   Content sections
============================ */

.content-section {
    padding: 64px 24px;
    background: #ffffff;
}

.content-section.alt {
    background: #f6f9ff;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.content-inner.narrow {
    max-width: 760px;
}

.content-inner.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.content-inner.two-col.reverse {
    direction: rtl;
}

.content-inner.two-col.reverse > * {
    direction: ltr;
}

.text-col h2 {
    margin-top: 0;
}

.image-col img {
    width: 100%;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .content-inner.two-col {
        grid-template-columns: 1fr;
    }
}


/* ============================
   Page hero (Manufacturing, etc)
============================ */

.page-hero {
    background: #f6f9ff;
    padding: 72px 24px;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.page-hero-text h1 {
    font-size: 40px;
    margin: 0 0 16px;
}

.page-hero-text p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
}

.page-hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================
   CTA Section
============================ */

.cta-section {
    background: #f6f9ff;
    padding: 72px 24px;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 48px 56px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.cta-inner h2 {
    font-size: 28px;
    margin: 0 0 12px;
}

.cta-inner p {
    font-size: 16px;
    margin: 0 0 24px;
    max-width: 520px;
}

/* Mobile */
@media (max-width: 768px) {
    .cta-inner {
        padding: 32px 24px;
    }
}
.inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inline-link:hover {
    text-decoration-thickness: 2px;
}
.about-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.about-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Founder line with LinkedIn icon */
.founder-line {
  display: inline-flex;
  align-items: center;   /* KEY FIX */
  gap: 6px;
  font-size: 15px;
  color: #0b1b33;
}

/* LinkedIn link */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;        /* prevent baseline drift */
}

/* LinkedIn icon */
.linkedin-link img {
  width: 14px;           /* slightly smaller = more elegant */
  height: 14px;
  position: relative;
  top: 1px;              /* optical alignment tweak */
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.linkedin-link:hover img {
  opacity: 1;
}

.founder-line {
  margin-top: 12px;
}

.linkedin-link:hover img {
  transform: translateY(-1px);
}

/* Prevent video jumping on About page */
body.about-page .content-section.alt .text-col {
  align-self: flex-start;
}


.video-wrapper {
  position: relative;
}

.video-wrapper {
  position: relative;
}

/* Transparent click-capture layer */
.video-click-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  background: transparent;
  display: none;            /* not active by default */
}

.video-wrapper.is-clickable .video-click-layer {
  display: block;           /* active when JS adds the class */
}

/* Block inline Vimeo interaction when clickable */
.video-wrapper.is-clickable iframe {
  pointer-events: none !important;
}


/* =========================================================
   Video modal (Vimeo lightbox)
   ========================================================= */


.video-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1; /* BELOW the video */
}

.video-modal-content {
  position: relative;
  max-width: 960px;
  margin: 6vh auto;
  z-index: 2; /* ABOVE the backdrop */
}

.video-modal-frame {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.video-wrapper iframe {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .services-inner {
    gap: 16px;
  }

  .service-card {
    max-width: 100%;
  }
}
/* About page – Why LeWorks exists section */
@media (max-width: 768px) {
  .why-image,
  .video-wrapper,
  .video-wrapper iframe {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

body {
  overflow-x: hidden;
}
/* About page – align video section with hero width */
body.about-page
  .content-section.alt
  .content-inner.two-col {
    max-width: 760px;
}


/* =========================================================
   FINAL FIX — language switcher visibility
   ========================================================= */



/* Hide mobile language list on desktop */
@media (min-width: 901px) {
  .mobile-language {
    display: none;
  }
}

/* Mobile language section */
.mobile-lang {
  padding: 16px 20px;
  border-top: 1px solid #e6e6e6;
}

.mobile-lang select {
  width: 100%;
  font-size: 16px;
  padding: 8px 0;
  border: none;
  background: transparent;
}


/* =========================================================
   FINAL MOBILE FIXES
   ========================================================= */

@media (max-width: 1023px) {

  /* Hide all desktop header utilities */
  .header-utils {
    display: none !important;
  }

  /* Stack About page cards */
  .three-col {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Let cards use full width */
  .content-inner.narrow {
    max-width: 100%;
  }
}

/* =========================================================
   FIX — About page cards (scoped, safe)
   ========================================================= */

@media (max-width: 1023px) {

  /* Stack About cards */
  .three-col {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Expand only card container, NOT shared layouts */
  .three-col .feature-card {
    width: 100%;
  }
}
/* Only affects About page */
body.about-page .content-inner.two-col {
  align-items: center;
}

body.about-page .content-inner.two-col .text-col {
  align-self: center;
}
/* ===========================
   Header language alignment
   =========================== */

.header-utils {
  align-items: center;
}

/* Fix language selector vertical alignment */
.header-utils {
  align-items: center;
}

body.menu-open {
  overflow: hidden;
}

/* =========================================================
   Mobile menu positioning fix
   ========================================================= */

@media (max-width: 1023px) {
  .mobile-menu {
    position: fixed;
    top: 64px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 1000;
  }
}
/* ================================
   FIX: content pages center-align bug
   ================================ */

@media (max-width: 1023px) {
  .content-inner.two-col {
    align-items: start !important;
    text-align: left;
  }
}

/* ================================
   FIX: mobile menu positioning
   ================================ */

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #ffffff;
  }

  .mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 1500;
  }
}

/* =========================================================
   FINAL — Mobile menu language spacing
   ========================================================= */

@media (max-width: 1023px) {
  .mobile-language,
  .mobile-lang {
    padding: 20px 24px 24px;
  }

  .mobile-language-title {
    margin-bottom: 12px;
  }

  .mobile-language-item {
    padding: 10px 0;
  }
}

/* =========================================================
   FINAL — ICP footer centering
   ========================================================= */

.footer-icp {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-icp a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* =========================================================
   FINAL POLISH FIXES — DO NOT MOVE
   ========================================================= */

/* ---------------------------------------------------------
   1) Mobile menu language spacing
   --------------------------------------------------------- */
@media (max-width: 1023px) {
  .mobile-language {
    margin-top: 24px;
    padding: 20px 24px 28px;
    border-top: 1px solid #e6e6e6;
  }

  .mobile-language-title {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8892a5;
  }

  .mobile-language-item {
    padding: 10px 0;
    font-size: 15px;
  }
}

/* ---------------------------------------------------------
   2) Center ICP footer (desktop + mobile)
   --------------------------------------------------------- */
.footer-icp {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 12px;
}

.footer-icp a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ---------------------------------------------------------
   3) About page — center "Why LeWorks exists" section
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  body.about-page .content-section.alt .content-inner.two-col {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* About page – tighten hero → first content section spacing */
body.about-page .page-hero {
  padding-bottom: 48px; /* default is 72px */
}

body.about-page .page-hero + .content-section {
  padding-top: 48px; /* default is 64px */
}


/* Prevent mobile centering bug on content pages */
@media (max-width: 1023px) {
  .content-inner.two-col {
    align-items: flex-start;
    text-align: left;
  }
}
/* =========================================================
   FIX: About page – align "Why LeWorks exists" with hero
   ========================================================= */

body.about-page
  section.content-section.alt
  > .content-inner.two-col {
    max-width: 760px !important;
    margin-left: auto;
    margin-right: auto;
}
/* ============================
   Join page form styling
   ============================ */

.join-form select,
.join-form textarea,
.join-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
}

.join-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0b1b33 50%),
    linear-gradient(135deg, #0b1b33 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 55%,
    calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

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

.join-form .btn-primary {
  margin-top: 12px;
}
.video-wrapper iframe,
.video-wrapper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

/* =========================================================
   Join page – constrain form width
   ========================================================= */

.join-contact .contact-inner {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.join-contact .join-form {
  background: #ffffff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}


.video-wrapper img {
  object-fit: cover;
}
/* ================================
   Header language switch (FINAL)
   ================================ */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #0b1b33;
  opacity: 0.85;
  padding: 4px 8px; 
}


.lang-switch:hover {
  opacity: 1;
}

.lang-switch select {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding-right: 14px;
  line-height: 1;
  padding-top: 0;   /* remove optical hacks */
}

.lang-switch::after {
  content: "▾";
  font-size: 11px;
  pointer-events: none;
}

.lang-icon {
  font-size: 14px;
}
.lang-switch {
  position: relative;
}

.lang-switch select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lang-label {
  font-weight: 400;
  padding: 2px 4px;  
}

.lang-switch select {
  min-width: 100%;
}

/* ================================
   Legal style
================================ */

.legal h1 {
  margin-bottom: 12px;
}

.legal h2 {
  margin-top: 36px;
  font-size: 20px;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
}

.legal .muted {
  font-size: 13px;
  opacity: 0.6;
}

body.about-page .linkedin-link img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  flex-shrink: 0;
  display: inline-block;
}


/* =========================================================
   Sign-in modal
   ========================================================= */

.hidden { display: none !important; }

.signin-wrap { display: inline-flex; align-items: center; gap: 6px; }

.signin-caret {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}
.signin-caret:hover { border-color: #ddd; background: #fff; }

/* Backdrop */
.signin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 44, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

/* Modal card */
.signin-modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.06);
}

.signin-modal-head {
  text-align: center;
  padding: 4px 6px 14px;
}

.signin-modal-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: #0b1b33;
}

.signin-modal-subtitle {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: #5a6475;
}

/* Buttons layout */
.signin-modal-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* Two columns on desktop, one column on small screens */
.signin-modal-actions--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .signin-modal-actions--two {
    grid-template-columns: 1fr;
  }
}

/* Buttons: centered, neutral, scalable to future options */
.signin-btn.signin-btn--option {
  width: 100%;
  border-radius: 12px;
  padding: 14px 14px;
  cursor: pointer;
  border: 1px solid rgba(11, 27, 51, 0.18);
  background: #eef0f5;
  color: #0b1b33;
  transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;

  /* Force centering regardless of other rules */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.signin-btn.signin-btn--option:active { transform: translateY(1px); }

.signin-btn.signin-btn--option:hover {
  border-color: rgba(11, 27, 51, 0.28);
  background: #e6e8ee;
  box-shadow: 0 10px 22px rgba(11,27,51,.10);
}

.signin-btn-center {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* Footer link */
.signin-modal-footer {
  margin-top: 14px;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.signin-modal-link {
  font-size: 13px;
  color: #5a6475;
  text-decoration: none;
}
.signin-modal-link:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .signin-modal { padding: 18px 16px 14px; }
}
