/* ============================================
   SALGRI — Site Vitrine Premium
   Palette : #2c9ece · #52ba6e · #fdc147
   Neutres : #f7f7f5 · #e8e6e1 · #4a4a4a · #2d2d2d
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2c9ece;
  --blue-dark: #1f7ea8;
  --green: #52ba6e;
  --green-dark: #3d9455;
  --yellow: #fdc147;
  --yellow-dark: #e5a82e;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --sand: #e8e6e1;
  --gray: #6b6b6b;
  --slate: #4a4a4a;
  --anthracite: #2d2d2d;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 5vw;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--anthracite);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  max-width: 620px;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border: 2px solid var(--sand);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
}
.btn-whatsapp:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: auto; width: auto; max-height: 64px; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--anthracite);
  letter-spacing: -.5px;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  font-size: .88rem;
  font-weight: 600;
  color: var(--anthracite);
}
.header-phone svg { vertical-align: middle; margin-right: 4px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(168deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--blue); }

.hero-text {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.75;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: contain;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.hero-float-card .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(44,158,206,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-card .icon-circle svg { color: var(--blue); }
.hero-float-card .card-text strong {
  display: block;
  font-size: .95rem;
  color: var(--anthracite);
}
.hero-float-card .card-text span {
  font-size: .78rem;
  color: var(--gray);
}

/* --- Section spacing --- */
.section { padding: 90px 0; }
.section-alt { background: var(--off-white); }

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

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-content .section-label { margin-bottom: 8px; }
.about-content h2 { margin-bottom: 18px; }
.about-text {
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--sand);
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--blue);
  font-weight: 800;
}
.stat-item span {
  font-size: .82rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* --- Products / Expertises --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card:hover::before { transform: scaleX(1); }

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(44,158,206,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.product-card p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.65;
}

/* Alternate card accent colors */
.product-card.accent-green .product-icon { background: rgba(82,186,110,.08); color: var(--green); }
.product-card.accent-green::before { background: var(--green); }
.product-card.accent-yellow .product-icon { background: rgba(253,193,71,.12); color: var(--yellow-dark); }
.product-card.accent-yellow::before { background: var(--yellow); }

/* --- Why SALGRI --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44,158,206,.08);
  color: var(--blue);
}

.why-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.why-item p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.tall img { height: 100%; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(44,158,206,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.contact-row strong {
  display: block;
  font-size: .95rem;
  color: var(--anthracite);
  margin-bottom: 2px;
}
.contact-row span,
.contact-row a {
  font-size: .9rem;
  color: var(--gray);
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
  min-height: 360px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  margin-top: 14px;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}

.yellow-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 14px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-visual { order: -1; }
  .hero-img-wrapper img { height: 300px; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: auto; }
  .gallery-item.tall img { height: 260px; }

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

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--sand);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: block; }
  .header-phone { display: none; }

  .hero { padding: 110px 0 60px; }
  .hero-float-card { display: none; }

  .why-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .about-stats { gap: 24px; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- Accessibility focus --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* --- Scroll reveal utility --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  cursor: pointer;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  transform: scale(.92);
  transition: transform .3s ease;
  cursor: default;
}
.lightbox-overlay.active img {
  transform: scale(1);
}

/* --- Testimonials Slider --- */
.testimonials-track {
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
  position: relative;
  display: inline-flex;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(to top, rgba(44,158,206,.08) 0%, transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.testimonial-card:hover::after {
  opacity: 1;
}

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

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate);
  transition: all var(--transition);
}
.slider-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(44,158,206,.05);
}

.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.slider-dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
  .testimonial-card img {
    height: auto;
  }
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--off-white);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.lang-btn:hover {
  color: var(--blue);
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}

/* --- RTL Support --- */
[dir="rtl"] body {
  text-align: right;
}
[dir="rtl"] .main-nav {
  direction: rtl;
}
[dir="rtl"] .hero-grid,
[dir="rtl"] .about-grid {
  direction: rtl;
}
[dir="rtl"] .hero-float-card {
  left: auto;
  right: -30px;
}
[dir="rtl"] .why-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .contact-row {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .contact-info-list {
  align-items: flex-end;
}
[dir="rtl"] .contact-row div:not(.contact-icon) {
  text-align: right;
}
[dir="rtl"] .contact-actions {
  justify-content: flex-end;
}
[dir="rtl"] .footer-grid {
  direction: rtl;
}
[dir="rtl"] .header-phone svg {
  margin-right: 0;
  margin-left: 4px;
}
[dir="rtl"] .hero-badge .dot {
  order: 1;
}
[dir="rtl"] .slider-prev svg {
  transform: rotate(180deg);
}
[dir="rtl"] .slider-next svg {
  transform: rotate(180deg);
}
