/* ============================================
   SWASTIK CHEM — Design Tokens
   ============================================ */
:root {
  /* Color */
  --teal-950: #071E1B;
  --teal-900: #0B2E29;
  --teal-800: #0F3D36;
  --teal-700: #145247;
  --teal-600: #1B6E5C;
  --teal-500: #228A72;
  --teal-400: #3FAD8F;
  --teal-300: #7DCBB3;
  --teal-100: #DCEFE8;

  --copper-600: #A8631E;
  --copper-500: #C67F2E;
  --copper-400: #DE9C4C;

  --sand-50: #F7F5EE;
  --sand-100: #F1EEE3;

  --ink-900: #0D1A17;
  --ink-700: #33463F;
  --ink-500: #5C6E67;
  --ink-300: #8FA098;

  --white: #FFFFFF;

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-md: 0 12px 32px rgba(7, 30, 27, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 30, 27, 0.18);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--teal-950);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }

p { color: var(--ink-700); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--copper-500);
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================
   Element Tile — signature motif
   (periodic-table cell used as icon/marker)
   ============================================ */
.tile {
  --tile-size: 56px;
  width: var(--tile-size);
  height: var(--tile-size);
  border: 1.5px solid var(--teal-600);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  flex-shrink: 0;
  position: relative;
}
.tile .tile-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--teal-400);
  position: absolute;
  top: 4px;
  left: 6px;
}
.tile .tile-sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-900);
  line-height: 1;
}
.tile.dark {
  background: var(--teal-900);
  border-color: var(--teal-700);
}
.tile.dark .tile-sym { color: var(--white); }
.tile.dark .tile-num { color: var(--teal-500); }
.tile.copper { border-color: var(--copper-500); }
.tile.copper .tile-sym { color: var(--copper-600); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--copper-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--copper-600); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--teal-600);
  color: var(--teal-700);
}
.btn-outline-dark:hover { background: var(--teal-600); color: var(--white); }

/* ============================================
   Header / Nav
   ============================================ */
.topbar {
  background: var(--teal-950);
  color: var(--teal-300);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 20px;
}
.topbar-links { display: flex; gap: 26px; }
.topbar-links a:hover { color: var(--white); }
.topbar .placeholder-note { color: var(--copper-400); }

header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sand-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--teal-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  position: relative;
}
.logo-mark::after {
  content: "Sc";
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--teal-950);
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--teal-700); }
.nav-links a.active { color: var(--teal-700); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper-500);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--teal-950);
  display: block;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 32px;
    gap: 28px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
  .topbar-links { display: none; }
}

/* ============================================
   Hero (molecular pattern, no stock photo)
   ============================================ */
.hero {
  position: relative;
  background: var(--teal-950);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero .eyebrow { color: var(--teal-300); }
.hero .eyebrow::before { background: var(--copper-400); }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero p.lead {
  color: var(--teal-100);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.molecule-svg { width: 100%; height: auto; opacity: 0.95; }
.molecule-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero {
  background: var(--teal-950);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--teal-300); }
.page-hero .eyebrow::before { background: var(--copper-400); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: var(--teal-100); max-width: 620px; }

/* ============================================
   Stat / highlight strip
   ============================================ */
.tile-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.tile-strip .tile-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-md);
}
.tile-item .label {
  font-size: 0.85rem;
  color: var(--teal-100);
  font-weight: 500;
}

/* ============================================
   Cards / grids
   ============================================ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-300);
}
.card .tile { margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; }

.offer-section { background: var(--white); }

/* ============================================
   Checklist (Why Choose Us)
   ============================================ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-100);
}
.check-item .tile { width: 40px; height: 40px; }
.check-item .tile .tile-sym { font-size: 0.85rem; }
.check-item .tile .tile-num { display: none; }
.check-item strong { display: block; color: var(--teal-950); font-size: 1rem; margin-bottom: 2px; }
.check-item span { color: var(--ink-500); font-size: 0.9rem; }

/* ============================================
   Industries tag grid
   ============================================ */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .tag-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } }
.tag-cell {
  border: 1px solid var(--sand-100);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--teal-800);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tag-cell:hover { border-color: var(--teal-500); background: var(--teal-100); }

/* ============================================
   Split section (image + text)
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split.reverse .split-media { order: 0; } }

.split-media img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) { .split-media img { height: 280px; } }

.split ul.plain-list { margin-top: 20px; }
.plain-list li {
  list-style: none;
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-700);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--copper-500);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--teal-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: var(--teal-100); }
.cta-wrap { padding-bottom: 96px; }

/* ============================================
   Product listing
   ============================================ */
.product-category {
  margin-bottom: 64px;
}
.product-category-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--teal-900);
}
.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .product-list { grid-template-columns: 1fr; } }
.product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-row:hover { border-color: var(--teal-400); transform: translateX(4px); }
.product-row .tile { width: 38px; height: 38px; }
.product-row .tile .tile-sym { font-size: 0.8rem; }
.product-row .tile .tile-num { display: none; }
.product-row span { font-weight: 500; color: var(--ink-900); font-size: 0.95rem; }

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

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sand-100);
}
.info-card strong { display: block; color: var(--teal-950); margin-bottom: 3px; }
.info-card span, .info-card a { color: var(--ink-500); font-size: 0.94rem; }

.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-700);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--teal-900); color: var(--white); }

.placeholder-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--copper-600);
  background: #FBEFE0;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

form.contact-form {
  background: var(--white);
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--teal-950); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-100);
  border-radius: var(--radius-sm);
  background: var(--sand-50);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-300);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: var(--teal-100);
  border: 1px solid var(--teal-400);
  color: var(--teal-800);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

.map-placeholder {
  margin-top: 32px;
  height: 220px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--teal-300);
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand-100);
}
.map-embed iframe { display: block; }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--teal-950);
  color: var(--teal-300);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: var(--teal-300); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a { color: var(--teal-300); font-size: 0.9rem; }
footer ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--ink-300);
  flex-wrap: wrap;
  gap: 12px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-copper { color: var(--copper-500); }
