:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.98);
  --surface-strong: #ffffff;
  --text: #000000;
  --muted: #000000;
  --line: rgba(0, 0, 0, 0.12);
  --primary: #1aa0c8;
  --accent: #d8833e;
  --accent-soft: #f3c8a2;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: #ffffff;
  min-height: 100vh;
}
body::before { content: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.site-shell { position: relative; overflow: clip; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; }
.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(26, 160, 200, 0.22);
}
.brand-tuv {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-left: 0.5rem;
}
.brand-text { display: grid; gap: 0.15rem; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.02em; }
.brand-text small { color: #000000; font-size: 0.78rem; }

.site-nav { display: flex; align-items: center; gap: 0.65rem; }
.site-nav a {
  color: #000000;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  transition: 0.25s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(0, 0, 0, 0.05); }
.site-nav .nav-cta {
  background: linear-gradient(135deg, rgba(26, 160, 200, 0.15), rgba(216, 131, 62, 0.14));
  border: 1px solid rgba(28, 42, 54, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 6px auto; }

.hero-section, .page-hero { position: relative; padding: 7rem 0 5rem; }
.hero-section-home { padding: 0; }
.hero-section::after, .page-hero::after { content: none; }

.page-hero {
  background: #0f1322;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 25, 0.62), rgba(8, 12, 25, 0.88));
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}
.page-hero h1 { max-width: 14ch; color: #ffffff; }
.page-hero .page-lead {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
}
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.78); }

.hero-grid, .split-layout, .two-column, .contact-grid { display: grid; gap: 2rem; }
.hero-grid { grid-template-columns: 1.15fr 0.95fr; align-items: center; }

.hero-copy h1, .page-hero h1, .section-heading h2, .split-copy h2, .content-card h2, .contact-panel h2, .contact-form-card h2, .cta-card h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.06;
}
.hero-copy h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); max-width: 11ch; }
.page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.25rem); max-width: 12ch; }

.hero-text, .page-lead, .split-copy p, .content-card p, .feature-card p, .product-card p, .mini-card p, .metric-panel strong, .timeline-item p, .footer-copy, .contact-list strong, .contact-list span {
  color: #000000;
}
.hero-text, .page-lead {
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 60ch;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-actions, .cta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-actions { margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fffdfa;
  background: linear-gradient(135deg, var(--primary), #67c8e6);
  box-shadow: 0 18px 36px rgba(26, 160, 200, 0.18);
}
.button-secondary { border: 1px solid var(--line); background: #ffffff; }
.button-full { width: 100%; }

.hero-points { list-style: none; padding: 0; display: grid; gap: 0.9rem; margin: 1.8rem 0 0; }
.hero-points li { display: flex; align-items: center; gap: 0.7rem; color: #000000; }
.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffd2b3);
  box-shadow: 0 0 0 6px rgba(216, 131, 62, 0.12);
}

.glass-card, .mini-card, .feature-card, .product-card, .content-card, .metric-panel, .table-card, .contact-panel, .contact-form-card, .cta-card, .mosaic-card, .stats-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stats-card, .content-card, .contact-panel, .contact-form-card, .cta-card, .table-card { border-radius: var(--radius-xl); }
.stats-card {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 20px; padding: 1.2rem; }
.stat-value { display: block; font-family: "Sora", sans-serif; font-size: 1.8rem; margin-bottom: 0.35rem; }
.stat-label { color: #000000; font-size: 0.92rem; line-height: 1.55; }

.hero-feature-grid, .feature-grid, .cards-grid, .footer-grid, .application-grid { display: grid; gap: 1.2rem; }
.hero-feature-grid, .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.2rem; }
.mini-card, .feature-card, .product-card, .mosaic-card, .metric-panel { border-radius: var(--radius-lg); padding: 1.35rem; }
.mini-card h2, .mini-card h3, .feature-card h3, .product-card h3, .mosaic-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.section { padding: 2.5rem 0; }
.section-alt { position: relative; }
.section-alt::before {
  content: "";
  position: absolute;
  inset: 2rem 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  pointer-events: none;
}
.section-alt > .container { position: relative; }
.section-heading { max-width: 760px; margin-bottom: 1.8rem; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--accent-soft);
  background: rgba(216, 131, 62, 0.12);
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.split-layout, .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.product-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 1.2rem;
}
.mosaic-card { position: relative; overflow: hidden; min-height: 180px; }
.mosaic-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 160, 200, 0.14), transparent 60%);
}
.mosaic-card.tall { grid-row: span 2; }
.mosaic-card.wide { grid-column: span 2; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.timeline-item { border-top: 1px solid rgba(0, 0, 0, 0.12); padding-top: 1.2rem; }
.timeline-item span { display: inline-block; font-family: "Sora", sans-serif; color: var(--primary); font-size: 1.1rem; margin-bottom: 0.65rem; }

.cta-section { padding-bottom: 5rem; }
.cta-card { justify-content: space-between; padding: 2rem; }
.cards-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.material-stack, .stacked-metrics { display: grid; gap: 1rem; }
.material-card, .metric-panel { padding: 1.25rem 1.35rem; }
.material-card span, .metric-panel span {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 0.55rem;
}
.material-card strong, .metric-panel strong { font-size: 1rem; line-height: 1.5; }

.table-card { overflow-x: auto; padding: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 540px; }
th, td { padding: 1rem 0.9rem; text-align: left; border-bottom: 1px solid rgba(28, 42, 54, 0.08); }
th { color: var(--accent-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
td { color: #000000; }
.compact-table { padding: 0.5rem; margin-top: 1.2rem; }

.contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.contact-panel, .contact-form-card { padding: 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list a, .contact-list div {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.contact-list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.enquiry-form { display: grid; gap: 1rem; }
.enquiry-form label { display: grid; gap: 0.55rem; }
.enquiry-form span { color: #000000; font-size: 0.92rem; }
.enquiry-form input, .enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 42, 54, 0.12);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: var(--text);
  background: #ffffff;
  resize: vertical;
}

.text-link { display: inline-flex; align-items: center; margin-top: 1.2rem; color: var(--primary); font-weight: 600; }
.site-footer {
  padding: 1rem 0 3rem;
  background: #10131a;
  color: #dce2ed;
}
.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid h3 {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8833e;
  margin-bottom: 1rem;
}
.footer-grid a {
  display: block;
  color: #94d3ff;
  margin-bottom: 0.75rem;
}
.footer-grid a:hover {
  color: #ffffff;
}
.footer-copy {
  max-width: 38ch;
  margin-top: 1rem;
  line-height: 1.7;
  color: #dce2ed;
}
.footer-contact {
  margin: 0 0 0.75rem;
  color: #cfd7e4;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom p {
  margin: 0;
  color: #cfd7e4;
  font-size: 0.95rem;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }

.home-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.slider-track {
  position: relative;
  min-height: calc(100vh - 88px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.82) 44%, rgba(255,255,255,0.3) 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 3rem 4rem 6rem;
  margin-left: clamp(1.25rem, 5vw, 4rem);
  margin-top: 1rem;
}

.slide-content h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
  margin: 0;
}

.slide-content p {
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 1.2rem 0 0;
  color: #000000;
}

.slider-controls {
  position: absolute;
  left: clamp(1.25rem, 5vw, 4rem);
  right: clamp(1.25rem, 5vw, 4rem);
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slider-dots {
  display: flex;
  gap: 0.65rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--primary);
}

.slider-nav {
  display: flex;
  gap: 0.7rem;
}

.slider-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1rem;
  color: #000000;
}

.section-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.section-image-card {
  min-height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
}

.section-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero-grid, .split-layout, .two-column, .contact-grid, .timeline, .feature-grid, .cards-grid-products, .footer-grid, .section-intro-grid { grid-template-columns: 1fr; }
  .stats-card { grid-template-columns: 1fr; }
  .hero-feature-grid, .application-grid, .product-mosaic { grid-template-columns: 1fr; }
  .mosaic-card.tall, .mosaic-card.wide { grid-column: auto; grid-row: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(28, 42, 54, 0.08);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }
  .hero-section, .page-hero { padding-top: 0.5rem; }
  .hero-copy h1, .page-hero h1 { max-width: 100%; }
  .cta-card, .hero-actions { align-items: stretch; }
  .button, .hero-actions .button { width: 100%; }
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
}

.hero-panel,
.page-hero-about,
.page-hero-products,
.page-hero-capabilities,
.page-hero-contact {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 10% 4% 8% auto;
  width: min(40vw, 440px);
  border-radius: 36px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border: 10px solid rgba(255, 255, 255, 0.72);
  z-index: 0;
}

.hero-panel > *,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-about,
.page-hero-products,
.page-hero-capabilities,
.page-hero-contact {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-about {
  background-image: url("images/tool-room-inhouse.jpg");
}

.page-hero-products {
  background-image: url("products/15.jpg");
}

.page-hero-capabilities {
  background-image: url("images/tool-room1.jpg");
}

.page-hero-contact {
  background-image: url("images/quality-dept.jpg");
}

.page-hero-clients {
  background-image: url("images/tool-room1.jpg");
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.product-card img:hover {
  transform: scale(1.05);
}

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

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

.client-logo {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.client-logo:hover {
  transform: translateY(-4px);
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .hero-panel::before,
  .page-hero-about::before,
  .page-hero-products::before,
  .page-hero-capabilities::before,
  .page-hero-contact::before {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    min-height: 260px;
    margin-top: 1.5rem;
  }

  .slider-track {
    min-height: 76vh;
  }

  .slide-content,
  .slider-controls {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    left: 1.4rem;
    right: 1.4rem;
  }

  .slide-content {
    padding: 2rem 0 5rem;
    margin-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover {
  color: #cccccc;
}

