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

:root {
  --navy: #0c2340;
  --navy-light: #163a5f;
  --navy-dark: #071525;
  --amber: #e8a317;
  --amber-dark: #c98a0f;
  --steel: #6b7c93;
  --light: #f4f7fb;
  --light-alt: #e8edf4;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5a6578;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.1);
  --shadow-lg: 0 16px 48px rgba(12, 35, 64, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --kunfre-logo-bg: url("kunfre-logo.jpg");
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-alt);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1200px;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-header { flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 0.25rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
  border-top: 1px solid var(--light-alt);
  background: var(--white);
}

.mobile-nav a {
  padding: 0.65rem 0;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--light-alt);
}

.mobile-nav[hidden] { display: none !important; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.02) 40px,
      rgba(255, 255, 255, 0.02) 41px
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--kunfre-logo-bg);
  background-position: center center;
  background-size: min(400px, 68vw);
  background-repeat: no-repeat;
  opacity: 0.09;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 163, 23, 0.15);
  border: 1px solid rgba(232, 163, 23, 0.4);
  color: var(--amber);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-motto {
  font-size: 0.95rem;
  color: var(--amber);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin-inline: auto;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--amber);
  margin-bottom: 0.2rem;
}

.stat span {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.3;
}

/* Sections */
.section {
  padding: 4rem 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

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

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--kunfre-logo-bg);
  background-position: center center;
  background-size: min(400px, 68vw);
  background-repeat: no-repeat;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.section-alt::before {
  opacity: 0.08;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}

/* About */
.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--light-alt);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.sector-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

/* Catalogue toolbar */
.catalogue-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--light-alt);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--light);
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--amber);
}

.search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.5;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--light-alt);
  background: var(--light);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip:hover,
.chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.results-count {
  font-size: 0.85rem;
  color: var(--muted);
  width: 100%;
}

/* Category sections */
.category-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--amber);
}

.category-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
}

.category-header h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.category-header .category-subtitle {
  font-size: 0.95rem;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--light-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 1.1rem 1.25rem;
}

.product-card-header h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-body > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.specs-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--light-alt);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table th,
.specs-table td {
  padding: 0.45rem 0;
  text-align: left;
  vertical-align: top;
}

.specs-table th {
  color: var(--navy);
  font-weight: 600;
  width: 42%;
  padding-right: 0.75rem;
}

.specs-table td {
  color: var(--muted);
}

.product-card-footer {
  padding: 0 1.25rem 1.25rem;
}

.btn-enquire {
  width: 100%;
  background: var(--light);
  color: var(--navy);
  border: 1px solid var(--light-alt);
  font-size: 0.85rem;
}

.btn-enquire:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.no-results h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--light-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}

.contact-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.contact-value {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.enquiry-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-inline: auto;
}

.enquiry-form h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--light-alt);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--light);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.field-full { margin-bottom: 1rem; }

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.form-success {
  text-align: center;
  color: #15803d;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #dcfce7;
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.footer-legal {
  font-size: 0.75rem;
  opacity: 0.55;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1.25rem;
}

.footer-credit {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.footer-social a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-links a {
  color: var(--amber);
}

.footer-links a:hover { text-decoration: underline; }

.footer-credit a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .nav, .btn-header { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .mobile-nav:not([hidden]) { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .category-header { flex-direction: column; gap: 0.5rem; }
  .category-number { font-size: 2rem; }
}

@media print {
  .site-header, .catalogue-toolbar, .enquiry-form, .menu-toggle, .mobile-nav { display: none; }
  .hero { padding: 2rem; }
  .product-card { break-inside: avoid; }
}
