/* MTrack marketing site — shared styles */
:root {
  --accent: #e59748;
  --accent-dark: #cf7f2c;
  --ink: #222;
  --text: #3b3b3b;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --paper: #fff;
  --paper-2: #f7f7f7;
  --dark: #1c1c1c;
  --radius: 999px;
  --shadow: 0 10px 30px rgba(0,0,0,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--paper); line-height: 1.7; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.btn {
  display: inline-block; padding: 12px 30px; border-radius: var(--radius); border: 0;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(229,151,72,.35); transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.small { padding: 8px 22px; font-size: 14px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.sub { font-size: 17px; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0;
  transition: background .25s, box-shadow .25s, padding .25s;
}
.site-header.scrolled { background: rgba(20,20,20,.94); box-shadow: 0 2px 12px rgba(0,0,0,.3); padding: 8px 0; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; font-weight: 500; font-size: 15px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: #fff; }
.nav .lang { font-size: 12px; font-weight: 600; letter-spacing: .08em; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 12px; border-bottom: 1px solid rgba(255,255,255,.6); }
.nav .lang:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.nav .btn { padding: 9px 24px; border-bottom: 0; }
.nav .btn:hover { border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero + photo sections */
.hero, .photo-section { background-color: #2a2a2a;
  position: relative; color: #fff; background-size: cover; background-position: center; isolation: isolate;
}
.hero::before, .photo-section::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: -1;
}
.hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 0 100px; }
.hero h1, .hero p, .photo-section h2, .photo-section h3, .photo-section p { color: #fff; }
.hero h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 700; margin-bottom: 14px; }
.hero p { font-size: clamp(16px, 2vw, 20px); max-width: 720px; margin: 0 auto 30px; opacity: .95; }
.hero.short { min-height: 78vh; }
.photo-section { padding: 110px 0; }
.photo-section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }

section.plain { padding: 90px 0; }
section.tint { background: var(--paper-2); }

/* Motto */
.motto h2 { font-size: clamp(24px, 3.6vw, 40px); color: #9a9a9a; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split .btn { margin-top: 10px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.testimonial .logo { height: 110px; display: grid; place-items: center; margin-bottom: 20px; }
.testimonial .logo img { max-height: 100px; width: auto; object-fit: contain; }
.testimonial h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 2px; }
.testimonial .role { color: var(--accent); font-size: 14px; margin-bottom: 14px; }
.testimonial blockquote { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Feature carousel */
.carousel { position: relative; padding-inline: 56px; }
.carousel .track { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide .split { min-height: 380px; }
.slide h2 { text-transform: uppercase; }
.slide p { font-size: 18px; max-width: 520px; }
.slide img { max-height: 340px; width: auto; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.slide img.rounded { border-radius: 12px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.25); color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center; z-index: 2;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn.prev { left: 0; } .carousel-btn.next { right: 0; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.dots button.active { background: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; align-items: start; }
.contact-grid.single { grid-template-columns: minmax(0, 560px); }
.form label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.photo-section .form label { color: #fff; }
.photo-section .form .note { color: rgba(255,255,255,.8); }
.map { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: 10px; box-shadow: var(--shadow); }
.contact-details { margin-top: 26px; font-size: 15px; }
.contact-details a { color: var(--accent); font-weight: 500; }

/* Edia cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; isolation: isolate; color: #fff; padding: 46px 30px; border-radius: 14px; min-height: 420px;
  display: flex; flex-direction: column; background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgba(15,15,15,.62); z-index: -1; }
.card h3 { color: #fff; font-size: 20px; text-transform: uppercase; }
.card .lead { font-weight: 600; margin-bottom: 14px; }
.card p { font-size: 15px; opacity: .92; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* About: text columns + benefit icons */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 30px; }
.cols-2 p { text-align: left; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 56px; text-align: center; }
.benefit svg { width: 64px; height: 64px; stroke: var(--ink); fill: none; stroke-width: 1.4; margin: 0 auto 18px; }
.benefit h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.benefit p { font-size: 14.5px; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 40px; justify-content: center; margin-top: 50px; }
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 44px 30px 34px; text-align: center; background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.plan.featured { border-color: #e9c9a3; background: #fffaf4; }
.plan .badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #e0b98c; color: #fff;
  font-size: 13px; padding: 6px 22px; border-radius: 4px;
}
.plan img { height: 90px; width: auto; margin: 0 auto 18px; }
.plan h3 { font-size: 18px; margin-bottom: 0; }
.plan .min { font-size: 14px; color: var(--muted); }
.plan .price { color: var(--accent); font-size: 30px; font-weight: 600; margin-top: 18px; line-height: 1.1; }
.plan .per { color: var(--accent); font-size: 13px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; font-size: 15px; }
.plan li { padding: 4px 0; }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--accent); flex: 0 0 auto; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq summary h3 { margin: 0; font-size: 17px; font-weight: 500; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 800px; }

/* Footer */
.site-footer { background: var(--dark); color: #cfcfcf; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 30px; align-items: start; }
.site-footer img { height: 54px; width: auto; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.site-footer a { display: block; color: #cfcfcf; line-height: 1.9; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid #333; margin-top: 36px; padding-top: 22px; font-size: 13px; color: #9a9a9a; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 6px; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 40;
}
.to-top.show { opacity: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 960px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .carousel { padding-inline: 0; }
  .carousel-btn { width: 38px; height: 38px; top: auto; bottom: -6px; transform: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 6px;
    background: rgba(20,20,20,.97); padding: 16px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; font-size: 16px; }
  .site-header { background: rgba(20,20,20,.94); padding: 8px 0; }
  .split, .cols-2, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .split img { max-height: 300px; width: auto; margin-inline: auto; }
  .slide .split { min-height: 0; }
  .slide img { max-height: 220px; }
  .plans { grid-template-columns: 1fr; }
  .plan { margin-inline: auto; width: 100%; max-width: 380px; }
  .hero { min-height: 82vh; padding: 120px 0 80px; }
  .photo-section, section.plain { padding: 70px 0; }
  .testimonials, .benefits, .footer-grid { grid-template-columns: 1fr; }
  .testimonial blockquote { text-align: left; }
  .map { min-height: 300px; }
}
