:root {
  --orange: #f16623;
  --orange-deep: #d45512;
  --yellow: #ffcc00;
  --yellow-soft: #fff4a3;
  --teal: #2f6175;
  --teal-deep: #1e4454;
  --ink: #16181c;
  --body: #3a4248;
  --muted: #66727a;
  --line: #d9e2e6;
  --paper: #f7fafb;
  --white: #ffffff;
  --metal: linear-gradient(145deg, #e8eef1 0%, #f7fafb 40%, #dfe8ec 100%);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 204, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 97, 117, 0.12), transparent 50%),
    var(--paper);
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.topbar {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.35rem;
  flex-wrap: wrap;
  padding-block: 0.35rem;
}

.topbar a {
  color: var(--yellow);
  font-weight: 600;
}

.topbar a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 28px rgba(30, 68, 84, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--body);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--orange-deep);
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(30, 68, 84, 0.88) 0%, rgba(30, 68, 84, 0.55) 46%, rgba(241, 102, 35, 0.35) 100%),
    linear-gradient(to top, rgba(22, 24, 28, 0.55), transparent 42%);
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.4rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
}

.hero-brand span {
  color: var(--yellow);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-dark {
  background: var(--teal);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--teal-deep);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--metal);
}

.section-teal {
  background:
    linear-gradient(160deg, var(--teal-deep), var(--teal) 55%, #3a7388);
  color: rgba(255, 255, 255, 0.92);
}

.section-teal h2,
.section-teal .eyebrow {
  color: var(--white);
}

.section-teal .eyebrow {
  color: var(--yellow);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lede,
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-teal .lede,
.section-teal .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

.section-teal .timeline-year {
  color: var(--yellow);
}

.section-teal .timeline-body h3 {
  color: var(--white);
}

.section-teal .timeline-body p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-copy p + p {
  margin-top: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.section-teal .stat strong {
  color: var(--yellow);
}

.section-teal .stat span {
  color: rgba(255, 255, 255, 0.75);
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.visual-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.approach-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.approach-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.approach-item {
  padding-top: 1rem;
  border-top: 3px solid var(--orange);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.4rem;
}

.product-item {
  display: grid;
  gap: 0.85rem;
}

.product-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--teal);
}

.product-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.product-item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.product-item a {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--yellow), var(--teal));
}

.timeline-item {
  display: grid;
  grid-template-columns: 1.4rem 6.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
}

.timeline-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
  margin-top: 0.25rem;
  z-index: 1;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.15rem;
}

.timeline-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.timeline-logo {
  width: min(100%, 9rem);
  height: 5.5rem;
  object-fit: contain;
  object-position: center;
  margin: 0 0 0.7rem;
  padding: 0.45rem 0.55rem;
  background: var(--white);
  border-radius: 6px;
  display: block;
}

.section-teal .timeline-logo {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.facility-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.facility-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--body);
}

.facility-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--orange);
  border-radius: 1px;
  transform: rotate(45deg);
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.machine-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.machine-item strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.machine-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(120deg, rgba(255, 204, 0, 0.22), transparent 45%),
    linear-gradient(to right, var(--teal-deep), var(--teal));
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero .eyebrow {
  color: var(--yellow);
}

.cert-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  box-shadow: 0 10px 28px rgba(22, 24, 28, 0.06);
  position: relative;
  overflow: hidden;
}

.cert-panel a {
  display: block;
  position: relative;
}

.cert-panel a::after {
  content: "Copyright- KK FOILS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(22, 24, 28, 0.28);
  transform: rotate(-28deg);
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  user-select: none;
}

.cert-panel img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.cert-caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.spec-list > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.spec-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-list dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.doc-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.doc-card p {
  margin: 0;
}

.doc-card .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.section-teal .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.section-teal .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-details h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.contact-details p,
.contact-details a {
  margin: 0;
  color: var(--body);
}

.contact-details a:hover {
  color: var(--orange-deep);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.75rem 0.85rem;
  border-radius: 4px;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(241, 102, 35, 0.35);
  border-color: var(--orange);
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.customer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.customer-item {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 9.5rem;
  padding: 1.1rem 0.85rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.customer-item:hover {
  border-color: rgba(241, 102, 35, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 24, 28, 0.08);
}

.customer-item img {
  width: min(100%, 11.5rem);
  height: 4.6rem;
  object-fit: contain;
  object-position: center;
}

.customer-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .split,
  .approach-grid,
  .product-grid,
  .contact-grid,
  .footer-grid,
  .machine-grid {
    grid-template-columns: 1fr;
  }

  .customer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.2rem 1.1rem;
    gap: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .timeline-item {
    grid-template-columns: 1.4rem 1fr;
  }

  .timeline-year {
    grid-column: 2;
  }

  .timeline-body {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 84vh;
  }

  .hero-inner {
    margin-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .reveal,
  .hero-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

.float-widgets {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.wa-btn {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 24, 28, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wa-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px rgba(22, 24, 28, 0.28);
  color: #fff;
}

.wa-btn svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

@media (max-width: 560px) {
  .float-widgets {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}
