/* ============================================================
   CAST GROUP — International Casting Manufacturer Website
   Design: International industrial + deep-blue tech + minimal business
   Color tokens (per requirement V1.0)
   ============================================================ */
/* Self-hosted Inter — SIL Open Font License 1.1 (free for commercial use).
   License: assets/fonts/OFL-Inter.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter-800.woff2') format('woff2'); }

:root {
  --navy: #102B46;        /* main background / nav / brand */
  --steel: #315B7D;       /* secondary / buttons / icons */
  --silver: #AEB9C4;      /* auxiliary text / dividers */
  --white: #FFFFFF;      /* main background */
  --orange: #D98A45;      /* small accent highlight */

  --ink: #1B2A38;
  --ink-soft: #4A5A68;
  --line: #E3E8ED;
  --bg-soft: #F4F7F9;
  --bg-navy-soft: #17385A;

  --font: "Inter", system-ui, -apple-system, "Noto Sans", sans-serif;

  --maxw: 1200px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(16, 43, 70, 0.10);
  --shadow-hover: 0 12px 32px rgba(16, 43, 70, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--steel); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #c4793a; color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--steel), var(--bg-navy-soft));
  display: grid; place-items: center;
  color: var(--white); font-weight: 800; font-size: 18px;
  border: 1px solid rgba(255,255,255,.18);
}
.brand-name { color: var(--white); font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--silver); letter-spacing: 1px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 10px; color: #D8E2EC; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; background: var(--orange); }
.nav-cta .btn:hover { background: #c4793a; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(110deg, rgba(16,43,70,.94) 0%, rgba(23,56,90,.80) 52%, rgba(29,71,107,.55) 100%),
    url('../img/hero.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(217,138,69,.5); color: var(--orange);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: #CBD8E3; margin-bottom: 32px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 1; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px;
}
.hero-stats .num { font-size: 30px; font-weight: 800; color: var(--white); }
.hero-stats .num span { color: var(--orange); }
.hero-stats .label { font-size: 13.5px; color: var(--silver); }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--steel); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section.dark .eyebrow { color: var(--orange); }
.section-head h2 { font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }
.section.dark .section-head p { color: #CBD8E3; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .2s ease; min-width: 0;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; background: #fff; object-fit: cover; display: block; }
.banner-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 12px; display: block; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 14px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  background: var(--bg-soft); color: var(--steel); font-size: 12.5px; font-weight: 600;
}
.link-more { font-weight: 600; font-size: 14px; color: var(--steel); }
.link-more::after { content: " →"; }

/* capability icon cards */
.cap-card { text-align: left; padding: 28px; }
.cap-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(49,91,125,.10); color: var(--steel);
  display: grid; place-items: center; margin-bottom: 18px; font-size: 24px;
}
.qr-img { width: 160px; max-width: 72%; height: auto; margin: 0 auto 14px; display: block; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- Placeholder image (no stock photos) ---------- */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #D7E1E9, #B9C8D3);
  color: #5A6B78; text-align: center; padding: 16px;
}
.ph.dark { background: linear-gradient(135deg, var(--bg-navy-soft), var(--navy)); color: #9FB6C8; }
.ph .ph-icon { font-size: 34px; opacity: .7; margin-bottom: 8px; }
.ph .ph-label { font-size: 12.5px; letter-spacing: .5px; }

/* ---------- Process flow ---------- */
.flow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; counter-reset: step; }
.flow-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; position: relative;
}
.flow-step .step-no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--steel); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-bottom: 12px;
}
.flow-step h4 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }

/* ---------- Lists ---------- */
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--ink-soft);
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--bg-navy-soft));
  color: var(--white); border-radius: var(--radius);
  padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #CBD8E3; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--bg-navy-soft));
  color: var(--white); padding: 64px 0;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #CBD8E3; max-width: 640px; }
.breadcrumb { font-size: 13px; color: var(--silver); margin-bottom: 16px; }
.breadcrumb a { color: #CBD8E3; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.form-field .hint { font-size: 12.5px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(49,91,125,.12);
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 14px; }
.checkbox-group label {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--white); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; font-size: 16px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #0C2136; color: #B9C8D3; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #B9C8D3; font-size: 14px; }
.site-footer a:hover { color: var(--white); }
.footer-about p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- Breadcrumb detail layout ---------- */
.detail-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }
.detail-layout > * { min-width: 0; }
.detail-layout .grid-2 { min-width: 0; }
.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; }
.side-card h4 { margin-bottom: 14px; color: var(--navy); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 8px; display: block; background: var(--bg-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.1); display: none;
  }
  .main-nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px; }
  .nav-cta { margin: 12px 24px 18px; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: left; padding: 32px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
}
