/* ===== Metacent Technologies - Styles ===== */

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-deep: #134e4a;
  --orange: #c67b3c;
  --orange-dark: #c67b3c;
  --bg: #ffffff;
  --bg-soft: #faf7f2;
  --ink: #1a4d4d;
  --ink-muted: #5b6b7b;
  --border: #e2ece9;
  --radius: 14px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 74px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #f0ebe3;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

section { padding: 88px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #c67b3c;
  margin-bottom: 14px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: ""; width: 22px; height: 2px; background: #c67b3c; display: inline-block;
}
.section-head h2 { font-size: 36px; font-weight: 700; color: #1a4d4d; }
.section-head p { margin-top: 16px; color: #5c5c5c; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  white-space: nowrap; transition: all .25s ease;
}
.btn i { font-size: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: #ffffff82; color: var(--teal-deep); border-color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--bg-soft); color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 120px; width: auto; display: block; transition: filter .3s ease; }
.logo-box { display: flex; align-items: center; background: rgba(255, 255, 255, 0); padding: 5px 14px; border-radius: 8px; transition: background .3s ease, padding .3s ease; }
.nav.scrolled .logo-box { background: transparent; padding: 0; }
.nav.scrolled .logo-img { filter: none; }
.footer-logo .logo-img { height: 120px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,.9); position: relative; transition: color .25s;
}
.nav.scrolled .nav-links a { color: #1a4d4d; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--orange); transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta .btn:hover {color: #fff; background: #d09b70;}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; border-color: transparent; background: #c67b3c; }
.nav.scrolled .btn-outline { color: #fff; border-color: transparent; }
.nav.scrolled .btn-outline:hover { background: #c67b3c; color: #fff; }

.hamburger { display: none; width: 42px; height: 42px; font-size: 26px; color: #fff; }
.nav.scrolled .hamburger { color: var(--ink); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; width: 100%;
  background: #fff; padding: 20px 24px 28px; box-shadow: 0 20px 40px rgba(0,0,0,.08);
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 13px 4px; font-family: var(--font-head); font-weight: 600;
  font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 100px; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  background-image: url('./bg_image.webp');
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,35,33,.82) 0%, rgba(7,35,33,.55) 50%, rgba(7,35,33,.78) 100%);
}
.hero-inner { width: 100%; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: 50px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag i { color: var(--orange); font-size: 16px; }
.hero h1 { font-size: 58px; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--orange); }
.hero p { max-width: 620px; margin: 22px auto 0; font-size: 18px; color: rgba(255,255,255,.85); }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-indicator .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-indicator .mouse span {
  width: 3px; height: 8px; background: var(--orange); border-radius: 3px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats { background: var(--teal-deep); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat h3 { font-size: 44px; font-weight: 800; color: #fff; }
.stat h3 span { color: var(--orange); }
.stat p { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- Services ---------- */
.services { background: #faf7f2; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(19,78,74,.10); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: #1a4d4d; font-size: 26px; margin-bottom: 20px;
  transition: all .3s ease;
}
.service-card:hover .service-icon { background: #1a4d4d; color: #fff; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--ink-muted); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-step { text-align: center; padding: 0 12px; }
.step-badge {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--teal); color: var(--teal-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 26px;
  position: relative; transition: all .3s ease;
}
.process-step:hover .step-badge { background: var(--orange); border-color: var(--orange); color: #fff; }
.process-step:not(:last-child) .step-badge::after {
  content: "\ea6e"; font-family: 'remixicon'; position: absolute; right: -54px;
  font-size: 22px; color: var(--orange);
}
.process-step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--ink-muted); }

/* ---------- Team ---------- */
.team { background: var(--bg-soft); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 160px 160px 18px 18px;
  margin-bottom: 20px; background: #e7efed;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-card h3 { font-size: 18px; font-weight: 700; }
.team-card .role { color: var(--orange); font-weight: 600; font-size: 14px; margin-top: 4px; }
.team-social { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.team-social a {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); color: var(--ink-muted); font-size: 17px;
  transition: all .25s ease;
}
.team-social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Contact ---------- */
.contact { background: #0f3a3a; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-info h2 { color: rgb(255 255 255/var(--tw-text-opacity,1)); font-size: 34px; font-weight: 700; }
.contact-info > p { color: #ffffffb3; margin-top: 16px; }
.info-list { margin-top: 30px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item i {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft);
  color: var(--teal-dark); font-size: 21px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item h4 { color: rgb(255 255 255/var(--tw-text-opacity,1)); font-size: 15px; font-weight: 600; }
.info-item p { color: #ffffffb3; font-size: 14px; margin-top: 2px; }

.contact-form {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 36px;
}
.request-title {
  font-size: 30px; font-weight: 1000; margin-bottom: 24px; text-align: center;
}
.form-consent p { font-size: 14px; color: #5c5c5c; margin-bottom: 24px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Spinner ---------- */
@keyframes spinnerSpin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinnerSpin .6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---------- Footer ---------- */
footer { background: #0f3a3a; color: rgba(255,255,255,.8); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo .logo-text { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 14px; transition: color .25s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff; font-size: 18px; transition: all .25s ease;
}
.footer-social a:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: #ffffffcc; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/*.reveal p1 {color: #ffffffb3; font-size: 16px; margin-top: 16px; }*/

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .team-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child) .step-badge::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .section-head h2 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
}

@media (max-width: 480px) {
  .services-grid, .team-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat h3 { font-size: 34px; }
}