/* ==========================================================================
   SALINSA — stylesheet
   ========================================================================== */

:root {
  --red: #e01e26;
  --red-dark: #a8121a;
  --red-tint: #fdecec;
  --blue: #56bcf9;
  --blue-dark: #1f8fd6;
  --cream: #f5f3ee;
  --cream-dark: #ece8e0;
  --dark: #22242a;
  --gray: #666a72;
  --gray-light: #9297a0;
  --white: #ffffff;
  --border: #e4e1d8;
  --shadow-sm: 0 2px 10px rgba(34, 36, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(34, 36, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(34, 36, 42, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --ff-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 96px 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

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

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray);
  font-size: 1.05rem;
}

.bg-cream {
  background: var(--cream);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(224, 30, 38, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--dark);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-heading);
}

.brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.25s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.brand-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled .brand-text strong {
  color: var(--dark);
  text-shadow: none;
}

.site-header.is-scrolled .brand-text span {
  color: var(--gray);
  text-shadow: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled .nav-menu a {
  color: var(--dark);
  text-shadow: none;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: var(--white);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: var(--white);
  color: var(--dark);
}

.site-header.is-scrolled .lang-switch {
  border-color: var(--dark);
  color: var(--dark);
}

.site-header.is-scrolled .lang-switch:hover {
  background: var(--dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.75) 0%, rgba(20, 21, 26, 0.55) 45%, rgba(20, 21, 26, 0.88) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--blue);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero p.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-slogan {
  font-family: var(--ff-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blue);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-founded-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 34px;
}

.hero-founded-badge strong {
  color: var(--blue);
  margin-right: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    top: 8px;
  }
  70% {
    opacity: 0;
    top: 22px;
  }
  100% {
    opacity: 0;
    top: 8px;
  }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}

.stats .section-head h2 {
  color: var(--white);
}

.stats .section-head p {
  color: rgba(255, 255, 255, 0.65);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stat-card {
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
}

.stat-number sup {
  font-size: 0.45em;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img.primary {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-logo-badge {
  position: absolute;
  bottom: -36px;
  left: -36px;
  width: 46%;
  height: 180px;
  border-radius: var(--radius-sm);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.about-logo-badge img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-feature .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.process-num {
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cream-dark);
  margin-bottom: 12px;
}

.process-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-card p {
  color: var(--gray);
  font-size: 0.92rem;
  margin: 0;
}

.process-photos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ---------- Products ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-tab.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag-indumar {
  background: #fde8d8;
  color: #b5540c;
}

.tag-puramar {
  background: #e2f1fd;
  color: var(--blue-dark);
}

.tag-mesa {
  background: var(--red-tint);
  color: var(--red-dark);
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.product-card-top p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.product-specs {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  padding: 6px 0;
}

.spec-label {
  color: var(--gray-light);
  font-weight: 600;
  flex-shrink: 0;
}

.spec-value {
  text-align: right;
  color: var(--dark);
}

.product-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card-actions .btn {
  flex: 1;
}

/* ---------- Gallery ---------- */
.gallery-feature {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.gallery-feature img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.gallery-item.span-2 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  height: fit-content;
}

.contact-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info-row:last-child {
  margin-bottom: 0;
}

.contact-info-row .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(86, 188, 249, 0.15);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-row h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.contact-info-row p {
  font-size: 1rem;
}

.contacts-col {
  display: flex;
  flex-direction: column;
}

.contacts-heading {
  font-size: 1.2rem;
  margin-bottom: 22px;
}

.contacts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray);
  word-break: break-all;
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--red);
}

.contact-link:hover {
  color: var(--red);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.footer-brand strong {
  font-family: var(--ff-heading);
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Reveal-on-scroll refinement (progressive enhancement only) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section {
    padding: 72px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media {
    margin-bottom: 20px;
  }

  .about-media img.primary {
    height: 340px;
  }

  .process-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item.span-2 {
    grid-column: span 2;
    grid-row: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu a {
    color: var(--dark);
    text-shadow: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle span {
    background: var(--white);
  }

  .site-header.is-scrolled .nav-toggle span {
    background: var(--dark);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-logo-badge {
    display: none;
  }

  .contacts-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-photos {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .hero {
    text-align: left;
  }

  .contact-info-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .process-photos,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
