/* ============================
   FarCry Digital — site styles
   ============================ */

:root {
  --coral: #e8685e;
  --green: #20ab74;
  --blue: #4fb0e8;
  --gold: #e8c04f;
  --logo-blue: #7894d0;
  --teal: #2e93b2;
  --teal-accent: #3bb0e4;
  --charcoal-2: #3f3f3f;
  --dark: #272727;
  --dark-text: #333333;
  --gray-text: #8a8a8a;
  --gray-text-light: #b5b5b5;
  --gray-bg: #8a8a8a;
  --nav-text: #5a5a5a;
  --border-light: #eaeaea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--dark-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.25s ease;
}

.site-header.scrolled .container {
  height: 50px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #6d6d6d;
  letter-spacing: 1px;
}

.logo img {
  height: 30px;
  margin-right: 2px;
  transition: height 0.25s ease;
}

.site-header.scrolled .logo img {
  height: 22px;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--nav-text);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
  color: #ffffff;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 18, 15, 0.62), rgba(20, 18, 15, 0.62));
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: heroCrossfade 18s infinite;
}

.hero-slide.slide-1 {
  background-image: url('../images/hero-bg.jpg');
  animation-delay: 0s;
}

.hero-slide.slide-2 {
  background-image: url('../images/hero-bg-2.jpg');
  animation-delay: 6s;
}

.hero-slide.slide-3 {
  background-image: url('../images/hero-bg-3.jpg');
  animation-delay: 12s;
}

@keyframes heroCrossfade {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; transform: scale(1.01); }
  29%  { opacity: 1; transform: scale(1.06); }
  33%  { opacity: 0; transform: scale(1.07); }
  100% { opacity: 0; transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .hero-slide.slide-1 { opacity: 1; }
}

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

.hero-brand {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.15s forwards;
}

.hero-logo {
  height: 60px;
  width: auto;
}

.hero-tagline {
  font-size: 24px;
  font-weight: 400;
  max-width: 620px;
  line-height: 1.5;
  margin: 0 0 90px;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.4s forwards;
}

.hero-strapline {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  padding-top: 10px;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.65s forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-brand, .hero-tagline, .hero-strapline {
    animation: none;
    opacity: 1;
  }
}

.hero-strapline .accent {
  color: var(--logo-blue);
  font-weight: 700;
}

/* ---------- Section headings ---------- */

.section-heading {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2b2b2b;
  margin: 0 0 14px;
}

.section-heading.light { color: #ffffff; }

.section-sub {
  text-align: center;
  font-size: 15px;
  color: var(--gray-text);
  max-width: 700px;
  margin: 0 auto;
}

.section-sub.light { color: #cfcfcf; font-weight: 600; }

/* ---------- Scroll reveal ---------- */

.reveal-title {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,.68,0,1.02), filter 0.8s ease;
}

.reveal-title.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,0,1.02);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,0,1.02);
}

.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.68,0,1.02);
}

.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-title, .reveal, .reveal-left, .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Our Focus ---------- */

.our-focus {
  padding: 90px 0 50px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  text-align: center;
}

.focus-item {
  padding: 34px 22px 30px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.45s cubic-bezier(.22,.68,0,1.02),
    box-shadow 0.35s ease, background-color 0.35s ease;
}

.focus-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.focus-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.22);
  background-color: #ffffff;
}

.focus-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 42px;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s,
    transform 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s,
    background-color 0.35s ease, color 0.35s ease;
}

.focus-item.in-view .focus-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.focus-icon.red { color: var(--coral); }
.focus-icon.green { color: var(--green); }
.focus-icon.blue { color: var(--blue); }
.focus-icon.gold { color: var(--gold); }

.focus-icon-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.focus-item:hover .focus-icon { transform: scale(1.08) rotate(-6deg); }
.focus-item:hover .focus-icon.red { background-color: var(--coral); color: #ffffff; }
.focus-item:hover .focus-icon.green { background-color: var(--green); color: #ffffff; }
.focus-item:hover .focus-icon.blue { background-color: var(--blue); color: #ffffff; }
.focus-item:hover .focus-icon.gold { background-color: var(--gold); color: #ffffff; }

.focus-item h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  display: inline-block;
  position: relative;
}

.focus-item h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 3px;
  width: 34px;
  background: var(--coral);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(.22,.68,0,1.02);
}

.focus-item:nth-child(2) h3::after { background: var(--green); }
.focus-item:nth-child(3) h3::after { background: var(--blue); }
.focus-item:nth-child(4) h3::after { background: var(--gold); }

.focus-item:hover h3::after { width: 72px; }

.focus-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
  margin: 0 0 20px;
}

.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 26px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.4);
}

.btn-green { background: var(--green); color: #ffffff; }
.btn-coral { background: var(--coral); color: #ffffff; }

.also-provide {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.also-provide h4 {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #444444;
  margin: 0 0 34px;
}

.provide-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 46px;
  margin-bottom: 14px;
}

.provide-list li {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #6a6a6a;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.02);
}

.provide-list li.in-view {
  opacity: 1;
  transform: translateY(0);
}

.provide-list i { color: #b7b7b7; font-size: 13px; }

/* ---------- About Us ---------- */

.about-us {
  background: var(--dark);
  color: #ffffff;
  padding: 90px 0 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 40px;
  margin-top: 70px;
  align-items: start;
}

.about-lead {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.35;
  color: #ffffff;
}

.about-body p {
  font-size: 13.5px;
  line-height: 1.9;
  color: #b0b0b0;
  margin: 0 0 20px;
}

.about-features li {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.02);
}

.about-features li.in-view {
  opacity: 1;
  transform: translateX(0);
}

.about-features li:last-child { margin-bottom: 0; }

.gear-icon {
  flex: none;
  font-size: 26px;
  width: 34px;
  text-align: center;
  padding-top: 3px;
  opacity: 0;
  transform: scale(0.3) rotate(40deg);
  transition: opacity 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s,
    transform 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s;
}

.about-features li.in-view .gear-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.gear-icon.red { color: var(--coral); }
.gear-icon.green { color: var(--green); }
.gear-icon.blue { color: var(--blue); }
.gear-icon.gold { color: var(--gold); }

.about-features h4 {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 6px;
}

.about-features p {
  font-size: 13px;
  line-height: 1.7;
  color: #a5a5a5;
  margin: 0;
}

.about-strapline {
  text-align: center;
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid #454545;
  font-size: 22px;
  font-weight: 800;
}

.about-strapline .accent { color: var(--logo-blue); }

/* ---------- Get in touch ---------- */

.get-in-touch {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gray-bg);
  color: #ffffff;
  padding: 80px 0 70px;
}

.get-in-touch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(40, 40, 40, 0.78), rgba(40, 40, 40, 0.78));
  z-index: 1;
}

.get-in-touch .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  text-align: center;
}

.contact-grid > div {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.02);
}

.contact-grid > div.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 14px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s,
    transform 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s;
}

.contact-grid > div.in-view .contact-icon {
  opacity: 1;
  transform: scale(1);
}

.contact-icon.red { color: var(--coral); }
.contact-icon.green { color: var(--green); }
.contact-icon.blue { color: var(--blue); }
.contact-icon.gold { color: var(--gold); }

.contact-grid h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--coral);
  display: inline-block;
}

.contact-grid > div:nth-child(2) h4 { border-bottom-color: var(--green); }
.contact-grid > div:nth-child(3) h4 { border-bottom-color: var(--blue); }
.contact-grid > div:nth-child(4) h4 { border-bottom-color: var(--gold); }

.contact-grid p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: #f0f0f0;
}

.contact-grid a { color: var(--coral); }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f0f0f0 !important;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.phone-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s cubic-bezier(.22,.68,0,1.02);
}

.phone-link i {
  font-size: 12px;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
  color: var(--green) !important;
}

.phone-link:hover::after,
.phone-link:focus-visible::after {
  width: 100%;
}

.phone-link:hover i,
.phone-link:focus-visible i {
  animation: phoneRing 0.5s ease;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(22deg); }
  40% { transform: rotate(-18deg); }
  60% { transform: rotate(14deg); }
  80% { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-link:hover i, .phone-link:focus-visible i { animation: none; }
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.newsletter-form input {
  border: none;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 13px;
  color: #333;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,.68,0,1.02);
}

.footer-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer-item i {
  font-size: 18px;
  margin-bottom: 8px;
  display: inline-block;
  transform: scale(0.4);
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1) 0.1s;
}

.footer-item.in-view i { transform: scale(1); }

.footer-item:nth-child(1) i { color: var(--coral); }
.footer-item:nth-child(2) i { color: var(--green); }
.footer-item:nth-child(3) i { color: var(--blue); }

.footer-item a { color: var(--coral); }
.footer-item p { font-size: 13px; margin: 0; }

.footer-social {
  border-left: 1px solid #454545;
  padding-left: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.22,.68,0,1.02);
}

.footer-social.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer-social .social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-social .social-links a {
  color: #9a9a9a;
  font-size: 15px;
}

.footer-social p {
  font-size: 12px;
  color: #9a9a9a;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .focus-item, .focus-icon, .provide-list li, .about-features li, .gear-icon,
  .contact-grid > div, .contact-icon, .footer-item, .footer-item i, .footer-social {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- MES / FactoryLogix Consulting page ---------- */

.mes-hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: #ffffff;
  text-align: center;
  padding: 70px 0 60px;
}

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

.mes-hero-logo {
  max-width: 380px;
  margin: 0 auto 22px;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.15s forwards;
}

.mes-hero-ghost {
  position: absolute;
  top: 44%;
  left: 0;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  pointer-events: none;
}

.mes-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 26px;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.35s forwards;
}

.mes-hero-sub {
  display: inline-block;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.55s forwards;
}

.mes-hero-desc {
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.68,0,1.02) 0.75s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .mes-hero-logo, .mes-hero h1, .mes-hero-sub, .mes-hero-desc {
    animation: none;
    opacity: 1;
  }
}

.mes-intro {
  padding: 90px 0;
}

.mes-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.mes-intro-col h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 24px;
  font-weight: 700;
  color: #3a3a3a;
  margin: 0 0 24px;
}

.mes-intro-icon {
  font-size: 32px;
  color: #aeaeae;
  flex: none;
  width: 46px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s cubic-bezier(.34,1.56,.64,1), transform 0.5s cubic-bezier(.34,1.56,.64,1);
}

.mes-intro-col.in-view .mes-intro-icon {
  opacity: 1;
  transform: scale(1);
}

.mes-intro-col p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-text);
  margin: 0 0 20px;
}

.mes-tag-row {
  display: flex;
  gap: 40px;
  margin: 30px 0 34px;
}

.mes-tag {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,.68,0,1.02);
}

.mes-tag.in-view {
  opacity: 1;
  transform: translateY(0);
}

.mes-tag i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.mes-tag span {
  font-size: 12.5px;
  font-weight: 700;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
}

.mes-tag.red { color: var(--coral); }
.mes-tag.green { color: var(--green); }
.mes-tag.blue { color: var(--blue); }
.mes-tag.gold { color: var(--gold); }

.btn-teal { background: var(--teal-accent); color: #ffffff; }

.mes-strategic {
  background: var(--teal);
  color: #ffffff;
  padding: 90px 0 70px;
}

.mes-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 60px;
  margin-top: 60px;
}

.mes-feature {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.02);
}

.mes-feature.in-view {
  opacity: 1;
  transform: translateY(0);
}

.mes-feature i {
  font-size: 28px;
  flex: none;
  width: 40px;
  text-align: center;
  padding-top: 4px;
  opacity: 0;
  transform: scale(0.4) rotate(-15deg);
  transition: opacity 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s,
    transform 0.5s cubic-bezier(.34,1.56,.64,1) 0.15s;
}

.mes-feature.in-view i {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.mes-feature h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
}

.mes-feature p {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.mes-get-in-touch { background: var(--charcoal-2); }

@media (prefers-reduced-motion: reduce) {
  .mes-intro-icon, .mes-tag, .mes-feature, .mes-feature i {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .mes-intro-grid, .mes-feature-grid { grid-template-columns: 1fr; }
  .mes-hero-ghost { display: none; }
}

@media (max-width: 700px) {
  .mes-tag-row { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .mes-hero h1 { font-size: 24px; }
}

/* ---------- Software Portal (login) ---------- */

.portal-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  color: #ffffff;
}

.portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(20, 18, 15, 0.68), rgba(20, 18, 15, 0.68));
}

.portal-card-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-home-link i { font-size: 12px; transition: transform 0.2s ease; }

.back-home-link:hover {
  opacity: 1;
  color: #ffffff;
}

.back-home-link:hover i { transform: translateX(-4px); }

.login-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 40px 38px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  color: #333333;
}

@keyframes cardShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.login-card.shake { animation: cardShake 0.5s; }

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand img { height: 32px; }

.login-card h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 16px 0 8px;
  color: #2b2b2b;
}

.login-sub {
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-text);
  margin: 0 0 28px;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdeceb;
  border: 1px solid #f4c6c1;
  color: #b3392f;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.login-alert.show {
  opacity: 1;
  max-height: 140px;
  padding: 13px 14px;
  margin-bottom: 22px;
}

.login-alert i { margin-top: 2px; font-size: 14px; flex: none; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 8px;
}

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: 8px;
  border: 1.5px solid #e2e2e2;
  background: #fafafa;
  font-size: 14px;
  font-family: inherit;
  color: #333333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--coral);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(232, 104, 94, 0.12);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8b8b8;
  font-size: 13px;
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: 12.5px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #666666;
  cursor: pointer;
}

.remember-me input {
  width: 14px;
  height: 14px;
  accent-color: var(--coral);
  cursor: pointer;
}

.forgot-link { color: var(--coral); font-weight: 700; }
.forgot-link:hover { text-decoration: underline; }

.login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 13px;
}

.login-submit:disabled { cursor: default; opacity: 0.9; }

.login-submit .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: portalSpin 0.7s linear infinite;
}

.login-submit.loading .spinner { display: inline-block; }
.login-submit.loading .btn-label { opacity: 0.85; }
.login-submit.loading:hover { transform: none; box-shadow: none; }

@keyframes portalSpin { to { transform: rotate(360deg); } }

.login-footer-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-text);
  margin: 26px 0 0;
}

.login-footer-note a { color: var(--coral); font-weight: 700; }
.login-footer-note a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .login-card.shake { animation: none; }
  .login-submit .spinner { animation: none; }
}

@media (max-width: 480px) {
  .login-card { padding: 34px 24px 30px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .focus-grid,
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-lead { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: span 2; border-left: none; padding-left: 0; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero-brand span { font-size: 40px; }
  .hero-tagline { font-size: 19px; margin-bottom: 60px; }
  .focus-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .provide-list { flex-direction: column; align-items: center; gap: 10px; }
}
