/* ══════════════════════════════════════════
   sustec Solutions – Shared Stylesheet
   ══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Colors ── */
:root {
  --orange: #ff6d00;
  --orange-light: #fe8733;
  --grey: #b3b2b2;
  --grey-dark: #6e6e73;
  --blue: #009cde;
  --bg-light: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --white: #ffffff;
}

/* ── Container ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 1.4rem; }
.nav-logo .sust { color: var(--orange); }
.nav-logo .ec { color: var(--grey); }
.nav-logo .solutions { font-size: 0.55em; color: var(--grey); font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-left: 2px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff !important; padding: 8px 20px;
  border-radius: 980px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--orange-light); transform: scale(1.03); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 8px 0;
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; font-size: 1rem; }
  .nav-cta { margin: 8px 24px 16px; text-align: center; display: block; }
  .nav-toggle { display: block; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; padding: 14px 32px;
  border-radius: 980px; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--orange-light); transform: scale(1.03); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue); padding: 14px 32px;
  border-radius: 980px; font-size: 1rem; font-weight: 600;
  border: 2px solid var(--blue); cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: #fff; }

/* ── Section ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .overline {
  font-size: 0.8rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

/* ── Page Hero (Subpages) ── */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 640px; line-height: 1.6;
}
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px;
}
.page-hero-breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--orange); }
.page-hero-breadcrumb svg { opacity: 0.4; }

/* ── Solutions Intro ── */
.solutions-intro {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,109,0,0.04); border: 1px solid rgba(255,109,0,0.12);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 48px;
}
.solutions-intro-icon { flex-shrink: 0; margin-top: 2px; }
.solutions-intro p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.solutions-intro a { color: var(--orange); font-weight: 500; }
.solutions-intro a:hover { text-decoration: underline; }

/* ── Solutions Grid (Overview Page) ── */
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 768px) { .solutions-grid { grid-template-columns: 1fr; } }

.solution-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.solution-card-image {
  background: var(--bg-light); padding: 48px 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px; position: relative;
}
.solution-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--orange); color: #fff; font-size: 0.7rem;
  font-weight: 600; padding: 4px 12px; border-radius: 980px;
}
.solution-svg { width: 100%; max-width: 240px; height: auto; }
.solution-svg-vert { max-width: 120px; }
.solution-card-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.solution-card-overline {
  font-size: 0.75rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.solution-card-body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.solution-card-body p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.solution-card-specs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.solution-spec { font-size: 0.85rem; color: var(--text); }
.solution-spec strong { display: block; font-size: 1rem; }
.solution-card-action {
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.95rem; font-weight: 600; color: var(--orange);
  transition: gap 0.2s;
}
.solution-card:hover .solution-card-action { gap: 10px; }

/* ── Product Hero (Detail Pages) ── */
.product-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}
.product-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-top: 16px;
}
@media (max-width: 900px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.product-hero-image {
  background: #fff; border-radius: 24px; padding: 48px 32px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.product-detail-svg { width: 100%; max-width: 360px; height: auto; }
.product-detail-svg-vert { max-width: 180px; }
.product-hero-badge {
  font-size: 0.8rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.product-hero-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.product-hero-desc {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 32px;
}
.product-hero-highlights {
  display: flex; gap: 32px; margin-bottom: 32px;
  padding: 24px 0; border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.highlight-item { text-align: center; flex: 1; }
.highlight-value {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.product-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .product-hero-highlights { gap: 16px; }
  .product-hero-actions { flex-direction: column; }
  .product-hero-actions .btn-primary,
  .product-hero-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* ── Data Table ── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.data-table th, .data-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
}
.data-table thead th {
  background: var(--text); color: #fff; font-weight: 600;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,109,0,0.02); }
.td-label { font-weight: 600; color: var(--text); white-space: nowrap; }
.td-small { font-size: 0.8rem; font-family: monospace; }

/* ── Specs Grid ── */
.specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 768px) { .specs-grid { grid-template-columns: 1fr; gap: 40px; } }

.specs-group h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--orange);
}
.specs-list { display: flex; flex-direction: column; }
.specs-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
}
.specs-row:last-child { border-bottom: none; }
.specs-row span:first-child { color: var(--text-secondary); }
.specs-row span:last-child { font-weight: 600; text-align: right; }

/* ── Info Box ── */
.info-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(0,156,222,0.05); border: 1px solid rgba(0,156,222,0.15);
  border-radius: 16px; padding: 20px 24px;
}
.info-box-icon { flex-shrink: 0; margin-top: 2px; }
.info-box p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Download Card ── */
.download-card {
  display: flex; align-items: center; gap: 24px;
  background: #fff; border-radius: 20px; padding: 32px 40px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.download-card-icon { flex-shrink: 0; }
.download-card-text { flex: 1; }
.download-card-text h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.download-card-text p { font-size: 0.9rem; color: var(--text-secondary); }
@media (max-width: 768px) {
  .download-card { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* ── Back Link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s, gap 0.2s;
}
.back-link:hover { color: var(--orange); gap: 12px; }

/* ── CTA Section ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1d1d1f 0%, #2d2d30 100%);
  color: #fff; text-align: center;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 40px; }

/* ── Footer ── */
.footer { padding: 48px 0 32px; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-weight: 700; font-size: 1.2rem; }
.footer-logo .sust { color: var(--orange); }
.footer-logo .ec { color: var(--grey); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  text-align: center; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem; color: var(--text-secondary);
}

/* ── Animations ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
