/* ============================================
   KMC - Ketock Metal Corporation
   Main Stylesheet
   Color Theme: White base, Chemical/Industrial
   ============================================ */

:root {
  /* Chemical Industry Palette */
  --primary: #0d5c8f;        /* Deep chemical blue */
  --primary-dark: #083d63;
  --primary-light: #1a7ab5;
  --accent: #00a86b;         /* Chemical green / lab */
  --accent-light: #00c97e;
  --orange: #e8650a;         /* Safety orange / industrial */
  --orange-light: #ff7f2a;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f4f7fa;
  --light-gray: #e8eef4;
  --mid-gray: #b0c0d0;
  --dark-gray: #4a5c6a;
  --text: #1e2d3a;
  --text-light: #5a6a78;

  /* Topbar */
  --topbar-bg: #083d63;

  --shadow-sm: 0 2px 12px rgba(13,92,143,0.08);
  --shadow-md: 0 6px 30px rgba(13,92,143,0.12);
  --shadow-lg: 0 16px 60px rgba(13,92,143,0.16);
  --radius: 4px;
  --radius-lg: 10px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--topbar-bg);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left { display: flex; gap: 2rem; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  font-size: 0.75rem;
}
.topbar a:hover { color: #fff; }
.topbar-icon { color: var(--accent); font-size: 0.85rem; }

/* ── NAVBAR ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13,92,143,0.1);
  border-bottom: 3px solid var(--primary);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 28px; height: 28px; fill: white; }
.brand-text-wrap {}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0 18px;
  line-height: 76px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 3px;
  background: var(--primary);
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-top: 3px solid var(--primary);
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid var(--light-gray);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--off-white); color: var(--primary); padding-left: 26px; }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px !important;
  line-height: 1 !important;
  border-radius: var(--radius);
  margin-left: 12px;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-light) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--primary-dark);
  display: block;
  transition: 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

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

/* ── SECTION COMMON ── */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-bg { background: var(--off-white); }
.section-dark { background: var(--primary-dark); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title span { color: var(--primary); }
.section-divider {
  width: 50px; height: 3px;
  background: var(--accent);
  margin: 18px 0 28px;
  border-radius: 2px;
}
.section-divider.center { margin-left: auto; margin-right: auto; }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-orange:hover { background: var(--orange-light); border-color: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,168,107,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.page-hero-content { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── CARD SHARED ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* ── TAGS / BADGES ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
}
.badge-blue { background: rgba(13,92,143,0.1); color: var(--primary); }
.badge-green { background: rgba(0,168,107,0.1); color: var(--accent); }
.badge-orange { background: rgba(232,101,10,0.1); color: var(--orange); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,92,143,0.1);
}
.form-control::placeholder { color: var(--mid-gray); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5c6a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FOOTER ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 48px;
}
.footer-brand .brand-name { color: var(--white); font-size: 1.25rem; }
.footer-brand .brand-tagline { color: rgba(255,255,255,0.5); }
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 18px 0 24px;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col ul li a::before { content: '›'; color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.footer-contact-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.footer-contact-text { font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.65); }
.footer-contact-text strong { display: block; color: rgba(255,255,255,0.9); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }

.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: var(--accent); }

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
}
#scrollTop.show { display: flex; }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 8px 0 16px;
    gap: 0;
    border-top: 3px solid var(--primary);
  }
  .nav-menu.open { display: flex; }
  .nav-link { line-height: 1; padding: 14px 24px; border-bottom: 1px solid var(--light-gray); }
  .nav-link.active::after { display: none; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--primary); margin-left: 24px; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-cta { margin: 12px 24px 0; display: inline-flex; width: calc(100% - 48px); justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ABOUT TAGLINE HIGHLIGHT */
.about-tagline {
  display: inline-block;
  margin-top: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  background: rgba(13,92,143,0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px !important;
  letter-spacing: 0.02em;
  line-height: 1.5 !important;
  width: 100%;
}
.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
