/* ==========================================================================
   Interbridge Solutions Co., Ltd. — Global Stylesheet
   Design: Corporate Industrial + Modern Minimal
   ========================================================================== */

/* --- Tokens --- */
:root {
  /* Palette */
  --navy-900: #0A1628;
  --navy-800: #0F2340;
  --navy-700: #17314F;
  --navy-600: #234668;
  --steel-500: #64809D;
  --steel-300: #A9BCCE;
  --amber:    #F5A524;   /* industrial safety accent */
  --amber-dark: #C67F0B;
  --white:    #FFFFFF;
  --slate-50: #F7F9FC;
  --slate-100:#EEF2F7;
  --slate-200:#E2E8F0;
  --slate-400:#94A3B8;
  --slate-500:#64748B;
  --slate-700:#334155;
  --slate-900:#0F172A;

  /* Typography */
  --font-display: 'Bricolage Grotesque', 'Archivo', sans-serif;
  --font-body:    'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radii + shadows */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(10, 22, 40, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(10, 22, 40, 0.28);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--navy-900); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--amber); color: var(--navy-900); }

/* --- Utilities --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-dark); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--navy-900); color: var(--slate-200); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .eyebrow { color: var(--amber); }

.h-display { font-size: clamp(2.4rem, 5.2vw, 4.5rem); }
.h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--slate-700); max-width: 62ch; }
.section-dark .lead { color: var(--steel-300); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: var(--navy-900); color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--slate-200); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--navy-900); padding: 8px 0; border-radius: 0; border-bottom: 1.5px solid var(--navy-900); }
.btn-ghost:hover { color: var(--amber-dark); border-bottom-color: var(--amber); }
.section-dark .btn-outline,
.hero .btn-outline,
.page-hero .btn-outline { border-color: rgba(255,255,255,0.28); color: var(--white); }
.section-dark .btn-outline:hover,
.hero .btn-outline:hover,
.page-hero .btn-outline:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

/* --- Header / Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy-900);
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  display: grid; place-items: center; color: var(--amber);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 14px; font-size: 0.92rem; font-weight: 500;
  color: var(--slate-700);
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); background: var(--slate-100); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--slate-100); border-radius: 999px; padding: 4px;
}
.lang-switch button {
  padding: 6px 12px; font-size: 0.78rem; font-weight: 600;
  color: var(--slate-500); border-radius: 999px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch button.active { background: var(--navy-900); color: var(--white); }
.lang-switch button:hover:not(.active) { color: var(--navy-900); }

.menu-toggle { display: none; padding: 10px; border-radius: 8px; }
.menu-toggle svg { width: 22px; height: 22px; color: var(--navy-900); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; background: #111a28;}
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-100);
    padding: 12px var(--gutter) 24px; gap: 2px;
  }
  .nav-links.open a { padding: 12px; border-radius: 8px; }
}

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(245,165,36,0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(100,128,157,0.22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { color: var(--steel-300); margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,0.55) 100%);
}
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  background: rgba(255,255,255,0.94); color: var(--navy-900);
  padding: 14px 18px; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 0.82rem;
  backdrop-filter: blur(10px);
  max-width: 78%;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--amber); font-weight: 600; }
.stat .label { color: var(--steel-300); font-size: 0.88rem; margin-top: 4px; }

@media (max-width: 900px) {
  .hero { padding: 72px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4/3; }
  .hero-stats { gap: 16px; grid-template-columns: repeat(3, 1fr); }
  .stat .num { font-size: 1.6rem; }
}

/* --- Section header --- */
.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header p { margin-top: 16px; }

/* --- Feature grid (services / why us) --- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--navy-900); color: var(--amber);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 0.95rem; }
.section-dark .card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.section-dark .card p { color: var(--steel-300); }
.section-dark .card:hover { border-color: var(--amber); background: rgba(255,255,255,0.05); }
.section-dark .card .icon { background: var(--amber); color: var(--navy-900); }

/* Service detail card (large with photo) */
.service-block {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  padding: 80px 0; border-top: 1px solid var(--slate-200);
}
.service-block.reverse { grid-template-columns: 1fr 1.1fr; }
.service-block.reverse .service-media { order: -1; }
.service-media {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-block:hover .service-media img { transform: scale(1.04); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 24px; }
.service-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.94rem; color: var(--slate-700);
}
.service-list li::before {
  content: ""; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
@media (max-width: 900px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; padding: 48px 0; gap: 32px; }
  .service-block.reverse .service-media { order: 0; }
  .service-list { grid-template-columns: 1fr; }
}

/* Industry card (photo top) */
.industry-card {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--slate-200);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card .photo { aspect-ratio: 16/10; overflow: hidden; }
.industry-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.industry-card:hover .photo img { transform: scale(1.06); }
.industry-card .body { padding: 22px 24px 26px; }
.industry-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.industry-card p { color: var(--slate-500); font-size: 0.9rem; }

/* --- CTA band --- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 64px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,0.18), transparent 70%);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--steel-300); margin-top: 12px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-band .actions { justify-content: flex-start; }
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: var(--steel-300);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: var(--font-mono); font-weight: 600; }
.footer-grid a { display: block; padding: 6px 0; font-size: 0.92rem; color: var(--steel-300); transition: color .2s; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--steel-500, #64809D);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Page hero (smaller, for interior pages) --- */
.page-hero {
  background: var(--navy-900); color: var(--white);
  padding: 96px 0 72px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--steel-300); margin-top: 16px; max-width: 64ch; font-size: 1.1rem; }
.breadcrumb {
  color: var(--steel-500, #64809D); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--amber); }

/* --- About page --- */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.about-grid img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.vm-block {
  padding: 40px; background: var(--slate-50); border-radius: var(--r-lg);
  border-left: 4px solid var(--amber);
}
.vm-block h3 { font-size: 1.5rem; margin-bottom: 12px; }
.vm-block p { color: var(--slate-700); }

/* --- Contact page --- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--slate-700); margin-bottom: 8px;
  font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--slate-200); border-radius: var(--r-md);
  font: inherit; color: var(--navy-900); background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy-800);
  box-shadow: 0 0 0 4px rgba(15,35,64,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-block {
  padding: 26px; border: 1px solid var(--slate-200);
  border-radius: var(--r-md); margin-bottom: 16px;
  display: flex; gap: 18px;
}
.contact-info-block .icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--navy-900); color: var(--amber);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-info-block h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.contact-info-block p, .contact-info-block a { color: var(--slate-500); font-size: 0.92rem; }
.contact-info-block a:hover { color: var(--navy-900); }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 800px) { .region-grid { grid-template-columns: 1fr; } }
.region-card {
  padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--r-md);
  background: var(--slate-50);
}
.region-card .flag { font-family: var(--font-mono); font-size: 0.78rem; color: var(--amber-dark); letter-spacing: 0.1em; }
.region-card h4 { font-size: 1.05rem; margin: 6px 0 10px; }
.region-card p { font-size: 0.9rem; color: var(--slate-700); }

/* --- Reveal animations --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* --- Toast (success) --- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy-900); color: var(--white);
  padding: 14px 20px; border-radius: 999px; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Marquee (client trust bar) --- */
.trust-bar {
  padding: 40px 0; background: var(--slate-50);
  border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200);
}
.trust-inner {
  display: flex; align-items: center; gap: 60px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate-500);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.trust-inner span { opacity: 0.7; }

/* --- Print --- */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { color: black; }
}
