/* GRB Machine Tools — Design System
   Colors: Navy #1B2A4A, Yellow #F5C518 */

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3F6A;
  --navy-dark: #111D33;
  --yellow: #F5C518;
  --yellow-light: #FFD84D;
  --yellow-dark: #D4A800;
  --steel: #2E75B6;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg: #FFFFFF;
  --bg-alt: #F0F2F5;
  --bg-dark: #E8EAED;
  --border: #D0D3D8;
  --success: #28A745;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1240px;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

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

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo span { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 6px;
  font-size: .9rem; font-weight: 500; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .cta-btn {
  background: var(--yellow); color: var(--navy-dark); font-weight: 600;
  padding: 8px 18px; border-radius: 6px;
}
.nav-links .cta-btn:hover { background: var(--yellow-light); }

.lang-switch {
  display: flex; gap: 2px; background: rgba(255,255,255,.1);
  border-radius: 6px; padding: 2px; margin-left: 8px;
}
.lang-switch button {
  background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer;
  padding: 4px 10px; border-radius: 4px; font-size: .8rem; font-weight: 600;
  transition: all var(--transition);
}
.lang-switch button.active { background: var(--yellow); color: var(--navy-dark); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all .3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(245,197,24,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--yellow); color: var(--navy-dark); }
.btn-primary:hover { background: var(--yellow-light); color: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.section-title {
  font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 40px;
  max-width: 600px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.7); }
.yellow-line { width: 60px; height: 4px; background: var(--yellow); border-radius: 2px; margin-bottom: 16px; }

/* ===== PRODUCT CATEGORY CARDS (HOME) ===== */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.cat-card-img {
  height: 200px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-img .placeholder {
  font-size: 3rem; color: var(--navy); opacity: .15;
}
.cat-card-body { padding: 20px; }
.cat-card-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.cat-card-body .subtitle { font-size: .85rem; color: var(--text-light); margin-bottom: 8px; }
.cat-card-body p { font-size: .9rem; color: var(--text-secondary); line-height: 1.5; }
.cat-card-body .card-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  font-size: .9rem; font-weight: 600; color: var(--steel);
}
.cat-card-body .card-link:hover { color: var(--navy); }

/* ===== DIFFERENTIATORS ===== */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.diff-item {
  display: flex; gap: 14px; padding: 20px; background: rgba(255,255,255,.05);
  border-radius: var(--radius); border-left: 3px solid var(--yellow);
}
.diff-item .diff-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--navy-dark); border-radius: 8px; font-weight: 700; font-size: 1.1rem; }
.diff-item p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.5; }

/* ===== CONTROL SYSTEMS STRIP ===== */
.controls-strip {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap; padding: 20px 0;
}
.controls-strip .ctrl-logo {
  font-size: 1.2rem; font-weight: 700; color: var(--text-light);
  letter-spacing: 2px; opacity: .6; transition: opacity var(--transition);
}
.controls-strip .ctrl-logo:hover { opacity: 1; }

/* ===== CEO QUOTE ===== */
.quote-block {
  max-width: 700px; margin: 0 auto; text-align: center; padding: 40px;
}
.quote-block blockquote {
  font-size: 1.2rem; font-style: italic; color: var(--text);
  line-height: 1.7; margin-bottom: 20px;
  position: relative; padding: 0 24px;
}
.quote-block blockquote::before { content: '"'; position: absolute; left: -8px; top: -8px; font-size: 4rem; color: var(--yellow); font-style: normal; line-height: 1; }
.quote-block .quote-author { font-weight: 600; color: var(--navy); }
.quote-block .quote-title { font-size: .9rem; color: var(--text-secondary); }

/* ===== CATEGORY PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 56px 0 48px; position: relative;
}
.page-hero .breadcrumb {
  font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--yellow); }
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 8px; }
.page-hero h1 .accent { color: var(--yellow); }
.page-hero .page-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.page-hero .page-desc { max-width: 700px; color: rgba(255,255,255,.8); line-height: 1.6; }

/* ===== SERIES SECTION ===== */
.series-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 32px;
}
.series-header {
  display: flex; gap: 24px; padding: 24px; align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.series-header img { width: 180px; height: 120px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.series-header .series-info { flex: 1; }
.series-header h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.series-header .series-sub { font-size: .9rem; color: var(--text-light); margin-bottom: 8px; }
.series-header p { font-size: .95rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== SPEC TABLE ===== */
.spec-table-wrap { overflow-x: auto; padding: 0 24px 24px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table thead th {
  background: var(--navy); color: #fff; padding: 10px 14px; text-align: left;
  font-weight: 600; white-space: nowrap; position: sticky; top: 0;
}
.spec-table tbody td {
  padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
  font-family: var(--font-mono); font-size: .82rem;
}
.spec-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table tbody tr:hover { background: #E8F0FE; }
.spec-table .model-name { font-weight: 600; color: var(--navy); font-family: var(--font-body); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.site-footer ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: .85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .section { padding: 48px 0; }
  .categories-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy-dark);
    padding: 16px 24px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .series-header { flex-direction: column; }
  .series-header img { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .controls-strip { gap: 24px; }
}
