/* ==========================================================================
   M-Series Technologies — shared stylesheet
   Brand: blue #2563eb -> green #10b981 gradient, gold logo accent #b8860b
   ========================================================================== */

:root {
  --blue: #2563eb;
  --green: #10b981;
  --dark: #1f2937;
  --gray: #6b7280;
  --gray-light: #a0aec0;
  --bg: #f9fafb;
  --footer-bg: #1a202c;
  --whatsapp: #25D366;
  --gold: #b8860b;
  --border: #e5e7eb;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #ffffff;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, p { overflow-wrap: break-word; word-break: break-word; }

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

a { color: inherit; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 54px; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
  margin: 0; padding: 0;
}
.nav-menu a { text-decoration: none; color: var(--dark); font-weight: 500; transition: color .3s; }
.nav-menu a:hover { color: var(--blue); }
.cta-button { background: var(--blue); color: white !important; padding: 0.7rem 1.4rem; border-radius: 8px; }
.cta-button:hover { background: #1d4ed8; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--dark); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
  }
  .nav-menu.open { display: flex; }
  .cta-button { display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn { padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all .3s; display: inline-block; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: white; color: var(--blue); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--blue); }
.btn-solid { background: var(--blue); color: white; }
.btn-solid:hover { background: #1d4ed8; }

/* ---------- Section basics ---------- */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg); }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--dark); }
.section-subtitle { font-size: 1.15rem; color: var(--gray); max-width: 700px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  margin-top: 78px;
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(16,185,129,0.75) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1280px; width: 100%; min-width: 0; margin: 0 auto; padding: 5rem 2rem; color: white; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; animation: fadeInUp .8s ease; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 2rem; max-width: 640px; animation: fadeInUp .8s ease .2s both; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp .8s ease .4s both; }
.trust-badges {
  background: white; padding: 2rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
  border-radius: 12px; margin-top: 3rem; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem;
  animation: fadeInUp .8s ease .6s both;
}
.badge { text-align: center; }
.badge-number { font-size: 2.4rem; font-weight: 800; color: var(--blue); display: block; }
.badge-text { color: var(--gray); font-size: 0.9rem; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 3rem 0; }
  .trust-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.25rem; gap: 1.25rem; }
  .badge-number { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 1.8rem; }
}

/* ---------- Page hero (about / shop / privacy) ---------- */
.page-hero {
  margin-top: 78px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero p { font-size: 1.2rem; max-width: 780px; margin: 0 auto; opacity: 0.95; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }
.service-card { background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); overflow: hidden; transition: transform .3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); }
.service-image-wrapper { width: 100%; height: 210px; background: var(--bg); overflow: hidden; }
.service-image { width: 100%; height: 100%; object-fit: cover; }
.service-content { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.service-badge { align-self: flex-start; background: linear-gradient(135deg, var(--blue), var(--green)); color: white; padding: .35rem 1rem; border-radius: 20px; font-size: .72rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: .03em; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .75rem; color: var(--dark); }
.service-card p { color: var(--gray); line-height: 1.75; font-size: .95rem; flex: 1; }
.service-links { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.service-links a { font-size: .85rem; font-weight: 600; padding: .55rem .9rem; border-radius: 7px; text-decoration: none; }
.link-call { background: #eef2ff; color: var(--blue); }
.link-whatsapp { background: #e7f9ef; color: #0e9f6e; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.portfolio-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: all .3s ease; }
.portfolio-item:hover { transform: scale(1.03); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
.portfolio-image { width: 100%; height: 300px; object-fit: cover; }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), transparent); padding: 2rem; color: white; }
.portfolio-item h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.portfolio-tag { display: inline-block; background: var(--blue); padding: .3rem .8rem; border-radius: 20px; font-size: .82rem; margin-top: .5rem; }

/* ---------- Testimonials ---------- */
.testimonials-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08); }
.testimonial-text { font-style: italic; color: var(--dark); margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.author-info h4 { color: var(--dark); margin-bottom: .15rem; }
.author-info p { color: var(--gray); font-size: .9rem; }
.stars { color: #f59e0b; margin-bottom: 1rem; letter-spacing: 2px; }

/* ---------- Contact ---------- */
.contact-section { padding: 5rem 2rem; background: linear-gradient(135deg, var(--blue), var(--green)); color: white; }
.contact-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.contact-box { background: rgba(255,255,255,0.12); padding: 2rem; border-radius: 12px; margin-top: 2rem; }
.contact-box h3 { margin-bottom: 1.25rem; font-size: 1.4rem; }
.contact-box a.big-call { display: inline-block; background: white; color: var(--blue); padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; margin-top: 1rem; margin-right: .75rem; }
.contact-box a.big-whats { display: inline-block; background: var(--whatsapp); color: white; padding: 1rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 700; margin-top: 1rem; }
.contact-form { background: white; padding: 2.5rem; border-radius: 12px; color: var(--dark); }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; margin-bottom: .5rem; font-weight: 500; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: .85rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 120px; resize: vertical; }
.submit-btn { width: 100%; padding: 1rem; background: var(--whatsapp); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all .3s; }
.submit-btn:hover { background: #1da851; transform: translateY(-2px); }

@media (max-width: 900px) { .contact-container { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: white; padding: 3rem 2rem 1.5rem; }
.footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-company { padding-right: 2rem; }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 58px; width: auto; }
.footer-company p { color: var(--gray-light); line-height: 1.8; margin-bottom: 1.5rem; font-size: .95rem; }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: all .3s; }
.social-icon:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.social-facebook { background: #1877f2; }
.social-facebook:hover { background: #0e5fc7; }
.social-instagram { background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-tiktok { background: #000; }
.social-tiktok:hover { background: #333; }
.footer-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.5rem; color: white; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: .75rem; }
.footer-section a { color: var(--gray-light); text-decoration: none; transition: color .3s; font-size: .95rem; }
.footer-section a:hover { color: var(--blue); }
.f-contact-info { display: flex; flex-direction: column; gap: 1rem; }
.f-contact-item { display: flex; align-items: flex-start; gap: .75rem; color: var(--gray-light); font-size: .95rem; }
.f-contact-item-icon { color: var(--blue); font-size: 1.05rem; margin-top: 2px; }
.f-contact-item a { color: var(--gray-light); text-decoration: none; }
.f-contact-item a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 1.5rem; margin-top: 2rem; text-align: center; color: #718096; font-size: .9rem; }
.footer-bottom a { color: var(--blue); text-decoration: none; }

@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-company { grid-column: 1 / -1; padding-right: 0; }
}
@media (max-width: 560px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px;
  background: var(--whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 999; text-decoration: none; animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse { 0%,100% { box-shadow: 0 4px 12px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 20px rgba(37,211,102,0.6); } }

/* ---------- Mission / Vision / Values (about page) ---------- */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.mvv-card { background: var(--bg); padding: 2.5rem; border-radius: 12px; border-left: 5px solid var(--blue); transition: transform .3s, box-shadow .3s; }
.mvv-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mvv-icon { font-size: 2.75rem; margin-bottom: 1rem; }
.mvv-card h3 { font-size: 1.7rem; margin-bottom: 1rem; color: var(--dark); }
.mvv-card p { font-size: 1rem; line-height: 1.8; color: var(--gray); }
.mvv-card ul { margin-top: 1rem; padding-left: 1.4rem; color: var(--gray); }
.mvv-card ul li { margin-bottom: .7rem; line-height: 1.6; }

.stats-section { background: linear-gradient(135deg, var(--dark), #374151); color: white; padding: 4rem 2rem; }
.stats-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 3rem; text-align: center; }
.stat-item h3 { font-size: 2.8rem; font-weight: 800; margin-bottom: .5rem; color: var(--green); }
.stat-item p { font-size: 1.05rem; opacity: .9; }

.why-grid { max-width: 1280px; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem; }
.why-card { text-align: center; padding: 2rem; }
.why-icon { font-size: 2.75rem; margin-bottom: 1rem; }
.why-card h4 { font-size: 1.25rem; margin-bottom: .7rem; color: var(--dark); }
.why-card p { color: var(--gray); line-height: 1.7; }

.cta-section { background: linear-gradient(135deg, var(--blue), var(--green)); color: white; padding: 5rem 2rem; text-align: center; }
.cta-section h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.cta-section p { font-size: 1.15rem; margin-bottom: 2rem; opacity: .95; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .mvv-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { text-align: center; }
.team-avatar { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--blue), var(--green)); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.2rem; font-weight: 800; }
.team-card h4 { color: var(--dark); margin-bottom: .25rem; }
.team-card span { color: var(--gray); font-size: .9rem; }

/* ---------- Brand & partner strip ---------- */
.brand-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; align-items: center; padding: 2.5rem 2rem; background: white; }
.brand-strip span { color: var(--gray); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; opacity: .8; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
