/* ========== CSS Variables / Theme ========== */
:root {
  /* Brand palette — premium industrial */
  --bg: #0b132b;          /* Deep slate navy */
  --bg-2: #131a2e;        /* Elevated background */
  --surface: #0f172a;     /* Card/section surface */
  --text: #e6e8ee;        /* Primary text */
  --muted: #c7c9d3;       /* Secondary text */
  --accent: #5eead4;      /* Teal accent */
  --accent-2: #60a5fa;    /* Blue accent */
  --border: #1f2937;      /* Subtle border */
  --success: #34d399;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-1: 0 10px 25px rgba(0,0,0,0.25);
  --shadow-2: 0 20px 45px rgba(0,0,0,0.35);

  --container: 1200px;
  --spacing: 24px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Motion */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 700ms;
}

/* ========== Global Resets ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========== Accessibility ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  outline: 2px solid var(--accent);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-1);
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.25px;
}

.nav-list {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth), transform var(--dur-fast) var(--ease-smooth);
}
.nav-link:hover { color: var(--text); background: rgba(96, 165, 250, 0.08); transform: translateY(-1px); }
.nav-link.is-active { color: var(--text); background: rgba(94, 234, 212, 0.14); }

/* ========== Sections ========== */
.section {
  padding-block: 64px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: 0.2px;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 24px;
}

/* ========== Hero ========== */
.hero {
  padding-block: 72px 56px;
  background:
    radial-gradient(900px 900px at 0% 0%, rgba(96,165,250,0.12), transparent 60%),
    radial-gradient(900px 900px at 100% 0%, rgba(94,234,212,0.12), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.2;
  margin: 0 0 10px;
}
.hero-subtitle {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.hero-text { color: var(--muted); }

.hero-cta { margin-top: 20px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(94,234,212,0.18), rgba(94,234,212,0.12));
  color: var(--text);
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
  box-shadow: 0 8px 24px rgba(94,234,212,0.15);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(94,234,212,0.25); }

.hero-art {
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31,41,55,0.7), rgba(31,41,55,0.4));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transform: translateY(0);
  animation: floatY var(--dur-slow) var(--ease-smooth) infinite alternate;
}
.hero-img {
  display: block;
  width: min(520px, 90vw);
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ========== Cards / Products ========== */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.card-body { padding: 16px 16px 20px; }
.card-title {
  font-weight: 700;
  margin: 0 0 8px;
}
.card-text { color: var(--muted); margin: 0; }

/* ========== Capabilities / Stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  background: linear-gradient(180deg, rgba(96,165,250,0.10), rgba(96,165,250,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: 0.3px;
}
.stat-label { color: var(--muted); }

/* ========== About Layout ========== */
.page-hero {
  background:
    radial-gradient(900px 900px at 50% -10%, rgba(96,165,250,0.12), transparent 60%);
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
}
.page-subtitle {
  color: var(--muted);
  margin: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.prose h2, .prose h3 { margin: 0 0 10px; }
.prose p { margin: 0 0 14px; }
.checklist { margin: 0 0 16px; padding-left: 20px; }
.checklist li { margin-bottom: 8px; }
.address { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-list { margin: 8px 0 0; padding-left: 18px; }

.side-panel { display: grid; gap: 16px; }
.info-card {
  background: linear-gradient(180deg, rgba(94,234,212,0.10), rgba(94,234,212,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 18px;
  box-shadow: var(--shadow-1);
}
.info-title { font-weight: 700; margin: 0 0 6px; }
.info-text { color: var(--muted); margin: 0; }

/* ========== Footer ========== */
.site-footer {
  background: rgba(10, 16, 32, 0.9);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 18px;
  padding-block: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-1);
}
.footer-title {
  font-weight: 700;
  margin: 0;
}
.footer-subtitle {
  color: var(--muted);
  margin: 2px 0 0;
}
.footer-heading {
  font-weight: 700;
  margin: 0 0 8px;
}
.footer-links ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li,
.footer-contact li { margin-bottom: 6px; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0 20px;
  text-align: center;
  color: var(--muted);
}

/* ========== Scroll-to-bottom button ========== */
.scroll-bottom {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(96,165,250,0.18), rgba(96,165,250,0.12));
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-fast) var(--ease-smooth), opacity var(--dur-fast) var(--ease-smooth);
}
.scroll-bottom:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.scroll-bottom:active { transform: translateY(0); }
.scroll-icon { font-size: 20px; line-height: 1; }

/* ========== Utilities ========== */
.main { display: block; }
.hidden { display: none !important; }

/* ========== Animations ========== */
@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .nav-link,
  .card,
  .button,
  .scroll-bottom { transition: none; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-wrap { height: 64px; }
  .brand-logo { width: 42px; height: 42px; }
  .nav-list { gap: 6px; }
  .nav-link { padding: 8px 10px; }
  .grid.cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
}
