
:root {--bg:#ffffff; --text:#0b1b3b; --muted:#5b6b83; --brand:#f3d9a4; --accent:#2563eb; --light:#f7fafc; --border:#e5e7eb;}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:var(--text);background:var(--bg)}
a{color:#1e40af;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
nav{position:sticky;top:0;background:rgba(255,255,255,.85);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--border);z-index:10}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.nav-links a{margin:0 10px;color:var(--text);font-weight:700}
.btn{display:inline-block;padding:10px 16px;border-radius:12px;border:1px solid var(--text);}
.btn.primary{background:var(--text);color:white;border-color:var(--text)}
.btn.brand{background:var(--brand);color:#1f2937;border-color:var(--brand)}
.hero{padding:90px 0;background:radial-gradient(1200px 500px at 50% 0%, #e2e8f0 0%, #ffffff 60%), linear-gradient(120deg, #fdf7e3, #ffffff 60%);text-align:center}
.hero h1{font-size:40px;margin:0 0 12px}
.hero p{max-width:760px;margin:0 auto 10px;color:var(--muted);line-height:1.6}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.card{background:white;border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:0 2px 6px rgba(0,0,0,.04)}
.section{padding:48px 0}
.kicker{letter-spacing:.14em;text-transform:uppercase;font-size:12px;color:#334155;font-weight:800}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border:1px solid var(--border);padding:10px;text-align:center}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px}
.hero-min{padding:36px 0;background:#f8fafc;border-bottom:1px solid var(--border)}
.notice{background:#fff7ed;border:1px solid #fed7aa;padding:8px;border-radius:10px}
footer{margin-top:50px;border-top:1px solid var(--border);background:#fafafa}
footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;padding:24px 0}
.lang a{margin-left:8px;font-weight:600}
.logo img{height:36px}

.nav-links a.active{background:#0b1b3b;color:#fff;border-radius:9999px;padding:10px 16px}

/* ---- Anti-layout shift fixes ---- */
html{overflow-y:scroll;} /* reserve scrollbar to avoid center shift */
nav{min-height:64px;} /* stable header bar height */
.nav-inner{height:64px;} /* fix container height */
.logo img{height:36px;display:block}

/* Ensure ALL nav links share the same box metrics */
.nav-links a{
  display:inline-block;
  padding:10px 16px;
  border-radius:9999px;
  border:1px solid transparent;
  line-height:1;
  vertical-align:middle;
}

/* Contact button uses same metrics; only colors change */
.nav-links a.btn{border:1px solid var(--text);}

/* Active state only changes colors, not geometry */
.nav-links a.active{
  background:#0b1b3b;
  color:#fff;
  border-color:#0b1b3b;
  /* no extra padding here */
}

/* Language switch links keep consistent height */
.lang a{display:inline-block;padding:6px 8px;line-height:1;border-radius:8px;border:1px solid transparent}
.lang a.active{background:#e5e7eb;border-color:#e5e7eb}

.about-summary .card img{border-radius:16px}

/* === Fix office image full height and remove bottom gap === */
.about-office {
  overflow: hidden;
  padding: 0;
}
.about-office img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0;
  padding: 0;
}

/* Ensure the right-side media card image fills container without gaps */
.about-summary .card.media{padding:0; overflow:hidden}
.about-summary .card.media img{display:block; width:100%; height:100%; object-fit:cover; border-radius:16px}


/* === Subtle background texture for pearls card === */
.card.bg-pearl{position:relative; overflow:hidden}
.card.bg-pearl::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/akoya.jpg") center/cover no-repeat;
  opacity:0.18;             /* subtle texture */
  filter: saturate(0.9) contrast(1.05) brightness(1.02);
}
.card.bg-pearl > *{position:relative}


/* === Cosmetics card full-cover background (applies to all languages) === */
.card.bg-cosme{position:relative; overflow:hidden}
.card.bg-cosme::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/cosme_cover.jpg") center/cover no-repeat;
  opacity:0.22;                      /* slightly stronger than texture */
  filter: saturate(0.95) contrast(1.05) brightness(1.02);
  pointer-events:none;
  z-index:0;
}
.card.bg-cosme > *{position:relative; z-index:1}


/* === Daily goods & electronics card full-cover background === */
.card.bg-daily{position:relative; overflow:hidden}
.card.bg-daily::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../img/daily_cover.jpg") center/cover no-repeat;
  opacity:0.22;
  filter:saturate(0.95) contrast(1.05) brightness(1.02);
  pointer-events:none;
  z-index:0;
}
.card.bg-daily > *{position:relative; z-index:1}


/* === Contact page two-column layout === */
.contact-wrap{display:grid;grid-template-columns:1.3fr 1fr;gap:32px;align-items:start}
@media (max-width: 960px){
  .contact-wrap{grid-template-columns:1fr;gap:20px}
}
.contact-card{background:#fff;border:1px solid rgba(8,23,53,.08);border-radius:16px;padding:20px 20px 24px;box-shadow:0 1px 2px rgba(8,23,53,.04)}
.contact-card h3{margin:0 0 12px;font-weight:800;color:#0f1a36}
.contact-meta{line-height:1.75}
.contact-meta li{margin:6px 0}
.contact-meta .label{color:#5b6b8a;margin-right:6px}
.contact-hero{position:relative;overflow:hidden;border-radius:16px}


/* === v41 contact layout tuning === */
.contact-wrap{align-items:stretch} /* stretch both columns same height */
.contact-card{height:100%}         /* let cards fill grid row height */
.contact-card.contact-form{        /* remove border on left form card */
  border:none;
  box-shadow:none;
  padding-left:0; padding-right:0;
}
/* Optional: tighten inner form spacing so it aligns with hero left edge */
.contact-card.contact-form form{padding:0;margin:0}
/* Ensure right map card keeps padding */
.contact-card .map-embed iframe{width:100%;height:340px;border:0;border-radius:12px}


/* === v42: contact form revert border, equal height === */
.contact-wrap {
  align-items: stretch;
}
.contact-card {
  height: 100%;
}
.contact-card.contact-form {
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
}


/* === Strengths section gradient background === */
.section-strengths{
  background: linear-gradient(180deg, #f5faff 0%, #e8f0ff 100%);
  border-radius: 12px;
  padding: 64px 0;
}
@media (max-width: 960px){
  .section-strengths{ padding: 48px 0; }
}


/* === Products page hero with background image & soft overlay (v51) === */
.products-hero {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url("https://i.pinimg.com/originals/56/ae/f9/56aef9568437fa49accbdad775aad05a.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
}
.products-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 0 16px;
}
.products-hero .hero-overlay h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a2239;
}
.products-hero .hero-overlay p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #0a2239;
}
@media (max-width: 960px){
  .products-hero { height: 280px; }
  .products-hero .hero-overlay h1 { font-size: 2rem; }
}


/* === Services page hero with background image & soft overlay (v52) === */
.services-hero {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
}
.services-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 0 16px;
}
.services-hero .hero-overlay h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a2239;
}
.services-hero .hero-overlay p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #0a2239;
}
@media (max-width: 960px){
  .services-hero { height: 280px; }
  .services-hero .hero-overlay h1 { font-size: 2rem; }
}


/* === Company/About hero (v53) === */
.about-hero {
  position: relative;
  width: 100%;
  height: 340px;
  background-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 0 20px 20px;
}
.about-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  flex-direction: column;
  padding: 0 16px;
}
.about-hero .hero-overlay h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0a2239;
}
.about-hero .hero-overlay p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #0a2239;
}
@media (max-width: 960px){
  .about-hero { height: 280px; }
  .about-hero .hero-overlay h1 { font-size: 2rem; }
}

/* === About hero background === */
.about-hero{
  background-image: linear-gradient(0deg, rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-hero h1, .about-hero p{ color:#0f172a; }


/* === card-section styles start === */
/* Section background to make the card pop */
.section.card-section {
  background: #f6f8fc;
  padding-top: 48px;
  padding-bottom: 56px;
}

/* Generic card */
.card {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Table card wrapper to manage spacing */
.table-wrap {
  margin-top: 16px;
}
.table-card {
  padding: 8px 8px 0 8px;
  overflow: hidden;
}

/* Card-styled table */
table.card-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.card-table th, .card-table td {
  padding: 14px 18px;
}
.card-table thead th {
  font-weight: 700;
}
.card-table tr + tr td, .card-table tr + tr th {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Rounded corners for the table inside the card */
.card-table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}
.card-table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}
.card-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.card-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Row hover micro-interaction */
.card-table tbody tr:hover td {
  background: rgba(69, 127, 255, 0.06);
}

/* Make header row distinct */
.card-table thead th {
  background: rgba(69,127,255,0.08);
}

/* Responsive: horizontal scroll on narrow screens */
@media (max-width: 640px) {
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table {
    min-width: 520px;
  }
}
/* === card-section styles end === */

/* ==== Mobile nav fixes (yuso_v104) ==== */
@media (max-width: 820px) {

  /* Allow header to grow when items wrap */
  .nav-inner{
    height: auto !important;
    min-height: 64px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 12px;
    padding: 8px 0;
  }

  /* Menu links row becomes wrapping grid */
  .nav-links{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100%;
    order: 2;
  }

  /* Language switch aligned to the right */
  .lang{
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;
  }

  /* Buttons with touch-friendly size */
  .nav-links a,
  .nav-links a.btn{
    display: block;
    padding: 10px 16px;
    line-height: 1.2;
    border-radius: 9999px;
    white-space: nowrap;
  }

  /* One-per-line on mobile (change to flex:1 1 48% for two-column) */
  .nav-links a.btn{ width: 100%; }

  /* Logo scaling */
  .logo img{ max-height: 36px; height: auto; }
}

/* Ensure no clipping/overlap */
nav, .nav-inner{ overflow: visible !important; position: relative; z-index: 10; }


/* --- Responsive two-column table with horizontal scroll on mobile --- */
.table-wrapper{width:100%;overflow-x:auto;}
.table-wrapper table{width:100%;border-collapse:collapse;min-width:680px;}
.table-wrapper th,.table-wrapper td{white-space:nowrap;}
